2002-10-23 David Carlton <carlton@math.stanford.edu>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8da065d5
DC
12002-10-23 David Carlton <carlton@math.stanford.edu>
2
3 * parse.c (parse_exp_1): Use BLOCK_START.
4 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
5 SYMBOL_BLOCK_VALUE.
6 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
7
87f2f08c
DC
82002-10-23 David Carlton <carlton@math.stanford.edu>
9
10 * symtab.c: Delete cplusplus_hint.
11 Delete prototype for find_template_name_end.
12
88cda038
EZ
132002-10-23 Elena Zannoni <ezannoni@redhat.com>
14
15 * symtab.h: Update comment.
16
2625d86c
MS
172002-10-23 Michael Snyder <msnyder@redhat.com>
18
19 * printcmd.c (address_info): Restore quotes in output.
20 * valops.c (value_of_local): Restore quotes in error message.
21
9cc0d196
EZ
222002-10-23 Elena Zannoni <ezannoni@redhat.com>
23
24 * symtab.c (symbol_demangled_name): New function.
25 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
26 turning most of it into a function.
27 (symbol_demangled_name): Export.
28
19de93d0
MS
292002-10-23 Michael Snyder <msnyder@redhat.com>
30
31 * valops.c (value_of_local): Restore quotes in error message.
32
89aad1f9
EZ
332002-10-23 Elena Zannoni <ezannoni@redhat.com>
34
35 * symtab.c (symbol_init_language_specific): New function.
36 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
37 turning most of it into a function.
38 (symbol_init_language_specific): Export.
39
d9fa45fe
DC
402002-10-23 David Carlton <carlton@math.stanford.edu>
41
42 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
43 (dwarf_attr_name): Ditto.
44 (dwarf_type_encoding_name): Ditto.
45 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
46 (process_die): Handle DW_TAG_namespace,
47 DW_TAG_imported_declaration, DW_TAG_imported_module.
48 (read_namespace): New function.
49
1045b512
JB
502002-10-22 Joel Brobecker <brobecker@gnat.com>
51
52 * configure.in: Define NEW_PROC_API on Interix too.
53 * configure: Regenerate.
54
552002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
56
57 * configure: Regenerate using the proper version of autoconf.
58
3987b9d4
EZ
592002-10-21 Elena Zannoni <ezannoni@redhat.com>
60
61 * findvar.c (read_var_value): Temporarily disable TLS code, until
62 complete TLS support is added.
63
9d774e44
EZ
642002-10-21 Jim Blandy <jimb@redhat.com>
65 Elena Zannoni <ezannoni@redhat.com>
66
67 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
68 for thread local storage locations.
69 (struct symbol): Add objfile field.
70 (SYMBOL_OBJFILE): Define.
71 * dwarf2read.c (is_thread_local): New static variable.
72 (new_symbol): If variable is in thread local fill in address class
73 and objfile appropriately.
74 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
75 stack operation.
76 * printcmd.c (address_info): Print the information for thread
77 local storage variable.
78 * findvar.c (read_var_value): In case of thread local variable,
79 defer to the target vector code to compute address.
80
bc4a16ae
EZ
812002-10-21 Elena Zannoni <ezannoni@redhat.com>
82
83 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
84 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
85
407caf07
EZ
862002-10-21 Elena Zannoni <ezannoni@redhat.com>
87
88 * symtab.h (address_class): Rename
89 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
90 * hpread.c (hpread_process_one_debug_symbol): Ditto.
91 * printcmd.c (address_info): Ditto.
92 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
93
005328e3
MK
942002-10-20 Mark Kettenis <kettenis@gnu.org>
95
afdb036a
MK
96 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
97 DBREG_DRX macro to acces debug registers.
98
ca02e098
MK
99 * Makefile.in (i386obsd-tdep.o): New target.
100
03cc47f7
MK
101 * solib-sunos.c: Include "bcache.h" and "regcache.h".
102 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
103
005328e3
MK
104 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
105 * config/i386/obsd.mt: New file.
106 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
107 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
108 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
109 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
110 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
111 * i386obsd-tdep.c: New file.
112
9c96f9f2
AF
1132002-10-19 Adam Fedor <fedor@gnu.org>
114
115 * objc-exp.y (name_not_typename): Fix invalid comment.
116
ce1ed485
MK
1172002-10-20 Mark Kettenis <kettenis@gnu.org>
118
119 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
120 to allocate partial syms and macro byte caches.
121
1efc7aaa
DC
1222002-10-18 David Carlton <carlton@math.stanford.edu>
123
124 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
125
7e1d63ec
AF
1262002-10-18 Adam Fedor <fedor@gnu.org>
127
128 * stabsread.c (find_name_end): New function.
129 (define_symbol): Use it.
130
6e8d29a9
DJ
1312002-10-18 Daniel Jacobowitz <drow@mvista.com>
132
133 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
134 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
135 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
136 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
137
1efc7aaa 1382002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
139
140 * symfile.h: Add opaque declaration for struct obstack.
141 Declare obsavestring to take a const char *.
142 * symfile.c (obsavestring): Make first argument a const char *.
143
1aeae86e
AF
1442002-10-16 Adam Fedor <fedor@gnu.org>
145
146 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
147 names when matching breakpoints in current file.
148
8b2dbe47
KB
1492002-10-16 Kevin Buettner <kevinb@redhat.com>
150
151 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
152 (read_tag_pointer_type): Add address class support.
153 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
154 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
155 New methods.
156 * gdbarch.h, gdbarch.c: Regenerate.
157 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
158 (make_type_with_address_space, recursive_type_dump): Add address
159 class support.
160 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
161 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
162 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
163
74451869
KD
1642002-10-16 Klee Dienes <kdienes@apple.com>
165
166 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
167 to get the last character of a char[] buffer, not
168 name[sizeof(vptr_name)-1].
169
ff4cb3e8
AF
1702002-10-14 Adam Fedor <fedor@gnu.org>
171
172 * symtab.h: New objc_specific struct.
173 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
174 (SYMBOL_DEMANGLED_NAME): Likewise.
175
da2cf7e0
AF
1762002-10-14 Adam Fedor <fedor@gnu.org>
177
178 * symfile.c (init_filename_language_table): Add ObjC file extension.
179
4a351cef
AF
1802002-10-14 Adam Fedor <fedor@gnu.org>
181
182 * utils.c (puts_filtered_tabular): New function.
183 (fprintf_symbol_filtered): Get ObjC demangled name.
184 * defs.h (puts_filtered_tabular): Declared.
185
9750e763
KB
1862002-10-14 Kevin Buettner <kevinb@redhat.com>
187
188 * c-lang.h (c_type_print_varspec_prefix): Delete.
189 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
190 ``need_post_space'' parameter. Adjust all callers.
191
eee771c1
DJ
1922002-10-14 Daniel Jacobowitz <drow@mvista.com>
193
194 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
195 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
196 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
197 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
198
46c82446
AF
1992002-10-13 Adam Fedor <fedor@gnu.org>
200
201 * source.c (print_source_lines): Update comments.
202
d069f99d
AF
2032002-10-13 Adam Fedor <fedor@gnu.org>
204
205 * valops.c (value_of_local): New function.
206 (value_of_this): Use it.
207 * value.h (value_of_local): Declared.
208
53c551b7
AF
2092002-10-13 Adam Fedor <fedor@gnu.org>
210
211 * parse.c: (length_of_subexp, prefixify_subexp): Handle
212 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
213
eb392fbf
AF
2142002-10-12 Adam Fedor <fedor@gnu.org>
215
216 * language.c (binop_result_type): Add language_objc to case.
217 (integral_type): Likewise.
218 (character_type): Likewise.
219 (string_type): Likewise.
220 (boolean_type): Likewise.
221 (structured_type): Likewise.
222 (binop_type_check): Likewise.
223
e2b23ee9
AF
2242002-10-11 Adam Fedor <fedor@gnu.org>
225
226 * printcmd.c (address_info): Print 'self' for ObjC.
227
b01ab485
AF
2282002-10-11 Adam Fedor <fedor@gnu.org>
229
230 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
231 OP_SELF.
232
806e6073
AF
2332002-10-11 Adam Fedor <fedor@gnu.org>
234
235 * language.h (CAST_IS_CONVERSION): Add language_objc.
236
50f85cdf
AF
2372002-10-11 Adam Fedor <fedor@gnu.org>
238
239 * defs.h (enum language): Add language_objc.
240
0d540cdf
KD
2412002-10-11 Klee Dienes <kdienes@apple.com>
242
243 * findvar.c (read_memory_typed_address): New function.
244 * gdbcore.h (read_memory_typed_address): Add prototype.
245 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
246 to read a value destined for a CORE_ADDR, not read_memory_integer.
247 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
248 (f77_get_dynamic_lowerbound): Ditto.
249
d5dc7960
MH
2502002-10-11 Martin M. Hunt <hunt@redhat.com>
251
252 * utils.c (string_to_core_addr): After turning string into
253 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
254 which will do necessary sign-extension, etc.
255
8343f86c
DJ
2562002-10-11 Daniel Jacobowitz <drow@mvista.com>
257
258 * c-exp.y (THIS): Delete token and grammar rule.
259 (yylex): Don't return THIS.
260 * cp-valprint.c (vtbl_ptr_name_old): Delete.
261 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
262 * demangle.c (cplus_markers): Update comment. Put '$'
263 first. Remove CPLUS_MARKER.
264 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
265 * jv-exp.y (THIS): Delete token and grammar rule.
266 (yylex): Don't return THIS.
267 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
268 * objc-exp.y (THIS): Delete token and grammar rule.
269 (yylex): Don't return THIS.
270 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
271 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
272 (read_member_functions): Likewise for opname.
273 (read_tilde_fields): Use is_cplus_marker.
274
275 * defs.h (CPLUS_MARKER): Don't define.
276 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
277 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
278 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
279 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
280 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
281
282 * config/i386/tm-i386v4.h: Delete file.
283 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
284 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
285 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
286 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
287 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
288 * config/i386/i386sco5.mt (TM_FILE): Likewise.
289 * config/i386/i386v4.mt (TM_FILE): Likewise.
290 * config/i386/ncr3000.mt (TM_FILE): Likewise.
291
967c0d83
MM
2922002-10-10 Marko Mlinar <markom@opencores.org>
293
294 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
295 accidentially not commited 2002-10-09
296 * gdbarch.h, gdbarch.c: Re-generate.
297
f74fa174
MM
2982002-10-09 Marko Mlinar <markom@opencores.org>
299
300 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
301 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
302 * gdbarch.h, gdbarch.c: Re-generate.
303
57349743
JB
3042002-10-08 Petr Sorfa <petrs@caldera.com>
305
306 Revised and re-submitted by John Wolfe <jlw@caldera.com>
307
308 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
309 so we can work on more than one compilation unit at a time. This
310 helps prepare GDB to handle inter-CU die references.
311 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
312 the code to be defined before struct comp_unit_head.
313 (comp_unit_head): Added new members - offset, cu_head,
314 begin_die, next and dwarf2_abbrevs.
315 (dwarf2_abbrevs): Removed single static var; now member of
316 struct comp_unit_head.
317 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
318 members.
319 (psymtab_to_symtab_1): Changed to work with the new
320 struct comp_unit_head.
321 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
322 constructs the dwarf2_abbrevs[] inside the cu_header.
323 (dwarf2_empty_abbrev_table): Now expects a ptr to a
324 dwarf2_abbrev table to clean up.
325 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
326 handling of dwarf2_abbrevs inside the cu_header.
327 (read_partial_die): Now supports the call to the new
328 dwarf2_lookup_abbrev.
329 (read_full_die): Now supports the call to the new
330 dwarf2_lookup_abbrev.
331
4092aadb
CF
3322002-10-06 Christopher Faylor <cgf@redhat.com>
333
334 * Makefile.in (install-gdbtk): Add missing continuation backslash to
335 insure that shell variables, such as "transformed_name" are propagated
336 to later shell statements in rule.
337
af0b2512
MK
3382002-10-06 Mark Kettenis <kettenis@gnu.org>
339
340 * config/i386/nm-i386sco.h: Add protection against
341 multiple-inclusion. Include "i386/nm-i386v.h".
342 (REGISTER_U_ADDR): Remove define.
343 (i386_register_u_addr): Remove prototype.
344
d6020d45
MS
3452002-10-04 Michael Snyder <msnyder@redhat.com>
346
347 * m32r-stub.c (handle_exception): Make sure exception is "trap"
348 before treating it as a single-step event.
349
7248f48e
AF
3502002-10-03 Adam Fedor <fedor@gnu.org>
351
352 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
353 (objc_demangle): Remove assignment in if statements, Replace
354 free with xfree.
355 (add_msglist): Likewise.
356 (end_msglist): Likewise.
357 (complare_selectors): Likewise.
358 (selectors_info): Likewise.
359 (compare_classes): Likewise.
360 (classes_info): Likewise.
361 (print_object_command): Likewise.
362 (find_objc_msgcall_submethod): Replace PTR with void *.
363 * objc-lang.h: Remove check for __STDC__.
364
52c6a6ac
JJ
3652002-10-03 Jeff Johnston <jjohnstn@redhat.com>
366
367 * ui-out.h (ui_out_field_fmt_int): New prototype.
368 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
369 of field width and alignment.
370 * stack.c (print_frame_info_base): When printing frame level, use
371 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
372 PR gdb/192
373
7e3cec17
JJ
3742002-10-03 Jeff Johnston <jjohnstn@redhat.com>
375
376 * MAINTAINERS: Add self to Write After Approval list.
377
a58dd373
EZ
3782002-10-02 Elena Zannoni <ezannoni@redhat.com>
379
380 * infcmd.c (interrupt_target_command_wrapper): Delete.
381 (interrupt_target_command): Make non static.
382 (nofp_registers_info): Make static.
383 * stack.c (return_command_wrapper): Delete.
384 (return_command): Make non static.
385
cee6ddeb
EZ
3862002-10-02 Elena Zannoni <ezannoni@redhat.com>
387
388 * event-top.c (gdb_setup_readline): New function. Code moved from
389 _initialize_event_loop().
390 (_initialize_event_loop): Call gdb_setup_readline().
391
c4ed33b9
AC
3922002-10-02 Andrew Cagney <ac131313@redhat.com>
393
394 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
395 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
396 * gdbarch.h, gdbarch.c: Re-generate.
397
cef4f5dd
DJ
3982002-10-02 Daniel Jacobowitz <drow@mvista.com>
399
400 Fix PR gdb/778
401 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
402 before recursing.
403 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
404 of fill_in_vptr_fieldno.
405
36dc181b 4062002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 407
36dc181b
EZ
408 * inferior.h (registers_info, stepi_command, nexti_command,
409 continue_command, interrupt_target_command): Export from infcmd.c.
410 * frame.h (args_info, selected_frame_level_changed_hook,
411 return_command): Export from stack.c.
412 * v850ice.c (stepi_command, nexti_command, continue_command): use
413 prototypes from inferior.h.
414 * tracepoint.c (registers_info, args_info, locals_info): Use
415 prototypes from frame.h and inferior.h.
416 * Makefile.in (mi-main.o): Add dependency on frame.h.
417
6f99cb26
AC
4182002-10-02 Andrew Cagney <ac131313@redhat.com>
419
da3eff49
AC
420 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
421 value in register 3 adjusted by ppc_gp0_regnum.
422
6f99cb26
AC
423 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
424
da615bee
MM
4252002-10-02 Marko Mlinar <markom@opencores.org>
426
427 * MAINTAINERS: Add myself to the Write After Approval list.
428
d154bee2
AO
4292002-10-01 Alexandre Oliva <aoliva@redhat.com>
430
62a49b2c
AO
431 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
432 of the section for the N64 ABI, fixed.
433
d154bee2
AO
434 * config/mips/tm-irix6.h: Include solib.h.
435
ed348acc
EZ
4362002-10-01 Elena Zannoni <ezannoni@redhat.com>
437
438 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
439 GNU operators.
440
da0f9dcd
AC
4412002-10-01 Andrew Cagney <ac131313@redhat.com>
442
443 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
444 and that "mi0" syntax has been removed.
445
bdf64bac
DC
4462002-09-30 David Carlton <carlton@math.stanford.edu>
447
448 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
449 * ppc-sysv-tdep.c: #include "gdb_string.h".
450 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
451 pacify GCC.
452
54c2a1e6
AC
4532002-10-01 Andrew Cagney <ac131313@redhat.com>
454
455 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
456 "vrsave"'s register number.
457
cedea778
AC
4582002-09-30 Andrew Cagney <ac131313@redhat.com>
459
460 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
461 use frame_unwind_signed_register to obtain the PC.
462 (mips_frame_chain): Handle a generic dummy frame.
463 (mips_init_extra_frame_info): When a generic dummy frame, don't
464 re-compute the frame base.
465 (mips_pop_frame): Handle generic dummy frames.
466 (mips_gdbarch_init): When generic dummy frames, set
467 use_generic_dummy_frames, push_dummy_frame to
468 generic_push_dummy_frame, pc_in_call_dummy to
469 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
470 generic_save_dummy_frame_tos.
471
68315eb8
AC
4722002-09-30 Andrew Cagney <ac131313@redhat.com>
473
474 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
475 against TOP when TOP was explictly set.
476 (generic_push_dummy_frame): Set TOP to zero.
477
3b8630c3
EZ
4782002-09-30 Elena Zannoni <ezannoni@redhat.com>
479
480 * event-loop.c (start_event_loop): Rename variable 'result' to
481 'gdb_result', to avoid conflicts with upcoming intepreters changes.
482
28ee05e9
KS
4832002-09-30 Keith Seitz <keiths@redhat.com>
484
485 * gdb-events.sh (selected_thread_changed): New event.
486 * gdb-events.c: Regenerated.
487 * gdb-events.h: Regenerated.
488
6eecb1c8
HPN
4892002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
490
491 * MAINTAINERS: Add self to Write After Approval list.
492
92df71f0
FN
4932002-09-30 Fernando Nasser <fnasser@redhat.com>
494
3b8630c3
EZ
495 * disasm.c: New file.
496 * disasm.h: New file.
92df71f0
FN
497 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
498 (compare_lines): Ditto.
499 (dump_insns): Ditto.
3b8630c3
EZ
500 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
501 argument.
92df71f0 502 (do_assembly_only): Ditto.
3b8630c3
EZ
503 (do_disassembly): Renamed to gdb_disassembly and moved to
504 disasm.c. Sdded uiout argument.
505 * Makefile.in: Add new files. Reorder SFILES list. Update
506 dependencies. Include libgdb.a later in the insight executable.
92df71f0 507
0c22854d
AC
5082002-09-29 Andrew Cagney <ac131313@redhat.com>
509
510 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
511 bfd/elf64-alpha-fbsd.c.
512
e67f2023
AC
5132002-09-29 Andrew Cagney <ac131313@redhat.com>
514
515 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
516 i386gnu-tdep.c.
517
89396210
AC
5182002-09-29 Andrew Cagney <ac131313@redhat.com>
519
520 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
521 __FUNCTION__.
522 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
523 function name.
524 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
525 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
526 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
527 (S_msg_sig_post_reply): Ditto.
528
7079c36c
CV
5292002-09-28 Corinna Vinschen <vinschen@redhat.com>
530
89396210
AC
531 * sh-tdep.c (sh_use_struct_convention): Use definition according
532 to ABI.
7079c36c
CV
533 (sh_push_arguments): Store in register with correct endianess.
534 (sh_default_store_return_value): Ditto.
535 (sh_gdbarch_init): Set sizeof long double to 8.
536
975ac915
MK
5372002-09-27 Mark Kettenis <kettenis@gnu.org>
538
539 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
540 Fix some whitespace problems.
541
9bbe19fb
DC
5422002-09-27 David Carlton <carlton@math.stanford.edu>
543
544 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
545 (mcore-tdep.o): Ditto.
546 (ns32k-tdep.o): Ditto.
547 (ns32knbsd-tdep.o): Ditto.
548 (sh3-rom.o): Ditto.
549 (vax-tdep.o): Ditto.
550 * cris-tdep.c: #include "gdb_string.h"
551 * mcore-tdep.c: Ditto.
552 * ns32k-tdep.c: Ditto.
553 * ns32knbsd-tdep.c: Ditto.
554 * sh3-rom.c: Ditto.
555 * vax-tdep.c: Ditto.
556
43b2fdc7
DC
5572002-09-27 David Carlton <carlton@math.stanford.edu>
558
559 * config/djgpp/fnchange.lst: Add entries for
560 gdb/testsuite/gdb.c++/m-static files.
561
e8cfbbd9
JW
5622002-09-27 Jim Wilson <wilson@redhat.com>
563
564 * MAINTAINERS: Add myself to the Write After Approval list.
565
43b2fdc7 5662002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
567
568 * mips-tdep.c (find_proc_desc): Initialize startaddr.
569
570
9f3b7f07
AC
5712002-09-26 Andrew Cagney <ac131313@redhat.com>
572
573 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
574 frame.
575
11269d7e
AC
5762002-09-26 Andrew Cagney <ac131313@redhat.com>
577
578 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
579 (rs6000_struct_return_address): Delete variable.
580 (rs6000_store_struct_return): Update.
581 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
582 deprecated_extract_struct_value_address.
583 (rs6000_frame_align): New function.
584 (rs6000_gdbarch_init): Set frame_align.
585
f15ab4a7
AC
5862002-09-26 Andrew Cagney <ac131313@redhat.com>
587
588 From Grace Sainsbury <graces@redhat.com>:
589 * Makefile.in (gdbtk-main.o): New target.
590 (gdb.o): New target.
591 (main_h): Define.
592 (main.o): Update dependencies.
593 (gdb$(EXEEXT)): Add gdb.o.
594 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
595 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
596 (SUBDIR_GDBTK_CLEAN): Set.
597 (install-gdbtk): Install the insight binary.
598 (uninstall-gdbtk): New target.
599 (all-gdbtk, clean-gdbtk): New rule.
600 * top.c (use_windows): Default to zero.
601 * main.c: Include "main.h".
602 (main): Delete.
603 (struct captured_main_args): Delete.
604 (gdb_main): New function.
605 * main.h: New file.
606 * gdb.c: New File.
607
e36180d7
AC
6082002-09-25 Andrew Cagney <cagney@redhat.com>
609
610 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
611 (frame_map_regnum_to_name): New function.
612 (frame_map_name_to_regnum): New function.
613 * frame.h (frame_map_name_to_regnum): Declare.
614 (frame_map_regnum_to_name): Declare.
615 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
616 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
617 * parse.c: Do not include "builtin-regs.h".
618 (target_map_name_to_register): Delete function.
619 (write_dollar_variable): Use frame_map_name_to_regnum.
620 * parser-defs.h (target_map_name_to_register): Delete declaration.
621 * expprint.c: Include "frame.h".
622 (print_subexp): Use frame_map_regnum_to_name.
623 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
624 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
625
8b69000d
AC
6262002-09-25 Andrew Cagney <ac131313@redhat.com>
627
628 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
629 wasn't saved, and the next innermost frame is a dummy, return the
630 dummy frame's link register.
631
046ca86a
JB
6322002-09-24 Jim Blandy <jimb@redhat.com>
633
634 Fix from Paul Breed:
635 * main.c (captured_main): Add a `break' after the case for 'b'.
636
94b66fa7
KS
6372002-09-24 Keith Seitz <keiths@redhat.com>
638
639 * varobj.c (c_type_of_child): Use get_target_type instead
640 of TYPE_TARGET_TYPE.
641
c214a6fd
FN
6422002-09-22 Fernando Nasser <fnasser@redhat.com>
643
53cb0458
FN
644 * source.c (get_current_or_default_source_symtab_and_line): Remove
645 function.
646 (set_default_source_symtab_and_line): New function. Attempts to
647 determine a source file to list lines from if one is not currently
648 defined.
649 (get_current_source_symtab_and_line): Initialize sal.pc and
650 sal.end fields.
651 (set_current_source_symtab_and_line): Mark argument as const.
652 * source.h: Update declarations and comments.
653 * linespec.c (decode_line_1): Replace call to removed routine above.
654 * stack.c (print_frame_info_base): Ditto.
655 * cli/cli-cmds.c (edit_command): Ditto.
656 (list_command): Ditto.
657
6582002-09-22 Fernando Nasser <fnasser@redhat.com>
659
d6020d45 660 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 661 sal.pc and sal.end fields.
c214a6fd
FN
662 (get_current_or_default_source_symtab_and_line): Ditto.
663 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
664 so we do not cause a new source symtab to be searched for (reverting an
665 unintentional change from the 2002-09-20 patch).
666 * scm-lang.c (scm_unpac): Ditto.
667
cc3b68a5
AC
6682002-09-21 Andrew Cagney <cagney@redhat.com>
669
670 * complaints.c (symfile_explanations): Remove new-line from
671 ``isolated_message''.
672 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
673 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
674
5835abe7
NC
6752002-09-20 Nick Clifton <nickc@redhat.com>
676
677 * NEWS: Announce that V850EA ISA is no longer supported.
678 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
679
a15ef5f5
DC
6802002-09-20 David Carlton <carlton@math.stanford.edu>
681
06ba1b39
DC
682 * Makefile.in (c-lang.o): Correct dependencies.
683 (utils.o): Gather dependencies.
684 (charset.o): Move.
a15ef5f5
DC
685 * c-lang.c: #include "gdb_string.h"
686
87885426
FN
6872002-09-20 Fernando Nasser <fnasser@redhat.com>
688
689 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
690 * cli/cli-cmds.c (list_command): New function. Implements the new
691 cli edit command.
692 (_init_cli_cmds): Add new command definition.
693 * gdb.1: Document edit command.
694 * doc/gdb.texinfo: Document edit command.
695
6962002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
697
698 * source.c: Make global variables current_source_symtab and
699 current_source_line static.
700 (list_command): Moved to cli/cli-cmds.c.
701 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
702 (get_first_line_listed): New accessor function.
703 (get_lines_to_list): New accessor function.
704 (get_current_source_symtab_and_line): New function. Retrieves the
705 position in the source code that we consider current.
706 (get_current_or_default_source_symtab_and_line): New function.
707 Like the above but attempts to determine a default position if one
708 is not currently defined.
709 (set_current_source_symtab_and_line): New function. Sets the source
710 code position considered current and returns the previously set one.
711 (clear_current_source_symtab_and_line): Reset stored information about
712 a current source line.
713 (_initialize_source): Remove registration for the "list" command and
714 its alias.
715 * source.h: Add declarations for the new functions above.
716 * symtab.h: Remove declarations for the global variables mentioned
717 above.
718 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
719 obtain current source line.
720 * linespec.c (decode_line_1): Ditto.
721 * macroscope.c (default_macro_scope): Ditto.
722 * scm-lang.c (scm_unpac): Ditto.
723 * stack.c (print_frame_info_base): Ditto.
724 * symfile.c (clear_symtab_users): Ditto.
725 * symtab.c (decode_line_spec): Ditto.
726 * cli/cli-cmds.c (list_command): Moved here from source.c.
727 (ambiguous_line_spec): Moved here from source.c.
728 (_init_cli_cmds): Add definition for "list" and its alias.
729 * Makefile.in: Update dependencies.
730
ddd216ea
CV
7312002-09-20 Corinna Vinschen <vinschen@redhat.com>
732
733 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
734 with what gcc thinks is correct.
735
6d305052
CV
7362002-09-20 Corinna Vinschen <vinschen@redhat.com>
737
738 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
739 multiple register push instruction.
740
234b45d4
KB
7412002-09-19 Jim Blandy <jimb@redhat.com>
742
743 Add support for distinct host and target character sets.
744 * charset.c, charset.h: New files.
745 * c-exp.y: #include "charset.h".
746 (yylex): Convert character and string literals to the target
747 character set, before returning them as the semantic value of the
748 token.
749 * c-lang.c: #include "charset.h".
750 (c_emit_char): Use charset-specific methods to recognize
751 characters with backslash escape forms, to decide which characters
752 to print literally and which to print using numeric escape
753 sequences, and to convert target characters to host characters
754 before printing.
755 * utils.c: #include "charset.h".
756 (no_control_char_error): New function.
757 (parse_escape): Use charset-specific methods to recognize
758 backslash escapes, parse `control character' notation, and convert
759 characters from the host character set to the target character set.
760 * configure.in: Set the default host character set.
761 Check where to find iconv, and what its argument types might be.
762 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
763 * Makefile.in (SFILES): List charset.c.
764 (COMMON_OBS): List charset.o.
765 (charset.o): New rule.
766 (charset_h): New header dependency variable.
767 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
768 (LIBICONV): New variable, set by configure.
769 (CLIBS): Include $(LIBICONV) here.
770 * aclocal.m4, config.in, configure: Regenerated.
771
525d6a61
JB
7722002-09-19 Joel Brobecker <brobecker@gnat.com>
773
774 * ada-exp.y: Add missing semicolons to end rules. Fixes a
775 bison 1.35 warning.
776
3ed93867
RE
7772002-09-19 Richard Earnshaw <rearnsha@arm.com>
778
779 * gdb_mbuild.sh: New file.
780
437666f8
AC
7812002-09-19 Andrew Cagney <ac131313@redhat.com>
782
783 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
784
389e51db
AC
7852002-09-18 Andrew Cagney <ac131313@redhat.com>
786
787 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
788 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
789 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
790 valops.c, value.h: Revert previous change.
791
3b4efeaa
MS
7922002-09-18 Michael Snyder <msnyder@redhat.com>
793
794 Preliminary support for Objective-C:
795 * defs.h (language_objc): New enum value.
796 (puts_filtered_tabular): Declaration only, exported from utils.c.
797 (skip_quoted): Delete, declared in completer.h.
798 * c-exp.y: Include completer.h.
799 * p-exp.y: Ditto.
800 * jv-exp.y: Ditto.
801 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
802 New operator enum values.
803 * language.h (CAST_IS_CONVERSION): Test for language_objc.
804 * language.c (binop_result_type): Handle language_objc case.
805 (integral_type, character_type, string_type, boolean_type,
806 structured_type, binop_type_check): Ditto.
807 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
808 (struct objc_specific): Add to general_symbol_info.
809 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
810 (SYMBOL_DEMANGLED_NAME): Handle objc case.
811 * parser-defs.h (struct objc_class_str): New struct type.
812 (start_msglist, end_msglist, add_msglist): Declaration only,
813 exported from objc-lang.c.
814 * value.h (value_of_local, value_nsstring,
815 call_function_by_hand_expecting_type): Exported from valops.c.
816 * valops.c (find_function_addr): Export.
817 (call_function_by_hand_expecting_type): New function.
818 (value_of_local): New function.
819 * symfile.c (init_filename_language_table): Add ".m" extension
820 for Objective-C.
821 * utils.c (puts_filtered_tabular): New function.
822 (fprintf_symbol_filtered): Add objc demangling support (disabled).
823 (set/show demangle): Extend help-string to refer to ObjC.
824 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
825 * stabsread.c (symbol_reference_defined): Objective-C symbols
826 may contain colons: make allowances when scanning stabs strings
827 for colons.
828 (objc_find_colon): New function.
829 * printcmd.c (address_info): If language == objc then print
830 "self" instead of "this".
831 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
832 OP_NSSTRING, and OP_SELF.
833 (prefixify_subexp): Ditto.
834 * source.c (print_source_lines): Mention objc in comment.
835 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
836 method names.
837
b9caf505
AC
8382002-09-18 Andrew Cagney <ac131313@redhat.com>
839
840 * complaints.h: Update copyright.
841 (struct complaints): Declare.
842 (struct complaint): Make `message' constant.
843 (internal_complaint): Declare.
844 (complaint): Declare.
845 (complaint_root): Delete declaration.
846 (symfile_complaints): Delete declaration.
847 (struct complaints): Add opaque declaration.
848 (clear_complaints): Add a complaints parameter.
849 * complaints.c: Update copyright.
850 (enum complaint_series): Define.
851 (complaint_root): Delete.
852 (struct complaints): Define.
853 (complaint_sentinel, symfile_complaint_book): New variables.
854 (symfile_explanations, symfile_complaints): New variables.
855 New variables.
856 (get_complaints): New function.
857 (vcomplaint): New function.
858 (complaint): New function.
859 (internal_complaint): New function.
860 (complain): Call vcomplain with symfile_complaint.
861 (clear_complaints): Rewrite.
862 (_initialize_complaints): Use add_setshow_command.
863 * Makefile.in (complaints.o): Update dependencies.
864 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
865 to call to clear_complaints.
866 (new_symfile_objfile, reread_symbols): Ditto.
867 (oldsyms_complaint): Delete.
868 (empty_symtab_complaint, unknown_option_complaint): Delete.
869 (free_named_symtabs): Use complaint instead of complain.
870
d2e6263c
MS
8712002-09-18 Michael Snyder <msnyder@redhat.com>
872
5fb2031a
AC
873 Contributed by Apple Computer, Inc. Merged with current sources
874 by Adam Fedor <fedor@doc.com> [cagney].
875
d2e6263c
MS
876 * objc-lang.c: First clean-up round: comments, indentation.
877 * objc-lang.h: Ditto.
878 * objc-lang.y: Ditto.
879
dec43320
AC
8802002-09-18 Andrew Cagney <ac131313@redhat.com>
881
882 * maint.c (maintenance_internal_error): Print the parameter as the
883 error message.
884 (maintenance_internal_warning): New function.
885 (_initialize_maint_cmds): Add command `maint internal-warning'.
886
887 * defs.h (internal_warning, internal_vwarning): Declare.
888 * utils.c (struct internal_problem): Define.
889 (internal_vproblem): New function.
890 (internal_warning): New function.
891 (internal_vwarning): New function.
892 (internal_warning_problem, internal_error_problem): New variables.
893 (internal_verror): Just call internal_vproblem.
894
b81654f1
MS
8952002-09-18 Michael Snyder <msnyder@redhat.com>
896
897 * objc-lang.c: New file, support for Objective-C.
898 Preliminary check-in, not yet integrated into gdb.
899 * objc-lang.h: New file.
900 * objc-exp.y: New file.
901
0542c381
AC
9022002-09-18 Andrew Cagney <ac131313@redhat.com>
903
7bda5e4a
AC
904 * infrun.c (signal_stop_update): Convert definition to ISO C.
905 (signal_print_update): Ditto.
906 (signal_pass_update): Ditto.
907 * inflow.c (terminal_save_ours): Ditto.
908
5247b418
AC
909 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
910 comments.
911
fc60962c
AC
912 * config/djgpp/fnchange.lst: Handle name clashes between
913 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
914 bfd/coff-tic80.c.
915
0542c381
AC
916 * i386-linux-tdep.h: Fix tipo.
917
5b924b9b
AF
9182002-09-18 Adam Fedor <fedor@gnu.org>
919
920 * MAINTAINERS: Add myself to the Write After Approval list.
921
5afc051b
JB
9222002-09-18 Jim Blandy <jimb@redhat.com>
923
924 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
925 texthigh and textlow to reader-specific structs caused
926 objfile_relocate to miss them. This is fixable, but the work that
927 the change was supposed to prepare GDB for never got done anyway.
928
eb944380
DC
9292002-09-18 David Carlton <carlton@math.stanford.edu>
930
931 * MAINTAINERS: Alphabetize Write After Approval list.
932
948e66d9
DJ
9332002-09-18 Daniel Jacobowitz <drow@mvista.com>
934
935 Fix PR gdb/709
936 * values.c (value_static_field): Call read_var_value.
937
dc604539
AC
9382002-09-18 Andrew Cagney <ac131313@redhat.com>
939
940 * valops.c (hand_function_call): Align the initial stack pointer
941 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
942 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
943 return value.
944 * mips-tdep.c (mips_frame_align): New function.
945 (mips_gdbarch_init): Set frame_align.
946 * gdbarch.sh (FRAME_ALIGN): New method.
947 * gdbarch.h, gdbarch.c: Re-generate.
948
cb7e422f
ML
9492002-09-18 Michal Ludvig <mludvig@suse.cz>
950
951 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
952 registers.
953
a094c6fb
AC
9542002-09-17 Andrew Cagney <ac131313@redhat.com>
955
956 * NEWS: Mention that MIPS $fp behavior changed.
957 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
958 reference to FP_REGNUM.
959 (mipsnbsd_cannot_store_register): Ditto.
960 * mips-linux-nat.c: Update copyright.
961 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
962 (mips_linux_cannot_store_register): Ditto.
963 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
964 * config/mips/tm-mips.h: Update copyright.
965 (FP_REGNUM): Delete macro.
966 (MIPS_REGISTER_NAMES): Replace "fp" with "".
967 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
968 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
969 (mips_r3041_reg_names, mips_r3051_reg_names)
970 (mips_r3081_reg_names): Replace "fp" with "".
971 Fix PR gdb/480.
972
45cf40d1
TR
9732002-09-17 Theodore A. Roth <troth@verinet.com>
974
975 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
976 generic_read_register_dummy() (PR gdb/703).
977 (avr_push_return_address): #if 0 out unused vars.
978 (avr_gdbarch_init): Enable use of avr_push_return_address().
979
c7e701b5
MS
9802002-09-17 Michael Snyder <msnyder@redhat.com>
981
d76ba2a5 982 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
983 RTE will take care of it.
984
20bcf01c
AC
9852002-09-17 Andrew Cagney <ac131313@redhat.com>
986
987 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
988 invalid, return SP_REGNUM.
989
009a9971 9902002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
991
992 * mips-tdep.c (mips_pop_frame): Read saved values of floating
993 point registers without sign extension.
994
135c175f
AC
9952002-09-17 Andrew Cagney <cagney@redhat.com>
996
997 * blockframe.c (deprecated_read_register_dummy): Rename
998 generic_read_register_dummy.
999 * frame.c (frame_unwind_signed_register): New function.
1000 (frame_unwind_unsigned_register): New function.
1001 * frame.h (frame_unwind_signed_register): Declare.
1002 (frame_unwind_unsigned_register): Declare.
1003 (deprecated_read_register_dummy): Rename
1004 generic_read_register_dummy.
1005
1006 * h8300-tdep.c (h8300_frame_chain): Update.
1007 (h8300_frame_saved_pc): Update.
1008 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1009 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1010 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1011 (s390_frame_chain): Update.
1012 * v850-tdep.c (v850_find_callers_reg): Update.
1013 (v850_frame_saved_pc): Update.
1014 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1015 (m32r_find_callers_reg): Update.
1016 (m32r_frame_saved_pc): Update.
1017 * sh-tdep.c (sh_find_callers_reg): Update.
1018 (sh64_get_saved_pr): Update.
1019 (sh_init_extra_frame_info): Update.
1020 (sh_init_extra_frame_info): Update.
1021 (sh64_init_extra_frame_info): Update.
1022 (sh64_init_extra_frame_info): Update.
1023 * mcore-tdep.c (mcore_find_callers_reg): Update.
1024 (mcore_frame_saved_pc): Update.
1025 (mcore_init_extra_frame_info): Update.
1026 * i386-tdep.c (i386_frame_saved_pc): Update.
1027 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1028 (ia64_init_extra_frame_info): Update.
1029 (ia64_init_extra_frame_info): Update.
1030 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1031 * cris-tdep.c (cris_init_extra_frame_info): Update.
1032 * avr-tdep.c (avr_frame_chain): Update.
1033 (avr_init_extra_frame_info): Update.
1034 (avr_frame_saved_pc): Update.
1035 * arm-tdep.c (arm_find_callers_reg): Update.
1036 (arm_init_extra_frame_info): Update.
1037 (arm_frame_saved_pc): Update.
1038
a741e514
TT
10392002-09-17 Tom Tromey <tromey@redhat.com>
1040
1041 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1042 is "'".
1043
d1a8e808
CV
10442002-09-17 Corinna Vinschen <vinschen@redhat.com>
1045
1046 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1047 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1048 NEXT_PROLOGUE_INSN.
1049 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1050 NEXT_PROLOGUE_INSN.
1051
d9025a18
JB
10522002-09-16 Joel Brobecker <brobecker@gnat.com>
1053
1054 * osfsolib.c: Remove file, replaced by solib-osf.c.
1055 * Makefile.in: Remove compilation rules for osfsolib.c.
1056
1b2ef1b6
DC
10572002-09-16 David Carlton <carlton@math.stanford.edu>
1058
1059 * cp-valprint.c (cp_print_class_method): Correct args to
1060 check_stub_method_group.
1061
928e48af
CV
10622002-09-16 Corinna Vinschen <vinschen@redhat.com>
1063
1064 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1065 `set architecture'. Unify naming convention of functions.
1066 (h8300_skip_prologue): Improve prologue analysis.
1067 (h8300_push_arguments): Rewritten to more closely match GCC's
1068 bizarre argument-passing behavior, along with the comment describing
1069 said behavior.
1070 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1071 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1072 sim, remote-e7000.c, remote-hms.c and remote.c
1073
5e3397bb
MK
10742002-09-15 Mark Kettenis <kettenis@gnu.org>
1075
1076 * i386-tdep.c (gdb_print_insn_i386): Removed.
1077 (i386_print_insn): New function.
1078 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1079 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1080 tm_print_insn_info.
1081
f710f4fc
MK
10822002-09-14 Mark Kettenis <kettenis@gnu.org>
1083
1084 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1085 zero.
1086
db54fef4
CV
10872002-09-14 Corinna Vinschen <vinschen@redhat.com>
1088
1089 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1090 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1091 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1092
2becadee
CF
10932002-09-13 Christopher Faylor <cgf@redhat.com>
1094
1095 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1096
de17c821
DJ
10972002-09-13 Daniel Jacobowitz <drow@mvista.com>
1098
1099 * gdbtypes.c (check_stub_method): Make static.
1100 (check_stub_method_group): New function.
1101 * gdbtypes.h: Update prototypes.
1102 * cp-support.c: New file.
1103 * cp-support.h: New file.
1104
1105 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1106 (update_method_name_from_physname): New function.
1107 (read_member_functions): Correct method names for operators
1108 and v3 constructors/destructors. Separate v2 constructors and
1109 destructors.
1110 * Makefile.in (stabsread.o): Update dependencies.
1111 (SFILES): Add cp-support.c.
1112 (COMMON_OBS): Add cp-support.o.
1113 (cp_support_h, cp-support.o): Add.
1114
1115 * cp-valprint.c (cp_print_class_method): Call
1116 check_stub_method_group instead of check_stub_method. Remove
1117 extraneous QUITs.
1118 * p-valprint.c (pascal_object_print_class_method): Likewise.
1119 * valops.c (search_struct_method): Likewise.
1120 (find_method_list, value_struct_elt_for_reference): Likewise.
1121
e76cff22
AC
11222002-09-13 Andrew Cagney <cagney@redhat.com>
1123
1124 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1125 * gdbarch.h, gdbarch.c: Regenerate.
1126
905abb3f
AC
11272002-09-13 Andrew Cagney <ac131313@redhat.com>
1128
1129 * frame.c (find_saved_register): Delete function.
1130 * frame.h (find_saved_register): Delete declaration.
1131 Fix PR gdb/631.
1132
64159455
AC
1133Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1134
1135 * mips-tdep.c (read_next_frame_reg): Re-hack using
1136 frame_register_unwind.
1137
795e1e11
AC
1138Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1139
1140 * mips-tdep.c (mips_get_saved_register): Re-hack using
1141 frame_register_unwind.
1142
5720643c
JB
11432002-09-12 Joel Brobecker <brobecker@gnat.com>
1144
1145 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1146 vector. Will be useful for Interix.
1147 * gdbarch.h, gdbarch.c: Regenerate.
1148
1149 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1150 name of the malloc function by NAME_OF_MALLOC.
1151
3bada2a2
JB
11522002-09-12 Joel Brobecker <brobecker@gnat.com>
1153
1154 * value.h (find_function_in_inferior): Add const keyword to
1155 one of the parameters. Allows us to invoke this function with
1156 a const char *.
1157 * valops.c (find_function_in_inferior): Likewise.
1158
3db26b01
JB
11592002-09-12 Joel Brobecker <brobecker@gnat.com>
1160
1161 * exec.c (xfer_memory): Fix compilation warning with old versions
1162 of GCC.
1163 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1164
17c5ed2c
DC
11652002-09-12 David Carlton <carlton@math.stanford.edu>
1166
1167 * symtab.h: Run through gdb_indent.h.
1168 Add 2002 to Copyright year list.
1169
ecd1107e
AM
11702002-09-12 Alan Modra <amodra@bigpond.net.au>
1171
1172 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1173 mach constants.
1174 * MAINTAINERS: Add myself to write after approval list.
1175
e64f66d1
JB
11762002-09-11 J. Brobecker <brobecker@gnat.com>
1177
1178 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1179
f9395794
JB
11802002-09-11 J. Brobecker <brobecker@gnat.com>
1181
1182 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1183 Interix.
1184
1a303dec
MS
11852002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1186
1187 * procfs.c (do_detach): Clear current signal, not just fault.
1188 Corrects problem with breakpoint trap signal leaking to detached
1189 process on Tru64.
1190
c0219d42
MS
11912002-09-10 Michael Snyder <msnyder@redhat.com>
1192
1193 * buildsym.c (finish_block): Protect against null pointer.
1194
9d84ac84
AC
11952002-09-10 Andrew Cagney <cagney@redhat.com>
1196
1197 * infcmd.c (default_print_registers_info): Send all output to
1198 ``file'' instead of ``gdb_stdout''.
1199
77d8f2b4
MS
12002002-09-10 Michael Snyder <msnyder@redhat.com>
1201
1202 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1203 LONGEST, and use signed register read (addresses are sign-
1204 extended for mips).
1205
99656a61
SC
12062002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1207
1208 * event-loop.c (gdb_do_one_event): Make public.
1209 * event-loop.h (gdb_do_one_event): Declare.
1210
da12f4d8
JL
12112002-09-10 Jeff Law <law@redhat.com>
1212
1213 * infttrace.c (child_resume): Simplify and rework to avoid
1214 TT_PROC_CONTINUE.
1215
d0aee0c4
FF
12162002-09-09 Fred Fish <fnf@intrinsity.com>
1217
1218 * printcmd.c (print_scalar_formatted): "len" is the number of
1219 target bytes, NOT the number of target bits.
1220
7cb3ec5e
EZ
12212002-09-09 Elena Zannoni <ezannoni@redhat.com>
1222
1223 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1224 * top.c (init_main): Set rl_terminal_name.
1225
4dc81987
AS
12262002-09-08 Aidan Skinner <aidan@velvet.net>
1227
1228 * ada-lang.c (ada_array_bound, ada_type_match,
1229 _initialize_ada_language): Fix K&R definitions.
1230 * ada-tasks.c (get_current_task): Fix K&R definitions.
1231 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1232
842330b4
CF
12332002-09-07 Christopher Faylor <cgf@redhat.com>
1234
1235 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1236 Add XP.
1237
43156d82
MK
12382002-09-06 Mark Kettenis <kettenis@gnu.org>
1239
66da5fd8
MK
1240 * i386-tdep.c (i386_register_virtual_type,
1241 i386_register_convertible, i386_register_convert_to_virtual,
1242 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1243 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1244 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1245 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1246 Don't set push_arguments twice.
1247
4b218c18
MK
1248 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1249 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1250 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1251 sigtramp_end to NULL.
1252 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1253 defines.
1254 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1255
4cc314d5
MK
1256 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1257 whitespace.
1258
43156d82
MK
1259 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1260 * gdbarch.h, gdbarch.c: Re-generate.
1261 * blockframe.c (find_pc_sect_partial_function): Convert to use
1262 SIGTRAMP_START_P predicate.
1263
6672060b
MS
12642002-09-05 Michael Snyder <msnyder@redhat.com>
1265
a90c3637
MS
1266 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1267 generic_dummy_frame method and old method. Also distinguish
1268 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 1269 (arm_extract_return_value): Use new regcache method.
a90c3637 1270
6672060b
MS
1271 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1272 adjustment that doesn't conform to the ABI.
1273 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1274 saved regcache, not from current regcache.
1275
299ffc64
AC
12762002-09-05 Andrew Cagney <ac131313@redhat.com>
1277
1278 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1279 * README: Update.
1280
a3a2ee65
JT
12812002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1282
1283 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1284 if arm_apcs_32 is false.
1285
2bc7eea9
AC
12862002-09-04 Andrew Cagney <ac131313@redhat.com>
1287
1288 GDB 5.3 branch created.
1289
8a55a7c5
TR
12902002-09-03 Theodore A. Roth <troth@verinet.com>
1291
1292 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1293 generic_unwind_get_saved_register.
1294
e26fb1d7
DC
12952002-09-03 David Carlton <carlton@math.stanford.edu>
1296
1297 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1298 argument (PR gdb/653). Update call to smash_to_method_type.
1299 (read_structure_scope): Update call to dwarf2_add_member_fn.
1300
30d52491
ML
13012002-09-03 Michal Ludvig <mludvig@suse.cz>
1302
1303 * x86-64-linux-tdep.c: Include gdb_string.h
1304 * x86-64-linux-nat.c: Ditto.
1305
06891d83
JT
13062002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1307
1308 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1309 when YYDEBUG is set to 1.
1310 * c-exp.y: Likewise.
1311 * f-exp.y: Likewise.
1312 * jv-exp.y: Likewise.
1313 * m2-exp.y: Likewise.
1314 * p-exp.y: Likewise.
1315
7d400e77
JT
13162002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1317
1318 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1319 dependency list.
1320 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1321 solib_svr4_fetch_link_map_offsets to
1322 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1323 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1324 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1325 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1326 solib-svr4.o, and solib-legacy.o.
1327 * config/i386/tm-nbsd.h: Include solib.h.
1328
704a27c4
JT
13292002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1330
1331 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1332 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1333 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1334 comment noting that this needs its own target configuration.
1335 * config/i386/nbsd.mt: New file.
1336 * config/i386/nbsdaout.mt: Remove.
1337 * config/i386/nbsdelf.mt: Ditto.
1338 * config/i386/tm-nbsdaout.h: Ditto.
1339
d66198e1
JT
13402002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1341
1342 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1343 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1344 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1345 tdep->sigtramp_end.
1346 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1347 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1348 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1349
3cac699e
JT
13502002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1351
1352 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1353 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1354 * i386-tdep.h (i386bsd_init_abi): New prototype.
1355 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1356 function declaration.
1357 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1358 for NetBSD-a.out or NetBSD-ELF.
1359 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1360 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1361 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1362 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1363 and nbsd-tdep.h.
1364 (i386nbsd_pc_in_sigtramp): New function.
1365 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1366 i386nbsd_pc_in_sigtramp.
1367 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1368 and i386nbsdelf_init_abi OS ABI handlers.
1369 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1370 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1371
7010ca0a
MK
13722002-09-02 Mark Kettenis <kettenis@gnu.org>
1373
1374 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1375 registers if the target really has them.
1376
6dd93b72
JT
13772002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1378
1379 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1380 than nbsd-tdep.h.
1381
2ca8ae21
JT
13822002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1383
1384 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1385 list.
1386 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1387 (alphanbsd_skip_sigtramp_frame): New functions.
1388 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1389 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1390 to alphanbsd_sigcontext_addr.
1391
3d9b49b0
JT
13922002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1393
1394 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1395 list.
1396 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1397 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1398 nbsd_pc_in_sigtramp.
1399 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1400 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1401 * nbsd-tdep.c: Include gdb_string.h.
1402 (nbsd_pc_in_sigtramp): New function.
1403 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1404 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1405 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1406 ppcnbsd_pc_in_sigtramp.
1407 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1408 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1409 shnbsd_pc_in_sigtramp.
1410 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1411 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1412 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1413
c860120c
PM
14142002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1415
1416 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1417 watchpoints to NULL.
1418 (insert_breakpoints): set val field of watchpoints if NULL.
1419
1420
c7612d53
JB
14212002-08-29 Jim Blandy <jimb@redhat.com>
1422
1423 * symtab.c (lookup_symbol_aux): In the cases where we find a
1424 minimal symbol of an appropriate name and use its address to
1425 select a symtab to read and search, use `name' (as passed to us)
1426 as the demangled name when searching the symtab's global and
1427 static blocks, not the minsym's name.
1428
66609862
KS
14292002-08-29 Keith Seitz <keiths@redhat.com>
1430
1431 * stack.c (print_frame_info_base): Always set current_source_symtab
1432 and current_source_line.
1433
151fefe2
JB
14342002-08-29 Donn Terry <donnte@microsoft.com>
1435
1436 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1437
bfb3754e
KS
14382002-08-28 Keith Seitz <keiths@redhat.com>
1439
1440 * stack.c (select_frame): Add FIXME concerning selected-frame
1441 events.
1442 (select_frame_command): Send selected-frame-level-changed
1443 event notification, but only if the level actually changed.
1444 (up_silently_base): Add selected-frame-level-changed event
1445 notification.
1446 (down_silently_base): Likewise.
1447
e822a2a0
AC
14482002-08-28 Andrew Cagney <ac131313@redhat.com>
1449
1450 * Makefile.in: Update dependencies for all gdb/*.c files.
1451
309367d4
TT
14522002-08-27 Tom Tromey <tromey@redhat.com>
1453
1454 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1455 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1456 Update dependencies.
1457 * i387-tdep.c: Include gdb_string.h.
1458 * osabi.c: Likewise.
1459 * i386-linux-nat.c: Likewise.
1460 * lin-lwp.c: Likewise.
1461 * ax-gdb.c: Likewise.
1462 * signals/signals.c: Likewise.
1463 * jv-valprint.c: Likewise.
1464 * p-lang.c: Likewise.
1465 * c-valprint.c: Likewise.
1466 * cp-abi.c: Likewise.
1467
e1507482
EZ
14682002-08-27 Elena Zannoni <ezannoni@redhat.com>
1469
1470 * cli/cli-script.h (copy_command_lines): Export.
1471 * breakpoint.c: Include cli/cli-script.h.
1472 * Makefile.in (breakpoint.o): Update dependencies.
1473
c6510018
MS
14742002-08-26 Michael Snyder <msnyder@redhat.com>
1475
1476 * breakpoint.c (insert_breakpoints): Protect all references
1477 to 'process_warning'. Shorten long lines.
1478
c2b8ed2c
MS
14792002-08-26 Joel Brobecker <brobecker@gnat.com>
1480
1481 * cli/cli-script.c (copy_command_lines): New function.
1482 * defs.h (copy_command_lines): Export.
1483 * testsuite/gdb.base/commands.exp: New tests for commands
1484 attached to a temporary breakpoint, and for commands that
1485 delete the breakpoint they are attached to.
1486
14872002-08-26 Michael Snyder <msnyder@redhat.com>
1488
1489 * breakpoint.c (bpstat_stop_status): Instead of copying the
1490 pointer to the breakpoint commands struct, make a new copy
1491 of the struct and point to that.
1492 (bpstat_clear): Free the commands struct.
1493 (bpstat_clear_actions): Free the commands struct.
1494 (bpstat_do_actions): Free the command actions. Also execute
1495 the local cleanups, instead of deleting them.
1496 (delete_breakpoint): Leave the commands field of the bpstat
1497 chain alone -- it will be freed later.
1498
64b84175
KB
14992002-08-26 Kevin Buettner <kevinb@redhat.com>
1500
1501 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1502 deleted in 2002-08-20 commit. This function is still used by
1503 ppc-linux-nat.c.
1504
55970da6
KS
15052002-08-26 Keith Seitz <keiths@redhat.com>
1506
1507 * gdb-events.sh: Add selected-frame-level-changed event.
1508 * gdb-events.c: Regenerated.
1509 * gdb-events.h: Regenerated.
1510
a790ad35
SC
15112002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1512
1513 Fix PR gdb/393:
1514 * inflow.c (terminal_save_ours): New function to save terminal
1515 settings.
1516 * inferior.h (terminal_save_ours): Declare.
1517 * target.c (debug_to_terminal_save_ours): New function.
1518 (cleanup_target): Defaults to_terminal_save_ours.
1519 (update_current_target): Inherit to_terminal_save_ours.
1520 (setup_target_debug): Set to_terminal_save_ours.
1521 * target.h (target_terminal_save_ours): New to save terminal settings.
1522 (target_ops): New member to_terminal_save_ours.
1523 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1524 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1525 * inftarg.c (init_child_ops): Likewise.
1526 * m3-nat.c (init_m3_ops): Likewise.
1527 * procfs.c (init_procfs_ops): Likewise.
1528 * wince.c (init_child_ops): Likewise.
1529 * win32-nat.c (init_child_ops): Likewise.
1530 * sol-thread.c (init_sol_thread_ops): Likewise.
1531
c00dcbe9
MK
15322002-08-26 Mark Kettenis <kettenis@gnu.org>
1533
3d7f4f49
MK
1534 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1535 use regcache_* functions.
1536 (i386_gdbarch_init): Set store_return_value instead of
1537 deprecated_store_return_value.
1538
c00dcbe9
MK
1539 * regcache.c (regcache_raw_write_signed,
1540 regcache_raw_write_unsigned): New functions.
1541 * regcache.h (regcache_raw_write_signed,
1542 regcache_raw_write_unsigned): New prototypes.
1543
0e0d15ca
AC
15442002-08-25 Andrew Cagney <ac131313@redhat.com>
1545
1546 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1547 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1548 source file dependencies. Cleanup corresponding generator rules.
1549
d3b22ed5
AC
15502002-08-25 Andrew Cagney <ac131313@redhat.com>
1551
1552 * regcache.h (register_offset_hack): Declare.
1553 (regcache_cooked_read_using_offset_hack): Declare.
1554 (regcache_cooked_write_using_offset_hack): Declare.
1555
1556 * regcache.c (register_offset_hack): New function.
1557 (regcache_cooked_read_using_offset_hack): New function.
1558 (regcache_cooked_write_using_offset_hack): New function.
1559 (regcache_dump): Check that the registers, according to their
1560 offset, are packed hard against each other.
1561 (cooked_xfer_using_offset_hack): New function.
1562
bb425013
AC
15632002-08-25 Andrew Cagney <ac131313@redhat.com>
1564
1565 * regcache.c (struct regcache_descr): Add field register_type.
1566 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1567 in as a parameter
1568 (init_regcache_descr): Initialize register_type. Pass the descr
1569 to init_legacy_regcache_descr. Use register_type instead of
1570 REGISTER_VIRTUAL_TYPE.
1571 (register_type): New function.
1572 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1573 * regcache.h (register_type): Declare.
1574
d0403e00
AC
15752002-08-25 Andrew Cagney <ac131313@redhat.com>
1576
1577 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1578 instead of deprecated_store_return_value. Fix fallout from
1579 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1580
0ed04cce
AC
15812002-08-25 Andrew Cagney <ac131313@redhat.com>
1582
1583 * regcache.c (max_register_size): New function.
1584 (init_legacy_regcache_descr): Ensure that max_register_size is
1585 large enough for REGISTER_VIRTUAL_SIZE.
1586 * regcache.h (max_register_size): Declare.
1587
46d79c04
AC
15882002-08-24 Andrew Cagney <ac131313@redhat.com>
1589
1590 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1591 store_return_value.
1592 (e500_extract_return_value): Change type of valbuf pointer to
1593 void.
1594
853c7bd0
MK
15952002-08-24 Mark Kettenis <kettenis@gnu.org>
1596
cd87e769
MK
1597 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1598 workaround.
1599
853c7bd0
MK
1600 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1601 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1602 long long) to prevent compiler warning on 64-bit systems.
1603
ebba8386
AC
16042002-08-23 Andrew Cagney <cagney@redhat.com>
1605
1606 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1607 (DEPRECATED_STORE_RETURN_VALUE): New method.
1608 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1609 * gdbarch.h, gdbarch.c: Re-generate.
1610
1611 * values.c (set_return_value): Pass current_regcache to
1612 STORE_RETURN_VALUE.
1613 * arch-utils.h (legacy_store_return_value): Declare.
1614 * arch-utils.c (legacy_store_return_value): New function.
1615 (legacy_extract_return_value): Update parameters.
1616
1617 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1618 STORE_RETURN_VALUE.
1619 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1620 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1621 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1622 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1623 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1624 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1625 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1626 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1627 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1628 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1629
1630 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1631 * i386-tdep.c (i386_extract_return_value): Update.
1632 * arch-utils.c (legacy_extract_return_value): Update.
1633 * frv-tdep.c (frv_gdbarch_init): Update.
1634 * cris-tdep.c (cris_gdbarch_init): Update.
1635 * d10v-tdep.c (d10v_gdbarch_init): Update.
1636 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1637 * m68k-tdep.c (m68k_gdbarch_init): Update.
1638 * mcore-tdep.c (mcore_gdbarch_init): Update.
1639 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1640 * s390-tdep.c (s390_gdbarch_init): Update.
1641 * sparc-tdep.c (sparc_gdbarch_init): Update.
1642 * sh-tdep.c (sh_gdbarch_init): Update.
1643 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1644 * v850-tdep.c (v850_gdbarch_init): Update.
1645 * avr-tdep.c (avr_gdbarch_init): Update.
1646 * ia64-tdep.c (ia64_gdbarch_init): Update.
1647 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1648 * vax-tdep.c (vax_gdbarch_init): Update.
1649 * alpha-tdep.c (alpha_gdbarch_init): Update.
1650 * arm-tdep.c (arm_gdbarch_init): Update.
1651 * mips-tdep.c (mips_gdbarch_init): Update.
1652 * i386-tdep.c (i386_gdbarch_init): Update.
1653
5bd8c6d0
AC
16542002-08-23 Andrew Cagney <ac131313@redhat.com>
1655
1656 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1657 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1658
e73e1724
MK
16592002-08-24 Mark Kettenis <kettenis@gnu.org>
1660
1661 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1662 problems.
1663
3e6564e1
JB
16642002-08-23 Joel Brobecker <brobecker@gnat.com>
1665
1666 * infrun.c (handle_inferior_event): Move a comment outside of a
1667 function call, in order to avoid indent reformatting this part
1668 of the code in an unreadable way.
1669
81d0cc19
GS
16702002-08-23 Grace Sainsbury <graces@redhat.com>
1671
1672 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1673 when breakpoints fail. Move general breakpoint error messages to
1674 insert_breakpoints.
1675 * breakpoint.c (insert_breakpoints): Change warnings when
1676 breakpoints are nto inserted to specify the type. Remove call to
1677 memory_error when hardware breakpoints can't be inserted. Remove
1678 multiple calls to warning so all messages are sent to the user at
1679 once.
1680 (delete_breakpoints): Make insert error messsages more explicit.
1681
17574093
DJ
16822002-08-23 Daniel Jacobowitz <drow@mvista.com>
1683
1684 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1685 gdbserver/ChangeLog.
1686
8acc2935
MK
16872002-08-23 Mark Kettenis <kettenis@gnu.org>
1688
dfe01d39
MK
1689 * i386-tdep.c: Include "objfiles.h".
1690 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1691 skip_trampoline_code.
1692 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1693 (CPLUS_MARKER): Define to '.'.
1694
8acc2935
MK
1695 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1696 member.
1697 (linux_corefile_thread_callback): Increase args->num_notes.
1698 (linux_make_note_section): Initialize thread_args.num_notes, and
1699 use it to determine whether notes for any threads were created.
1700
151fefe2 17012002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1702
1703 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1704 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1705 and PCUNKILL.
1706 (write_with_trace): Conditionalize out the switch branch handling
1707 PCSHOLD if the corresponding macro is not defined. Likewise for
1708 PRSABORT and PRSTOP.
1709 This change will be needed by the Interix port.
1710
e1507482
EZ
17112002-08-22 Elena Zannoni <ezannoni@redhat.com>
1712
1713 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1714 write_register wherever possible instead of manipulating the
1715 register bytes directly.
1716 Assign VALUE_CONTENTS to a variable and use that.
1717 The GPR numbers are now dependent on the architecture.
1718
96ff0de4
EZ
17192002-08-22 Elena Zannoni <ezannoni@redhat.com>
1720
1721 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1722 ev_offset fields.
1723 (skip_prologue): Add support for BookE/e500 instructions.
1724 (e500_extract_return_value): New function.
1725 (frame_get_saved_regs): Add support for saving ev registers and
1726 pseudo gpr's.
1727 (e500_store_return_value): New function.
1728 (rs6000_gdbarch_init): Move up default intializations of
1729 deprecated_extract_return_value and store_return_value. Overwrite
1730 init of store_return_value with e500 specific version.
1731 Set extract_return_value for e500.
1732
fbefca5b
EZ
17332002-08-22 Elena Zannoni <ezannoni@redhat.com>
1734
1735 * blockframe.c (generic_call_dummy_register_unwind): Use
1736 regcache_cooked_read to catch cases in which the variable is
1737 stored in a pseudo register.
1738
4d210288
AC
17392002-08-22 Andrew Cagney <cagney@redhat.com>
1740
1741 * NEWS: Mention that the i960 has been made obsolete.
1742 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1743 i960-tdep.c
1744 (remote-nrom.o): Obsolete target.
1745 (remote-nindy.o, i960-tdep.o): Ditto.
1746 * remote-nrom.c: Make file obsolete.
1747 * remote-nindy.c, remote-vx960.c: Ditto.
1748 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1749 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1750 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1751 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1752 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1753 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1754 i960-*-vxworks* obsolete.
1755 * MAINTAINERS: Note that the i960 is obsolete.
1756
6c0c456d
CV
17572002-08-21 Corinna Vinschen <vinschen@redhat.com
1758
1759 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1760 detach to allow reinitialization.
1761
9f9d12b3
AC
17622002-08-22 Andrew Cagney <ac131313@redhat.com>
1763
1764 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1765 attempt).
1766
ebeb39fe
JB
17672002-08-22 Jim Blandy <jimb@redhat.com>
1768
1769 * coffread.c (coff_symfile_read): Don't try to read the line
1770 number table from disk if the image file doesn't have a symbol
1771 table; we'll never actually look at the info anyway, and Windows
1772 ships DLL's with bogus file offsets for the line number data.
1773
5bf1c677
EZ
17742002-08-21 Elena Zannoni <ezannoni@redhat.com>
1775
1776 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1777 an e500 executable.
1778
71b8ef93
MS
17792002-08-21 Michael Snyder <msnyder@redhat.com>
1780
1781 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1782 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1783 (DEFAULT_MIPS_TYPE): Delete unused macro.
1784 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1785 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1786
d174216d
JB
17872002-08-21 Jim Blandy <jimb@redhat.com>
1788
1789 * valops.c (value_cast): Simplify and correct logic for doing a
1790 static cast from a pointer to a base class to a pointer to a
1791 derived class.
1792
0ab7a791
AC
17932002-08-21 Andrew Cagney <ac131313@redhat.com>
1794
1795 * infcmd.c (default_print_registers_info): Replace
1796 do_registers_info.
1797 (registers_info): Use gdbarch_print_registers_info instead of
1798 DO_REGISTERS_INFO.
1799 * inferior.h (default_print_registers_info): Replace
1800 do_registers_info.
1801 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1802 (DO_REGISTERS_INFO): Change to a predicate function.
1803 * gdbarch.h, gdbarch.c: Regenerate.
1804
e23792cc
KS
18052002-08-21 Keith Seitz <keiths@redhat.com>
1806
1807 * gdb-events.sh: Add target-changed event.
1808 * gdb-events.c: Regenerated.
1809 * gdb-events.c: Regenerated.
1810 * valops.c (value_assign): Add target-changed event notification
1811 to inlval_register, lval_memory, and lval_reg_frame_relative.
1812
9fb14e79
JB
18132002-08-21 Joel Brobecker <brobecker@gnat.com>
1814
1815 * NEWS: Add an entry regarding the improvement of the next/step
1816 operation on Alpha Tru64 multi-processor machines.
1817
6d39a69f
AC
18182002-08-21 Andrew Cagney <ac131313@redhat.com>
1819
72acd513
AC
1820 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1821 directores.
342af04b 1822 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1823 * Makefile.in (install-gdbtk): Move to install section.
1824 (rdi-share/libangsd.a): Move to end of file.
1825
fa5f27c7
AC
18262002-08-19 Andrew Cagney <ac131313@redhat.com>
1827
1828 * frame.c (frame_register_unwind): When a register, set addrp to
1829 the register's byte.
1830
5a89d8aa
MS
18312002-08-20 Michael Snyder <msnyder@redhat.com>
1832
1833 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1834 used locally, so move them from the target machine header to here.
1835 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1836 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1837 Make static.
1838 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1839
822e978b
AC
18402002-08-20 Andrew Cagney <cagney@redhat.com>
1841
1842 * NEWS: Mention that the Apollo line was made obsolete.
1843 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1844 m68*-hp-hpux* obsolete.
1845 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1846 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1847 * buildsym.c (make_blockvector): Make static.
1848 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1849 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1850 (ALLDEPFILES): Remove dstread.c.
1851 (dstread.o): Obsolete make rule.
1852 * dstread.c: Makefile obsolete.
1853 * dst.h: Ditto.
1854 * config/m68k/hp300hpux.mt: Ditto.
1855 * config/m68k/hp300hpux.mh: Ditto.
1856 * config/m68k/hp300bsd.mt: Ditto.
1857 * config/m68k/hp300bsd.mh: Ditto.
1858 * config/m68k/apollo68b.mt: Ditto.
1859 * config/m68k/apollo68v.mh: Ditto.
1860 * config/m68k/apollo68b.mh: Ditto.
1861
e41b17f0
MS
18622002-08-20 Michael Snyder <msnyder@redhat.com>
1863
1864 * mips-tdep.c (mips_in_return_stub): Make static.
1865 (mips_gdbarch_init): Set in_solib_return_trampoline.
1866 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1867
d50355b6
MS
18682002-08-20 Michael Snyder <msnyder@redhat.com>
1869
1870 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1871 * gdbarch.c, gdbarch.h: Regenerate.
1872 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1873 Add.
1874 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1875
757a7cc6
MS
18762002-08-20 Michael Snyder <msnyder@redhat.com>
1877
1878 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1879 (mips_gdbarch_init): Set skip_trampoline_code,
1880 in_solib_call_trampoline.
1881 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1882 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1883
c8001721
EZ
18842002-08-20 Elena Zannoni <ezannoni@redhat.com>
1885
1886 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1887
1888 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1889 vector type for ev registers.
1890 (e500_pseudo_register_read): New function.
1891 (e500_pseudo_register_write): New function.
1892 (e500_dwarf2_reg_to_regnum): New function.
1893 (PPC_UISA_NOFP_SPRS): New macro.
1894 (PPC_EV_REGS): New macro.
1895 (PPC_GPRS_PSEUDO_REGS): New macro.
1896 (registers_e500): New register set for e500.
1897 (variants): Add e500 variant.
1898 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1899 before setting architectural dependent variations. Initialize ev
1900 registers numbers. Add case for e500 architecture. Set the
1901 number of pseudo registers.
1902
64366f1c
EZ
19032002-08-20 Elena Zannoni <ezannoni@redhat.com>
1904
1905 * rs6000-tdep.c: Clean up comments.
1906
7e78f0ca
AC
19072002-08-20 Andrew Cagney <cagney@redhat.com>
1908
1909 * h8300-tdep.c: Re-indent file.
1910
697f7479
JB
19112002-08-20 Jim Blandy <jimb@redhat.com>
1912
1913 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1914 default for this.
697f7479 1915
e86ae29f
KS
19162002-08-20 Keith Seitz <keiths@redhat.com>
1917
1918 * breakpoints.c (watch_command_1): Use internal breakpoint
1919 when setting a watchpoint_scope breakpoint.
1920
216b504f
EZ
19212002-08-20 Elena Zannoni <ezannoni@redhat.com>
1922
1923 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1924 (build_builtin_type_vec64i): Ditto.
1925 (build_builtin_type_vec128): Ditto.
1926 (build_builtin_type_vec128i): Ditto.
1927
f7ab6ec6
MS
19282002-08-19 Michael Snyder <msnyder@redhat.com>
1929
1930 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1931 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1932 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1933 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1934 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1935 CALL_DUMMY_ADDRESS): Delete.
1936 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1937 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1938 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1939 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1940 push_return_address.
1941 (mips_register_raw_size, mips_eabi_use_struct_convention,
1942 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1943 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1944 mips_init_extra_frame_info, mips_eabi_push_arguments,
1945 mips_n32n64_push_arguments, mips_push_return_address,
1946 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1947 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1948
b5d1566e
MS
19492002-08-19 Michael Snyder <msnyder@redhat.com>
1950
1951 * mips-tdep.c (mips_frame_num_args): New function.
1952 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1953 frame_saved_pc, frame_args_address, frame_locals_address,
1954 frame_num_args, and frame_args_skip.
1955 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1956 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1957 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1958 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1959
2f1488ce
MS
19602002-08-20 Michael Snyder <msnyder@redhat.com>
1961
1962 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1963 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1964 * mips-tdep.c (mips_store_struct_return): New function.
1965 (mips_extract_struct_value_address): New function.
1966 (mips_gdbarch_init): Set store_struct_return and
1967 extract_struct_value_address.
1968
41ff2da1
DC
19692002-08-20 David Carlton <carlton@math.stanford.edu>
1970
1971 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1972 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1973 (read_file_scope): Check that line_header is nonzero before
1974 decoding macro information.
1975
e5451d58
MK
19762002-08-20 Mark Kettenis <kettenis@gnu.org>
1977
1978 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1979 flag the general-purpose registers as floating-point on targets
1980 that don't support the floating-point registers.
1981
4a6daafa
EZ
19822002-08-20 Elena Zannoni <ezannoni@redhat.com>
1983
1984 * rs6000-tdep.c (altivec_register_p): Delete.
1985 (rs6000_do_altivec_registers): Delete.
1986 (rs6000_altivec_registers_info): Delete.
1987 (rs6000_do_registers_info): Delete.
1988 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1989 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1990
ab4327e0
EZ
19912002-08-20 Elena Zannoni <ezannoni@redhat.com>
1992
1993 * infcmd.c (do_registers_info): Print vector registers in hex
1994 format only.
1995 (print_vector_info): Check that printing registers
1996 makes sense.
1997 (print_float_info): Ditto.
1998
cb1d2653
AC
19992002-08-20 Andrew Cagney <ac131313@redhat.com>
2000
2001 * mips-tdep.c (mips_gdbarch_init): Update.
2002 (mips_o32_extract_return_value): Rewrite.
2003 (mips_o32_store_return_value): Rewrite.
2004 (mips_o32_xfer_return_value): New function.
2005 (mips_xfer_register): Tweak debug print message. Allow for
2006 buf_offset when dumping the value transfered.
2007
dfc3d9b2
AC
20082002-08-20 Andrew Cagney <ac131313@redhat.com>
2009
2010 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2011 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2012 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2013 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2014 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2015
7807aa61
MS
20162002-08-14 Michael Snyder <msnyder@redhat.com>
2017
2018 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2019
489461e2
EZ
20202002-08-19 Elena Zannoni <ezannoni@redhat.com>
2021
2022 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2023 register.
2024 (P): New macro to define a register as a pseudo register.
2025 (R, R4, R8, R16, FR32, R64, R0): Updated.
2026 (struct variant): Add new fields for number of pseudo registers
2027 and number of total registers.
2028 (tot_num_registers): New macro replacing....
2029 (num_registers): ...deleted macro.
2030 (num_registers): New function.
2031 (num_pseudo_registers): New function.
2032 (variants): Update all variants to intialize new fields correctly.
2033 Postpone initialization of number of pseudo regs and real regs.
2034 (init_variants): New function.
2035 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2036 registers offsets.
2037
fcaffe4c
DC
20382002-08-19 David Carlton <carlton@math.stanford.edu>
2039
2c2738a0
DC
2040 * valops.c (search_struct_field): Change error message to treat
2041 return value of 0 from value_static_field as meaning that field is
2042 optimized out.
2043 (value_struct_elt_for_reference): Ditto.
2044 * values.c (value_static_field): Treat an unresolved location the
2045 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
2046 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2047 enclosed. Fix PR gdb/574.
fcaffe4c
DC
2048 * MAINTAINERS: Add self to Write After Approval list.
2049
88658117
AC
20502002-08-19 Andrew Cagney <ac131313@redhat.com>
2051
2052 * mips-tdep.c (mips_xfer_register): New function.
2053 (mips_n32n64_extract_return_value): Rewrite.
2054 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2055 instead of deprecated_extract_return_value.
2056
21283beb
EZ
20572002-08-19 Elena Zannoni <ezannoni@redhat.com>
2058
2059 * rs6000-tdep.c (TDEP): Delete macro.
2060 (branch_dest): Replace use of TDEP macro with its body.
2061 (rs6000_pop_frame): Ditto.
2062 (rs6000_push_arguments): Ditto.
2063 (rs6000_skip_trampoline_code): Ditto.
2064 (rs6000_frame_saved_pc): Ditto.
2065 (rs6000_frame_chain): Ditto.
2066 (rs6000_register_name): Ditto.
2067 (rs6000_register_byte): Ditto.
2068 (rs6000_register_raw_size): Ditto.
2069 (rs6000_register_virtual_type): Ditto.
2070 (rs6000_register_convertible): Ditto.
2071 (rs6000_convert_from_func_ptr_addr): Ditto.
2072
bf072999
DJ
20732002-08-19 Daniel Jacobowitz <drow@mvista.com>
2074
2075 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2076 conditionally.
2077 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2078 MIPS_LINUX_JB_ELEMENT_SIZE.
2079 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2080 for MAX_REGISTER_RAW_SIZE arrays.
2081 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2082 MIPS_LINUX_JB_ELEMENT_SIZE.
2083
9b949a49
PM
20842002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2085
2086 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2087
6d3e79c6
AS
20882002-08-19 Aidan Skinner <aidan@velvet.net>
2089
2090 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2091 ada-valprint.c ada-tasks.c.
2092 (YYFILES): Add ada-exp.y.
2093 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2094 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2095 (ada-exp.tab.o): New target.
2096
06c0b04e
AC
20972002-08-18 Andrew Cagney <ac131313@redhat.com>
2098
2099 * regcache.c (regcache_xfer_part): New function.
2100 (regcache_raw_read_part): New function.
2101 (regcache_raw_write_part): New function.
2102 (regcache_cooked_read_part): New function.
2103 (regcache_cooked_write_part): New function.
2104 * regcache.h (regcache_raw_read_part): Declare.
2105 (regcache_raw_write_part): Declare.
2106 (regcache_cooked_read_part): Declare.
2107 (regcache_cooked_write_part): Declare.
2108
92d1e331
DJ
21092002-08-18 Daniel Jacobowitz <drow@mvista.com>
2110
2111 * remote.c (remote_open_1): Add async_p.
2112 (remote_async_open_1): Delete.
2113 (open_remote_target): Delete.
2114 (remote_open, extended_remote_open): Update calls to remote_open_1.
2115 (remote_async_open, extended_remote_async_open): Call
2116 remote_open_1 instead of remote_async_open_1.
2117
247055de
MK
21182002-08-19 Mark Kettenis <kettenis@gnu.org>
2119
2120 * blockframe.c: Fix a few coding standard violations.
2121
641eda39
MK
21222002-08-19 Mark Kettenis <kettenis@gnu.org>
2123
0b717710
MK
2124 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2125 here from ...
2126 * config/i386/tm-i386sco5.h: ... here. File removed.
2127 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2128
26d28e12 2129 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
2130 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2131 (TM_FILE): Set to tm-i386.h.
2132 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2133 * config/i386/tm-i386v.h: Remove file.
2134 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2135 instead of "i386/tm-i386v.h".
2136 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2137 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2138 "i386/tm-i386v.h".
2139 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2140 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2141 "i386/tm-i386.h".
2142
d4e0bab4
MK
21432002-08-18 Mark Kettenis <kettenis@gnu.org>
2144
2145 * config/i386/nm-i386v.h: Add protection against
2146 multiple-inclusion.
2147 (i386_register_u_addr): Remove prototype.
2148 (register_u_addr): New prototype.
2149 (REGISTER_U_ADDR): Redefine accordingly.
2150 * i386v-nat.c: Improve several comments.
2151 (i386_register_u_addr): Change signature and rename to
2152 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2153 ubase variable.
2154
46cac009
AC
21552002-08-18 Andrew Cagney <ac131313@redhat.com>
2156
2157 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2158 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2159 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2160 deprecated_extract_return_value.
2161 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2162 rename mips_o32o64_push_arguments.
2163 (mips_gdbarch_init): Update.
2164 (mips_extract_return_value): Delete.
2165 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2166 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2167 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2168 (mips_n32n64_extract_return_value): Clone
2169 mips_extract_return_value.
2170 (mips_store_return_value): Delete.
2171 (mips_o32_store_return_value): Clone mips_store_return_value.
2172 (mips_o64_store_return_value): Clone mips_store_return_value.
2173 (mips_eabi_store_return_value): Clone mips_store_return_value.
2174 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2175
d2e4a39e
AS
21762002-08-18 Aidan Skinner <aidan@velvet.net>
2177
0c30c098
AS
2178 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2179 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2180
21812002-08-18 Aidan Skinner <aidan@velvet.net>
2182
2183 * ada-lang.c: Run through gdb_indent.sh.
2184 * ada-lang.h: Run through gdb_indent.sh.
2185 * ada-tasks.c: Run through gdb_indent.sh.
2186 * ada-typeprint.c: Run through gdb_indent.sh.
2187 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 2188
01fc4e33
AC
21892002-08-18 Andrew Cagney <ac131313@redhat.com>
2190
2191 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2192 ABI.
2193
d8ee244c
MK
21942002-08-18 Mark Kettenis <kettenis@gnu.org>
2195
c38d8261
MK
2196 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2197
222db64c
MK
2198 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2199 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2200
c2848c82
MK
2201 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2202 write_register_gen instead of write_register_bytes.
2203
d8ee244c
MK
2204 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2205 i[3456]-*-osf1mk* configurations have been made obsolete.
2206 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2207 i[3456]86-*-osf1mk* hosts obsolete.
2208 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2209 targets obsolete.
2210 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2211 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2212 config/i386/i386m3.mt, config/i386/nm-m3.h,
2213 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2214 config/i386/i386mk.mh, config/i386/i386mk.mt,
2215 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2216 obsolete.
2217 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2218 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2219 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2220
61d8d407
AC
22212002-08-18 Andrew Cagney <ac131313@redhat.com>
2222
2223 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2224 (hppa_value_returned_from_stack): Declare.
2225 (hppa_extract_return_value): Declare.
2226 * config/pa/hppa.mt: New file.
2227 * configure.tgt: Recognize hppa*-*-*.
2228 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2229
0c52bd59
MK
22302002-08-18 Mark Kettenis <kettenis@gnu.org>
2231
2232 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2233 comment.
2234
b5686e99
MK
22352002-08-17 Mark Kettenis <kettenis@gnu.org>
2236
2237 * top.c (gdb_rl_operate_and_get_next): Make sure
2238 operate-and-get-next functions correctly even when the history
2239 list is completely filled.
2240
c1bab85b
AC
22412002-08-18 Andrew Cagney <ac131313@redhat.com>
2242
2243 * MAINTAINERS (Target Instruction Set Architectures): Rename
2244 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2245 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2246 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2247 already listed under Host/Native.
2248
2249 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2250 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2251 mips*-*-*.
2252
32089c7c
AC
22532002-08-17 Andrew Cagney <ac131313@redhat.com>
2254
2255 * config/ia64/ia64.mt: New file.
2256 * config/alpha/alpha.mt: New file.
2257 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2258 ia64-linux-gnu. Mention that ia64-elf is broken.
2259 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2260
b4671f85
MK
22612002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2262
2263 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2264 generic_func_frame_valid instead of func_frame_valid.
2265
c8edd8b4
JB
22662002-08-16 Joel Brobecker <brobecker@gnat.com>
2267
2268 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2269 procfs appears to be broken when debugging on multi-processor
2270 machines. So enable software single stepping in order to avoid
2271 using the procfs interface to do next/step operations, using
2272 internal breakpoints instead.
2273
2274 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2275 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2276 make this pc address equal to the value it would have if the
2277 system stepping capability was used. Also set a new flag used
2278 to ensure that we don't readjust the PC one more time later.
2279
2280 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2281 address by DECR_PC_AFTER_BREAK when software single step is
2282 in use for this architecture, as this has already been taken
2283 care of in handle_inferior_event().
2284
238617f6
JB
22852002-08-16 Joel Brobecker <brobecker@gnat.com>
2286
2287 * infrun.c (handle_inferior_event): Minor reformatting, to make
2288 a rather long condition expression easier to read.
2289
541a7aac
AC
22902002-08-16 Andrew Cagney <ac131313@redhat.com>
2291
2292 * Makefile.in (gdbtk.o): Move to end of file.
2293 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2294 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2295 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2296 (gdbtk-wrapper.o, gdbres.o): Ditto.
2297
f92d4a7b
AC
22982002-08-16 Andrew Cagney <ac131313@redhat.com>
2299
2300 * Makefile.in (copying.o): Separate out compile rule.
2301 (hpux-thread.o, procfs.o, signals.o): Ditto.
2302 (v850ice.o, z8k-tdep.o): Ditto.
2303 (tui-file.o): Move to TUI section.
2304 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2305 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2306
1cce71eb
JB
23072002-08-16 Joel Brobecker <brobecker@gnat.com>
2308
2309 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2310 skip_trampoline_code, for better namespace-proofing.
2311
2312 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2313
0851f23d
JB
23142002-08-16 Joel Brobecker <brobecker@gnat.com>
2315
2316 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2317
f8d40ec8
JB
23182002-08-16 Joel Brobecker <brobecker@gnat.com>
2319
2320 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2321 signal, check whether we hit a breakpoint before checking for a
2322 single step breakpoint. Otherwise, GDB fails to notice that a
2323 breakpoint has been hit when stepping onto a breakpoint.
2324
63d022e0
KS
23252002-08-16 Keith Seitz <keiths@redhat.com>
2326
2327 * gdb-events.sh (clear_gdb_event_hooks): New function.
2328 * gdb-events.c: Regenerate.
2329 * gdb-events.h: Regenerate.
2330
6e31adb3
AC
23312002-08-16 Andrew Cagney <ac131313@redhat.com>
2332
2333 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2334 not_a_sw_breakpoint.
2335 * breakpoint.h (bpstat_stop_status): Add parameter names.
2336
c8189ed1
GS
23372002-08-16 Grace Sainsbury <graces@redhat.com>
2338
2339 * remote.c (remote_insert_hw_breakpoint)
2340 (remote_remove_hw_breakpoint): Fix calculation of length field
2341 for Z-packet.
2342
d05285fa
MS
23432002-08-15 Michael Snyder <msnyder@redhat.com>
2344
466d7106
MS
2345 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2346 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2347 (supply_fpregset): Ditto.
2348
d05285fa
MS
2349 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2350 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2351 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 2352 (TARGET_READ_SP): Delete.
bf1f5b4c 2353 (DO_REGISTERS_INFO): Delete.
102182a9
MS
2354 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2355 Delete.
2356 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2357 from macros to functions.
bf1f5b4c 2358
d05285fa
MS
2359 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2360 (mips_register_convertible, mips_register_convert_to_virtual,
2361 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
2362 (mips_read_sp): New function.
2363 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
2364 (mips_do_registers_info): Make static.
2365 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
2366 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2367 (mips_register_convert_from_type, mips_register_convert_to_type):
2368 New functions.
2369 (mips_gdbarch_init): Set up function_start_offset,
2370 register_virtual_size, pc_in_sigtramp.
d05285fa 2371
e76f1f2e
AC
23722002-08-15 Andrew Cagney <ac131313@redhat.com>
2373
2374 * infcmd.c (vector_info): New function.
2375 (_initialize_infcmd): Add command "info vector".
2376 (print_vector_info): New function.
2377
2378 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2379 * gdbarch.h, gdbarch.c: Regenerate.
2380
4782dc19
AC
23812002-08-15 Andrew Cagney <ac131313@redhat.com>
2382
2383 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2384 ``print_all''. Only print vector registers when ``print_all''.
2385
23e3a7ac
AC
23862002-08-15 Andrew Cagney <ac131313@redhat.com>
2387
8e186fd6
AC
2388 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2389 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2390
23e3a7ac
AC
2391 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2392 Add `args' parameter.
2393 * gdbarch.h, gdbarch.c: Regenerate.
2394
2395 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2396
2397 * infcmd.c (float_info): Call print_float_info.
2398 (print_float_info): New function. By default, print the
2399 floating-point registers.
2400
2401 * arch-utils.h (default_print_float_info): Delete declaration.
2402 * arch-utils.c (default_print_float_info): Delete function.
2403
e0ca2bb9
MK
24042002-08-16 Mark Kettenis <kettenis@gnu.org>
2405
3f733acc
MK
2406 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2407 out define.
2408
7d8d2918
MK
2409 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2410 FRAME.
2411
1c7cc583
MK
2412 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2413 * configure.host: Make i[3456]86-*-aix host obsolete.
2414 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2415 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2416 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2417 config/i386/xm-i386aix.h: Make files obsolete.
2418 * i386aix-nat.c: Make file obsolete.
2419 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2420 (i386aix-nat.o): Make target obsolete.
2421
e0ca2bb9
MK
2422 * config/i386/nm-gnu.h: Removed.
2423 * config/i386/nm-i386gnu.h: New file.
2424 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2425 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2426 Moved here from ...
2427 * config/i386/tm-i386gnu.h: ... here. Removed.
2428 * config/i386/xm-i386gnu.h: Removed.
2429 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2430 (NAT_FILE): Set to nm-i386gnu.h.
2431 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2432 * i386-tdep.c: New file.
2433 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2434 (i386gnu-tdep.o): Specify dependencies.
2435
16057ec7 24362002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 2437
6b99ee2e
MK
2438 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2439 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2440 Adjust a few comments to reflect reality a bit closer.
2441 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2442 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2443 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2444 target_insert_watchpoint, target_remove_watchpoint):
2445 Move defines to ...
2446 * config/i386/nm-i386sco5.h: ... here.
2447 (kernel_u_size): Add prototype. Improve a few comments and add
2448 protection against multiple inclusion.
2449
d9a6f65c
MK
2450 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2451 out define.
2452
047eff6a
MK
2453 * uw-thread.c (SP_ARG0): Define if not already defined.
2454 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2455
dcdb1290
MK
2456 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2457
5d2d0b2a
MK
2458 * config/i386/tm-i386.h: Don't include "regcache.h".
2459
61113f8b
MK
2460 * i387-tdep.h (i387_print_float_info): New prototype.
2461 * i387-tdep.c (print_i387_value, print_i387_ext,
2462 print_i387_status_word, print_i387_control_word): Add `struct
2463 ui_file *' argument and use it for output.
2464 (i387_print_float_info): Renamed from i387_float_info. Add
2465 `struct gdbarch *' and `struct ui_file *' arguments and use the
2466 latter for output.
2467 * i386-tdep.c: Include "i387-tdep.h".
2468 (i386_gdbarch_init): Set print_float_info.
2469 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2470 (FLOAT_INFO): Remove define.
2471
46e0f506
MS
24722002-08-13 Michael Snyder <msnyder@redhat.com>
2473
2474 * mips-tdep.c (mips_push_arguments): Rename to
2475 mips_eabi_push_arguments, and tune for EABI.
2476 (MIPS_REGS_HAVE_HOME_P): Delete.
2477 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2478 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2479 Delete references to mips_regs_have_home_p.
2480
409268de
KS
24812002-08-14 Keith Seitz <keiths@redhat.com>
2482
2483 * Makefile.in (install-gdbtk): Create insight plugin directory.
2484 Install plugins.tcl file.
2485
ffc6a242
KS
24862002-08-14 Keith Seitz <keiths@redhat.com>
2487
2488 * configure.in: Move SUBDIRS to near top of the file so that
2489 --enable options may add things to it.
2490 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2491 * configure: Regenerate.
2492
ebafbe83
MS
24932002-08-13 Michael Snyder <msnyder@redhat.com>
2494
2495 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2496 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2497 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2498
32f6f25d
AC
24992002-08-13 Andrew Cagney <ac131313@redhat.com>
2500
2501 * vax-tdep.c (vax_get_saved_register): Delete function.
2502 (vax_gdbarch_init): Update.
2503 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2504 (ns32k_gdbarch_init): Update.
2505 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2506 (alpha_gdbarch_init): Update.
2507
53826de9
AC
25082002-08-13 Andrew Cagney <cagney@redhat.com>
2509
2510 * regcache.c (init_regcache_descr): Overallocate the
2511 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2512 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2513 nr_raw_registers.
2514 (set_register_cached): Add range checking assertions. Use
2515 current_regcache.
2516
16057ec7 25172002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
2518
2519 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2520 numbers for MMX registers.
2521
7b4c2dce
AC
25222002-08-13 Andrew Cagney <cagney@redhat.com>
2523
2524 * i386-tdep.c (i386_gdbarch_init): Use
2525 generic_unwind_get_saved_register.
2526
1e03ad20
KB
25272002-08-13 Kevin Buettner <kevinb@redhat.com>
2528
2529 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2530 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2531 target vector.
2532 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2533 Delete. Add comment regarding this now-deleted target method.
2534
548bcbec
SC
25352002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2536
2537 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2538 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2539 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2540 real PC and the page number (if it's within the memory bank window).
2541 (m68hc11_pseudo_register_write): Likewise when saving.
2542 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2543 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2544 (m68hc11_register_raw_size): And use 32-bit for it.
2545 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2546 16K memory bank is used by the prog; also use the virtual pc.
2547
7df11f59
SC
25482002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2549
2550 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2551 (m68hc11_gdbarch_init): Install it in gdbarch.
2552 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2553 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2554 (MSYMBOL_SIZE): New for documentation.
2555 (insn_return_kind): Enum to specify how a function returns.
2556 (frame_extra_info): Cleanup and record the return mode.
2557 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2558 register in address computation.
2559 (m68hc11_get_return_insn): New to obtain the return instruction used
2560 by the function.
2561 (m68hc11_frame_init_saved_regs): Take into account the return
2562 instruction used by the function for far and interrupt functions.
2563 (m68hc11_init_extra_frame_info): Take into account page register.
2564 (m68hc11_frame_args_address): Adjust according to the return mode.
2565 (show_regs): Print page register only when it's used.
2566
5706502a
SC
25672002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2568
2569 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2570 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2571 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2572 registers.
2573 (m68hc11_register_raw_size): Likewise.
2574
28fc6740
AC
25752002-08-13 Andrew Cagney <cagney@redhat.com>
2576
2577 * i386-tdep.c (i386_register_name): Handle mmx registers.
2578 (mmx_regnum_p): New function.
2579 (i386_mmx_names): New array.
2580 (mmx_num_regs): New variable.
2581 (i386_pseudo_register_read): New function.
2582 (i386_pseudo_register_write): New function.
2583 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2584
2585 * regcache.c (regcache_raw_read_unsigned): New function.
2586 (regcache_raw_read_signed): New function.
2587 * regcache.h (regcache_raw_read_unsigned): Declare.
2588 (regcache_raw_read_signed): Declare.
2589
a378f419
AC
25902002-08-13 Andrew Cagney <cagney@redhat.com>
2591
2592 * regcache.c (regcache_raw_read_as_address): Delete function.
2593 (regcache_cooked_read_signed): New function.
2594 (regcache_cooked_read_unsigned): New function.
2595 * regcache.h (regcache_cooked_read_signed): Declare.
2596 (regcache_cooked_read_unsigned): Declare.
2597 (regcache_raw_read_as_address): Delete declaration.
2598
2599 * blockframe.c (generic_read_register_dummy): Use
2600 regcache_cooked_read_unsigned.
2601 * i386-tdep.c (i386_extract_struct_value_address): Use
2602 regcache_cooked_read_unsigned.
2603
81967506
SC
26042002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2605
2606 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2607 double sizes according to ELF ABI flags.
2608 (gdbarch_tdep): Record elf_flags.
2609
ffe1f3ee
SC
26102002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2611
2612 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2613 (m6812_prolog): They can appear in 68HC12 function prologue.
2614 (m68hc11_frame_chain): Cleanup.
2615
98216c5d
AC
26162002-08-12 Andrew Cagney <cagney@redhat.com>
2617
2618 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2619 declarations.
2620 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2621 (i386_linux_register_raw_size): Delete function.
2622 (i386_linux_init_abi): Update.
2623 * i386-tdep.c (i386_register_raw_size): Delete function.
2624 (i386_register_byte): Delete function.
2625 (i386_gdbarch_init): Update.
2626 (i386_register_size): Delete array.
2627 (i386_register_offset): Delete array.
2628
2629 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2630 (REGISTER_RAW_SIZE): Delete macro.
2631 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2632 (REGISTER_BYTE): Delete macro.
2633
3b19021e
AS
26342002-08-11 Aidan Skinner <aidan@velvet.net>
2635
2636 * ada-lang.c (ada_lookup_partial_symbol)
2637 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2638 prototype names so that grep ^func works properly.
2639
2640 * ada-lang.c (ada_array_element_type)
2641 (ada_lookup_partial_symbol): Fix typos in parameter list.
2642
2643 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2644 Fix prototype names so that grep ^func works properly.
2645
b063e7a2
AC
26462002-08-10 Andrew Cagney <cagney@redhat.com>
2647 Elena Zannoni <ezannoni@redhat.com>
2648 Martin M. Hunt <hunt@redhat.com>
2649
2650 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2651 (build_builtin_type_vec128i): Set the vector bit.
2652 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2653 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2654 (build_builtin_type_vec64): New function.
2655 (build_builtin_type_vec64i): New function.
2656 (build_gdbtypes): Initialize builtin_type_vec64 and
2657 builtin_type_vec64i.
2658
a7e3c2ad
AC
26592002-08-09 Andrew Cagney <cagney@redhat.com>
2660
2661 * regcache.c (regcache_dump): Compare the register offset
2662 with REGISTER_BYTE.
2663 * arch-utils.c (generic_register_byte): New function.
2664 * arch-utils.h (generic_register_byte): Declare.
2665 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2666 * gdbarch.h, gdbarch.c: Regenerate.
2667
af030b9a
AC
26682002-08-09 Andrew Cagney <cagney@redhat.com>
2669
2670 * regcache.c: Include "gdbcmd.h"
2671 (_initialize_regcache): Add commands "maintenance print
2672 registers", "maintenance print raw-registers" and "maintenance
2673 print cooked-registers".
2674 (enum regcache_dump_what): Define.
2675 (dump_endian_bytes): New function.
2676 (regcache_dump): New function.
2677 (regcache_print): New function.
2678 (maintenance_print_registers): New function.
2679 (maintenance_print_raw_registers): New function.
2680 (maintenance_print_cooked_registers): New function.
2681 * Makefile.in (regcache.o): Update dependencies.
2682
cb3d25d1
MS
26832002-08-09 Michael Snyder <msnyder@redhat.com>
2684
2685 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2686 (mips_push_arguments): Correct some comments. Use paddr_nz
2687 for printing addresses in debug output. Replace static
2688 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2689 (mips_n32n64_push_arguments): New function, cloned from
2690 mips_push_arguments and tuned for the n32/n64 ABI.
2691 (mips_push_register): Buffer needs dynamic allocation.
2692 (mips_print_register): Ditto.
2693 (do_gp_register_row): Ditto.
2694 (mips_store_return_value): Ditto.
2695 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2696
2163ab9d
DH
26972002-08-09 Don Howard <dhoward@redhat.com>
2698
2699 * memattr.c (mem_info_command): Print special case of upper bound
2700 as max CORE_ADDR + 1.
2701
b78bcb18
MS
27022002-08-08 Michael Snyder <msnyder@redhat.com>
2703
2704 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2705 returns structs by ref if they're too big to fit in two registers.
2706
ffabd70d
KB
27072002-08-09 Kevin Buettner <kevinb@redhat.com>
2708
2709 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2710 saved regs value.
2711 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2712 mips_find_saved_regs().
2713 (mips_pop_frame): Likewise.
2714
fbcdb4a3
KB
27152002-08-09 Kevin Buettner <kevinb@redhat.com>
2716
2717 * blockframe.c (frame_saved_regs_register_unwind): Revise
2718 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2719 frames are in use.
2720
3c3bea1c
GS
27212002-08-09 Grace Sainsbury <graces@redhat.com>
2722
2723 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2724 T-packets; the 'a' is not taken as a register number.
2725 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2726 (remote_stopped_data_address): New functions; add to target
2727 vector.
2728 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2729 prototypes to match other implementations of this
2730 function. replace integer argument with pointer -- the length
2731 field in the Z-packet is the length of what is pointed to or 1 if
2732 pointer is null. Add to target vector.
2733 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2734 target vector.
2735
2736 From Mark Salter:
2737 * remote.c (remote_wait): Add support to extract optional
2738 watchpoint information from T-packet. Ignore unrecognized
2739 optional info in T-packet.
2740 (remote_async_wait): Ditto.
2741
5d1d95de
CV
27422002-08-09 Corinna Vinschen <vinschen@redhat.com>
2743
2744 * cli/cli-dump.c: Change fopen modes to use binary open modes
2745 as defined in include/fopen-bin.h throughout.
2746
c86b5b38
MS
27472002-08-08 Michael Snyder <msnyder@redhat.com>
2748
2749 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2750
b30590dc
KB
27512002-08-08 Kevin Buettner <kevinb@redhat.com>
2752
2753 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2754 assertion failure by returning early after a warning.
2755
498868ed
KB
27562002-08-08 Kevin Buettner <kevinb@redhat.com>
2757
2758 * mips-tdep.c (mips_find_saved_regs): Make static.
2759 (mips_frame_init_saved_regs): New function.
2760 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2761 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2762 (mips_find_saved_regs): Delete declaration.
2763
b2dd6311
GS
27642002-08-08 Grace Sainsbury <graces@redhat.com>
2765
3c3bea1c
GS
2766 * remote.c (remote_wait, remote_async_wait): Change
2767 thread_num from int to ULONGEST.
2768 (unpack_varlen_hex): Change result parameter from
2769 int * to ULONGEST *.
b2dd6311 2770
ea47855f
AC
27712002-08-08 Andrew Cagney <ac131313@redhat.com>
2772
2773 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2774 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2775 powerpc*-*-*.
2776 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2777
69db8bae
AC
27782002-08-08 Andrew Cagney <cagney@redhat.com>
2779
2780 * gcore.c (override_derive_stack_segment): Delete variable.
2781 (preempt_derive_stack_segment): Delete function.
2782 (derive_stack_segment): Delete function.
2783 (default_derive_stack_segment): Renamed to derive_stack_segment.
2784 (override_derive_heap_segment): Delete variable.
2785 (preempt_derive_heap_segment): Delete function.
2786 (derive_heap_segment): Delete function.
2787 (default_derive_heap_segment): Rename to derive_heap_segment.
2788
cb811fe7
MS
27892002-08-06 Michael Snyder <msnyder@redhat.com>
2790
2791 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2792 * mips-tdep.c (mips_EABI_use_struct_convention,
2793 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2794 New functions. (mips_use_struct_convention): Delete.
2795 (mips_gdbarch_init): set use_gdbarch_convention.
2796
8b389c40
MS
27972002-08-06 Michael Snyder <msnyder@redhat.com>
2798
2799 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2800 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2801 mips_o32_reg_struct_has_addr): New functions.
2802 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2803
5c27f28a
AC
28042002-08-07 Andrew Cagney <ac131313@redhat.com>
2805
2806 * regcache.c (pseudo_register): Delete function.
2807 (fetch_register): Delete function.
2808 (store_register): Delete function.
2809 (regcache_raw_read, legacy_read_register_gen): Use
2810 target_fetch_registers instead of fetch_register.
2811 (legacy_write_register_gen, regcache_raw_write): Use
2812 target_store_register instead of store_register.
2813 (write_register_bytes): Ditto.
2814
2815 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2816 (STORE_PSEUDO_REGISTER): Delete.
2817 * gdbarch.h, gdbarch.c: Regenerate.
2818
5b331675
CV
28192002-08-06 Corinna Vinschen <vinschen@redhat.com>
2820
2821 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2822 write dump file binary.
2823
6acdf5c7
MS
28242002-08-05 Michael Snyder <msnyder@redhat.com>
2825
2826 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2827 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2828 (mips_gdbarch_init): Set N32 target to be mips64.
2829
b2f01c35
KB
28302002-08-06 Kevin Buettner <kevinb@redhat.com>
2831
2832 * frame.c (find_saved_register): Break out of loop once saved
2833 register address is found. Don't mention sparc in loop comment
2834 anymore.
2835
63db5580
KB
28362002-08-06 Kevin Buettner <kevinb@redhat.com>
2837
2838 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2839 mips_default_saved_regsize to 8.
2840
5e34e75e
AC
28412002-08-06 Andrew Cagney <ac131313@redhat.com>
2842
2843 * gcore.c: Do not include <sys/procfs.h>.
2844 * Makefile.in (gcore.o): Update dependencies.
2845
eb4c54a2
AC
28462002-08-06 Andrew Cagney <cagney@redhat.com>
2847
2848 * configure.tgt: Make arc-*-* obsolete.
2849 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2850 * MAINTAINERS: Make arc-elf obsolete.
2851 * arc-tdep.c: Make file obsolete.
2852 * config/arc/arc.mt: Ditto.
2853 * config/arc/tm-arc.h: Ditto.
2854
ced15480
TR
28552002-08-05 Theodore A. Roth <troth@verinet.com>
2856
c1bab85b 2857 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2858
b4743822
AC
28592002-08-05 Andrew Cagney <ac131313@redhat.com>
2860
2861 * mcore-tdep.c (mcore_gdbarch_init): Use
2862 generic_unwind_get_saved_register instead of
2863 generic_get_saved_register.
2864 * v850-tdep.c (v850_gdbarch_init): Ditto.
2865 * frv-tdep.c (frv_gdbarch_init): Ditto.
2866 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2867 * s390-tdep.c (s390_gdbarch_init): Ditto.
2868 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2869 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2870 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2871
3956d554
JB
28722002-08-05 Joel Brobecker <brobecker@gnat.com>
2873
2874 * objfiles.h: Add missing #include "symfile.h"
2875
2876 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2877
8249c0d6
AC
28782002-08-04 Andrew Cagney <ac131313@redhat.com>
2879
2880 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2881 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2882 of FIELD_BITSIZE.
2883
b9d14705
DJ
28842002-08-04 Daniel Jacobowitz <drow@mvista.com>
2885
2886 * NEWS: Cleanup and nitpick.
2887
dd73b9bb
AC
28882002-08-03 Andrew Cagney <ac131313@redhat.com>
2889
2890 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2891
043a27f8
AC
28922002-08-03 Andrew Cagney <ac131313@redhat.com>
2893
2894 * Makefile.in (gdbtk-bp.o): Update dependencies.
2895 (gdbtk-register.o): Ditto.
2896 (gdbtk-varobj.o): Ditto.
2897
46ce284d
AC
28982002-08-03 Andrew Cagney <cagney@redhat.com>
2899
2900 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2901 m68hc11_fetch_pseudo_register.
2902 (m68hc11_pseudo_register_write): Replace
2903 m68hc11_store_pseudo_register.
2904 (m68hc11_gdbarch_init): Update.
2905
b66d6d2e
AC
2906Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2907
2908 * gdbarch.sh: Include "gdb_string.h".
2909 * gdbarch.c: Regenerate.
2910
2911 * regcache.c: Include "gdb_string.h".
2912 * ax-general.c: Ditto.
2913 * varobj.c: Ditto.
2914 * std-regs.c: Ditto.
2915 * fbsd-proc.c: Ditto.
2916 * thread.c: Ditto.
2917
2918 * Makefile.in (regcache.o): Update dependencies.
2919 (thread.o, gdbarch.o): Ditto.
2920 (ax-general.o, gdbarch.o): Ditto.
2921 (varobj.o, std-regs.o): Ditto.
2922 (fbsd-proc.o): Specify dependencies.
2923
29e1842b
AC
29242002-08-02 Andrew Cagney <cagney@redhat.com>
2925
2926 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2927 regnum.
2928 (regcache_cooked_write): Ditto.
2929
68365089
AC
29302002-08-02 Andrew Cagney <ac131313@redhat.com>
2931
2932 * regcache.c (regcache_cooked_read): New function.
2933 (regcache_cooked_write): New function.
2934 (read_register_gen): Rewrite using regcache_cooked_read.
2935 (write_register_gen): Rewrite using regcache_cooked_write.
2936
2937 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2938 Declare.
2939
d8124050
AC
29402002-08-02 Andrew Cagney <cagney@redhat.com>
2941
2942 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2943 Replace the architecture methods register_read and register_write.
2944 * gdbarch.h, gdbarch.c: Regenerate.
2945 * regcache.c (init_regcache_descr): Update.
2946 (read_register_gen): Update.
2947 (write_register_gen): Update.
2948 (supply_register): Update comment.
2949
2950 * sh-tdep.c (sh_gdbarch_init): Update.
2951 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2952 `regcache' and `gdbarch' parameters. Make `buffer' a void
2953 pointer. Update code.
2954 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2955 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2956 void pointer. Update code.
2957 (sh64_register_write): Delete.
2958 (sh4_register_read): Delete.
2959 (sh64_register_read): Delete.
2960 (sh4_register_write): Delete.
2961 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2962 void pointer, `to' parameter a void pointer.
2963 (sh_sh64_register_convert_to_raw): Ditto.
2964
a6425924
KB
29652002-08-01 Kevin Buettner <kevinb@redhat.com>
2966
2967 * mips-tdep.c (mips_register_virtual_type): Use architecture
2968 invariant return values.
2969
ff5922b5
AC
29702002-08-01 Andrew Cagney <cagney@redhat.com>
2971
2972 * linux-proc.c: Include "gdb_string.h".
2973 * Makefile.in (linux-proc.o): Update dependency list.
2974
32a6503c
KB
29752002-08-01 Kevin Buettner <kevinb@redhat.com>
2976
2977 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2978 comment.
2979
ccaa32c7
GS
29802002-08-01 Grace Sainsbury <graces@redhat.com>
2981
2982 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2983 to_insert_watchpoint, to_remove_watchpoint,
2984 to_stopped_by_watchpoint, to_stopped_data_address,
2985 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2986 target vecctor. Define their corresponding macros so they call
2987 them.
2988
2989 * target.c: Add default and debug versions of for
2990 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2991 to_insert_watchpoint, to_remove_watchpoint,
2992 to_stopped_by_watchpoint, to_stopped_data_address,
2993 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2994
78fde5f8
KB
29952002-08-01 Kevin Buettner <kevinb@redhat.com>
2996
2997 * mips-tdep.c (mips_register_virtual_type): New function.
2998 (mips_gdbarch_init): Register mips_register_virtual_type()
2999 with gdbarch machinery.
3000 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3001 this file instead of tm-bigmips.h.
3002 (MIPS_REGSIZE): Delete this macro.
3003 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3004 multiarch version in mips-tdep.c will be found.
3005
db034ac5
AC
30062002-08-01 Andrew Cagney <cagney@redhat.com>
3007
3008 * NEWS: Menion that CHILL has been made obsolete.
3009
3010 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
3011 * stabsread.c (read_range_type): Ditto.
3012 * gdbtypes.h: Ditto.
3013 * language.c (binop_type_check): Ditto.
3014 (binop_result_type): Ditto.
3015 (integral_type): Ditto.
3016 (character_type): Ditto.
3017 (string_type): Ditto.
3018 (boolean_type): Ditto.
3019 (structured_type): Ditto.
3020 (lang_bool_type): Ditto.
3021 (binop_type_check): Ditto.
3022 * language.h (_LANG_chill): Ditto.
3023 * dwarfread.c (set_cu_language): Ditto.
3024 * dwarfread.c (CHILL_PRODUCER): Ditto.
3025 * dwarfread.c (handle_producer): Ditto.
3026 * expression.h (enum exp_opcode): Ditto.
3027 * eval.c: Ditto for comments.
3028 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3029 * expprint.c (print_subexp): Ditto.
3030 (print_subexp): Ditto.
3031 * valops.c (value_cast): Ditto.
3032 (search_struct_field): Ditto.
3033 * value.h (COERCE_VARYING_ARRAY): Ditto.
3034 * symfile.c (init_filename_language_table): Ditto.
3035 (add_psymbol_with_dem_name_to_list): Ditto.
3036 * valarith.c (value_binop): Ditto.
3037 (value_neg): Ditto.
3038 * valops.c (value_slice): Ditto.
3039 * symtab.h (union language_specific): Ditto.
3040 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3041 (SYMBOL_DEMANGLED_NAME): Ditto.
3042 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3043 * defs.h (enum language): Ditto.
3044 * symtab.c (got_symtab): Ditto.
3045 * utils.c (fprintf_symbol_filtered): Ditto.
3046
3047 * ch-typeprint.c: Make file obsolete.
3048 * ch-valprint.c: Make file obsolete.
3049 * ch-lang.h: Make file obsolete.
3050 * ch-exp.c: Make file obsolete.
3051 * ch-lang.c: Make file obsolete.
3052
3053 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3054 CHILL_LIB.
3055 (TARGET_FLAGS_TO_PASS): Ditto.
3056 (CHILLFLAGS): Obsolete.
3057 (CHILL): Obsolete.
3058 (CHILL_FOR_TARGET): Obsolete.
3059 (CHILL_LIB): Obsolete.
3060 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3061 ch-valprint.c.
3062 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3063 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3064 ch-lang.o.
3065 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3066 targets.
3067
8aaf0b47
JB
30682002-07-31 Joel Brobecker <brobecker@gnat.com>
3069
3070 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3071 This does not change anything at the moment, but will be helpful
3072 later when full Ada support is integrated.
3073
f3a7b3a5
KB
30742002-07-31 Kevin Buettner <kevinb@redhat.com>
3075
3076 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3077 help message.
3078
fb850278
KB
30792002-07-31 Kevin Buettner <kevinb@redhat.com>
3080
3081 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3082 and save it in a local variable. Use variable in later test.
3083
e3bddbfa
KB
30842002-07-31 Kevin Buettner <kevinb@redhat.com>
3085
3086 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3087 test. (Thanks to Daniel Jacobowitz.)
3088
28d169de
KB
30892002-07-31 Kevin Buettner <kevinb@redhat.com>
3090
3091 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3092 (mips_abi_strings): Add "n64".
3093 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3094
7fe7e44e
KB
30952002-07-31 Kevin Buettner <kevinb@redhat.com>
3096
3097 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3098 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3099
c6caf090
KB
31002002-07-31 Kevin Buettner <kevinb@redhat.com>
3101
3102 * utils.c (host_pointer_to_address, address_to_host_pointer):
3103 Use gdb_assert() instead of explicit call to internal_error().
3104
c41669e0
KB
31052002-07-30 Kevin Buettner <kevinb@redhat.com>
3106
3107 * Makefile.in (rs6000-nat.o): Update dependencies.
3108
3109 From Nicholas Duffek:
3110 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3111 (aix-thread.o): New rule.
3112 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3113 * config/powerpc/aix432.mh: New file.
3114
2fda4977
DJ
31152002-07-30 Daniel Jacobowitz <drow@mvista.com>
3116
3117 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3118 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3119 (fetch_core_registers, ppc_linux_supply_gregset)
3120 (ppc_linux_supply_fpregset): New functions.
3121 (ppc_linux_regset_core_fns): New.
3122 (_initialize_ppc_linux_tdep): Call add_core_fns.
3123 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3124 and ppc_linux_supply_gregset.
3125 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3126 (supply_fpregset): Call ppc_linux_supply_fpregset.
3127 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3128 corelow.o.
3129 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3130
729051e6
DJ
31312002-07-30 Daniel Jacobowitz <drow@mvista.com>
3132
3133 * symtab.c (lookup_symbol): Demangle before lowercasing.
3134
5f8a3188
AC
31352002-07-30 Andrew Cagney <ac131313@redhat.com>
3136
3137 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3138 declaration.
3139 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3140 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3141 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3142 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3143 "gdb_string.h".
3144 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3145 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3146 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3147 (avr-tdep.o, mon960-rom.o): Ditto.
3148 (aout_stabs_gnu_h): Define.
3149 (symtab_h): Remove $(gdb_obstack_h).
3150
67f07146
JB
31512002-07-30 Jim Blandy <jimb@redhat.com>
3152
3153 Patch from David Carlton <carlton@math.stanford.edu>:
3154 * gdbinit.in: Move the `dir' commands that add GDB's own source
3155 directory to the search path to the end, so that the `gdb' source
3156 directory will be searched first.
3157
04ea0df1
AC
31582002-07-29 Andrew Cagney <ac131313@redhat.com>
3159
3160 * gdb_obstack.h: New file.
3161 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3162 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3163 * objfiles.h: Include "gdb_obstack.h".
3164 * Makefile.in (gdb_obstack_h): Define.
3165 (symtab_h): Add $(gdb_obstack_h).
3166 (objfiles_h): Add $(gdb_obstack_h).
3167
3168 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3169 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3170 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3171 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3172 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3173 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3174 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3175 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3176
3177 * Makefile.in (bcache.o): Update dependencies.
3178 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3179 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3180 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3181 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3182 (stabsread.o, symfile.o, symmisc.o): Ditto.
3183 (symtab.o, typeprint.o, macroexp.o): Ditto.
3184 (macrotab.o, mdebugread.o): Ditto.
3185 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3186 (coff_ecoff_h, aout_aout64_h): Define.
3187 (aout_stabs_gnu_h, libaout_h): Define.
3188
d138e37a
AC
31892002-07-29 Andrew Cagney <cagney@redhat.com>
3190
3191 * regcache.c (struct regcache_descr): Rename nr_registers to
3192 nr_cooked_registers. Revise comments describing the structure
3193 member fields.
3194 (init_regcache_descr): Update.
3195 (init_legacy_regcache_descr): Update.
3196 (read_register_gen, write_register_gen): When a cooked register in
3197 the raw register range, directly access the value from the raw
3198 register cache.
3199
460e6ec3
AC
32002002-07-29 Andrew Cagney <ac131313@redhat.com>
3201
3202 * z8k-tdep.c: Do not include "obstack.h".
3203 * h8300-tdep.c, h8500-tdep.c: Ditto.
3204 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3205 * valprint.c, v850-tdep.c: Ditto.
3206 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3207 * mn10200-tdep.c: Ditto.
3208
3209 * Makefile.in (z8k-tdep.o): Update dependencies.
3210 (m68hc11-tdep.o, valprint.o): Ditto.
3211 (v850-tdep.o, d10v-tdep.o): Ditto.
3212 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3213 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3214 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3215 (sh_opc_h, gdb_sim_sh_h): Define.
3216 (elf_sh_h, elf_bfd_h): Define.
3217 (opcode_m68hc11_h): Define.
3218 (OPCODES_SRC, OPCODES_DIR): define.
3219 (OPCODES): Use $(OPCODES_DIR).
3220 (gdb_sim_d10v_h): Rename sim_d10v_h.
3221 (gdb_sim_arm_h): Rename sim_arm_h.
3222
790c9cf0
KB
32232002-07-26 Kevin Buettner <kevinb@redhat.com>
3224
3225 * utils.c (host_pointer_to_address, address_to_host_pointer):
3226 Change internal_error() message to indicate function responsible
3227 for the error.
3228
9647fa49
KB
32292002-07-26 Kevin Buettner <kevinb@redhat.com>
3230
3231 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3232 calls to local_hex_string_custom().
3233
dabbe2c0
KB
32342002-07-26 Kevin Buettner <kevinb@redhat.com>
3235
3236 * irix5-nat.c: Move IRIX shared library support from here...
3237 * solib-irix.c: ...to here. Revised substantially to work with
3238 generic solib framework.
3239
b96d0a4e
KB
3240 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3241 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3242 * mips-irix-tdep.c: New file.
3243
313fb2f6
KB
3244 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3245 (mips-irix-tdep.o, solib-irix.o): New rules.
3246 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3247 solib-irix.o.
3248 * config/mips/irix6.mt (TDEPFILES): Likewise.
3249 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3250
ab2eaf26
KB
32512002-07-26 Kevin Buettner <kevinb@redhat.com>
3252
177e4768 3253 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
3254 disabled (via ``#if 0'') includes.
3255
7244546a
KB
32562002-07-26 Kevin Buettner <kevinb@redhat.com>
3257
3258 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3259 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3260 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3261 Add support for the fpscr register.
3262 * rs6000-nat.c (regmap, fetch_inferior_registers)
3263 (store_inferior_registers, fetch_core_registers): Likewise.
3264
dd7be90a
KB
32652002-07-26 Kevin Buettner <kevinb@redhat.com>
3266
3267 * rs6000-nat.c (language.h): Include.
3268 (special_regs): Delete this array.
3269 (regmap): New function.
3270 (fetch_register, store_register): Use regmap() to map gdb
3271 register numbers to ptrace register numbers. Also, use
3272 outputs from regmap() to make decisions regarding type of
3273 ptrace() call to make. In particular, don't compare against
3274 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3275 (fetch_inferior_registers, store_inferior_registers): Where
3276 possible, obtain register numbers from tdep struct. Don't
3277 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3278 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3279 (LAST_UISA_SP_REGNUM): Delete.
3280
11bf77db
KB
32812002-07-25 Kevin Buettner <kevinb@redhat.com>
3282
3283 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
3284 (fetch_registers, store_register, fetch_core_registers): Don't
3285 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
3286 regcache_collect() as appropriate.
3287 (find_toc_address): Format hex address with local_hex_string().
3288
06afebeb
AC
32892002-07-25 Andrew Cagney <ac131313@redhat.com>
3290
3291 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3292 bfd/elf32-frv.c.
3293
8c554d79
TT
32942002-07-24 Tom Tromey <tromey@redhat.com>
3295
3296 * jv-exp.y: Marked all strings with _().
3297 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3298 internal_error.
3299 (MethodInvocation, CastExpression, parse_number, yyerror,
3300 java_type_from_name, push_expression_name, yylex): Typo fixes.
3301
e4c242d9
DJ
33022002-07-24 Daniel Jacobowitz <drow@mvista.com>
3303
3304 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3305 (tee_file_flush, tee_file_write, tee_file_fputs)
3306 (tee_file_isatty): New.
3307 * ui-file.h (tee_file_new): Add prototype.
3308
ebf56fd3
AS
33092002-07-24 Aidan Skinner <aidan@velvet.net>
3310
3311 * ada-lang.c: Change k&r style function definitions to prototyped
3312 form.
3313 * ada-typeprint.c: Change k&r style function definitions to prototyped
3314 form.
3315 * ada-valprint.c: Change k&r style function definitions to prototyped
3316 form.
3317
7fb623f7
AC
33182002-07-24 Andrew Cagney <cagney@redhat.com>
3319
3320 * README: Remove reference to remote-bug.
3321 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3322 remote-bug.c.
3323 (m88k-nat.o): Delete rule.
3324 (m88k-tdep.o): Delete rule.
3325 (remote-bug.o): Delete rule.
3326 * MAINTAINERS: Mark as obsolete.
3327 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3328 * m88k-tdep.c: Make file obsolete.
3329 * config/m88k/m88k.mh: Ditto.
3330 * config/m88k/delta88v4.mh: Ditto.
3331 * config/m88k/delta88v4.mt: Ditto.
3332 * config/m88k/delta88.mt: Ditto.
3333 * config/m88k/delta88.mh: Ditto.
3334 * remote-bug.c: Ditto.
3335 * config/m88k/tm-delta88.h: Ditto.
3336 * config/m88k/nm-delta88v4.h: Ditto.
3337 * config/m88k/xm-delta88.h: Ditto.
3338 * config/m88k/xm-dgux.h: Ditto.
3339 * config/m88k/tm-m88k.h: Ditto.
3340 * config/m88k/nm-m88k.h: Ditto.
3341 * config/m88k/tm-delta88v4.h: Ditto.
3342 * m88k-nat.c: Ditto.
3343 * cxux-nat.c: Ditto.
3344 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3345 and m88*-*-* obsolete.
3346 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3347 m88*-*-* obsolete.
3348
37611a2b
AC
33492002-07-24 Andrew Cagney <cagney@redhat.com>
3350
3351 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3352 constant. Same for local pointer variables.
3353 (extract_signed_integer): Ditto.
3354 * defs.h (extract_unsigned_integer): Update.
3355 (extract_signed_integer): Update.
3356
1aaa5f99
AC
33572002-07-24 Andrew Cagney <cagney@redhat.com>
3358
3359 * regcache.c (regcache_raw_write): Change buf parameter to a
3360 constant void pointer.
3361 (regcache_raw_read): Change buf parameter to a void pointer.
3362 (legacy_write_register_gen): Change myaddr parameter a constant
3363 void pointer.
3364 (supply_register): Change val parameter to a const void pointer.
3365 * regcache.h (regcache_raw_write): Update declaration.
3366 (regcache_raw_read): Update declaration.
3367 (supply_register): Update declaration.
3368
b4f5539f
TT
33692002-07-24 Tom Tromey <tromey@redhat.com>
3370
3371 * defs.h (gdb_readline_wrapper): Declare.
3372 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3373 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3374 * top.c (gdb_readline_wrapper): New function.
3375 (command_line_input): Use it.
3376
0818c12a
AC
33772002-07-24 Andrew Cagney <cagney@redhat.com>
3378
3379 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3380 regcache_read and regcache_write.
3381 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3382 * regcache.c: Update.
3383 * sh-tdep.c (sh64_push_arguments): Update comment.
3384 (sh_pseudo_register_read): Update.
3385 (sh_pseudo_register_write): Update.
3386 (sh4_register_read): Update.
3387 (sh4_register_write): Update.
3388 (sh64_pseudo_register_read): Update.
3389 (sh64_pseudo_register_write): Update.
3390 (sh64_register_read): Update.
3391 (sh64_register_write): Update.
3392 * i386-tdep.c (i386_extract_return_value): Update.
3393 (i386_extract_struct_value_address): Update.
3394 (i386_extract_return_value): Update.
3395 * blockframe.c (generic_read_register_dummy): Update.
3396 (generic_call_dummy_register_unwind): Update
3397 * infrun.c (write_inferior_status_register): Update.
3398
f7321c06
JB
33992002-07-23 Jim Blandy <jimb@redhat.com>
3400
3401 * parser-defs.h (expression_context_pc): Make this extern.
3402 (Thanks to Michael Snyder.)
3403
2037aebb
AC
34042002-07-23 Andrew Cagney <ac131313@redhat.com>
3405
3406 GDB 5.2.1 released from 5.2 branch.
3407 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3408 * README: Update to mention 5.2.1.
3409
66504d44
MS
34102002-07-23 Mark Salter <msalter@redhat.com>
3411
3412 * remote.c (remote_read_bytes): Fix check for error.
3413
27bae383
KB
34142002-07-22 Kevin Buettner <kevinb@redhat.com>
3415
3416 * aix-thread.c (language.h): Include.
3417 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3418 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3419 Print newlines at end of debug messages.
3420 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3421 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3422
34232002-07-22 Kevin Buettner <kevinb@redhat.com>
3424
3425 * aix-thread.c (ppc-tdep.h): Include.
3426 (special_register_p): New function.
3427 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3428 (store_regs_user_thread): Use register number information from
3429 gdbarch_tdep struct instead of hardcoded offsets relative to
3430 FIRST_UISA_SP_REGNUM.
3431 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3432 special_register_p() instead of using FPLAST_REGNUM and
3433 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3434 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3435 will be MQ's register number.
3436
34372002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
3438
3439 * aix-thread.c (ops): Rename to aix_thread_ops.
3440 (base_ops): Rename to base_target.
3441 (ops_attach): Rename to aix_thread_attach.
3442 (ops_detach): Rename to aix_thread_detach.
3443 (ops_resume): Rename to aix_thread_detach.
3444 (ops_wait): Rename to aix_thread_wait.
3445 (ops_kill): Rename to aix_thread_kill.
3446 (init_ops): Rename to init_aix_thread_ops.
3447 (ops_fetch_register): Rename to aix_thread_fetch_register.
3448 (ops_store_register): Rename to aix_thread_store_register.
3449 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3450 (ops_thread_alive): Rename to aix_thread_thread_alive.
3451 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3452 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3453 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3454 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3455 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3456 (store_regs_lib): Rename to store_regs_user_thread.
3457 (store_regs_kern): Rename to store_regs_kernel_thread.
3458
27bae383 34592002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3460
3461 * aix-thread.c (ops_prepare_to_store): Eliminate.
3462 (init_ops): Don't initialize ops.prepare_to_store.
3463 (store_regs_kern): Pre-fetch register buffers from child,
3464 because some registers may not be in the cache. Copy
3465 regs from register cache only if they are cached.
3466 (store_regs_lib): Copy regs from register cache only
3467 if they are cached.
3468 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3469 fill_gprs64): Ditto.
3470
61c5da0b
KB
34712002-07-22 Kevin Buettner <kevinb@redhat.com>
3472
3473 * aix-thread.c (gdb_assert.h): Include.
3474 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3475 register sizes (from register cache) match size of buffer holding
3476 register data.
3477 (fill_sprs32): Change parameter types to match those in the ptrace()
3478 buffer.
3479 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3480 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3481
34822002-07-22 Michael Snyder <msnyder@redhat.com>
3483
3484 * aix-thread.c (supply_sprs64): Cosmetic change.
3485 (supply_sprs32): Cosmetic change.
3486 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3487 (fill_sprs64): Use regcache_collect instead of read_register.
3488 (store_regs_lib): Use regcache_collect instead of
3489 read_register. Use fill_sprs32 instead of fill_sprs64,
3490 if debugging a 32-bit architecture.
3491 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3492 out of the register cache, instead of passing a pointer into
3493 the register cache directly to ptrace. Use regcache_collect
3494 insteaad of read_register.
3495 (ops_prepare_to_store): Use target_read_registers instead
3496 of read_register_bytes.
3497
36479eb1
AS
34982002-07-20 Aidan Skinner <aidan@velvet.net>
3499
3500 * MAINTAINERS: Add self under write after approval.
3501
80ae6ee2
AS
35022002-07-20 Aidan Skinner <aidan@velvet.net>
3503
3504 * ada-tasks.c: Change k&r style function definitions to prototyped
3505 form.
3506
8a8ab2b9
AC
35072002-07-19 Andrew Cagney <ac131313@redhat.com>
3508
3509 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3510 * x86-64-tdep.c: Include "objfiles.h".
3511 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3512 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3513
fb16b900
ML
35142002-07-17 Michal Ludvig <michal@suse.cz>
3515
3516 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3517 (update_context): Initialise cfa variable.
3518
0fe7bf7b
MS
35192002-07-17 Michael Snyder <msnyder@redhat.com>
3520
3521 * aix-thread.c: Shorten some long lines.
3522 Bring comments into line with code spec.
3523
488f131b
JB
35242002-07-18 Joel Brobecker <brobecker@gnat.com>
3525
3526 * infrun.c: Re-indent using gdb_indent.sh.
3527
46c415d2
JB
35282002-07-18 Joel Brobecker <brobecker@gnat.com>
3529
3530 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3531 Leave the indentation temporarily untouched, to minimize the diffs.
3532
cdecafbe
EZ
35332002-07-18 Elena Zannoni <ezannoni@redhat.com>
3534
3535 * stabsread.c: Make os9k sections of the code obsolete,
3536 for real this time.
3537 * stabsread.h: Make os9k sections of the code obsolete.
3538
7b6aa020
ML
35392002-07-18 Michal Ludvig <mludvig@suse.cz>
3540
09ec9b38
ML
3541 * linux-low.c (regsets_store_inferior_registers): Add free()
3542 at the end of a loop to prevent memory leak.
3543 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3544 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3545 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3546 line a comment.
4894ac5d 3547 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3548
233282cd
JB
35492002-07-17 Jim Blandy <jimb@redhat.com>
3550
3551 * macrocmd.c (info_macro_command): Remove newline from error
3552 message.
3553
7b6aa020 35542002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3555
3556 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3557 (sh_gdbarch_init): Use it for sh-dsp.
3558
f7ef9339
KB
35592002-07-16 Kevin Buettner <kevinb@redhat.com>
3560
3561 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3562 64-bit DWARF2 format.
3563
8dd72958
JB
35642002-07-16 Joel Brobecker <brobecker@gnat.com>
3565
3566 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3567 <sys/proc.h> when not available.
3568
a99a9e1b
AC
35692002-07-16 Andrew Cagney <ac131313@redhat.com>
3570
3571 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3572 * stabsread.c: Make os9k sections of the code obsolete.
3573 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3574 * config/i386/i386os9k.mt: Make file obsolete.
3575 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3576 (COMMON_OBS): Remove os9kread.o
3577 (SFILES): Remove os9kread.c.
3578 (os9kread.o, remote-os9k.o): Make target obsolete.
3579 * remote-os9k.c: Make file obsolete.
3580 * os9kread.c: Make file obsolete.
3581 * Makefile.in
3582
7a3085c1
AC
35832002-07-16 Andrew Cagney <ac131313@redhat.com>
3584
3585 * NEWS: Mention that the FR30 has been made obsolete.
3586 * fr30-tdep.c: Make file obsolete.
3587 * config/fr30/tm-fr30.h: Ditto.
3588 * config/fr30/fr30.mt: Ditto.
3589 * configure.tgt: Make fr30-*-elf obsolete.
3590 * MAINTAINERS: Make fr30-elf obsolete.
3591
28a93f5a
PM
35922002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3593
3594 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3595 found is not inside a section.
3596
be006b8b
KB
35972002-07-15 Kevin Buettner <kevinb@redhat.com>
3598
3599 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3600 strerror().
3601 (pdc_realloc): Use xrealloc() instead of realloc().
3602
14fa3751
KB
36032002-07-15 Kevin Buettner <kevinb@redhat.com>
3604
3605 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3606 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3607 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3608 macros.
3609
42cc437f
KB
36102002-07-15 Kevin Buettner <kevinb@redhat.com>
3611
3612 * aix-thread.c (ptrace_check): Eliminate goto.
3613 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3614 problem.
3615
8e2c28d4
KB
36162002-07-15 Kevin Buettner <kevinb@redhat.com>
3617
3618 * aix-thread.c (gdbcmd.h): Include.
3619 (DEBUG, DBG, DBG2, dbg): Eliminate.
3620 (debug_aix_thread): New static global.
3621 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3622 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3623 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3624 invocations to DBG and DBG2 macros to test against
3625 ``debug_aix_thread'' and call fprintf_unfiltered().
3626 (_initialize_aix_thread): Add new command "set debug aix-thread".
3627
30413464
AC
36282002-07-15 Andrew Cagney <ac131313@redhat.com>
3629
3630 From Gerhard Tonn <TON@de.ibm.com>:
3631 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3632 instead of supply_register.
3633
7c43edc1
AC
36342002-07-15 Andrew Cagney <ac131313@redhat.com>
3635
3636 * dwarf2cfi.c: Include "gdb_assert.h".
3637 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3638 non-NULL.
3639 (update_context): Do not use __func__. Add missing ``break''.
3640 (update_context): Do not use __func__.
3641
9364a0ef
EZ
36422002-07-15 Elena Zannoni <ezannoni@redhat.com>
3643
3644 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3645 and its setting. Set gdbarch instruction printing functions
3646 directly. For non-rs6000 case use new function
3647 gdb_print_insn_powerpc.
3648 (gdb_print_insn_powerpc): New function.
3649
3fbeef0b
AC
36502002-07-13 Andrew Cagney <ac131313@redhat.com>
3651
92eb23c5 3652 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3653 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3654 * configure.tgt: Mark d30v-*-* as obsolete.
3655 * d30v-tdep.c: Mark file as obsolete.
3656 * config/d30v/d30v.mt: Ditto.
3657 * config/d30v/tm-d30v.h: Ditto.
3658
aacb1f0a
AS
36592002-07-13 Aidan Skinner <aidan@velvet.net>
3660
3661 * ada-tasks.c (add_task_entry): replace calls to
3662 malloc() with xmalloc
3663 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3664
3665 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3666 ada_finish_decode_line_1, all_sals_for_line
3667 ada_breakpoint_rewrite): replace calls to free() with xfree()
3668
c11d79f2
KB
36692002-07-12 Kevin Buettner <kevinb@redhat.com>
3670
3671 From Nicholas Duffek (with minor changes by Martin Hunt,
3672 Louis Hamilton, and Kevin Buettner):
3673 * aix-thread.c: New file.
3674
8e19ed76
PS
36752002-07-12 Petr Sorfa <petrs@caldera.com>
3676
3677 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3678 complaint for invalid attribute class or form.
3679 (read_func_scope): DW_AT_frame_base
3680 better handling of DW_AT_block*.
3681 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3682 better handling of DW_AT_block*.
3683 (read_common_block): DW_AT_location
3684 better handling of DW_AT_block*.
3685 (read_partial_die): DW_AT_location better handling
3686 of DW_AT_block*.
3687 (new_symbol): DW_AT_external better handling of
3688 DW_AT_block*. Proper initialization of variable
3689 "addr".
3690 (attr_form_is_block): New function that returns true
3691 if the attribute's form is of DW_FORM_block*.
3692
295401f7
DJ
36932002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3694
3695 * valops.c (find_method_list): Remove comment about
3696 removed STATIC_MEMFUNCP argument.
3697 (value_find_oload_method_list): Likewise.
3698
e42dc924
KB
36992002-07-12 Kevin Buettner <kevinb@redhat.com>
3700
3701 From Nicholas Duffek:
3702 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3703 target_new_objfile_hook.
3704
6904b546
KB
37052002-07-12 Kevin Buettner <kevinb@redhat.com>
3706
3707 From Nicholas Duffek:
3708 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3709 csect.
3710
53fe9346
AC
37112002-07-12 Andrew Cagney <cagney@redhat.com>
3712
3713 * MAINTAINERS: Mention --enable-sim-build-warnings.
3714 (m68hc11-elf): Disable sim build warnings.
3715 (m32r-elf): Mark as broken obsolete candidate.
3716 (x86_64-linux-gnu): Mark as buildable with -Werror.
3717 (arm-elf): Change -w to ``,'' which enables warnings but not
3718 -Werror.
3719
af5f3db6
AC
37202002-07-12 Andrew Cagney <ac131313@redhat.com>
3721
3722 * bcache.h: Update copyright.
3723 (struct bstring, struct bcache): Move definition to "bcache.c".
3724 Replaced by opaque declaration.
3725 (bcache_xfree): Replace free_bcache.
3726 (bcache_xmalloc, bcache_memory_used): Declare.
3727
3728 * bcache.c: Update copyright.
3729 (struct bstring, struct bcache): Moved to here from "bcache.h".
3730 Update comments.
3731 (bcache_xmalloc, bcache_memory_used): New functions.
3732 (bcache_xfree): Replace function free_bcache.
3733
3734 * Makefile.in (objfiles.o): Add $(bcache_h).
3735 (objfiles_h): Remove $(bcache_h).
3736 (symfile.o): Add $(bcache_h).
3737
3738 * symmisc.c: Update copyright.
3739 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3740 (print_objfile_statistics): Use bcache_memory_used.
3741
3742 * symfile.c: Include "bcache.h".
3743 (reread_symbols): Use bcache_xfree.
3744 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3745 (add_psymbol_to_list): Pass psymbol_cache by value.
3746 (add_psymbol_with_dem_name_to_list): Ditto.
3747
3748 * objfiles.h: Update copyright.
3749 (struct bcache): Declare opaque. Do not include "bcache.h".
3750 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3751 bcache'' pointers.
3752 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3753
3754 * objfiles.c: Include "bcache.h". Update copyright.
3755 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3756 macro_cache.
3757 (free_objfile): Use bcache_xfree.
3758
444199e7
GS
37592002-07-11 Grace Sainsbury <graces@redhat.com>
3760
3761 * monitor.c (monitor_fetch_register): Make name a constant.
3762 (monitor_store_register): Same.
3763
261397f8
DJ
37642002-07-11 Daniel Jacobowitz <drow@mvista.com>
3765
3766 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3767 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3768 (finish_block) For non-function blocks, hash the symbol table. For
3769 function blocks, mark the symbol table as unhashed.
3770 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3771 (msymbol_hash_iw): Likewise.
3772 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3773 value.
3774 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3775 (lookup_minimal_symbol): Likewise for both.
3776 * symtab.h (struct block): Add `hashtable' flag. Comment the
3777 hashtable.
3778 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3779 (ALL_BLOCK_SYMBOLS): Update.
3780 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3781 (struct symbol): Add `hash_next' pointer.
3782 * symtab.c (lookup_block_symbol): Search using the hash table when
3783 possible.
3784 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3785 (search_symbols, find_addr_symbol): Likewise.
3786
3787 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3788 (read_dst_symtab): Likewise.
3789 * jv-lang.c (get_java_class_symtab): Likewise.
3790 * mdebugread.c: Include "gdb_assert.h".
3791 (shrink_block): Assert that the block being modified is not hashed.
3792 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3793 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3794 symbols.
3795 (dump_symtab): Recognize hashed blocks.
3796 * printcmd.c (print_frame_args): Assert that function blocks do not
3797 have hashed symbol tables.
3798 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3799 (fill_in_ada_prototype, debug_print_block): Likewise.
3800 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3801
6f0eaa01
CV
38022002-07-11 Corinna Vinschen <vinschen@redhat.com>
3803
3804 * stack.c (print_frame): Use result of frame_address_in_block()
3805 instead of fi->pc when evaluating symbols.
3806 (backtrace_command_1): Ditto.
3807
a208b0cb
AC
38082002-07-11 Andrew Cagney <cagney@redhat.com>
3809
3810 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3811 Make static.
3812
3813 * arm-tdep.c (arm_register_name): Make return type constant.
3814
a6b6b089
AC
38152002-07-10 Andrew Cagney <ac131313@redhat.com>
3816
5ae5f592
AC
3817 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3818 prototype.
3819 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3820 * s390-tdep.c (s390_fp_regnum): Ditto.
3821 (s390_read_fp): Ditto.
3822 (s390_pop_frame): Ditto.
3823 (_initialize_s390_tdep): Ditto.
3824 * remote.c (get_remote_state): Ditto.
3825 * procfs.c (mappingflags): Ditto.
3826 * memattr.c (_initialize_mem): Ditto.
3827 * mcore-tdep.c (mcore_pop_frame): Ditto.
3828 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3829 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3830 * language.c (set_case_str): Ditto.
3831 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3832 * frv-tdep.c (new_variant): Ditto.
3833 (frv_stopped_data_address): Ditto.
3834 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3835 (context_alloc): Ditto.
3836 (frame_state_alloc): Ditto.
3837 (unwind_tmp_obstack_init): Ditto.
3838 (unwind_tmp_obstack_free): Ditto.
3839 (cfi_read_fp): Ditto.
3840 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3841 (cris_pop_frame): Ditto.
3842 * c-lang.c (scanning_macro_expansion): Ditto.
3843 (finished_macro_expansion): Ditto.
3844 (c_preprocess_and_parse): Ditto.
3845 * gdbarch.sh: Ditto.
3846 * gdbarch.h, gdbarch.c: Regenerate.
3847 * config/mn10200/tm-mn10200.h: Adjust indentation.
3848 * target.c: Adjust indentation.
3849 * symtab.h: Adjust indentation.
3850 * stabsread.h: Adjust indentation.
3851 * remote-es.c: Adjust indentation.
3852 * os9kread.c: Adjust indentation.
3853
38542002-07-10 Andrew Cagney <ac131313@redhat.com>
3855
a6b6b089
AC
3856 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3857 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3858
a1789893
GS
38592002-07-10 Grace Sainsbury <graces@redhat.com>
3860
3861 * NEWS: Mention m68k, mcore multi-arching.
3862 * MAINTAINERS: Change status of m68k, mcore to reflect
3863 multi-arching.
3864
02f0d45d
DJ
38652002-07-10 Daniel Jacobowitz <drow@mvista.com>
3866
3867 * valops.c (find_overload_match): Free oload_syms.
3868
f15f768e
JB
38692002-07-09 Joel Brobecker <brobecker@gnat.com>
3870
3871 Define HAVE_SYS_PROC_H if sys/proc.h exists
3872 * configure.in: Add check for sys/proc.h
3873 * config.in: Regenerate.
3874 * configure: Regenerate.
3875
902a7139
GS
38762002-07-09 Grace Sainsbury <graces@redhat.com>
3877
3878 * config/m68k/tm-m68k.h: Remove macros wrapped in
3879 #if !GDB_MULTI_ARCH.
3880
a534e424
AC
38812002-07-08 Andrew Cagney <ac131313@redhat.com>
3882
3883 * config.in, configure: Regenerate.
3884
9b94f7bf
MK
38852002-07-08 Mark Kettenis <kettenis@gnu.org>
3886
3887 * dwarf2cfi.c: Include "gcore.h".
3888 (execute_stack_op): Fix implementation of the
3889 DW_OP_deref and DW_OP_deref_size operators by letting do their
3890 lookup in the target.
3891
1d34db41
MK
38922002-07-07 Mark Kettenis <kettenis@gnu.org>
3893
3894 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3895 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3896 tdep->sc_sp_offset.
3897
79d5b63a
DJ
38982002-07-05 Daniel Jacobowitz <drow@mvista.com>
3899
3900 Fix PR gdb/595, gdb/602
3901 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3902 Don't call value_cast, just read the vtable pointer; update comments
3903 to match.
3904
3bb912e8
GS
39052002-07-05 Grace Sainsbury <graces@redhat.com>
3906
3907 * config/mcore/tm-mcore.h: Remove file.
3908 * config/mcore/mcore.mt: Remove definition of TM_FILE
3909 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3910
ca39387d
MK
39112002-07-05 Mark Kettenis <kettenis@gnu.org>
3912
3913 * i386bsd-tdep.c: Include "gdb_string.h".
3914
efdc1108
GS
39152002-07-04 Grace Sainsbury <graces@redhat.com>
3916
3917 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3918 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3919 mcore-tdep.
3920 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3921 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3922 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3923 (RETVAL_REGNUM): Move macros from tm-mcore.h
3924 (mcore_reg_struct_has_addr): New function.
3925 (mcore_gdbarch_init): Added initializations for the macros removed
3926 from tm-mcore.h.
3927
bb21884d
MK
39282002-07-04 Mark Kettenis <kettenis@gnu.org>
3929
3930 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3931 traditonal string branding within the ELF header.
3932
228c6d41
DJ
39332002-07-04 Daniel Jacobowitz <drow@mvista.com>
3934
3935 * symtab.c (remove_params): New function.
3936 (make_symbol_overload_list): Use it instead of cplus_demangle.
3937 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3938
2404952e
MK
39392002-07-04 Mark Kettenis <kettenis@gnu.org>
3940
e5e4acad
MK
3941 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3942
baadce09
MK
3943 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3944 New variables.
3945 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3946 and tdep->sigtramp_end.
3947 * i386obsd-nat.c: New file.
3948 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3949
2404952e
MK
3950 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3951 Don't call get_current_frame().
3952
9b4f1ba7
PM
39532002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3954
3955 * i386-nat.c (child_post_startup_inferior): New function
3956 calling i386_cleanup_dregs if
3957 I386_USE_GENERIC_WATCHPOINTS is defined.
3958 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3959 conditional to acknowledge that i386-nat.c has its
3960 own child_post_startup_inferior function.
3961
c0d1d883
MK
39622002-07-04 Mark Kettenis <kettenis@gnu.org>
3963
00f8375e
MK
3964 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3965 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3966 instead of MAX_REGISTER_RAW_SIZE.
3967 (i386_extract_return_value, i386_extract_struct_value_address):
3968 Convert to use regcache.
3969 (i386_gdbarch_init): Set max_register_raw_size and
3970 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3971 Set extract_return_value and extract_struct_value_address instead
3972 of their deprecated variants.
3973
c0d1d883
MK
3974 Convert i386 target to generic dummy frames.
3975 * i386-tdep.c: Include "symfile.h".
3976 (i386_frameless_signal_p): Consider a function to be frameless if
3977 the pc points at the first instruction of the function.
3978 (i386_frame_chain): Handle (generic) call dummies.
3979 (i386_frame_saved_pc): Likewise.
3980 (i386_frame_init_saved_regs): Remove code dealing with call
3981 dummies on the stack.
3982 (i386_push_dummy_frame): Removed.
3983 (i386_call_dummy_words): Removed.
3984 (i386_fix_call_dummy): Removed.
3985 (i386_push_return_address): New function.
3986 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3987 parameter, and don't call get_current_frame.
3988 (i386_pop_frame): New function.
3989 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3990 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3991 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3992 call_dummy_length to 0, set call_dummy_words to NULL, set
3993 sizeof_call_dummy_words to 0, set fix_call_dummy to
3994 generic_fix_call_dummy, set pc_in_call_dummy to
3995 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3996 generic_push_dummy_frame, set push_return_address to
3997 i386_push_return_address and set frame_chain_valid to
3998 generic_file_frame_chain_valid.
3999
049ee0e4
AC
40002002-07-03 Andrew Cagney <ac131313@redhat.com>
4001
4002 * gdbarch.sh (struct regcache): Add opaque declaration.
4003 (EXTRACT_RETURN_VALUE): New architecture method.
4004 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4005 * gdbarch.h, gdbarch.c: Regenerate.
4006 * arch-utils.c (legacy_extract_return_value): New function.
4007 * arch-utils.h (legacy_extract_return_value): Declare.
4008 * values.c (value_being_returned): Re-enable code handling
4009 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4010 deprecated_grub_regcache_for_registers call to block handling
4011 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4012 (EXTRACT_RETURN_VALUE): Do not define.
4013
4e0d9804
GS
40142002-07-03 Grace Sainsbury <graces@redhat.com>
4015
4016 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4017 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4018 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4019 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4020 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4021 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4022 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4023 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4024 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4025 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4026 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4027 argument so the function fits the prototype in the architecture
4028 vector.
4029 (mcore_pop_frame): Remove argument so the function fits the
4030 prototype. Use get_current_frame instead of the argument.
4031 (mcore_push_arguments): Change type of struct_return so the
4032 function can be used in the architecture vector.
4033 (mcore_store_struct_return): Add.
4034 (mcore_frame_init_saved_regs): Add.
4035 (mcore_gdbarch_init): Add function calls to replace the macros
4036 removed from tm-mcore.h
4037
36160dc4
AC
40382002-07-03 Andrew Cagney <ac131313@redhat.com>
4039
4040 * infcmd.c (print_return_value): Remove compatibility code calling
4041 deprecated_grub_regcache_for_registers.
4042
4043 * values.c: Include "regcache.h".
4044 (value_being_returned): Update. Use
4045 deprecated_grub_regcache_for_registers to extract the register
4046 buffer address.
4047 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4048 ``struct regcache''.
4049 * Makefile.in (values.o): Add dependency on $(regcache_h).
4050
4051 * inferior.h (run_stack_dummy): Change type of second parameter to
4052 a ``struct regcache''.
4053 * valops.c (hand_function_call): Change type of retbuf to ``struct
4054 regcache''. Allocate using regcache_xmalloc, clean using
4055 make_cleanup_regcache_xfree.
4056 * infcmd.c (run_stack_dummy): Update. Use
4057 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4058
4059 * regcache.c (do_regcache_xfree): New function.
4060 (make_cleanup_regcache_xfree): New function.
4061 * regcache.h (make_cleanup_regcache_xfree): Declare.
4062
e64d9b3d
MH
40632002-07-03 Martin M. Hunt <hunt@redhat.com>
4064
4dd79c29
MH
4065 * event-top.c (command_line_handler): Don't read past
4066 beginning of buffer.
e64d9b3d 4067
4dd79c29
MH
40682002-07-03 Martin M. Hunt <hunt@redhat.com>
4069
e64d9b3d
MH
4070 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4071 struct frame_id.
4072 (varobj_create): Store frame_id for root.
4073 (varobj_gen_name): Use xasprintf.
4074 (varobj_update): Save and restore frame using get_frame_id() and
4075 frame_find_by_id().
4076 (create_child): Use xasprintf.
4077 (new_root_variable): Initialize frame_id.
4078 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4079 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4080 to prevent memory leak.
4081
26e6c56a
AC
40822002-07-03 Andrew Cagney <ac131313@redhat.com>
4083
4084 * valops.c (hand_function_call): Move declaration of retbuf to
4085 start of function, allocate using malloc, add a cleanup but before
4086 the inf_status cleanup, cleanup the buffer. Rename local variable
4087 old_chain to inf_status_cleanup.
4088
f436dd25
MH
40892002-07-03 Martin M. Hunt <hunt@redhat.com>
4090
4091 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4092
4093 * cli/cli-decode.c (cmd_func_p): New function.
4094 (cmd_func): New function.
4095
4096 * command.h: Add cmd_func() and cmd_func_p().
4097
4cfe2084
GS
40982002-07-03 Grace Sainsbury <graces@redhat.com>
4099
4100 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4101 (REGISTER_SIZE): Remove.
4102 (MAX_REGISTER_RAW_SIZE): Remove.
4103 (REGISTER_VIRTUAL_TYPE): Remove.
4104 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4105 (REGISTER_NAME): Remove.
4106 (USE_GENERIC_DUMMY_FRAMES): Remove.
4107 (CALL_DUMMY): Remove.
4108 (CALL_DUMMY_START_OFFSET): Remove.
4109 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4110 (CALL_DUMMY_LOCATION): Remove.
4111 (FIX_CALL_DUMMY): Remove.
4112 (CALL_DUMMY_ADDRESS): Remove.
4113 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4114 (SAVE_DUMMY_FRAME_TOS): Remove.
4115 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4116 (mcore_register_virtual_type): New function.
4117 (mcore_register_byte): New function.
4118 (mcore_register_size): New function.
4119 (mcore_register_name): New function.
4120 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4121 macros removed from tm-mcore.h.
4122 (mcore_dump_tdep): Add.
4123 (_initialize_mcore_tdep): Add gdbarch_register call.
4124
4fd667e9
MK
41252002-07-03 Mark Kettenis <kettenis@gnu.org>
4126
4127 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4128 frameless_look_for_prologue, such that we actually call this
4129 function.
4130
42f99ac2
JB
41312002-07-02 Joel Brobecker <brobecker@gnat.com>
4132
4133 * frame.h (frame_address_in_block): New function.
4134
4135 * blockframe.c (frame_address_in_block): New function extracted
4136 from get_frame_block().
4137 (get_frame_block): Use frame_address_in_block().
4138 (block_innermost_frame): Use frame_address_in_block() to match
4139 the frame pc address against the block boundaries rather than
4140 the frame pc directly. This prevents a failure when a frame pc
4141 is actually a return-address pointing immediately after the end
4142 of the given block.
4143
103a1597 41442002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
4145
4146 * MAINTAINERS: Add self under write after approval.
4147
41482002-07-02 Grace Sainsbury <graces@redhat.com>
4149
103a1597
GS
4150 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4151 used in architecture vector. The default is
4152 m68k_local_breakpoint_from_pc.
4153 (m68k_local_breakpoint_from_pc): Add.
4154 (enum): Add register numbers from tm-m68k.h.
4155 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4156 vector.
4157 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4158 GDB_MULTI_ARCH_PARTIAL.
4159 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4160 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4161 m68k-tdep.c.
4162 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4163 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4164 to enum in m68k-tdep.c
4165
7a5a0534
JB
41662002-07-02 Joel Brobecker <brobecker@gnat.com>
4167
4168 * solib-osf.c (open_map): Compute the list of shared libraries
4169 loaded by the inferior, rather than the list of libraries loaded
4170 by GDB itself. Otherwise, GDB ends up reading the symbols from
4171 the wrong shared libraries...
4172
6f558d74
MK
41732002-07-02 Mark Kettenis <kettenis@gnu.org>
4174
b7d15bf7
MK
4175 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4176 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4177 macros.
4178 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4179 Remove functions.
4180 (FRAMELESS_SIGNAL): Remove function.
4181 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4182 i386_linux_saved_pc_after_call): Removed.
4183 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4184 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4185 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4186
6bff26de
MK
4187 * i386-tdep.c (i386_frameless_signal_p): New function.
4188 (i386_frame_chain): Deal with frameless signals.
4189 (i386_sigtramp_saved_sp): New function.
4190 (i386_frame_saved_pc): Deal with frameless signals.
4191 (i386_saved_pc_after_call): Make sure the correct value is
4192 returned just after entry into a sigtramp.
4193 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4194 i386fbsd4_sc_sp_offset): New variables.
4195 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4196 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4197 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4198 similiar to what we already did for sc_pc_offset.
4199 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4200 tdep->sc_sp_offset.
4201
6f558d74
MK
4202 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4203
145564b7
ML
42042002-07-02 Michal Ludvig <mludvig@suse.cz>
4205
4206 * config/i386/tm-x86-64linux.h: New.
4207 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4208 definitions.
4209 * config/i386/nm-x86-64.h: Rename to ...
4210 * config/i386/nm-x86-64linux.h: ... this one.
4211 * config/i386/x86-64linux.mh: Reflect the above change.
4212
3a1e71e3
MK
42132002-07-01 Mark Kettenis <kettenis@gnu.org>
4214
21d0e8a4
MK
4215 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4216 with sigcontext_addr. Add sc_sp_offset.
4217 (i386bsd_sigtramp_saved_pc): Remove prototype.
4218 (i386bsd_sicontext_addr): Add prototype.
4219 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4220 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4221 (i386_svr4_sigtramp_saved_pc): Removed.
4222 (i386_svr4_sigcontext_addr): New function.
4223 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4224 Initialize tdep->sigcontext_addr instead. Initialize
4225 tdep->sc_pc_offset and tdep->sc_sp_offset.
4226 (i386_gdbarch_init): Likewise.
4227 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4228 any more.
4229 (i386bsd_sigtramp_saved_pc): Remove function.
4230 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4231 Initialize tdep->sigcontext_addr instead. Initialize
4232 tdep->sc_pc_offset.
4233 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4234 of tdep->sigtramp_saved_pc.
4235 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4236 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4237 instead.
4238
3a1e71e3
MK
4239 * i386-tdep.c (i386_frameless_function_invocation,
4240 i386_frame_num_args, i386_frame_init_saved_regs,
4241 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4242 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4243 i386_extract_return_value, i386_store_return_value,
4244 i386_extract_struct_value_address, i386_register_virtual_type,
4245 i386_register_convertible, i386_register_convert_to_virtual,
4246 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4247 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4248 static.
4249
52e9098c
MK
42502002-07-01 Mark Kettenis <kettenis@gnu.org>
4251
77b13a25
MK
4252 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4253
52e9098c
MK
4254 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4255 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4256 this macro. Include "value.h".
4257
1b372fff
AS
42582002-06-30 Aidan Skinner <aidan@velvet.net>
4259
4260 * ada-exp.tab.c: remove as it's a generated file
4261 * ada-lex.c: remove as it's a generated file
4262
9c5045b5
MK
42632002-06-30 Mark Kettenis <kettenis@gnu.org>
4264
4a93c5bb
MK
4265 * config/i386/tm-i386.h (struct frame_info, struct
4266 frame_saved_regs, struct value, struct type): Remove forward
4267 declarations.
4268
322d4fe0
MK
4269 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4270 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4271 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4272 (FILL_FPXREGSET): Define.
4273
fdd8263d
MK
4274 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4275
482e577b
MK
4276 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4277 i[3456]86-*-netbsd* case.
4278 * config/i386/tm-obsd.h: Removed.
4279 * config/i386/obsd.mt: Removed.
4280 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4281 core-aout.o.
4282 (MH_CFLAGS): Add -DYYDEBUG=0.
4283
6916549a
MK
4284 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4285 i386nbsd_sc_pc_offset on OpenBSD too.
4286
9c5045b5
MK
4287 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4288 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4289 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4290 define.
4291 * i386bsd-tdep.c: Include "arch-utils.h".
4292 (i386bsd_aout_in_solib_call_trampoline): New function.
4293 (i386bsd_init_abi): Set in_solib_call_trampoline to
4294 i386bsd_aout_in_solib_call_trampoline.
4295 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4296 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4297
aa84d1bb
AC
42982002-06-28 Andrew Cagney <ac131313@redhat.com>
4299
4300 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4301 (struct obstack, struct bcache): Add opaque declarations.
4302 * Makefile.in (macrotab_h): Update
4303
b4d83933
AC
43042002-06-28 Andrew Cagney <ac131313@redhat.com>
4305
4306 * blockframe.c (generic_find_dummy_frame): Change return type to
4307 ``struct regcache''.
4308 (struct dummy_frame): Replace field ``registers'' with regcache, a
4309 struct regcache object.
4310 (generic_find_dummy_frame): Update.
4311 (generic_push_dummy_frame): Update. Use regcache_xfree,
4312 regcache_xmalloc and regcache_cpy.
4313 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4314 regcache_xfree.
4315 (deprecated_generic_find_dummy_frame): Update.
4316 (generic_read_register_dummy): Update. Use
4317 regcache_read_as_address.
4318 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4319 (generic_get_saved_register): Update. Use regcache_read.
4320
08c0b5bc
AC
43212002-06-28 Andrew Cagney <ac131313@redhat.com>
4322
4323 * Makefile.in (objfiles_h): Add $(bcache_h).
4324 * objfiles.h: Include "bcache.h".
4325
4326 * Makefile.in (symtab_h): Remove $(bcache_h).
4327 * symtab.h: Do not include "bcache.h".
4328
1f89801a
AC
43292002-06-28 Andrew Cagney <ac131313@redhat.com>
4330
4331 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4332 generic_func_frame_chain_valid.
4333
b9644b58
DB
43342002-06-28 David O'Brien <obrien@FreeBSD.org>
4335
4336 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4337 * config/i386/tm-fbsd.h: Likewise.
4338
dd486634
AC
43392002-06-28 Andrew Cagney <ac131313@redhat.com>
4340
4341 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4342 generic_unwind_get_saved_register.
4343
0b434a00
AC
43442002-06-27 Andrew Cagney <ac131313@redhat.com>
4345
4346 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4347 * regcache.c (supply_register): Add missing argument to
4348 register_buffer call.
4349
f30e5a77
AC
43502002-06-27 Andrew Cagney <ac131313@redhat.com>
4351
4352 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4353 Solaris /bin/grep does not not like it. From Peter Schauer.
4354
9f064c95
TT
43552002-06-26 Tom Tromey <tromey@redhat.com>
4356
4357 * command.h (add_setshow_cmd): Declare.
4358 (add_setshow_cmd_full): Declare.
4359 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4360 returns void. Use add_setshow_cmd_full.
4361 (add_setshow_cmd_full): New function.
4362 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4363 (add_setshow_boolean_cmd): Likewise.
4364
099c7589
JT
43652002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4366
4367 * config/vax/tm-vax.h: Protect from multiple inclusion.
4368 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4369 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4370 * config/vax/tm-vaxbsd.h: ...here. New file.
4371 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4372
1d049c5e
JT
43732002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4374
4375 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4376 (BELIEVE_PCC_PROMOTION): Remove.
4377 (AP_REGNUM): Move to...
4378 * config/vax/nm-vax.h: ...here.
4379 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4380 (vax_breakpoint_from_pc): New function.
4381 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4382 and gdbarch_believe_pcc_promotion.
4383
4791e091
JT
43842002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4385
4386 * Makefile.in (vax_tdep_h): Define.
4387 (vax-tdep.o): Use $(vax_tdep_h).
4388 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4389 (vax_dump_tdep): New function.
4390 (_initialize_vax_tdep): Register vax_dump_tdep.
4391 * vax-tdep.h: Include osabi.h.
4392 (struct gdbarch_tdep): New.
4393
da130f98
AC
43942002-06-26 Andrew Cagney <cagney@redhat.com>
4395
4396 * frame.h (deprecated_generic_find_dummy_frame): Rename
4397 generic_find_dummy_frame.
4398 * blockframe.c (generic_find_dummy_frame): Make static.
4399 (deprecated_generic_find_dummy_frame): New function.
4400 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4401 generic_find_dummy_frame with deprecated_find_dummy_frame.
4402 (sh64_nofp_frame_init_saved_regs): Ditto.
4403 (sh_fp_frame_init_saved_regs): Ditto.
4404 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4405 (s390_frame_chain): Ditto.
4406 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4407
6300c360
GS
44082002-06-26 Grace Sainsbury <graces@redhat.com>
4409
4410 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4411 gdbarch vector are at the top.
4412 (NUM_REGS): Remove.
4413 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4414 (FRAME_ARGS_ADDRESS): Remove.
4415 (FRAME_LOCALS_ADDRESS): Remove.
4416 (FRAME_NUM_ARGS): Remove.
4417 (FRAME_ARGS_SKIP): Remove.
4418 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4419 (m68k_gdbarch_init): Add gdbarch initializations for macros
4420 undefined in tm-m68k.h
4421
1c617db8
GS
44222002-06-26 Grace Sainsbury <graces@redhat.com>
4423
4424 * monitor.h: Add the function regname to monitor_ops
4425 structure. This way NUM_REGS does not have to be a constant.
4426 * monitor.c (monitor_fetch_register): Added support for regname
4427 function. The function is called if the array regnames is NULL.
4428 (monitor_store_register): Same.
da130f98
AC
4429 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4430 regnames array.
1c617db8
GS
4431 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4432 cpu32bug_cmds.regname to point to new function.
4433 * abug-rom.c (abug_regname): Same as above.
4434 (init_abug_cmds): Same.
4435 * dbug-rom.c (dbug_regname): Same as above.
4436 (init_dbug_cmds): Same.
4437 * remote-est.c (est_regname): Same.
4438 (init_est_cmds): Same.
4439 * rom68k-rom.c (rom68k_regname): Same.
4440 (init_rom68k_cmds): Same.
4441
ea9365bb
TT
44422002-06-25 Tom Tromey <tromey@redhat.com>
4443
4444 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4445
72cec141
AC
44462002-06-25 Andrew Cagney <cagney@redhat.com>
4447
4448 * infrun.c (stop_registers): Change variable's type to ``struct
4449 regcache'''.
4450 (xmalloc_inferior_status): Delete function.
4451 (free_inferior_status): Delete function.
4452 (normal_stop): Use regcache_cpy.
4453 (struct inferior_status): Change type of fields ``stop_registers''
4454 and ``registers'' to ``struct regcache''.
4455 (write_inferior_status_register): Use regcache_write.
4456 (save_inferior_status): Instead of calling
4457 xmalloc_inferior_status, allocate the inf_status buffer directly.
4458 Use regcache_dup_no_passthrough and regcache_dup to save the
4459 buffers.
4460 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4461 Replace the stop_registers regcache instead of overriding it. Use
4462 regcache_xfree. Instead of calling free_inferior_status, xfree
4463 the buffer directly.
4464 (discard_inferior_status): Use regcache_xfree. Instead of calling
4465 free_inferior_status, xfree the buffer directly.
4466 (build_infrun): Use regcache_xmalloc.
4467 (_initialize_infrun): Delete redundant call to build_infrun.
4468
4469 * Makefile.in (infcmd.o): Add $(regcache_h).
4470
4471 * infcmd.c: Include "regcache.h".
4472 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4473 obtain the address of `stop_registers' register buffer.
4474 (print_return_value): Ditto.
4475
4476 * inferior.h (struct regcache): Add opaque declaration.
4477 (stop_registers): Change variable's declared type to ``struct
4478 regcache''.
4479
defc6f8c
TT
44802002-06-24 Tom Tromey <tromey@redhat.com>
4481
c0e624e7
TT
4482 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4483 * target.c (initialize_targets): Fixed typo in
4484 trust-readonly-sections `show' documentation.
4485
defc6f8c
TT
4486 * main.c: Marked all strings with _().
4487
2b236d82
DH
44882002-06-24 Don Howard <dhoward@redhat.com>
4489
4490 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4491 that means max CORE_ADDR+1.
4492 (lookup_mem_region): Ditto.
4493 (mem_info_command): Ditto.
4494
942dc0e9
GS
44952002-06-24 Grace Sainsbury <graces@redhat.com>
4496
4497 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4498 (REGISTER_BYTES_OK): Remove.
4499 (REGISTER_BYTES): Remove.
4500 (STORE_STRUCT_RETURN): Remove.
4501 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4502 (STORE_RETURN_VALUE): Remove.
4503 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4504 (FRAME_CHAIN): Remove.
4505 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4506 (FRAME_SAVED_PC): Remove.
4507 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4508 (m68k_store_struct_return): Add.
4509 (m68k_deprecated_extract_return_value): Add.
4510 (m68k_deprecated_extract_struct_value_address): Add.
4511 (m68k_store_return_value): Add.
4512 (m68k_frame_chain): Add.
4513 (m68k_frameless_function_invocation): Add.
4514 (m68k_frame_saved_pc): Add.
4515 (m68k_gdbarch_init): added set_gdbarch calls for new
4516 functions and deleted macros.
4517
03c30d4d
TT
45182002-06-23 Tom Tromey <tromey@redhat.com>
4519
4520 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4521 (ALLDEPFILES): Likewise.
4522 (udiheaders): Removed.
4523 (udip2soc.o): Likewise.
4524 (udi2go32.o): Likewise.
4525 (udr.o): Likewise.
4526 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4527
37e71372
AC
45282002-06-22 Andrew Cagney <ac131313@redhat.com>
4529
06a6ac57
AC
4530 * infrun.c (_initialize_infrun): Delete unnecessary call to
4531 build_infrun.
4532
37e71372
AC
4533 * regcache.h: Update comments describing the regcache_cpy family
4534 of functions.
4535 (regcache_save, regcache_restore): Delete declaration.
4536 (regcache_save_no_passthrough): Delete declaration.
4537 (regcache_restore_no_passthrough): Delete declaration.
4538 * regcache.c (regcache_save): Delete function.
4539 (regcache_save_no_passthrough): Delete function.
4540 (regcache_restore): Delete function.
4541 (regcache_restore_no_passthrough): Delete function.
4542
78f6d055
AC
45432002-06-21 Andrew Cagney <ac131313@redhat.com>
4544
4545 * config/m68k/tm-m68k.h: Fix typo.
4546 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4547 (m68k_frame_init_saved_regs): Declare.
4548
78b119cb
JB
45492002-06-21 Jim Blandy <jimb@redhat.com>
4550
4551 Remove some vestiges of Harris 88k support.
4552 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4553 register numbering quirk.
4554 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4555 odd symbols occurring in Harris 88k ELF targets.
4556
0fbb3da7
TT
45572002-06-21 Tom Tromey <tromey@redhat.com>
4558
4559 * gdb_locale.h: New file.
4560 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4561 (defs_h): Added gdb_locale.h.
4562 * configure, config.in: Rebuilt.
4563 * configure.in (PACKAGE): Define.
4564 * defs.h: Include gdb_locale.h.
4565 * main.c (captured_main): Call setlocale, bindtextdomain,
4566 textdomain.
4567
456f8b9d
DB
45682002-06-21 Dave Brolley <brolley@redhat.com>
4569
4570 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4571 * config/frv/frv.mt: New file.
4572 * config/frv/tm-frv.h: New file.
4573 * configure.tgt: Support frv-*-*.
4574 * Makefile.in (frv-tdep.o): New target.
4575 * frv-tdep.c: New file.
4576 * NEWS: Mention frv.
4577
cdd463f9
DB
45782002-06-21 Dave Brolley <brolley@redhat.com>
4579
4580 * MAINTAINERS: Add self to "Write After Approval" list.
4581
5d3ed2e3
GS
45822002-06-21 Grace Sainsbury <graces@redhat.com>
4583
4584 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4585 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4586 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4587 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4588 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4589
4590 * m68k-tdep.c: Include arch-utils.h
4591 (m68k_register_raw_size): Add.
4592 (m68k_register_virtual_size): Add.
4593 (m68k_register_virtual_type): Add.
4594 (m68k_register_name): Add.
4595 (m68k_stack_align): Add.
4596 (m68k_register_byte): Add.
4597 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4598 tm-m68k.h.
4599
7f8e7424
GS
46002002-06-21 Grace Sainsbury <graces@redhat.com>
4601
a2c6a6d5 4602 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4603 m68k_find_saved_regs.
4604 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4605 references to it with frame->saved_regs.
7f8e7424
GS
4606 (m68k_gdbarch_init): Added function calls to initialize the
4607 gdbarch structure.
a2c6a6d5
GS
4608 (m68k_fix_call_dummy): Add.
4609 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4610 (CALL_DUMMY): Remove.
4611 (CALL_DUMMY_LENGTH): Remove.
4612 (CALL_DUMMY_START_OFFSET): Remove.
4613 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4614 (FIX_CALL_DUMMY): Remove.
4615 (PUSH_DUMMY_FRAME): Remove.
4616 (POP_FRAME): Remove.
7f8e7424 4617
f461f5cf
PM
46182002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4619
4620 * parse.c (parse_fprintf): New function used to avoid calls to
4621 fprintf in bison parser generated debug code.
4622 * parser-defs.h: Declaration of new parse_fprintf function.
4623 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4624 Set YYDEBUG to 1 by default.
4625 Set YYFPRINTF as parse_fprintf.
4626
7f0c12ed
ML
46272002-06-21 Michal Ludvig <mludvig@suse.cz>
4628
4629 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4630 encoding anymore.
4631 (pointer_encoding, enum ptr_encoding): New.
4632 (execute_cfa_program): Take care about pointer encoding.
4633 (dwarf2_build_frame_info): Only call parse_frame_info for
4634 .debug_frame and .eh_frame.
4635 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4636 fixed augmentation handling, added relative addressing,
4637 ignore duplicate FDEs. Added comments.
19d833a2 4638 * dwarf2cfi.c: Reindented.
7f0c12ed 4639
87c4a039
EZ
46402002-06-20 Elena Zannoni <ezannoni@redhat.com>
4641
4642 * event-top.c (command_handler): Don't use space_at_cmd_start
4643 unless there is sbrk() on the host. Assign time and space data
4644 to union fields of the appropriate length.
4645
1cf877ad
ML
46462002-06-20 Michal Ludvig <mludvig@suse.cz>
4647
4648 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4649 x86_64_register_name. Return type changed to 'const char *'.
4650 (x86_64_register_name2nr): Rename to x86_64_register_number.
4651 (x86_64_gdbarch_init): Update to reflect the change.
4652 * x86-64-tdep.h: Ditto.
4653 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4654 (supply_fpregset): Ditto.
4655
3fadccb3
AC
46562002-06-19 Andrew Cagney <cagney@redhat.com>
4657
4658 * regcache.h: Update copyright.
4659 (struct regcache, struct gdbarch): Add opaque declarations.
4660 (current_regcache): Declare global variable.
4661 (regcache_read, regcache_write): Add gdbarch parameter.
4662 (regcache_save, regcache_save_no_passthrough)
4663 (regcache_restore, regcache_restore_no_passthrough)
4664 (regcache_dup, regcache_dup_no_passthrough)
4665 (regcache_cpy, regcache_cpy_no_passthrough)
4666 (deprecated_grub_regcache_for_registers)
4667 (deprecated_grub_regcache_for_register_valid)
4668 (regcache_valid_p): Add function declarations.
4669
4670 * regcache.c: Update copyright.
4671 (regcache_descr_handle): New global variable.
4672 (struct regcache_descr): Define.
4673 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4674 (regcache_descr, xfree_regcache_descr): New functions.
4675 (struct regcache): Define.
4676 (regcache_xmalloc, regcache_xfree): New functions.
4677 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4678 (regcache_dup, regcache_dup_no_passthrough): New functions.
4679 (regcache_valid_p, regcache_read_as_address): New functions.
4680 (deprecated_grub_regcache_for_registers): New function.
4681 (deprecated_grub_regcache_for_register_valid): New function.
4682 (current_regcache): New global variable.
4683 (register_buffer): Add regcache parameter. Update calls.
4684 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4685 (read_register_gen, write_register_gen): Update register_buffer
4686 call. Test for legacy_p instead of gdbarch_register_read_p or
4687 gdbarch_register_write_p.
4688 (regcache_collect): Update register_buffer call.
4689 (build_regcache): Rewrite. Use deprecated grub functions.
4690 (regcache_save, regcache_save_no_passthrough): New functions.
4691 (regcache_restore, regcache_restore_no_passthrough): New
4692 functions.
4693 (_initialize_regcache): Create the regcache_data_handle. Swap
4694 current_regcache global variable.
4695
4696 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4697 parameter to regcache_read and regcache_write calls.
4698 (sh4_register_read): Ditto.
4699 (sh64_pseudo_register_read): Ditto.
4700 (sh64_register_read): Ditto.
4701 (sh_pseudo_register_write): Ditto.
4702 (sh4_register_write): Ditto.
4703 (sh64_pseudo_register_write): Ditto.
4704 (sh64_register_write): Ditto.
4705
4706 * defs.h (XCALLOC): Define.
4707
152d9db6
GS
47082002-06-19 Grace Sainsbury <graces@redhat.com>
4709
4710 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4711 * m68k-tdep.c (m68k_gdbarch_init): Added.
4712 (m68k_dump_tdep): Added.
4713
170911c7
DJ
47142002-06-19 Daniel Jacobowitz <drow@mvista.com>
4715
4716 * ada-lang.c (fill_in_ada_prototype): Update comment.
4717
2e4ebe70
DJ
47182002-06-19 Daniel Jacobowitz <drow@mvista.com>
4719
4720 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4721 MIPS_ABI_LAST.
4722 (mips_abi_string, mips_abi_strings): New.
4723 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4724 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4725 tdep->mips_abi_string. Honor mips_abi_string. Default to
4726 O32 if no ABI is found.
4727 (mips_dump_tdep): Use mips_abi_strings.
4728 (mips_abi_update): New function.
4729 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4730 ``set mips abi'' and ``show mips abi''. Check the size of
4731 mips_abi_strings.
4732
16775908
AC
47332002-06-19 Andrew Cagney <cagney@redhat.com>
4734
4735 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4736 constant.
4737
5051bfa4 47382002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4739
5051bfa4
JB
4740 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4741 current frame using only the first stack size adjustment. All
4742 subsequent size adjustments are not considered to be part of
4743 the "static" part of the current frame.
4744 Compute the address of the saved registers relative to the
4745 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4746 in use in this frame.
4747
56468235
DH
47482002-06-18 Don Howard <dhoward@redhat.com>
4749
4750 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4751 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4752 suggesting this solution.
4753
0b624158
AC
47542002-06-18 Andrew Cagney <ac131313@redhat.com>
4755
4756 * config/romp/xm-rtbsd.h: Delete file.
4757 * config/romp/rtbsd.mh: Delete file.
4758
221ea385
KS
47592002-06-18 Keith Seitz <keiths@redhat.com>
4760
4761 * breakpoint.c (condition_command): Post breakpoint_modify
4762 when a condition is added to an existing breakpoint.
4763 (commands_command): Likewise for commands.
4764 (set_ignore_count): Likewise for ignore counts.
4765 If no tty, do not simply return, still need to send event
4766 notification.
4767 (ignore_command): Only print a newline if the command came
4768 from a tty.
4769 Don't call breakpoints_changed, since this is now properly
4770 handled by set_ignore_count.
4771
5402eed1
AC
47722002-06-18 Andrew Cagney <cagney@redhat.com>
4773
4774 * MAINTAINERS: Note that cris-elf target can be compiled with
4775 -Werror.
4776 * cris-tdep.c (cris_register_name): Make return type constant.
4777 (cris_breakpoint_from_pc): Ditto.
4778
cc22880b
ML
47792002-06-18 Michal Ludvig <mludvig@suse.cz>
4780
4781 * frame.h (struct frame_info): Change type of context to
4782 'struct context'.
4783
fa88f677
AC
47842002-06-17 Andrew Cagney <cagney@redhat.com>
4785
4786 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4787 pointer.
4788 * gdbarch.h, gdbarch.c: Regenerate.
4789 * config/mips/tm-mips.h (mips_register_name): Update.
4790 * i386-tdep.h (i386_register_name): Update.
4791 * mips-tdep.c (mips_register_name): Update
4792 * alpha-tdep.c (alpha_register_name): Update.
4793 * arch-utils.c (legacy_register_name): Update.
4794 * arch-utils.h (legacy_register_name): Update.
4795 * avr-tdep.c (avr_register_name): Update.
4796 * ia64-tdep.c (ia64_register_name): Update.
4797 * i386-tdep.c (i386_register_name): Update.
4798 * sparc-tdep.c (sparc32_register_name): Update.
4799 (sparc64_register_name): Update.
4800 (sparclite_register_name): Update.
4801 (sparclet_register_name): Update.
4802 * sh-tdep.c (sh_generic_register_name): Update.
4803 (sh_sh_register_name): Update.
4804 (sh_sh3_register_name): Update.
4805 (sh_sh3e_register_name): Update.
4806 (sh_sh_dsp_register_name): Update.
4807 (sh_sh3_dsp_register_name): Update.
4808 (sh_sh4_register_name): Update.
4809 (sh_sh64_register_name): Update.
4810 * s390-tdep.c (s390_register_name): Update.
4811 * rs6000-tdep.c (rs6000_register_name): Update.
4812 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4813 (ns32k_register_name_32382): Update.
4814 * d10v-tdep.c (d10v_ts2_register_name): Update.
4815 (d10v_ts3_register_name): Update.
4816 * xstormy16-tdep.c (xstormy16_register_name): Update.
4817 * vax-tdep.c (vax_register_name): Update.
4818 * v850-tdep.c (v850_register_name): Update.
4819 * m68hc11-tdep.c (m68hc11_register_name): Update.
4820 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4821 (am33_register_name): Update.
4822
ea1e7ef6
GS
48232002-06-17 Grace Sainsbury <graces@redhat.com>
4824
4825 * m68k-tdep.c: Reindented.
4826
9b02dd1b
AC
48272002-06-17 Andrew Cagney <ac131313@redhat.com>
4828
4829 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4830 list of predefined types.
4831
8758dec1
MK
48322002-06-16 Mark Kettenis <kettenis@gnu.org>
4833
b6197528
MK
4834 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4835 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4836 REGISTER_CONVERT_TO_RAW): Remove defines.
4837 (i386_register_virtual_type, i386_register_convertible,
4838 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4839 Remove prototypes.
4840 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4841 macros mentioned above.
4842
82b47e62
MK
4843 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4844 (i386lynx_saved_pc_after_call): Remove prototype.
4845 * i386ly-tdep.c: Include "i386-tdep.h".
4846 (i386lynx_saved_pc_after_call): Make static. Use
4847 read_memory_nobpt instead of read_memory. Use
4848 read_memory_unsigned_integer instead of read_memory_integer.
4849 (i386lynx_init_abi): New function.
4850 (i386lynx_coff_osabi_sniffer): New function.
4851 (_initialize_i386bsd_tdep): New function.
4852
8758dec1
MK
4853 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4854 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4855 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4856 (i386_fix_call_dummy): Remove prototype.
4857 * i386-tdep.c (i386_call_dummy_words): New variable.
4858 (i386_gdbarch_init): Adjust for removal of the
4859 macros mentioned above.
4860
e9e68a56
AC
48612002-06-15 Andrew Cagney <ac131313@redhat.com>
4862
4863 * command.h (add_setshow_auto_boolean_cmd): Replace
4864 add_set_auto_boolean_cmd.
4865 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4866 add_set_auto_boolean_cmd.
4867 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4868 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4869 mask-address'' command.
4870 (show_mask_address): Add cmd parameter.
4871 * remote.c (add_packet_config_cmd): Update. Change type of
4872 set_func and show_func to cmd_sfunc_ftype.
4873 (_initialize_remote): Update `set remote Z-packet'
4874 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4875 (show_remote_protocol_e_packet_cmd): Ditto.
4876 (show_remote_protocol_E_packet_cmd): Ditto.
4877 (show_remote_protocol_P_packet_cmd): Ditto.
4878 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4879 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4880 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4881 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4882 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4883 (show_remote_protocol_Z_packet_cmd): Ditto.
4884 (show_remote_protocol_binary_download_cmd): Ditto.
4885 (show_remote_cmd): Pass NULL to all of above.
4886
fc08ec52
MK
48872002-06-15 Mark Kettenis <kettenis@gnu.org>
4888
4889 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4890 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4891 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4892 POP_FRAME): Remove defines.
4893 (i386_push_arguments, i386_store_struct_return,
4894 i386_extract_return_value, i386_store_return_value,
4895 i386_extract_struct_value_address, i386_push_dummy_frame,
4896 i386_pop_frame): Renove prototypes.
4897 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4898 macros mentioned above.
4899
e707bbc2
AC
49002002-06-15 Andrew Cagney <ac131313@redhat.com>
4901
4902 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4903 add_set_boolean_cmd.
4904 (add_setshow_cmd): New function.
4905 * command.h (add_setshow_boolean_cmd): Replace
4906 add_set_boolean_cmd.
4907 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4908 and ``set rdiromatzero''.
4909 * maint.c (_initialize_maint_cmds): Update commented out code.
4910 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4911 * target.c (initialize_targets): Update `set
4912 trust-readonly-sections'.
4913 * remote.c (_initialize_remote): Update `set remotebreak'.
4914
42fdc8df
MK
49152002-06-15 Mark Kettenis <kettenis@gnu.org>
4916
93924b6b
MK
4917 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4918 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4919 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4920 fit into multi-arch framework.
4921 (i386_breakpoint_from_pc): New function.
4922 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4923 above.
4924
42fdc8df
MK
4925 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4926 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4927 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4928 (i386_frameless_function_invocation, i386_frame_num_args,
4929 i386_frame_init_saved_regs): Remove prototypes.
4930 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4931 macros mentioned above.
4932
9773a94b
AC
49332002-06-15 Andrew Cagney <ac131313@redhat.com>
4934
4935 * cli/cli-decode.c (set_cmd_cfunc): Update.
4936 (set_cmd_sfunc): Update.
4937 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4938 (set_cmd_sfunc, set_cmd_cfunc): Update.
4939 * cli/cli-decode.h: Update.
4940
6e157172
MK
49412002-06-15 Mark Kettenis <kettenis@gnu.org>
4942
4943 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4944 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4945
7f19b9a2
AC
49462002-06-15 Andrew Cagney <ac131313@redhat.com>
4947
4948 * defs.h (auto_boolean): Declare enum.
4949 * command.h (cmd_auto_boolean): Delete enum.
4950 * mips-tdep.c (mask_address_var): Update.
4951 (mips_mask_address_p): Update.
4952 (show_mask_address): Update.
4953 * remote.c (struct packet_config): Update.
4954 (update_packet_config): Update.
4955 (show_packet_config_cmd): Update.
4956 (packet_ok): Update.
4957 (add_packet_config_cmd): Update.
4958 (_initialize_remote):
4959 * command.h: Update.
4960 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4961 (do_setshow_command): Update.
4962 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4963 * cli/cli-decode.h: Update.
4964
1cf88de5
MK
49652002-06-15 Mark Kettenis <kettenis@gnu.org>
4966
22ba8cf2
MK
4967 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4968 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4969 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4970 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4971 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4972 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4973
762c5349
MK
4974 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4975 list of DJGPP COFF targets.
4976
091198bb
MK
4977 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4978 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4979 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4980 (FP0_REGNUM): Remove define.
4981 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4982 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4983 (i386_register_virtual_size): Remove protoype.
4984 * i386-tdep.c (i386_register_virtual_size): Removed.
4985 (i386_extract_return_value, i386_store_return_value): Use
4986 FP0_REGNUM instead of NUM_FREGS to determine whether the
4987 floating-point registers are available.
4988 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4989 Adjust for removal of macros mentioned above.
4990
49912002-06-15 Mark Kettenis <kettenis@gnu.org>
4992
fcc9bf01
MK
4993 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4994 comments.
4995 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4996 Remove prototypes.
4997 (supply_gregset, fill_gregset): Remove use of register keyword and
4998 remove declaration for regmap. Use I386_NUM_GREGS instead of
4999 NUM_REGS and NUM_FREGS.
5000 (FPREGSET_FSAVE_OFFSET): Remove.
5001 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5002 NUM_FREGS to determine whether the floating-point registers are
5003 available.
5004
65e78234
MK
5005 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5006 gnu_store_registers): Replace usage of NUM_GREGS with
5007 I386_NUM_GREGS.
5008
98df6387
MK
5009 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5010 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5011 usage of NUM_GREGS with I386_NUM_GREGS.
5012
099a9414
MK
5013 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5014
57976e88
MK
5015 * i386bsd-nat.c: Include "i386-tdep.h".
5016 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5017 I386_NUM_GREGS.
5018
b335f4a6
MK
5019 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5020 and associated comment. They no longer make any sense, since we
5021 don't use this file anymore on Linux.
5022
1cf88de5
MK
5023 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5024 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5025 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5026 elements in these arrays.
5027 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5028 MAX_NUM_REGS.
5029
daa66587
MK
50302002-06-15 Mark Kettenis <kettenis@gnu.org>
5031
5032 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5033 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5034
26e9b323
AC
50352002-06-14 Andrew Cagney <cagney@redhat.com>
5036
5037 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5038 EXTRACT_RETURN_VALUE.
5039 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5040 EXTRACT_STRUCT_VALUE_ADDRESS.
5041 * gdbarch.h, gdbarch.c: Regenerate.
5042
5043 * values.c (value_being_returned): Handle
5044 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5045 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5046
5047 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5048 * arm-tdep.c (arm_gdbarch_init): Update.
5049 * avr-tdep.c (avr_gdbarch_init): Update.
5050 * cris-tdep.c (cris_gdbarch_init): Update.
5051 * d10v-tdep.c (d10v_gdbarch_init): Update.
5052 * ia64-tdep.c (ia64_gdbarch_init): Update.
5053 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5054 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5055 * s390-tdep.c (s390_gdbarch_init): Update.
5056 * sh-tdep.c (sh_gdbarch_init): Update.
5057 * s390-tdep.c (s390_gdbarch_init): Update.
5058 * sparc-tdep.c (sparc_gdbarch_init): Update.
5059 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5060 * v850-tdep.c (v850_gdbarch_init): Update.
5061 * vax-tdep.c (vax_gdbarch_init): Update.
5062 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5063 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5064
5065 * config/arc/tm-arc.h: Update.
5066 * config/d30v/tm-d30v.h: Update.
5067 * config/fr30/tm-fr30.h: Update.
5068 * config/h8300/tm-h8300.h: Update.
5069 * config/h8500/tm-h8500.h: Update.
5070 * config/i386/tm-i386.h: Update.
5071 * config/i386/tm-ptx.h: Update.
5072 * config/i386/tm-symmetry.h: Update.
5073 * config/i960/tm-i960.h: Update.
5074 * config/m32r/tm-m32r.h: Update.
5075 * config/m68k/tm-delta68.h: Update.
5076 * config/m68k/tm-linux.h: Update.
5077 * config/m68k/tm-m68k.h: Update.
5078 * config/m88k/tm-m88k.h: Update.
5079 * config/mcore/tm-mcore.h: Update.
5080 * config/mips/tm-mips.h: Update.
5081 * config/mn10200/tm-mn10200.h: Update.
5082 * config/pa/tm-hppa.h: Update.
5083 * config/pa/tm-hppa64.h: Update.
5084 * config/sparc/tm-sp64.h: Update.
5085 * config/sparc/tm-sparc.h: Update.
5086 * config/sparc/tm-sparclet.h: Update.
5087 * config/z8k/tm-z8k.h: Update.
5088
5179e78f
AC
50892002-06-14 Andrew Cagney <cagney@redhat.com>
5090
5091 * Makefile.in (i386_linux_tdep_h): Define.
5092 (i386_tdep_h, i387_tdep_h): Define.
5093 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5094 $(i386_tdep_h) and $(i387_tdep_h).
5095 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5096
8201327c
MK
50972002-06-14 Mark Kettenis <kettenis@gnu.org>
5098
edf393ac
MK
5099 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5100 Already covered by the default.
5101
896fb97d
MK
5102 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5103 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5104 (i386_gdbarch_init): Initialize long_double_format and long_double
5105 bit.
5106
8201327c
MK
5107 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5108 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5109 Move these to ...
5110 * config/i386/i386sol2.mh: ... here.
5111 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5112 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5113 (SIGCONTEXT_PC_OFFSET): Remove define.
5114 (IN_SIGTRAMP): Remove define.
5115 * i386-sol2-tdep.c: New file.
5116
5117 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5118 * config/i386/tm-i386nw.h: Removed.
5119
5120 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5121 USE_STRUCT_CONVENTION): Remove defines.
5122 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5123 (get_longjmp_target): Remove prototype.
5124 (IN_SIGTRAMP): Remove define.
5125 (i386bsd_in_sigtramp): Remove prototype.
5126 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5127 function. Update comment accordingly
5128 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5129 (FRAME_SAVED_PC): Remove define.
5130 (i386bsd_frame_saved_pc): Remove prototype.
5131 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5132 GET_LONGJMP_TARGET): Remove defines.
5133 (get_longjmp_target): Remove prototype.
5134 (IN_SIGTRAMP): Remove define.
5135 (i386bsd_in_sigtramp): Remove prototype.
5136 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5137 function. Update comment accordingly
5138 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5139 (FRAME_SAVED_PC): Remove define.
5140 (i386bsd_frame_saved_pc): Remove prototype.
5141 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5142 Remove prototype.
5143 (USE_STRUCT_CONVENTION): Remove prototype.
5144 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5145 declaration.
5146 (_initialize_i386bsd_nat): Revise logic to determine some
5147 constants at compile time when compiling a native GDB. Warn if
5148 things don't match up with what we expect.
5149 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5150 Remove variables.
5151 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5152 to use date stored in `struct gdbarch_tdep'.
5153 (i386bsd_sigcontext_offset): Remove varaible.
5154 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5155 stored in `struct gdbarch_tdep'.
5156 (i386bsd_frame_saved_pc): Make static.
5157 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5158 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5159 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5160 i386fbsd4_sc_pc_offset): New variables.
5161 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5162 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5163 functions.
5164 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5165 functions.
5166 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5167 Modify the value of i386fbsd_sigtramp_start and
5168 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5169 i386fbsd_sigtramp_end.
5170 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5171 function.
5172
5173 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5174 define to i386-linux-tdep.h.
5175 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5176 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5177 defines.
5178 (i386_linux_register_name, i386_linux_register_byte,
5179 i386_linux_register_raw_size): Remove prototypes.
5180 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5181 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5182 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5183 TARGET_WRITE_PC): Remove defines.
5184 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5185 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5186 i386_linux_write_pc): Remove prototypes.
5187 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5188 (get_longjmp_target): Remove prototype.
5189 * i386-linux-tdep.h: New file.
5190 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5191 * i386-linux-tdep.c: Include "i386-tdep.h" and
5192 "i386-linux-tdep.h".
5193 (i386_linux_register_name, i386_linux_register_byte,
5194 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5195 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5196 Make static.
5197 (i386_linux_init_abi): New function.
5198 (_initialize_i386_linux_tdep): New function.
5199
5200 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5201 (i386_saved_pc_after_call): Remove prototype.
5202 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5203 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5204 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5205 (i386_register_name, i386_stab_reg_to_regnum,
5206 i386_dwarf_reg_to_regnum): Remove prototypes.
5207 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5208 SIZEOF_SSE_REGS): Remove defines.
5209 (REGISTER_BYTES): Remove define.
5210 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5211 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5212 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5213 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5214 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5215 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5216 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5217 (get_longjmp_target): Remove prototype.
5218 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5219 (sigtramp_saved_pc): Remove define.
5220 (i386v4_sigtramp_saved_pc): Remove prototype.
5221 * config/i386/tm-go32.h (FRAME_CHAIN,
5222 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5223 (i386go32_frame_saved_pc): Remove prototype.
5224 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5225 (get_longjmp_target): Remove prototype.
5226 * i386-tdep.h: Include "osabi.h".
5227 (enum i386_abi): Removed.
5228 (enum struct_return): New enum.
5229 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5230 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5231 sc_pc_offset members.
5232 (i386_gdbarch_register_os_abi): Remove prototype.
5233 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5234 I386_SSE_NUM_REGS): New defines.
5235 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5236 I386_SSE_SIZEOF_REGS): New defines.
5237 (i386_register_name, i386_register_byte, i386_register_raw_size):
5238 New prototypes.
5239 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5240 (i386bsd_sigtramp_saved_pc): New prototype.
5241 * i386-tdep.c: Don't include "elf-bfd.h".
5242 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5243 i386_frame_chain, i386_saved_pc_after_call): Make static.
5244 (i386_frame_saved_pc): Rewrite to call architecture dependent
5245 function to deal with signal handlers. Make static.
5246 (i386go32_frame_saved_pc): Removed.
5247 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5248 Removed.
5249 (i386_get_longjmp_target): New function.
5250 (default_struct_convention, pcc_struct_convention,
5251 reg_struct_convention, valid_conventions, struct_convention): New
5252 variables.
5253 (i386_use_struct_convention): New function.
5254 (i386v4_sigtramp_saved_pc): Renamed to
5255 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5256 (i386_pc_in_sigtramp): New function.
5257 (i386_abi_names): Removed.
5258 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5259 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5260 Removed.
5261 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5262 i386_gdbarch_register_os_abi): Removed.
5263 (struct i386_abi_handler): Removed.
5264 (i386_abi_handler_list): Removed.
5265 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5266 functions.
5267 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5268 i386_nw_init_abi): New functions.
5269 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5270 Use set_gdbarch_xxx() calls instead of relying on macros for a
5271 number of calls.
5272 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5273 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5274 Register the various architecture variants defined in this file.
5275
ad2f7632
DJ
52762002-06-14 Daniel Jacobowitz <drow@mvista.com>
5277
5278 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5279 (struct main_type): Remove arg_types member. Update comments for
5280 struct field.
5281 (TYPE_ARG_TYPES): Remove.
5282 (TYPE_FN_FIELD_ARGS): Update.
5283 (smash_to_method_type): Update prototype.
5284
5285 * c-typeprint.c (cp_type_print_method_args): Take method type
5286 instead of argument list. Use new argument layout. Simplify.
5287 (c_type_print_args): Use new argument layout. Simplify.
5288 (c_type_print_base): Update call to cp_type_print_method_args.
5289 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5290 argument; use die->type instead. Update call to
5291 smash_to_method_type.
5292 (read_structure_scope): Update call to dwarf2_add_member_fn.
5293 * gdbtypes.c (allocate_stub_method): Update comment.
5294 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5295 Use new argument layout.
5296 (check_stub_method): Use new argument layout. Don't count
5297 void as an argument.
5298 (print_arg_types): Update comments. Use new argument layout.
5299 (recursive_dump_type): Don't print arg_types member.
5300 * hpread.c (hpread_read_struct_type): Use new argument layout.
5301 (fixup_class_method_type): Likewise.
5302 (hpread_type_lookup): Likewise.
5303 * stabsread.c (read_type): Update calls to read_args and
5304 smash_to_method_type.
5305 (read_args): Use new argument layout. Simplify.
5306 * valops.c (typecmp): Use new argument layout. Update parameters
5307 and comments. Simplify.
5308 (hand_function_call): Use new argument layout.
5309 (search_struct_method): Update call to typecmp.
5310 (find_overload_match): Use new argument layout.
5311
6da02953
DJ
53122002-06-13 Daniel Jacobowitz <drow@mvista.com>
5313
5314 * NEWS: Mention multithreaded debug support for gdbserver.
5315
519b2366
DJ
53162002-06-13 Daniel Jacobowitz <drow@mvista.com>
5317
5318 * MAINTAINERS: Mention NEWS.
5319
6c0d6680
DJ
53202002-06-13 Daniel Jacobowitz <drow@mvista.com>
5321
5322 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5323 (struct mips_objfile_private, compare_pdr_entries): New.
5324 (non_heuristic_proc_desc): Read the ".pdr" section if it
5325 is present.
5326
6529d2dd
AC
53272002-06-12 Andrew Cagney <ac131313@redhat.com>
5328
5329 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5330 (arm_debug): New static variable.
5331 (_initialize_arm_tdep): Add ``set debug arm'' command.
5332
26216b98
AC
53332002-06-12 Andrew Cagney <ac131313@redhat.com>
5334
5335 * Makefile.in (sim_arm_h): Define.
5336 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5337 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5338 (arm_register_sim_regno): New function, map an internal REGNUM
5339 onto a simulator register number.
5340 (arm_gdbarch_init): Set register_sim_regno.
5341
814b3ba0
AH
53422002-06-09 Aldy Hernandez <aldyh@redhat.com>
5343
5344 * MAINTAINERS: Add self.
5345
475b0867
JB
53462002-06-11 Jim Blandy <jimb@redhat.com>
5347
919d772c
JB
5348 * source.c (source_info): Mention whether the symtab has
5349 information about preprocessor macros.
5350
475b0867
JB
5351 Call the command `info macro', not `show macro'.
5352 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5353 Fix error message.
5354 (_initialize_macrocmd): Register `info_macro_command' in
5355 `infolist', not `showlist'.
5356
9e364162
DJ
53572002-06-11 Daniel Jacobowitz <drow@mvista.com>
5358
5359 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5360 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5361 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5362 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5363 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5364 unconditionally.
5365 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5366 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5367 (_initialize_mips_tdep): Remove dead code.
5368 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5369 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5370 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5371 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5372 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5373 MIPS_LAST_FP_ARG_REGNUM): Remove.
5374
23aa4c72
ML
53752002-06-11 Michal Ludvig <mludvig@suse.cz>
5376
5377 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5378 (unwind_tmp_obstack_free, parse_frame_info)
5379 (update_context, cfi_read_fp, cfi_write_fp)
5380 (cfi_frame_chain, cfi_init_extra_frame_info)
5381 (cfi_virtual_frame_pointer): Use the above function.
264d1763 5382 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 5383
70eb15a4
CV
53842002-06-11 Corinna Vinschen <vinschen@redhat.com>
5385
5386 * v850-tdep.c (v850_type_is_scalar): New function.
5387 (v850_use_struct_convention): Match current gcc implementation
5388 as close as possible.
5389 (v850_push_arguments): Fix stack_offset handling. Don't write
5390 struct_addr into register. This is done by v850_store_struct_return.
5391 (v850_extract_return_value): Care for structs.
5392 (v850_store_return_value): Ditto.
5393 (v850_store_struct_return): Actually write address.
5394
482a4d06
ML
53952002-06-11 Michal Ludvig <mludvig@suse.cz>
5396
5397 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5398 without debug information too.
5399
d855c300
AC
54002002-06-10 Andrew Cagney <ac131313@redhat.com>
5401
5402 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5403 Make multi-arch pure.
5404 * gdbarch.h, gdbarch.c: Re-generate.
5405 * arm-tdep.c (arm_print_float_info): Update.
5406 * arch-utils.h (default_print_float_info): Update.
5407 * arch-utils.c (default_print_float_info): Update.
5408 * infcmd.c (float_info): Update call.
5409
dd12a101
AC
54102002-06-10 Andrew Cagney <ac131313@redhat.com>
5411
5412 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5413 the front of the initialize list.
5414
101dcfbe
AC
54152002-06-10 Andrew Cagney <ac131313@redhat.com>
5416
5417 * infrun.c (struct inferior_status): Replace fields
5418 selected_frame_address and selected_level with field
5419 selected_frame_id.
5420 (save_inferior_status): Update. Use get_frame_id.
5421 (struct restore_selected_frame_args): Delete.
5422 (restore_selected_frame): Update. Use frame_find_by_id.
5423 (restore_inferior_status): Update.
5424
5425 * breakpoint.h (struct breakpoint): Change type of
5426 watchpoint_frame to frame_id.
5427 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5428 call to get_current_frame.
5429 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5430 get_current_frame.
5431 (watchpoint_check): Use frame_find_by_id.
5432
5433 * frame.h (record_selected_frame): Delete declaration.
5434 * stack.c (record_selected_frame): Delete function.
5435
5436 * frame.h (struct frame_id): Define.
5437 (get_frame_id): Declare.
5438 (frame_find_by_id): Declare.
5439 * frame.c (frame_find_by_id): New function.
5440 (get_frame_id): New function.
5441
304270b6
AV
54422002-06-10 Andrey Volkov <avolkov@transas.com>
5443
5444 * ser-e7kpc.c: Fix duplicated define and call of
5445 _initialize_ser_e7000pc
5446
2f2cf184
DJ
54472002-06-09 Daniel Jacobowitz <drow@mvista.com>
5448
5449 * signals/signals.c (target_signal_from_host): Fix #ifdef
5450 SIGRTMIN case.
5451 (do_target_signal_to_host): Likewise.
5452
caaa3122
DJ
54532002-06-09 Daniel Jacobowitz <drow@mvista.com>
5454
5455 * mips-tdep.c (mips_find_abi_section): New function.
5456 (mips_gdbarch_init): Call it.
5457
6ac5df3a
MK
54582002-06-09 Mark Kettenis <kettenis@gnu.org>
5459
5460 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5461 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5462 after Andrew's 2002-06-08 gdbarch change.
5463
82ea117a
MK
54642002-06-09 Mark Kettenis <kettenis@gnu.org>
5465
5466 * i386-linux-nat.c (suppy_gregset): Don't supply
5467 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5468 register cache.
5469 (fill_gregset): Don't fetch it under the same circumstances.
5470
3c25f8c7
AC
54712002-06-09 Andrew Cagney <cagney@redhat.com>
5472
5473 * Makefile.in (callback_h): Define.
5474 (remote_sim_h): Update path to remote-sim.h.
5475 (remote-rdp.o): Add $(callback_h).
5476 (remote-sim.o): Use $(callback_h).
5477 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5478 * remote-rdp.c: Include "gdb/callback.h".
5479
1029b7fa
MK
54802002-06-09 Mark Kettenis <kettenis@gnu.org>
5481
5482 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5483 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5484
616675d3
AC
54852002-06-08 Andrew Cagney <ac131313@redhat.com>
5486
a3efda28
AC
5487 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5488 * rdi-share/serpardr.c: Ditto.
5489 * rdi-share/unixcomm.c: Ditto.
5490 * rdi-share/serdrv.c: Ditto.
5491 * rdi-share/hostchan.h: Ditto.
5492 * rdi-share/hostchan.c: Ditto.
5493 * rdi-share/host.h: Ditto.
5494 * rdi-share/devsw.c: Ditto.
5495
c5f10366
AC
5496 * objfiles.h: Change type of obj_private to void pointer.
5497 * pa64solib.c: Update copyright. Don't include "assert.h", use
5498 strcmp instead of STREQ, use LONGEST, do not use PTR
5499 * somsolib.c: Ditto.
5500
616675d3
AC
5501 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5502 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5503 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5504
e4b415d9
AC
55052002-06-08 Andrew Cagney <ac131313@redhat.com>
5506
5507 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5508 (default_get_saved_register): Delete function.
5509 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5510 generic_unwind_get_saved_register.
5511 * gdbarch.h, gdbarch.c: Re-generate.
5512
ca0d0b52
AC
55132002-06-08 Andrew Cagney <ac131313@redhat.com>
5514
5515 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5516 generic_func_frame_chain_valid.
5517 * gdbarch.h, gdbarch.c: Re-generate.
5518 * blockframe.c (generic_func_frame_chain_valid): Only check
5519 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5520 passing FP to PC_IN_CALL_DUMMY.
5521 Fix PR gdb/360.
5522
76860b5f
AC
55232002-06-08 Andrew Cagney <ac131313@redhat.com>
5524
5525 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5526 (register_gdbarch_data): Initialize init_p.
5527 (gdbarch_data): Initialize data pointer using the init function.
5528 (init_gdbarch_data): Delete function.
5529 (gdbarch_update_p): Update.
5530 (initialize_non_multiarch): Update.
5531 (struct gdbarch): Add field initialized_p.
5532 * gdbarch.h, gdbarch.c: Re-generate.
5533
8dda9770
ML
55342002-06-07 Michal Ludvig <mludvig@suse.cz>
5535
5536 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5537 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5538 better do the things actually here.
5539 * x86-64-tdep.c (x86_64_register_name2nr): New.
5540 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5541 (x86_64_gdbarch_init): Respect the above change.
5542 * x86-64-tdep.h (x86_64_register_name2nr)
5543 (x86_64_register_nr2name): Add prototypes.
5544 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5545
3d79a47c
MS
55462002-06-06 Michael Snyder <msnyder@redhat.com>
5547
7bd91a28
MS
5548 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5549 Delete extra braces and re-indent.
5550 (d10v_store_return_value): Char return values
3d79a47c
MS
5551 must be shifted over by one byte in R0.
5552 (d10v_extract_return_value): Delete extra braces, re-indent.
5553
095a4c96
EZ
55542002-06-06 Elena Zannoni <ezannoni@redhat.com>
5555
5556 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5557 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5558 (d10v_integer_to_address): Rewrite.
5559 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5560 the d10v specific functions which take care of converting to the
5561 correct space.
5562
e8a77ca4
EZ
55632002-06-06 Elena Zannoni <ezannoni@redhat.com>
5564
5565 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5566 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5567
4f2e4a4f
AC
55682002-06-02 Andrew Cagney <ac131313@redhat.com>
5569
5570 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5571 includes.
5572 * config/tm-linux.h: Ditto.
5573 * config/alpha/tm-alphalinux.h: Ditto.
5574 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5575 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5576 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5577 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5578 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5579 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5580 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5581 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5582 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5583 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5584 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5585 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5586 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5587 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5588 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5589 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5590 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5591 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5592 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5593 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5594 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5595 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5596 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5597 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5598 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5599 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5600 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5601 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5602 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5603 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5604 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5605 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5606 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5607 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5608 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5609 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5610 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5611
ae2ab2ce
AS
56122002-05-04 Aidan Skinner <aidan@velvet.net>
5613
5614 * ada-exp.tab.c: New file
5615 * ada-exp.y: New file
5616 * ada-lang.c: New file
5617 * ada-lang.h: New file
5618 * ada-lex.c: New file
5619 * ada-lex.l: New file
5620 * ada-tasks.c: New file
5621 * ada-typeprint.c: New file
5622 * ada-valprint.c: New file
5623
0ddd0135
JT
56242002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5625
5626 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5627 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5628
750fbacc
JT
56292002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5630
5631 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5632 insetead of ppc-linux-tdep.o.
5633 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5634 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5635
df94e18a
AC
56362002-06-02 Andrew Cagney <ac131313@redhat.com>
5637
5638 2002-05-07 Christian Groessler <chris@groessler.org>
5639 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5640 bit register contents for little endian hosts.
5641
1a38ab75
AC
56422002-06-01 Andrew Cagney <ac131313@redhat.com>
5643
5644 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5645 any maintainer.
5646
8b1632ac
AC
56472002-06-01 Andrew Cagney <ac131313@redhat.com>
5648
5649 * gdbarch.h: Regenerate.
5650
627054c8
AC
56512002-06-01 Andrew Cagney <ac131313@redhat.com>
5652
5653 * MAINTAINERS: Add everyone to write-after-approval list.
5654
4f460812
AC
56552002-06-01 Andrew Cagney <ac131313@redhat.com>
5656
5657 * stack.c (frame_info): Use frame_register_unwind instead of
5658 saved_regs. Mention when the SP is on the stack or in a register.
5659
5660 * frame.h (frame_register_unwind_ftype): Define. Document.
5661 (struct frame_info): Add field register_unwind and
5662 register_unwind_cache.
5663 (frame_register_unwind): Declare.
5664 (generic_unwind_get_saved_register): Declare.
5665
5666 * frame.c (frame_register_unwind): New function.
5667 (generic_unwind_get_saved_register): New function.
5668
5669 * blockframe.c (generic_call_dummy_register_unwind): New function.
5670 (frame_saved_regs_register_unwind): New function.
5671 (set_unwind_by_pc): New function.
5672 (create_new_frame): New function.
5673 (get_prev_frame): New function.
5674
de888f76
AC
56752002-05-30 Andrew Cagney <ac131313@redhat.com>
5676
5677 * a29k-share/: Delete directory.
5678 * remote-vx29k.c: Delete file.
5679
2f2c3626
JT
56802002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5681
5682 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5683 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5684
9ce5c36a
JT
56852002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5686
5687 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5688 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5689 (sparc64nbsd-nat.o)
5690 (sparcnbsd-nat.o)
5691 (sparcnbsd-tdep.o): New dependency lists.
5692 * NEWS: Note new UltraSPARC NetBSD native configuration.
5693 * configure.host (sparc64-*-netbsd*): New host.
5694 * configure.tgt (sparc-*-netbsdelf*)
5695 (sparc-*-netbsd*): Set gdb_target to nbsd.
5696 (sparc64-*-netbsd*): New target.
5697 * sparc64nbsd-nat.c: New file.
5698 * sparcnbsd-nat.c: New file.
5699 * sparcnbsd-tdep.c: New file.
5700 * sparcnbsd-tdep.h: New file.
5701 * config/sparc/nbsd.mt: New file.
5702 * config/sparc/nbsd64.mh: New file.
5703 * config/sparc/nbsd64.mt: New file.
5704 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5705 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5706 (HOST_IPC): Remove.
5707 * config/sparc/nbsdaout.mt: Remove.
5708 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5709 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5710 (HOST_IPC): Remove.
5711 * config/sparc/nbsdelf.mt: Remove.
5712 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5713 sparc-nat.c compatiblity defines.
5714 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5715 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5716 * config/sparc/tm-nbsd64.h: New file.
5717 * config/sparc/tm-nbsdaout.h: Remove.
5718 * config/sparc/xm-nbsd.h: Remove.
5719
ef3cf062
JT
57202002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5721
5722 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5723 * sparc-tdep.c: Include osabi.h.
5724 (gdbarch_tdep): Add osabi member.
5725 (_initialize_sparc_tdep): Use gdbarch_register.
5726 (sparc_gdbarch_init): Use generic OS ABI framework.
5727 (sparc_dump_tdep): New function.
5728
ee8ff470
KB
57292002-05-30 Kevin Buettner <kevinb@redhat.com>
5730
5731 * corefile.c (do_captured_read_memory_integer): Return non-zero
5732 result.
5733 (safe_read_memory_integer): Copy result of memory read when
5734 status is non-zero. Also, add comments.
5735
7b112f9c
JT
57362002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5737
5738 * Makefile.in (ppc_tdep_h): Define.
5739 (ppc-linux-nat.o)
5740 (ppc-linux-tdep.o)
5741 (rs6000-tdep.o): Use $(ppc_tdep_h).
5742 (ppc-sysv-tdep.o)
5743 (ppcnbsd-nat.o)
5744 (ppcnbsd-tdep.o): New dependency lists.
5745 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5746 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5747 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5748 (ppc_sysv_abi_broken_use_struct_convention)
5749 (ppc_sysv_abi_use_struct_convention)
5750 (ppc_sysv_abi_push_arguments): Move to...
5751 * ppc-sysv-tdep.c: ...here.
5752 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5753 * rs6000-tdep.c (process_note_abi_tag_sections)
5754 (get_elfosabi): Remove.
5755 (rs6000_gdbarch_init): Use generic OS ABI framework.
5756 (rs6000_dump_tdep): New function.
5757 (_initialize_rs6000_tdep): Use gdbarch_register.
5758 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5759 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5760 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5761 of ppc-linux-tdep.o.
5762 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5763 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5764 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5765 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5766 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5767 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5768
480dd42a
JB
57692002-05-29 Jim Blandy <jimb@redhat.com>
5770
5771 * macroscope.c (default_macro_scope): Put `void' in empty argument
5772 list.
5773
4182591f
AC
57742002-05-29 Andrew Cagney <ac131313@redhat.com>
5775
5776 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5777 * arch-utils.c: Include "sim-regno.h".
5778 * gdbarch.sh: Don't include "sim-regno.h".
5779 * gdbarch.h, gdbarch.c: Regenerate.
5780 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5781 here.
5782 * arch-utils.h (legacy_register_sim_regno): To here.
5783 * remote-sim.c (legacy_register_sim_regno): Move function from
5784 here.
5785 * arch-utils.c (legacy_register_sim_regno): To here.
5786
8238d0bf
AC
57872002-05-28 Andrew Cagney <ac131313@redhat.com>
5788
5789 * sim-regno.h: New file.
5790 * Makefile.in (sim_regno_h): Define.
5791 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5792 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5793 (legacy_register_sim_regno): New function.
5794 (one2one_register_sim_regno): New function.
5795 (gdbsim_fetch_register): Rewrite.
5796 (gdbsim_store_register): Only store a register when
5797 REGISTER_SIM_REGNO is valid.
5798 * d10v-tdep.c: Include "sim-regno.h".
5799 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5800 (d10v_ts3_register_sim_regno): Ditto.
5801 * gdbarch.sh: Include "sim-regno.h".
5802 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5803 * gdbarch.h, gdbarch.c: Regenerate.
5804 * arch-utils.h (default_register_sim_regno): Delete declaration.
5805 * arch-utils.c (default_register_sim_regno): Delete function.
5806
485721b1
JT
58072002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5808
5809 * ppcnbsd-nat.c: Rewrite.
5810 * ppcnbsd-tdep.c: New file.
5811 * ppcnbsd-tdep.h: New file.
5812 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5813 solib.o, and solib-svr4.o.
5814 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5815 nbsd-tdep.o, and corelow.o.
5816
697f244d
AC
58172002-05-28 Andrew Cagney <ac131313@redhat.com>
5818
5819 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5820 `tr' and `sed'. Mention that `broken' targets are not expected to
5821 build.
5822
f08caad1 58232002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5824
5825 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5826 Let PC point right after the prologue before looking up symbols.
5827
3139facc
MH
58282002-05-27 Martin M. Hunt <hunt@redhat.com>
5829
5830 * i386-tdep.c (i386_register_virtual_type): Return
5831 builtin_type_vec128i for SSE registers.
5832
5833 * gdbtypes.h (builtin_type_vec128i): Declare.
5834
5835 * gdbtypes.c (build_builtin_type_vec128i): New function.
5836 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5837 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5838 (build_gdbtypes): Initialize new builtin vector types.
5839 (_initialize_gdbtypes): Register new vector types with gdbarch.
5840
6e3ba3b8
JT
58412002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5842
5843 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5844 since it has been multi-arch'd.
5845 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5846 Move Alpha and VAX multi-arch news entries to same section
5847 as other multi-arch news.
5848
93d5585d
JT
58492002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5850
5851 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5852 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5853 static. Rename some register numbers to put them in ns32k-tdep
5854 private namespace.
5855 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5856 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5857 functions.
5858 (_initialize_ns32k_tdep): Use gdbarch_register.
5859 * ns32k-tdep.h: New file.
5860 * ns32knbsd-tdep.c: New file.
5861 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5862 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5863 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5864 REGISTER_BYTES, REGISTER_BYTE): Remove.
5865 * config/ns32k/tm-ns32k.h: New file.
5866 * config/ns32k/tm-umax.h: Remove.
5867
efb2c70e
JT
58682002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5869
5870 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5871 ns32k_store_struct_return, ns32k_extract_return_value,
5872 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5873 functions.
5874 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5875 ns32k_saved_pc_after_call.
5876 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5877 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5878 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5879 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5880 ns32k_extract_struct_value_address.
5881
7bcc927b
JT
58822002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5883
5884 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5885 ns32k_fix_call_dummy): New.
5886 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5887 ns32k_call_dummy_words.
5888 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5889 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5890 CALL_DUMMY_NARGS): Remove.
5891 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5892
78f9d765
JT
58932002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5894
5895 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5896 ns32k_frame_saved_pc, ns32k_frame_args_address,
5897 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5898 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5899 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5900 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5901 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5902 (BREAKPOINT): Remove..
5903 (FRAME_CHAIN): Define as ns32k_frame_chain.
5904 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5905 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5906 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5907 (FRAME_FIND_SAVED_REGS): Remove.
5908 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5909 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5910 (POP_FRAME): Define as ns32k_pop_frame.
5911
f2c762e0
JT
59122002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5913
5914 * ns32k-tdep.c (ns32k_register_byte_32082,
5915 ns32k_register_byte_32382, ns32k_register_raw_size,
5916 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5917 functions.
5918 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5919 ns32k_register_byte_32382.
5920 * config/ns32k/tm-umax.h: Update copyright years.
5921 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5922 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5923 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5924 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5925 (ns32k_get_enter_addr): Fix prototype.
5926
af137673
JT
59272002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5928
5929 * ns32k-tdep.c: Update copyright years.
5930 (ns32k_register_name_32082): New function.
5931 (ns32k_register_name_32382): Ditto.
5932 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5933 (REGISTER_NAME): Define as ns32k_register_name_32382.
5934 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5935 (REGISTER_NAME): Define as ns32k_register_name_32082.
5936
a8bc7b56
JB
59372002-05-24 Jim Blandy <jimb@redhat.com>
5938
5939 * dwarf2read.c (free_line_header): Use xfree, not free.
5940
83a45910
JT
59412002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5942
5943 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5944 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5945
0db71247
AC
59462002-05-23 Andrew Cagney <ac131313@redhat.com>
5947
5948 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5949
b9e5e4dd
AC
59502002-05-23 Andrew Cagney <ac131313@redhat.com>
5951
5952 From Ross Alexander at NEC Europe:
5953 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5954
de530e84
MS
59552002-05-23 Michael Snyder <msnyder@redhat.com>
5956
5957 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5958 for input, rather than parse_and_eval_address.
5959
b91b96f4
AC
59602002-05-23 Andrew Cagney <ac131313@redhat.com>
5961
5962 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5963 * Makefile.in (sim_d10v_h): Update definition.
5964
8b279e7a
AC
59652002-05-24 Andrew Cagney <cagney@redhat.com>
5966
5967 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5968 change `2002-05-22 Michael Snyder' below.
5969 (d10v_push_arguments): Ditto.
5970 (d10v_extract_return_value): Ditto.
5971
0a3d0425
JB
59722002-05-23 Jim Blandy <jimb@redhat.com>
5973
5974 * macrotab.c (check_for_redefinition): Don't complain if the new
5975 definition is the same as the previous one. Take more arguments
5976 to allow the comparison.
5977 (macro_define_object, macro_define_function): Pass more arguments
5978 to check_for_redefinition.
5979
78eac43e
MS
59802002-05-22 Michael Snyder <msnyder@redhat.com>
5981
5982 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5983 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5984 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5985 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5986 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5987 Add a temp variable to save a call (and a memory read).
5988 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5989 if possible (so that PC_IN_CALL_DUMMY will work).
5990
9bc1edb8
CV
59912002-05-22 Corinna Vinschen <vinschen@redhat.com>
5992
5993 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5994
005ef3d2
ML
59952002-05-22 Michal Ludvig <mludvig@suse.cz>
5996
5997 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5998 fde->cie_ptr.
5999 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6000 (dwarf2_build_frame_info): Add offset to fde->initial_location
6001 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
6002 (execute_stack_op): Change type of 'result' from ULONGEST to
6003 CORE_ADDR.
005ef3d2 6004
fcf4f891
JT
60052002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6006
6007 * config/alpha/tm-nbsd.h: Include solib.h.
6008
cfef91e4
JT
60092002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6010
6011 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6012 assumptions about the host's byte order.
6013
9964235a
JT
60142002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6015
6016 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6017 to dependency list.
6018 * alphanbsd-tdep.c: Include solib-svr4.h.
6019 * shnbsd-tdep.c: Ditto.
6020
9eeef8ef
JT
60212002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6022
6023 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6024 nbsd-tdep.h to dependency list.
6025 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6026 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6027 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6028 nbsdaout.mh and nbsdelf.mh consistently.
6029 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6030 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6031 nbsdaout.mt and nbsdelf.mh consistently.
6032 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6033 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6034 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6035 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6036 a.out shared library stuff from here...
6037 * config/nm-nbsdaout.h: ...to here.
6038 * config/tm-nbsd.h: Remove.
6039 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6040 * config/arm/nbsd.mh: Remove.
6041 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6042 nbsd-tdep.o.
6043 * config/arm/nbsdaout.mh: New file.
6044 * config/arm/nbsdelf.mh: New file.
6045 * config/arm/nm-nbsdaout.h: New file.
6046 * config/i386/nbsd.mh: Remove.
6047 * config/i386/nbsd.mt: Remove.
6048 * config/i386/nbsdaout.mh: New file.
6049 * config/i386/nbsdaout.mt: New file.
6050 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6051 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6052 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6053 i386_register_u_addr): Remove.
6054 * config/i386/nm-nbsdaout.h: New file.
6055 * config/i386/nm-nbsdelf.h: Remove.
6056 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6057 (USE_STRUCT_CONVENTION): Remove.
6058 * config/i386/tm-nbsdaout.h: New file.
6059 * config/i386/tm-nbsdelf.h: Remove.
6060 * config/m68k/nbsd.mh: Remove.
6061 * config/m68k/nbsd.mt: Remove.
6062 * config/m68k/nbsdaout.mh: New file.
6063 * config/m68k/nbsdaout.mt: New file.
6064 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6065 * config/m68k/nm-nbsdaout.h: New file.
6066 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6067 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6068 * config/ns32k/nbsd.mh: Remove.
6069 * config/ns32k/nbsd.mt: Remove.
6070 * config/ns32k/nbsdaout.mh: New file.
6071 * config/ns32k/nbsdaout.mt: New file.
6072 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6073 * config/ns32k/nm-nbsdaout.h: New file.
6074 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6075 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6076 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6077 (SVR4_SHARED_LIBS): Remove.
6078 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6079 * config/sparc/nbsd.mh: Remove.
6080 * config/sparc/nbsd.mt: Remove.
6081 * config/sparc/nbsdaout.mh: New file.
6082 * config/sparc/nbsdaout.mt: New file.
6083 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6084 * config/sparc/nbsdelf.mt: New file.
6085 * config/sparc/nm-nbsdaout.h: New file.
6086 * config/sparc/nm-nbsdelf.h: Remove.
6087 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6088 * config/sparc/tm-nbsdaout.h: New file.
6089
257ce470
JT
60902002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6091
6092 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6093 mipsnbsd-tdep.c
6094 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6095
76a6d5fe
JT
60962002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6097
6098 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6099 shnbsd-nat.c.
6100 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6101
45888261
JT
61022002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6103
6104 * NEWS: Note new MIPS NetBSD native configuration.
6105 * configure.host (mips*-*-netbsd*): New host.
6106 * configure.tgt (mips*-*-netbsd*): New target.
6107 * mipsnbsd-nat.c: New file.
6108 * mipsnbsd-tdep.c: New file.
6109 * mipsnbsd-tdep.h: New file.
6110 * config/mips/nbsd.mh: New file.
6111 * config/mips/nbsd.mt: New file.
6112 * config/mips/nm-nbsd.h: New file.
6113 * config/mips/tm-nbsd.h: New file.
6114
70f80edf
JT
61152002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6116
6117 * Makefile.in (SFILES): Add osabi.c.
6118 (COMMON_OBS): Add osabi.o.
6119 (osabi.o): New dependency list.
6120 * osabi.c: New file.
6121 * osabi.h: New file.
6122 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6123
6124 * Makefile.in (alpha_tdep_h): Define and use instead of
6125 alpha-tdep.h.
6126 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6127 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6128 Remove.
6129 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6130 * alpha-tdep.h: Include osabi.h.
6131 (alpha_abi): Remove.
6132 (gdbarch_tdep): Use generic OS ABI framework.
6133 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6134 gdbarch_register_osabi.
6135 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6136 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6137 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6138
6139 * Makefile.in (sh_tdep_h): Add osabi.h.
6140 * sh-tdep.h (sh_osabi): Remove.
6141 (gdbarch_tdep): Use generic OS ABI framework.
6142 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6143 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6144 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6145 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6146
6147 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6148 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6149 gdbarch_register_osabi.
6150 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6151 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6152 (get_elfosabi): Rename to...
6153 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6154 ABI framework support routines.
6155 (arm_gdbarch_init): Use generic OS ABI framework.
6156 (arm_dump_tdep): Likewise.
6157 (_initialize_arm_tdep): Likewise.
6158 * arm-tdep.h: Include osabi.h.
6159 (arm_abi): Remove.
6160 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6161 osabi member.
6162 (arm_gdbarch_register_os_abi): Remove prototype.
6163 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6164 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6165
6166 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6167 * mips-tdep.c: Include osabi.h.
6168 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6169 OS ABI framework.
6170
d194345b
KH
61712002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6172
6173 * h8300-tdep.c: Fix formatting.
6174
70c6b0d1
EZ
61752002-05-20 Elena Zannoni <ezannoni@redhat.com>
6176
6177 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6178 printing vector registers.
6179
165b8e33
AC
61802002-05-19 Andrew Cagney <ac131313@redhat.com>
6181
6182 From Fernando Nasser:
6183 * remote.c (remote_async_open_1): Re-throw the exception when the
6184 connection fails.
6185 (remote_cisco_open): Ditto.
6186 (remote_open_1): Ditto.
6187
36918e70
AC
61882002-05-19 Andrew Cagney <ac131313@redhat.com>
6189
6190 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6191 (remote_start_remote): Add uiout parameter. Pass through to
6192 remote_start_remote_dummy.
6193 (remote_open_1): Use catch_exception instead of catch_errors.
6194 (remote_async_open_1): Ditto.
6195 (remote_cisco_open): Ditto.
6196
ae44c0c4
AC
61972002-05-19 Andrew Cagney <ac131313@redhat.com>
6198
6199 * remote.c (remote_start_remote): Replace PTR with void pointer.
6200 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6201 static.
6202
8efe637d
AC
62032002-05-18 Andrew Cagney <ac131313@redhat.com>
6204
6205 * gdb_indent.sh: Allow the script to be run in the sim directory.
6206
2f1b5984
MK
62072002-05-18 Mark Kettenis <kettenis@gnu.org>
6208
f0f625e2
MK
6209 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6210 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6211
2f1b5984
MK
6212 * corelow.c (core_open): Only call set_gdbarch_from_file if
6213 exec_bfd is NULL.
6214
fc974602
AV
62152002-05-17 Andrey Volkov <avolkov@transas.com>
6216
6217 * h8300-tdep.c: Add support of EXR register
6218 * config/h8300/tm-h8300.h: Ditto.
6219
906709f4
AV
62202002-05-17 Andrey Volkov <avolkov@transas.com>
6221
6222 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6223
6e591d68
AV
62242002-05-17 Andrey Volkov <avolkov@transas.com>
6225
6226 * h8300-tdep.c: Change literal regnums to REGNO.
6227
84f0252a
JB
62282002-05-17 Jim Blandy <jimb@redhat.com>
6229
e0e9281e
JB
6230 * NEWS: Note addition of macro support.
6231
84f0252a
JB
6232 Expand preprocessor macros in C expressions.
6233 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6234 (scan_macro_expansion, scanning_macro_expansion,
6235 finished_macro_expansion): New function declarations.
6236 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6237 variable declarations.
6238 * parser-defs.h (expression_context_pc): New declaration.
6239 * parse.c (expression_context_pc): New variable.
6240 (parse_exp_1): Set expression_context_pc, as well as
6241 expression_context_block.
6242 * c-exp.y (yylex): If we're not already reading the result of a
6243 macro expansion, try to macro-expand the next token. When we're
6244 done scanning a macro expansion, switch back to the mainline text.
6245 Commas and `if's in a macro's expansion don't terminate the input.
6246 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6247 (macro_original_text, macro_expanded_text,
6248 expression_macro_lookup_func, expression_macro_lookup_baton): New
6249 variables.
6250 (scan_macro_expansion, scanning_macro_expansion,
6251 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6252 c_preprocess_and_parse): New functions.
6253 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6254 c_preprocess_and_parse, instead of c_parse.
6255 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6256 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6257
1c509ca8
JR
6258Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6259
6260 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6261 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6262 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6263
2250ee0c
CV
62642002-05-17 Corinna Vinschen <vinschen@redhat.com>
6265
6266 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6267
ab3b8126
JT
62682002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6269
6270 * Makefile.in (sh_tdep_h): Define and use.
6271 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6272 register enum): Move to...
6273 * * sh-tdep.h: ...here.
6274 * sh-tdep.c: Include sh-tdep.h.
6275 * sh3-rom.c: Likewise.
6276 * shnbsd-tdep.c: Likewise.
6277
ed9d4749
MS
62782002-05-16 Michael Snyder <msnyder@redhat.com>
6279
6280 * arm-tdep.c: Spelling fix in comment.
6281
2e276125
JB
62822002-05-16 Jim Blandy <jimb@redhat.com>
6283
6821892e
JB
6284 Add commands for manually expanding macros and showing their
6285 definitions.
6286 * macrocmd.c, macroscope.c, macroscope.h: New files.
6287 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6288 (macroscope_h): New variable.
6289 (HFILES_NO_SRCDIR): Add macroscope.h.
6290 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6291 (macroscope.o, macrocmd.o): New rules.
6292
2e276125
JB
6293 Teach the Dwarf 2 reader to read macro information.
6294 * dwarf2read.c: #include "macrotab.h".
6295 (dwarf_macinfo_buffer): New variable.
6296 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6297 dwarf_macinfo_size.
6298 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6299 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6300 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6301 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6302 dwarf2_macro_spaces_in_definition): New complaints.
6303 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6304 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6305 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6306 the partial symbol table.
6307 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6308 from what's recorded in the partial symbol table.
6309 (read_file_scope): If the compilation unit has a
6310 `DW_AT_macro_info' attribute, read its macro information.
6311 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6312
2f53fe6c
DJ
63132002-05-16 Daniel Jacobowitz <drow@mvista.com>
6314
6315 Fix PR gdb/546
6316 * ser-tcp.c: Don't include <netinet/udp.h>.
6317
2be99286
SC
63182002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6319
6320 * MAINTAINERS: Update my email address.
6321
c9af212b 63222002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
6323
6324 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6325 include file of the same name.
6326
bf5f1a52
CV
63272002-05-16 Corinna Vinschen <vinschen@redhat.com>
6328
6329 * configure.tgt: Mark v850 as multi-arched.
6330 * config/v850/tm-v850.h: Remove file.
6331 * config/v850/v850.mt: Eliminate TM_FILE.
6332
435e042a
CV
63332002-05-16 Corinna Vinschen <vinschen@redhat.com>
6334
6335 * v850-tdep.c: Full multi-arch.
6336 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6337 Define GDB_MULTI_ARCH to 2.
6338
9819c6c8
PM
63392002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6340
6341 * p-exp.y (current_type): New static variable.
6342 Carries the type of the expression at the position that is parsed.
6343 (push_current_type, pop_current_type): Two new functions. Used
6344 to store/restore current_type in expression on specific tokens.
c9af212b
RE
6345 (search_field): New static variable. Set to one after parsing a point
6346 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
6347 (FIELDNAME): New token. After a point only a token belonging to
6348 current_type type definition is allowed.
6349 (all over token rules): reset and change current_type according
6350 to rules.
6351 (exp '[' rule): insert implicit array index field if
6352 exp is a pascal string type.
6353
3a06899a
CV
63542002-05-16 Corinna Vinschen <vinschen@redhat.com>
6355
6356 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6357 frame info. Use frame_info's saved_regs instead of matching member
6358 in extra_frame_info throughout.
6359 (v850_frame_init_saved_regs): New function.
6360 (v850_init_extra_frame_info): Move most functionality into
6361 v850_frame_init_saved_regs().
6362 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6363 (v850_frame_find_saved_regs): Remove declaration.
6364 (FRAME_FIND_SAVED_REGS): Remove definition.
6365 (v850_frame_init_saved_regs): Add declaration.
6366 (FRAME_INIT_SAVED_REGS): Add definition.
6367
6ed14b0e
CV
63682002-05-16 Corinna Vinschen <vinschen@redhat.com>
6369
6370 * v850-tdep.c: Begin multi-arch'ing v850.
6371 (v850_target_architecture_hook): Remove function.
6372 (v850_gdbarch_init): New function. Add code previously in
6373 v850_target_architecture_hook().
6374 (_initialize_v850_tdep): Don't set target_architecture_hook.
6375 Call register_gdbarch_init() instead.
6376
42725910
DJ
63772002-05-16 Daniel Jacobowitz <drow@mvista.com>
6378
6379 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6380 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6381 (fixup_class_method_type): Likewise.
6382
99d9066e
JB
63832002-05-15 Jim Blandy <jimb@redhat.com>
6384
6385 Add macro structures to GDB's symbol tables. Nobody puts anything
6386 in them yet.
6387 * symtab.h (struct symtab): New member: `macro_table'.
6388 * buildsym.h (pending_macros): New global variable.
6389 * buildsym.c: #include "macrotab.h".
6390 (buildsym_init): Initialize `pending_macros'.
6391 (end_symtab): If we found macro information while reading a CU's
6392 debugging info, do build a symtab structure for it. Make the
6393 symtab point to the macro information, and clear the
6394 `pending_macros' pointer which held it while we were reading the
6395 debug info.
6396 (really_free_pendings): Free any pending macro table.
6397 * objfiles.h (struct objfile): New member: `macro_cache'.
6398 * objfiles.c (allocate_objfile): Set allocate and free functions
6399 for the macro cache's objstack.
6400 (free_objfile): Empty the macro cache's obstack.
6401 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6402 set new allocate and free functions for it.
6403 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6404 free functions for the macro cache's objstack. (Why is this
6405 function building its own objfile?)
6406 * symmisc.c (print_objfile_statistics): Print statistics on the
6407 macro bcache.
6408 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6409
c899585b
RE
64102002-05-15 Richard Earnshaw <rearnsha@arm.com>
6411
6412 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6413 (REGISTER_U_ADDR): Delete definition.
6414 (arm_register_u_addr): Delete declaration.
6415
a6cdd8c5
RE
64162002-05-15 Richard Earnshaw <rearnsha@arm.com>
6417
6418 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6419 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6420
c97dcfc7
AC
64212002-05-14 Andrew Cagney <ac131313@redhat.com>
6422
6423 * regcache.c (register_valid): Revise comments refering to "Not
6424 available" and "unavailable".
6425 * frame.c (frame_register_read): Ditto.
6426 * findvar.c (value_of_register): Ditto.
6427
93021b7d
AC
64282002-05-15 Andrew Cagney <cagney@redhat.com>
6429
6430 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6431 (remote-sim.o): Update dependencies.
6432 (d10v-tdep.o): Specify dependencies.
6433 (sim_d10v_h): Define.
6434
a86bc61c
JB
64352002-05-14 Jim Blandy <jimb@redhat.com>
6436
6437 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6438 * macrotab.c (macro_lookup_inclusion, find_definition,
6439 new_macro_table): Same.
6440
6441 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6442 not `! strcmp ()'. This is a dubious improvement.
6443 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6444
6445 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6446 although it's not necessary, to avoid a warning.
6447
2fdde8f8
DJ
64482002-05-14 Daniel Jacobowitz <drow@mvista.com>
6449
6450 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6451 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6452 TYPE_INSTANCE_FLAGS.
6453 (struct main_type): New.
6454 (struct type): Move most members to struct main_type. Change
6455 cv_type and as_type to new type_chain member. Add instance_flags.
6456 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6457 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6458 (finish_cv_type): Remove prototype.
6459 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6460 Set TYPE_CHAIN.
6461 (alloc_type_instance): New function.
6462 (smash_type): New function.
6463 (make_pointer_type, make_reference_type, make_function_type)
6464 (smash_to_member_type, smash_to_method_type): Call smash_type.
6465 (make_qualified_type): New function.
6466 (make_type_with_address_space): Call make_qualified_type.
6467 (make_cv_type): Likewise.
6468 (finish_cv_type): Remove unnecessary function.
6469 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6470 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6471 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6472 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6473 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6474 * hpread.c (hpread_read_struct_type): Likewise.
6475 * stabsread.c (read_struct_type): Likewise.
6476
843fedf4
EZ
64772002-05-14 Elena Zannoni <ezannoni@redhat.com>
6478
6479 * configure.tgt: Add a catch all sh* target, for cases like
6480 sh[2,3,4]-elf and sh-hms.
6481
05a6c72c
KS
64822002-05-14 Keith Seitz <keiths@redhat.com>
6483
6484 * event-loop.c (create_file_handler): Don't do anything but
6485 update data when we are given a fd which we are already
6486 monitoring.
6487
5d085aaf
ML
64882002-05-14 Michal Ludvig <mludvig@suse.cz>
6489
6490 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6491 (update_context): Use __func__ in warnings.
6492
9db8d71f
DJ
64932002-05-14 Daniel Jacobowitz <drow@mvista.com>
6494
6495 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6496 and tcp_close to net_open and net_close.
6497 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6498 using UDP if requested. Don't try to disable Nagle on UDP
6499 sockets.
6500 * remote.c (remote_serial_open): New function. Warn about UDP.
6501 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6502
5dbc6baa
EZ
65032002-05-13 Elena Zannoni <ezannoni@redhat.com>
6504
6505 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6506
cc3023f7
EZ
65072002-05-13 Elena Zannoni <ezannoni@redhat.com>
6508
6509 * configure.tgt: Remove sh-hms target.
6510 * MAINTAINERS: Don't list sh-hms as a separate target.
6511
ec2bcbe7
JB
65122002-05-13 Jim Blandy <jimb@redhat.com>
6513
6514 Add first preprocessor macro-expansion files.
6515 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6516 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6517 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6518 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6519 (COMMON_OBS): Add macrotab.o, macroexp.o.
6520 (macroexp.o, macrotab.o): New rules.
6521
6d531722
AC
65222002-05-13 Andrew Cagney <ac131313@redhat.com>
6523
6524 * config/m88k/tm-m88k.h: Update copyright.
6525 (m88k_target_write_pc): Declare
6526 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6527 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6528 (SHIFT_INST_REGS): Update definition.
6529 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6530 using old definition of TARGET_WRITE_PC.
6531 * regcache.c (generic_target_write_pc): Delete code handling
6532 NNPC_REGNUM.
6533 * gdbarch.sh (NNPC_REGNUM): Delete.
6534 * gdbarch.h, gdbarch.c: Regenerate.
6535
3e3f2739
RE
65362002-05-13 Richard Earnshaw <rearnsha@arm.com>
6537
6538 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6539 builtin reg number.
6540
0004e5a2
DJ
65412002-05-13 Daniel Jacobowitz <drow@mvista.com>
6542
6543 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6544 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6545 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6546 access macros.
6547 * c-typeprint.c (cp_type_print_method_args): Likewise.
6548 (c_type_print_args): Likewise.
6549 * d10v-tdep.c (d10v_push_arguments): Likewise.
6550 (d10v_extract_return_value): Likewise.
6551 * expprint.c (print_subexp): Likewise.
6552 * gdbtypes.c (lookup_primitive_typename): Likewise.
6553 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6554 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6555 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6556 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6557 (TYPE_VECTOR): Likewise.
6558 * hpread.c (hpread_read_struct_type)
6559 (fix_static_member_physnames, fixup_class_method_type)
6560 (hpread_type_lookup): Likewise.
6561 * mdebugread.c (parse_symbol, parse_type): Likewise.
6562 * p-lang.c (is_pascal_string_type): Likewise.
6563 * valops.c (hand_function_call): Likewise.
6564 * x86-64-tdep.c (classify_argument): Likewise.
6565
6566 * hpread.c (hpread_read_function_type)
6567 (hpread_read_doc_function_type): Call replace_type.
6568 * dstread.c (create_new_type): Delete.
6569 (decode_dst_structure, process_dst_function): Call alloc_type.
6570 Use type access macros.
6571
dff95cc7
MK
65722002-05-12 Mark Kettenis <kettenis@gnu.org>
6573
6574 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6575 the're not supported by the current architecture.
6576 (i387_fill_fxsave): Likewise.
6577
bbcd32ad
FF
65782002-05-12 Fred Fish <fnf@redhat.com>
6579
6580 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6581 sect_index_xxx members to index the first slot in section_offsets
6582 if all of the section_offsets are zero.
6583
89cf4787
MK
65842002-05-12 Mark Kettenis <kettenis@gnu.org>
6585
6586 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6587 checked in with last change.
6588
1f77ffc5
MK
65892002-05-12 Mark Kettenis <kettenis@gnu.org>
6590
6591 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6592 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6593 config.sub.
6594
89b8b4a9
DJ
65952002-05-12 Daniel Jacobowitz <drow@mvista.com>
6596
6597 * Makefile.in: Update dependencies.
6598
14a5e767
AC
65992002-05-11 Andrew Cagney <ac131313@redhat.com>
6600
6601 * language.c (local_hex_string_custom): Simplify. Do not depend
6602 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6603
6604 * memattr.c (mem_info_command): Replace calls to
6605 longest_local_hex_string and longest_local_hex_string_custom.
6606 * buildsym.c (make_blockvector): Ditto.
6607 * solib.c (info_sharedlibrary_command): Ditto.
6608 * tracepoint.c (tracepoints_info): Ditto.
6609 * symtab.c (print_msymbol_info): Ditto.
6610
6611 * language.c (local_hex_string): Delete.
6612 (local_hex_string_custom): Delete.
6613 (longest_local_hex_string): Rename to local_hex_string.
6614 (longest_local_hex_string_custom): Rename to
6615 local_hex_string_custom.
6616 * language.h (local_hex_string): Change parameter type to LONGEST.
6617 (local_hex_string_custom): Ditto.
6618 (longest_local_hex_string): Delete declaration.
6619 (longest_local_hex_string_custom): Ditto.
6620
6621 * solib.c: Update copyright.
6622 * memattr.c: Update copyright.
6623
13d01224
AC
66242002-05-11 Andrew Cagney <ac131313@redhat.com>
6625
6626 * arch-utils.h (legacy_register_to_value): Declare.
6627 (legacy_value_to_register): Declare.
6628 (legacy_convert_register_p): Declare.
6629 * arch-utils.c (legacy_register_to_value): New function.
6630 (legacy_value_to_register): New function.
6631 (legacy_convert_register_p): New function.
6632
6633 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6634 (VALUE_TO_REGISTER): Define.
6635 (CONVERT_REGISTER_P): Define.
6636 * gdbarch.h, gdbarch.c: Regenerate.
6637
6638 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6639 VALUE_TO_REGISTER.
6640 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6641 CONVERT_REGISTER_P.
6642
4a1970e4
DJ
66432005-05-11 Daniel Jacobowitz <drow@mvista.com>
6644 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6645
6646 * Makefile.in: Update dependencies for valops.c.
6647 * valops.c: Include "gdb_assert.h".
6648 (typecmp): Skip THIS parameter to methods.
6649 (find_method_list): Remove static_memfuncp argument,
6650 update callers. Check for stub methods.
6651 (find_value_oload_method_list): Don't set *static_memfuncp.
6652 (find_overload_match): Don't check for stub methods. Assert
6653 that methods are not stubbed. Handle static methods.
6654 (value_find_oload_method_list): Remove static_memfuncp argument.
6655 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6656 to the argument list for static stub methods.
6657 * value.h (value_find_oload_method_list): Update prototype.
6658
b2e75d78
AC
66592002-05-11 Andrew Cagney <ac131313@redhat.com>
6660
6661 * arch-utils.h (generic_register_size): Declare.
6662 (generic_register_raw_size, generic_register_virtual_size): Delete
6663 declarations.
6664 * arch-utils.c (generic_register_raw_size): Delete.
6665 (generic_register_size): New function.
6666 (generic_register_virtual_size): Delete.
6667
6668 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6669 default generic_register_size.
6670 * gdbarch.h, gdbarch.c: Re-generate.
6671
6672 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6673 register_virtual_size.
6674 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6675 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6676
451fbdda
AC
66772002-05-11 Andrew Cagney <ac131313@redhat.com>
6678
6679 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6680 * gdbarch.h, gdbarch.c: Regenerate.
6681 * gnu-v3-abi.c: Update copyright.
6682 (vtable_address_point_offset): Update.
6683 (gnuv3_rtti_type): Update.
6684 (gnuv3_baseclass_offset): Update.
6685 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6686 (init_fetch_link_map_offsets): Update.
6687 * remote.c (get_remote_state): Update.
6688
6d2f5cea
DJ
66892002-05-11 Daniel Jacobowitz <drow@mvista.com>
6690
6691 * TODO: Remove value_headof/value_from_vtable_info comment.
6692 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6693 * values.c (value_headof, value_from_vtable_info): Delete.
6694 * value.h (value_from_vtable_info): Delete prototype.
6695
d2324da4
AC
66962002-05-11 Andrew Cagney <ac131313@redhat.com>
6697
6698 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6699 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6700 $(gdb_regex_h).
6701 (gdb_assert_h): Define.
6702 (gdb_wait_h): Define.
6703 (gdb_regex_h): Define.
6704
5c717440
DJ
67052002-05-11 Daniel Jacobowitz <drow@mvista.com>
6706
6707 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6708 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6709
6c7861b3
JT
67102002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6711
6712 * nbsd-tdep.c: Fix comment.
6713
ea5bc2a6
JT
67142002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6715
6716 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6717 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6718 (nbsd-tdep.o): New dependency list.
6719 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6720 nbsd-tdep.h.
6721 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6722 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6723 * nbsd-tdep.c: New file.
6724 * nbsd-tdep.h: New file.
6725 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6726 nbsd-tdep.h.
6727 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6728 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6729 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6730 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6731
b28da865
JT
67322002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6733
6734 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6735 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6736 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6737 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6738 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6739 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6740
4b8ff1fa
JT
67412002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6742
6743 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6744 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6745 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6746 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6747 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6748 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6749 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6750
dfe6eb1f
JT
67512002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6752
6753 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6754 fetch_elfcore_registers to...
6755 * i386nbsd-tdep.c: ...here.
6756 (i386nbsd_use_struct_convention): Rename to...
6757 (i386nbsd_aout_use_struct_convention): ...this.
6758 (i386nbsd_supply_reg): New function.
6759 (i386nbsd_fill_reg): New function.
6760 (fetch_core_registers): Use i386nbsd_supply_reg.
6761 (fetch_elfcore_registers): Likewise.
6762 (_initialize_i386nbsd_tdep): New function.
6763 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6764 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6765 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6766 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6767 (i386nbsd_aout_use_struct_convention): ...this.
6768
20cb8cda
JT
67692002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6770
6771 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6772 (store_inferior_registers): Use shnbsd_fill_reg.
6773 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6774 sh_nbsd_supply_register): Collapse into...
6775 (shnbsd_supply_reg): ...this.
6776 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6777 (shnbsd_fill_reg): ...this.
6778 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6779 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6780 (fetch_core_registers): Use shnbsd_supply_reg.
6781 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6782 (sh_nbsd_core_fns): Rename to...
6783 (shnbsd_core_fns): ...this.
6784 (sh_nbsd_elfcore_fns): Rename to...
6785 (shnbsd_elfcore_fns): ...this.
6786 (sh_nbsd_init_abi): Rename to...
6787 (shnbsd_init_abi): ...this.
6788 (_initialize_sh_nbsd_tdep): Rename to...
6789 (_initialize_shnbsd_tdep): ...this.
6790 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6791 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6792 sh_nbsd_fill_register): Remove prototypes.
6793 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6794
e750d25e
JT
67952002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6796
6797 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6798 (i387-nat.o): Delete dependency list.
6799 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6800 (x86-64-linux-nat.o): Likewise.
6801 * i387-nat.c: Delete file, moving contents to...
6802 * i387-tdep.c: ...here.
6803 * i387-nat.h: Rename...
6804 * i387-tdep.h: ...to this.
6805 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6806 * i386-linux-nat.c: Likewise.
6807 * i386bsd-nat.c: Likewise.
6808 * i386gnu-nat.c: Likewise.
6809 * i386nbsd-nat.c: Likewise.
6810 * i386v4-nat.c: Likewise.
6811 * x86-64-linux-nat.c: Likewise.
6812 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6813 * config/i386/go32.mh (NATDEPFILES): Likewise.
6814 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6815 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6816 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6817 * config/i386/linux.mh (NATDEPFILES): Likewise.
6818 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6819 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6820 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6821 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6822
1aee598a
JT
68232002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6824
6825 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6826 (alphanbsd-nat.o): Remove dependency list.
6827 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6828 * alphanbsd-nat.c: Delete. Contents moved to...
6829 * alphanbsd-tdep.c: ...here.
6830 (_initialize_alphanbsd_tdep): Register core functions.
6831 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6832
12bcb0fe
JT
68332002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6834
6835 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6836 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6837 (alphanbsd-nat.o): Likewise.
6838 (alphabsd-tdep.o): New dependency list.
6839 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6840 (fill_gregset): Use alphabsd_fill_reg.
6841 (supply_fpregset): Use alphabsd_supply_fpreg.
6842 (fill_fpregset): Use alphabsd_fill_fpreg.
6843 (fetch_inferior_registers): Use struct reg and struct fpreg
6844 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6845 and alphabsd_supply_fpreg.
6846 (store_inferior_registers): Use struct reg and struct fpreg
6847 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6848 and alphabsd_fill_fpreg.
6849 * alphabsd-tdep.c: New file.
6850 * alphabsd-tdep.h: New file.
6851 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6852 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6853 alphabsd_supply_fpreg.
6854 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6855 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6856
361d1df0
EC
68572002-05-11 Eric Christopher <echristo@redhat.com>
6858
6859 * mips-tdep.c (mips_double_register_type): Fix thinko.
6860 (mips_single_register_type): Ditto.
6861 * MAINTAINERS: Add self.
6862
92dd7cee
MK
68632002-05-11 Mark Kettenis <kettenis@gnu.org>
6864
6865 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6866 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6867 right thing on architectures with different endianness and/or
6868 integer sizes.
6869
e27da16d
JT
68702002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6871
6872 From Christian Limpach <chris@Pin.LU>
6873 * configure.in: Change sed expression which comments out
6874 NATDEPFILES to also comment out continuation lines.
6875 * configure: Regenerate.
6876
ddde02bd
EZ
68772002-05-10 Elena Zannoni <ezannoni@redhat.com>
6878
6879 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6880 big patch.
6881
1c922164
EZ
68822002-05-10 Elena Zannoni <ezannoni@redhat.com>
6883
6884 * sh-tdep.c: Include correct file.
6885
283150cd
EZ
68862002-05-10 Elena Zannoni <ezannoni@redhat.com>
6887
6888 New support for sh64-elf (sh5) target.
6889
6890 * configure.tgt: For sh64-elf target, default to sh-elf.
6891
6892 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6893 (struct gdbarch_tdep): Add new fields for new registers and ABI
6894 info.
361d1df0 6895
283150cd
EZ
6896 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6897 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6898 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6899 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6900 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6901 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6902 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6903 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6904 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6905 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6906 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6907 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6908 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6909 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6910 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6911 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6912 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6913 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6914 sign_extend, sh64_nofp_frame_init_saved_regs,
6915 sh64_init_extra_frame_info, sh64_get_saved_register,
6916 sh64_extract_struct_value_address, sh64_pop_frame,
6917 sh64_push_arguments, sh64_extract_return_value,
6918 sh64_store_return_value, sh64_show_media_regs,
6919 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6920 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6921 sh_sh64_register_virtual_type,
6922 sh_sh64_register_convert_to_virtual,
6923 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6924 sh64_register_read, sh64_pseudo_register_write,
6925 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6926 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6927 sh64_do_pseudo_register, sh_compact_do_registers_info,
6928 sh64_do_registers_info, sh_gdbarch_init): New functions.
6929
3117ed25
EZ
69302002-05-10 Elena Zannoni <ezannoni@redhat.com>
6931
6932 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6933
2654e6d4
DJ
69342002-05-10 Daniel Jacobowitz <drow@mvista.com>
6935
6936 * linespec.c (decode_line_1): Check for a double quote after
6937 a filename correctly.
6938
9ab3e532
JB
69392002-05-10 Jim Blandy <jimb@redhat.com>
6940
6941 Properly track the size of the current objfile's .debug_line section.
6942 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6943 (DWARF_LINE_SIZE): New macro.
6944 (dwarf2_build_psymtabs_hard): Record the line section's size in
6945 the partial symbol table.
6946 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6947 symbol table.
6948
126fa72d
PS
69492002-05-10 Petr Sorfa <petrs@caldera.com>
6950
6951 * ia64-tdep.c: Handle breakpoints on L instruction type
6952 in MLX instruction bundle by moving the breakpoint to
6953 the third slot (X instruction type) as L holds only data.
6954
1f077a3e
KB
69552002-05-10 Kevin Buettner <kevinb@redhat.com>
6956
6957 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6958 (process_one_symbol): Complain about discarding local symbols
6959 due to a misplaced N_LBRAC entry.
6960
8120c9d5 69612002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
6962
6963 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
6964 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6965 decrease the depth we are at, in the case of templates.
361d1df0 6966
67b2c998
DJ
69672002-05-09 Daniel Jacobowitz <drow@mvista.com>
6968
6969 * mips-tdep.c (mips_float_register_type): New function.
6970 (mips_double_register_type): New function.
6971 (mips_print_register): Use them.
6972 (do_fp_register_row): Likewise.
6973
fd326606
DJ
69742002-05-09 Daniel Jacobowitz <drow@mvista.com>
6975
6609d9af 6976 * signals/signals.c (signals): Remove conditional compilation around
fd326606 6977 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 6978 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 6979
bef35864
MS
69802002-05-09 Michael Snyder <msnyder@redhat.com>
6981
6982 * remote-rdp.c (remote_rdp_can_run): Remove.
6983
c55a3f73
TT
69842002-05-09 Tom Tromey <tromey@redhat.com>
6985
6986 * jv-valprint.c (java_val_print): Handle `char' as a special case
6987 of TYPE_CODE_INT.
6988
b8d5e71d
MS
69892002-05-09 Michael Snyder <msnyder@redhat.com>
6990
6991 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6992 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 6993 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 6994 str r(0123),[sp,#nn].
361d1df0 6995 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
6996 order-independent by placing it in a loop.
6997
e2cd42dd
MS
69982002-05-06 Michael Snyder <msnyder@redhat.com>
6999
7000 * stabsread.c (read_type): Add recognition for new attribute:
7001 "@V;" means that an array type is actually a vector.
7002 This is analogous to the vector flag that's been added to dwarf2.
7003
3ce1502b
MK
70042002-05-09 Mark Kettenis <kettenis@gnu.org>
7005
7006 * i386-tdep.h (i386_abi): New enum.
7007 (struct gdbarch_tdep): Replace os_ident member with abi.
7008 (i386_gdbarch_register_os_abi): New prototype.
7009 * i386-tdep.c (i386_abi_names): New array.
7010 (process_note_abi_tag_sections): Removed.
7011 (process_note_sections): New function.
7012 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7013 (struct i386_abi_handler): New struct.
7014 (i386_abi_handler_list): New variable.
7015 (i386_gdbarch_register_os_abi): New function.
7016 (i386_gdbarch_init): Adapt for the changes given above.
7017
084c156a
DJ
70182002-05-08 Daniel Jacobowitz <drow@mvista.com>
7019
7020 * gregset.h: Say "GNU/Linux".
7021
6599f021
EZ
70222002-05-08 Elena Zannoni <ezannoni@redhat.com>
7023
7024 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7025 (build_gdbtypes): Build builtin_type_v2_float.
7026 (_initialize_gdbtypes): Register new builtin type.
7027
40af4b0c
AC
70282002-05-08 Andrew Cagney <ac131313@redhat.com>
7029
7030 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7031 (clear_gdbarch_swap): New function.
7032 (initialize_non_multiarch): Call.
7033 (gdbarch_update_p): Before calling init(), swap out and clear the
7034 existing architecture.
7035 * gdbarch.c: Regenerate.
7036
4fe84f46
JT
70372002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7038
7039 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7040 alphanbsd-tdep.c.
7041
4015edd1
JT
70422002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7043
7044 * sh-nbsd-nat.c: Rename to...
7045 * shnbsd-nat.c: ...this.
7046 * sh-nbsd-tdep.c: Rename to...
7047 * shnbsd-tdep.c: ...this.
7048 * sh-nbsd-tdep.h: Rename to...
7049 * shnbsd-tdep.h: ...this.
7050 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7051 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7052
0e2bd219
RE
70532002-05-08 Richard Earnshaw <rearnsha@arm.com>
7054
7055 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7056 concatenation for command help messages.
7057
13a38d45
JT
70582002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7059
7060 * NEWS: Note new sh*-*-netbsdelf* configuration.
7061 * configure.host: Set gdb_host_cpu to sh for all sh*.
7062 (sh*-*-netbsdelf*): New host.
7063 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7064 (sh*-*-netbsdelf*): New target.
7065 * sh-nbsd-nat.c: New file.
7066 * sh-nbsd-tdep.c: New file.
7067 * sh-nbsd-tdep.h: New file.
7068 * config/sh/nbsd.mh: New file.
7069 * config/sh/nbsd.mt: New file.
7070 * config/sh/nm-nbsd.h: New file.
7071 * config/sh/tm-nbsd.h: New file.
7072
d658f924
JT
70732002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7074
7075 * sh-tdep.c (sh_osabi_names): Declare.
7076 (process_note_abi_tag_sections): New function.
7077 (get_elfosabi): Ditto.
7078 (sh_gdbarch_register_os_abi): Ditto.
7079 (sh_dump_tdep): Ditto.
7080 _initialize_sh_tdep): Use gdbarch_register to register
7081 sh_gdbarch_init and sh_dump_tdep.
7082 * config/sh/tm-sh.h (sh_osabi): Declare.
7083 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7084
848cfffb
AC
70852002-05-07 Andrew Cagney <ac131313@redhat.com>
7086
7087 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7088 (thumb_scan_prologue): Ditto.
7089 (arm_find_callers_reg): Ditto.
7090 (arm_frame_chain): Ditto.
7091 (arm_init_extra_frame_info): Ditto.
7092 (arm_frame_saved_pc): Ditto.
7093 (arm_pop_frame): Ditto.
7094 (arm_push_return_address): New function.
7095 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7096 call_dummy_location, call_dummy_breakpoint_offset_p,
7097 call_dummy_breakpoint_offset, call_dummy_p,
7098 call_dummy_stack_adjust_p, call_dummy_words,
7099 sizeof_call_dummy_words, call_dummy_start_offset,
7100 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7101 call_dummy_address, push_return_address and push_dummy_frame for
7102 generic dummy frames.
7103
e7d717c0
JT
71042002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7105
7106 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7107 size computation for alloca.
7108 (sh_fp_frame_init_saved_regs): Likewise.
7109
7bbcf283
RE
71102002-05-07 Richard Earnshaw <rearnsha@arm.com>
7111
7112 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7113 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 7114 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
7115 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7116 * remote-rdp.c (remote_rdp_fetch_register): Use
7117 ARM_MAX_REGISTER_RAW_SIZE.
7118 (remote_rdp_store_register): Likewise.
7119
4657573b
ML
71202002-05-07 Michal Ludvig <mludvig@suse.cz>
7121
361d1df0 7122 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
7123 added default labels to switch {} statements.
7124 * x86-64-tdep.c: Ditto.
7125 * x86-64-linux-nat.c: Ditto.
7126
010f3b2f
JT
71272002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7128
7129 * solib.h: Protect against multiple inclusion.
7130
debd256d
JB
71312002-05-06 Jim Blandy <jimb@redhat.com>
7132
9ab3e532
JB
7133 Add first preprocessor macro-expansion files.
7134 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7135 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7136 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7137 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7138 (COMMON_OBS): Add macrotab.o, macroexp.o.
7139 (macroexp.o, macrotab.o): New rules.
7140
debd256d
JB
7141 Separate the job of reading the line number info statement program
7142 header (...expialidocious) out into its own function.
7143 * dwarf2read.c (struct line_head, struct filenames, struct
7144 directories): Replace with...
7145 (struct line_header): New structure, containing the full
7146 contents of the statement program header, including the
7147 include directory and file name tables.
7148 (read_file_scope): If we have line number info, instead of just
7149 calling dwarf_decode_lines to do all the work, call
7150 dwarf_decode_line_header first to get a `struct line_header'
7151 containing the data in the statement program header, and then
7152 pass that to dwarf_decode_lines, which will pick up where that
7153 left off. Be sure to clean up the `struct line_header' object.
7154 (dwarf_decode_line_header, free_line_header, add_include_dir,
7155 add_file_name): New functions.
7156 (dwarf_decode_lines): Move all the code to read the statement
7157 program header into dwarf_decode_line_header. Take the line
7158 header it built as the first argument, instead of the offset to
7159 the compilation unit's line number info. Use the new `struct
7160 line_header' type instead of the old structures. No need to do
7161 cleanups here now, since we don't allocate anything.
7162 (dwarf2_statement_list_fits_in_line_number_section,
7163 dwarf2_line_header_too_long): New complaints.
7164
ac3aafc7
EZ
71652002-05-06 Elena Zannoni <ezannoni@redhat.com>
7166
7167 * gdbtypes.c (init_vector_type): New function.
7168 (build_builtin_type_vec128): Simplify the representation of SIMD
7169 registers.
7170 (build_gdbtypes): Initialize new builtin vector types.
7171 (_initialize_gdbtypes): Register new vector types with gdbarch.
7172 (builtin_type_v4_float, builtin_type_v4_int32,
7173 builtin_type_v8_int16, builtin_type_v16_int8,
7174 builtin_type_v2_int32, builtin_type_v4_int16,
7175 builtin_type_v8_int8): New (renamed) SIMD types.
7176
13e49980
MK
71772002-05-06 Mark Kettenis <kettenis@gnu.org>
7178
7179 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7180 (i387_fill_fxsave): Likewise.
7181
997b20b8
AO
71822002-05-05 Alexandre Oliva <aoliva@redhat.com>
7183
7184 * alpha-tdep.c (alpha_extract_return_value): Don't use
7185 non-constant array size in prototype.
7186
535c96ce
AC
71872002-05-04 Andrew Cagney <ac131313@redhat.com>
7188
7189 From Brian Taylor <briant at model dot com>:
7190 * ui-out.c (ui_out_field_core_addr): Use the function
7191 longest_local_hex_string_custom'to format addresses > 32 bits
7192 wide.
7193
7194 * ui-out.c (ui_out_field_core_addr): Update comment.
7195
bedfa57b
AC
71962002-05-04 Andrew Cagney <ac131313@redhat.com>
7197
7198 * stack.c (select_and_print_frame): Make static. Delete the
7199 parameter `level'.
7200 (func_command): Update call.
7201 (select_frame_command): Delete code computing the frame level.
7202 * frame.h (select_and_print_frame): Delete declaration.
7203
f621c63e
AC
72042002-05-04 Andrew Cagney <ac131313@redhat.com>
7205
7206 * sparc-tdep.c (sparc_get_saved_register): Comment why
7207 get_prev_frame call is safe.
7208
0f7d239c
AC
72092002-05-04 Andrew Cagney <ac131313@redhat.com>
7210
7211 * frame.h (select_frame): Delete level parameter.
7212 * stack.c (select_frame): Update. Use frame_relative_level to
7213 obtain the frame's level.
7214 (select_and_print_frame): Update call.
7215 (select_frame_command): Ditto.
7216 (up_silently_base): Ditto.
7217 (down_silently_base): Ditto.
7218 * ocd.c (ocd_start_remote): Ditto.
7219 * remote-rdp.c (remote_rdp_open): Ditto.
7220 * remote-mips.c (mips_initialize): Ditto.
7221 (common_open): Ditto.
7222 * remote-e7000.c (e7000_start_remote): Ditto.
7223 * m3-nat.c (select_thread): Ditto.
7224 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7225 (child_get_current_exception_event): Ditto.
7226 * varobj.c (varobj_create): Ditto.
7227 (varobj_update): Ditto.
7228 (c_value_of_root): Ditto.
7229 * tracepoint.c (finish_tfind_command): Ditto.
7230 * corelow.c (core_open): Ditto.
7231 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7232 * thread.c (info_threads_command): Ditto.
7233 (switch_to_thread): Ditto.
7234 * infrun.c (normal_stop): Ditto.
7235 (restore_selected_frame): Ditto.
7236 (restore_inferior_status): Ditto.
7237 * breakpoint.c (insert_breakpoints): Ditto.
7238 (watchpoint_check): Ditto.
7239 (bpstat_stop_status): Ditto.
7240 (do_enable_breakpoint): Ditto.
7241 * blockframe.c (flush_cached_frames): Ditto.
7242 (reinit_frame_cache): Ditto.
7243
71d6c7b1
AC
72442002-05-04 Andrew Cagney <ac131313@redhat.com>
7245
7246 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7247 maintainer.
7248
cda6c68a
JB
72492002-05-04 Jim Blandy <jimb@redhat.com>
7250
7251 * gdbtypes.c (replace_type): Doc fix.
7252
5c1c87f0
AC
72532002-05-04 Andrew Cagney <ac131313@redhat.com>
7254
7255 * valprint.c (strcat_longest): Delete commented out function.
7256 Update copyright.
7257
cd9bfe15
AC
72582002-05-04 Andrew Cagney <ac131313@redhat.com>
7259
7260 * MAINTAINERS: Mark a29k as deleted.
7261 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7262 Move new configurations to the top.
7263 * configure.tgt: Remove a29k.
7264 * config/a29k/tm-vx29k.h: Delete.
7265 * config/a29k/vx29k.mt: Delete.
7266 * config/a29k/tm-a29k.h: Delete.
7267 * config/a29k/a29k-udi.mt: Delete.
7268 * config/a29k/a29k.mt: Delete.
7269 * a29k-tdep.c: Delete.
7270 * remote-udi.c: Delete.
7271 * remote-mm.c: Delete.
7272 * remote-eb.c: Delete.
7273 * remote-adapt.c: Delete.
7274 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
7275 * config/s390/s390x.mt: Ditto.
7276 * config/s390/s390.mt: Ditto.
7277 * config/sparc/sparclynx.mh: Ditto.
7278 * config/sparc/linux.mh: Ditto.
7279 * config/pa/hppaosf.mh: Ditto.
7280 * config/pa/hppabsd.mh: Ditto.
7281 * config/ns32k/nbsd.mt: Ditto.
7282 * config/mips/vr5000.mt: Ditto.
7283 * config/m68k/sun3os4.mh: Ditto.
7284 * config/m68k/nbsd.mt: Ditto.
7285 * config/m68k/m68klynx.mh: Ditto.
7286 * config/m32r/m32r.mt: Ditto.
7287 * config/i386/x86-64linux.mt: Ditto.
7288 * config/i386/nbsdelf.mt: Ditto.
7289 * config/i386/nbsd.mt: Ditto.
7290 * config/i386/i386lynx.mh: Ditto.
7291
bf0c5130
AC
72922002-05-04 Andrew Cagney <ac131313@redhat.com>
7293
7294 * target.c (debug_print_register): New function. Handle oversize
7295 registers.
7296 (debug_to_fetch_registers): Call.
7297 (debug_to_store_registers): Call.
7298
2ae1c2d2
JB
72992002-05-03 Jim Blandy <jimb@redhat.com>
7300
13a393b0
JB
7301 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7302 (read_type): Doc fix.
7303 * gdbtypes.c (replace_type): Doc fix.
7304
2ae1c2d2
JB
7305 * stabsread.c (multiply_defined_struct): New complaint.
7306 (read_struct_type): If the type we were passed isn't empty, or
7307 incomplete, don't read the new struct type into it; complain,
7308 and return the original type unchanged. Take a new `type_code'
7309 argument, which is the type code for the new type.
7310 (read_type): Rather than storing the type's type code here, pass
7311 it as an argument to read_struct_type, and let that take care of
7312 storing it. That way, we don't overwrite the original type code,
7313 so read_struct_type can use it to decide whether we're overwriting
7314 something we shouldn't.
7315 (complain_about_struct_wipeout): New function.
7316
8de9bdc4
AC
73172002-05-03 Andrew Cagney <ac131313@redhat.com>
7318
7319 * gdbarch.sh: Assert that gdbarch is non-NULL.
7320 * gdbarch.c: Regenerate.
7321
f773fdbb
JM
73222002-05-03 Jason Merrill <jason@redhat.com>
7323
7324 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7325 and return NULL.
7326
0e04a514
ML
73272002-05-03 Michal Ludvig <mludvig@suse.cz>
7328
7329 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7330 (x86_64_dwarf2gdb_regno_map_length),
7331 (x86_64_dwarf2_reg_to_regnum): Added.
7332 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7333 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7334 (_initialize_x86_64_tdep): Synced with the change above.
7335 (x86_64_skip_prologue): Reformulated message.
7336
065432a8
PM
73372002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7338
7339 * f-exp.y: Also use new prev_lexptr variable
7340 to improve error reporting. Based on Michael Snyder
7341 2002-04-24 dated patch to c-exp.y.
7342 * jv-exp.y: Likewise.
7343 * m2-exp.y: Likewise.
7344
a3162708
EZ
73452002-05-02 Elena Zannoni <ezannoni@redhat.com>
7346
7347 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7348 we are dealing with vectors.
7349
03620c38
PM
73502002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7351
7352 * config/m68k/tm-nbsd.h: Obvious fix,
7353 correct machine name.
7354
6604db2e
PM
73552002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7356
7357 * p-typeprint.c (pascal_type_print_base): Add support
7358 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7359
0906b739
PM
73602002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7361
7362 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7363 for fondamental pascal 'char' type.
7364
e2625b33
PM
73652002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7366
7367 * p-lang.h (is_pascal_string_type): Declaration changed,
7368 new sixth argument of type char ** added.
361d1df0 7369 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
7370 changed. Args length_pos, length_size, string_pos, char_size
7371 can now be NULL. New argument arrayname set to the field
7372 name of the char array. Return value set to char array
7373 field index plus one.
361d1df0 7374 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
7375 is_pascal_string_type function.
7376
cf17c188
AC
73772002-05-02 Andrew Cagney <cagney@redhat.com>
7378
7379 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7380 <cagney@redhat.com> change.
7381 * gdbarch.c: Regenerate.
7382
52bca491
AC
73832002-05-02 Andrew Cagney <cagney@redhat.com>
7384
7385 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7386 before probing for a new one. Detect errorenous gdbarch_init
7387 functions.
7388 * gdbarch.c: Regenerate.
7389
d5e72505
AC
73902002-05-01 Andrew Cagney <cagney@redhat.com>
7391
7392 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7393 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7394 * config/v850/tm-v850.h: Ditto. Update copyright.
7395
af566d9f
AC
73962002-04-30 Andrew Cagney <ac131313@redhat.com>
7397
7398 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7399 current_gdbarch.
7400
880d85fa
MS
74012002-04-30 Michael Snyder <msnyder@redhat.com>
7402
94c30b78
MS
7403 * arm-tdep.c: Whitespace clean-ups.
7404 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7405 should have been removed as part of 4/24 change.
7406
6f5987a6
KB
74072002-04-30 Kevin Buettner <kevinb@redhat.com>
7408
7409 * rs6000-tdep.c: Added comment describing how fpscr register
7410 numbers were chosen.
7411
1a113c93
MS
74122002-04-30 Michael Snyder <msnyder@redhat.com>
7413
7414 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7415
9a6f53fe
EZ
74162002-04-29 Elena Zannoni <ezannoni@redhat.com>
7417
7418 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7419 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7420 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7421
11ed25ac
KB
74222002-04-29 Kevin Buettner <kevinb@redhat.com>
7423
7424 From Louis Hamilton <hamilton@redhat.com>:
7425 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7426 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7427 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7428 not bfd-private xcoff data, to determine wordsize.
7429 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7430
ae232405
AC
74312002-04-29 Andrew Cagney <ac131313@redhat.com>
7432
7433 GDB 5.2 released from 5.2 branch.
7434
91fd20f7
ML
74352002-04-29 Michal Ludvig <mludvig@suse.cz>
7436
7437 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7438 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7439 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7440
2dc5091b
EZ
74412002-04-29 Elena Zannoni <ezannoni@redhat.com>
7442
7443 * rs6000-tdep.c (rs6000_extract_return_value,
7444 rs6000_store_return_value): Handle returning vectors.
7445 (rs6000_gdbarch_init): Use
7446 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7447 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7448 New function.
7449 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7450 vectors.
7451 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7452 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7453
2b9848d8
PM
74542002-04-24 Pierre Muller <ics.u-strasbg.fr>
7455
7456 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7457 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7458 with fprintf_unfiltered (gdb_stderr,...).
7459
f8d17dc5
PM
74602002-04-24 Pierre Muller <ics.u-strasbg.fr>
7461
7462 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7463 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7464 Replace fprintf (stderr,...
7465 with fprintf_unfiltered (gdb_stderr,....
7466 * remote-es.c: Likewise.
7467 * remote-os9k.c: Likewise.
7468 * remote-st.c: Likewise.
7469
2f2f1ad1
AS
74702002-04-28 Andreas Schwab <schwab@suse.de>
7471
7472 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7473 linux-proc.o and gcore.o.
7474
b6779aa2
AC
74752002-04-26 Michal Ludvig <mludvig@suse.cz>
7476
7477 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7478 code without frame pointers.
7479
7e57f5f4
AC
74802002-04-26 Andrew Cagney <ac131313@redhat.com>
7481
7482 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7483 ON_STACK is needed.
7484
2ceb85d0
BE
74852002-04-26 Ben Elliston <bje@redhat.com>
7486
7487 * target.c (do_xfer_memory): Correct reference to the new option
7488 "trust-readonly-sections".
7489
f5f8a009
EZ
74902002-04-26 Elena Zannoni <ezannoni@redhat.com>
7491
7492 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7493 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7494 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7495 vectors.
7496 (read_array_type): Record the fact that this array type is really a
7497 vector (i.e. are passed in by value).
7498
5868c862
JT
74992002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7500
7501 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7502 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7503 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7504 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7505 * alpha-linux-tdep.c: Include frame.h.
7506 (alpha_linux_sigcontext_addr): New function.
7507 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7508 alpha_linux_sigcontext_addr.
7509 * alpha-osf1-tdep.c: Include gdbcore.h.
7510 (alpha_osf1_sigcontext_addr): New function.
7511 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7512 alpha_osf1_sigcontext_addr.
7513 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7514 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7515
bfb01f37
AC
75162002-04-26 Andrew Cagney <ac131313@redhat.com>
7517
361d1df0 7518 * stack.c (selected_frame_level):
bfb01f37
AC
7519 (select_frame): Do not set selected_frame_level.
7520 * frame.h (selected_frame_level): Delete declaration.
7521
15813d3f
AC
75222002-04-26 Andrew Cagney <ac131313@redhat.com>
7523
7524 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7525 convert_from_func_ptr-addr when AIX / PowerOpen.
7526
6096c27a
AC
75272002-04-25 Andrew Cagney <ac131313@redhat.com>
7528
7529 * valops.c (hand_function_call): Call
7530 generic_save_call_dummy_addr.
7531 * frame.h (generic_save_call_dummy_addr): Declare.
7532 * blockframe.c (struct dummy_frame): Add fields call_lo and
7533 call_hi.
7534 (generic_find_dummy_frame): Check for PC in range call_lo to
7535 call_hi instead of entry_point_address.
7536 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7537 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7538 (generic_save_call_dummy_addr): New function.
7539
f510d44e
DM
75402002-04-24 David S. Miller <davem@redhat.com>
7541
7542 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7543 sparc_skip_prologue.
7544 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7545 information to find prologue when possible.
7546 (sparc_prologue_frameless_p): Call examine_prologue directly.
7547 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7548 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7549 second argument.
7550 (SKIP_PROLOGUE): Likewise.
7551
15d72a92
JT
75522002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7553
7554 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7555 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7556 indicate that the condition it was testing is always true.
7557 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7558 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7559 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7560
accc6d1f
JT
75612002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7562
7563 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7564 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7565 tdep->jb_pc and tdep->jb_elt_size.
7566 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7567 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7568 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7569 * alpha-nat.c (get_longjmp_target): Remove.
7570 (JB_ELEMENT_SIZE): Ditto.
7571 (JB_PC): Ditto.
7572 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7573 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7574 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7575 to alpha_get_longjmp_target.
7576 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7577 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7578 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7579
1bfdc549
AC
75802002-04-25 Andrew Cagney <ac131313@redhat.com>
7581
7582 * README: Update to GDB 5.2.
7583
1bd316f0
AC
75842002-04-25 Andrew Cagney <ac131313@redhat.com>
7585
7586 * gdbarch.sh (LC_ALL): Set to `c'.
7587
2e5ff58c
TR
75882002-04-25 Theodore A. Roth <troth@verinet.com>
7589
7590 * avr-tdep.c: Ran through gdb_indent.sh.
7591
e33ce519
TR
75922002-04-25 Theodore A. Roth <troth@verinet.com>
7593
7594 * MAINTAINERS: Add myself as AVR maintainer.
7595 * NEWS: Note new target avr.
7596
8818c391
TR
75972002-04-25 Theodore A. Roth <troth@verinet.com>
7598
7599 * Makefile.in: Add support for AVR target.
7600 * configure.tgt: Add support for AVR target.
7601 * avr-tdep.c: New file
7602 * config/avr/avr.mt: New file.
7603
79509c2d
TR
76042002-04-25 Theodore A. Roth <troth@verinet.com>
7605
7606 * MAINTAINERS: Add myself to write-after-approval.
7607
dac8068e
PM
76082002-04-24 Pierre Muller <ics.u-strasbg.fr>
7609
7610 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7611 with fprintf_unfiltered (gdb_stderr,....
7612
25bf3106
PM
76132002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7614
7615 Fix PR gdb/508.
7616 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7617
24467a86
PM
76182002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7619
7620 * p-exp.y: Also use new prev_lexptr variable
7621 to improve error reporting. Based on Michael Snyder
7622 2002-04-24 dated patch to c-exp.y.
7623
95b80706
JT
76242002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7625
7626 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7627 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7628 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7629 to 0.
7630 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7631 and struct value.
7632 (FUNCTION_START_OFFSET): Remove.
7633 (BREAKPOINT): Ditto.
7634
e90cc612
JT
76352002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7636
7637 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7638 * NEWS: Ditto.
7639
6c72f9f9
JT
76402002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7641
7642 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7643 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7644 alpha_linux_pc_in_sigtramp.
7645 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7646 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7647 alpha_osf1_pc_in_sigtramp.
7648 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7649 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7650 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7651 alphafbsd_pc_in_sigtramp.
7652 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7653 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7654 alphanbsd_pc_in_sigtramp.
7655 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7656 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7657
5e4f3379
JT
76582002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7659
7660 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7661
da8ca43d
JT
76622002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7663
7664 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7665 alphanbsd-tdep.c.
7666 (alphanbsd-nat.o): New dependency list.
7667 (alphanbsd-tdep.o): Ditto.
7668 * NEWS: Note new native NetBSD/alpha configuration.
7669 * alphanbsd-nat.c: New file.
7670 * alphanbsd-tdep.c: Ditto.
7671 * configure.host (alpha*-*-netbsd*): New host.
7672 * configure.tgt (alpha*-*-netbsd*): New target.
7673 * config/alpha/nbsd.mh: New file.
7674 * config/alpha/nbsd.mt: Ditto.
7675 * config/alpha/nm-nbsd.h: Ditto.
7676 * config/alpha/tm-nbsd.h: Ditto.
7677
36a6271d
JT
76782002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7679
7680 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7681 (alpha-osf1-tdep.o): New dependency list.
7682 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7683 and skip_sigtramp_frame members.
7684 * alpha-linux-tdep.c: Include gdbcore.h.
7685 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7686 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7687 * alpha-osf1-tdep.c: New file.
7688 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7689 alpha-osf1-dep.c.
7690 (alpha_frame_past_sigtramp_frame): New function.
7691 (alpha_dynamic_sigtramp_offset): Ditto.
7692 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7693 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7694 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7695 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7696 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7697 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7698 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7699 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7700 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7701 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7702 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7703 to find_solib_trampoline_target.
7704 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7705 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7706 (SKIP_TRAMPOLINE_CODE): Remove.
7707 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7708 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7709 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7710 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7711 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7712 (PROC_SIGTRAMP_MAGIC): Ditto.
7713 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7714 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7715 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7716 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7717 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7718
2f4bc57b
JT
77192002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7720
7721 * NEWS: Note that Alpha targets are now multi-arch.
7722
665132f9
MS
77232002-04-24 Michael Snyder <msnyder@redhat.com>
7724
7725 * parser-defs.h (prev_lexptr): New external variable.
7726 * parse.c (parse_exp_1): Set prev_lexptr to null before
7727 calling the language-specific parser.
7728 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7729 (yyerror): Use prev_lexptr in error reporting.
7730
32872fa7
DJ
77312002-04-24 Daniel Jacobowitz <drow@mvista.com>
7732
7733 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7734 * gregset.h: If FILL_FPXREGSET is defined, provide
7735 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7736 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7737 is defined, call fill_fpxregset.
7738
57e76fac
MS
77392002-04-24 Roland McGrath <roland@frob.com>
7740
7741 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7742 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7743 (supply_gregset, supply_fpregset): New functions.
7744
7745 * gnu-nat.c (gnu_find_memory_regions): New function.
7746 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7747 (gnu_xfer_memory): Add a cast.
7748
f43845b3
MS
77492002-04-24 Michael Snyder <msnyder@redhat.com>
7750
361d1df0 7751 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7752 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7753 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7754 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7755 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7756 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7757
a0abec03
AC
7758Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7759
7760 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7761 NUM_PSEUDO_REGS can be used.
7762
d7bd68ca
AC
77632002-04-24 Andrew Cagney <ac131313@redhat.com>
7764
7765 * arch-utils.h: Update copyright.
7766
7767 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7768 * gdbarch.h, gdbarch.c: Re-generate.
7769
7770 * inferior.h (IN_SIGTRAMP): Delete definition.
7771 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7772 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7773
7774 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7775 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7776 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7777 (find_proc_framesize): Ditto.
7778 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7779 (alpha_init_extra_frame_info): Ditto.
7780 * infrun.c (handle_inferior_event): Ditto.
7781 (handle_inferior_event): Ditto.
7782 (check_sigtramp2): Ditto.
7783 * blockframe.c (create_new_frame): Ditto.
7784 (get_prev_frame): Ditto.
7785 * ppc-linux-tdep.c: Update comments.
7786 * i386-linux-tdep.c: Update comments.
7787 * breakpoint.c (bpstat_what): Update comment.
7788
4867e41e
DM
77892002-04-24 David S. Miller <davem@redhat.com>
7790
21d83aa5
DM
7791 * i960-tdep.c (register_in_window_p): New function.
7792 (i960_find_saved_register): Use it instead of
7793 REGISTER_IN_WINDOW_P.
7794 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7795
4867e41e
DM
7796 * symtab.h (find_stab_function_addr): Kill extern.
7797 * minsyms.c (find_stab_function_addr): Remove from here...
7798 * dbxread.c: ... to here, and mark it static.
7799
69cdf6a2
DM
78002002-04-20 David S. Miller <davem@redhat.com>
7801
7802 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7803 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7804
5a595886
DM
78052002-04-21 David S. Miller <davem@redhat.com>
7806
7807 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7808 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7809 (vx_write_register): Likewise.
7810
1da1a192
JB
78112002-04-23 J. Brobecker <brobecker@gnat.com>
7812
7813 * source.c (is_regular_file): New function.
7814 (openp): Check wether file to open is a regular file
7815 to avoid opening directories.
7816
baa6f10b
JT
78172002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7818
7819 * findvar.c (extract_signed_integer): Cast printf argument
7820 to suppress format warning.
7821 (extract_unsigned_integer): Likewise.
7822 * infcmd.c (registers_info): Likewise.
7823 * top.c (get_prompt_1): Likewise.
7824 * valops.c (value_assign): Likewise.
7825 * valprint.c (print_decimal): Likewise.
7826
b2c4da81
L
78272002-04-22 H.J. Lu (hjl@gnu.org)
7828
7829 * c-exp.y (typebase): Support
361d1df0 7830
b2c4da81
L
7831 [long|long long|short] [signed|unsigned] [int|]
7832
7833 and
7834
7835 signed [long|long long|short] int
7836
f267bd6a
JT
78372002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7838
7839 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7840 and vax-tdep.h.
7841 * vax-tdep.h: New file.
7842 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7843 Make several routines static.
7844 (vax_get_saved_register): New function.
7845 (vax_gdbarch_init): New function.
7846 (_initialize_vax_tdep): Register vax_gdbarch_init.
7847 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7848 Remove macros now under the control of gdbarch.
7849
da3c6d4a
MS
78502002-04-22 Michael Snyder <msnyder@redhat.com>
7851
11d3b27d
MS
7852 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7853 Some whitespace and coding standards tweaks.
da3c6d4a 7854
a33f7558
JT
78552002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7856
7857 * vax-tdep.c: Include regcache.h.
7858 (vax_call_dummy_words): New.
7859 (sizeof_vax_call_dummy_words): New.
7860 (vax_fix_call_dummy): New function.
7861 (vax_saved_pc_after_call): Ditto.
7862 * config/vax/tm-vax.h: Don't include regcache.h.
7863 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7864 (CALL_DUMMY): Remove.
7865 (CALL_DUMMY_WORDS): Define.
7866 (SIZEOF_CALL_DUMMY_WORDS): Define.
7867 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7868
47a73475
MS
78692002-04-18 Michael Snyder <msnyder@redhat.com>
7870
7871 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7872
52efde73
JT
78732002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7874
7875 * vax-tdep.c (vax_frame_chain): New function.
7876 (vax_push_dummy_frame): Ditto.
7877 (vax_pop_frame): Ditto.
7878 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7879 (FRAMELESS_FUNCTION_INVOCATION): Use
7880 generic_frameless_function_invocation_not.
7881 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7882 (POP_FRAME): Use vax_pop_frame.
7883
ea74468c
JT
78842002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7885
7886 * vax-tdep.c (vax_store_struct_return): New function.
7887 (vax_extract_return_value): Ditto.
7888 (vax_store_return_value): Ditto.
7889 (vax_extract_struct_value_address): Ditto.
7890 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7891 vax_store_struct_return.
7892 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7893 (STORE_RETURN_VALUE): Use vax_store_return_value.
7894 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7895
5516aa92
JT
78962002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7897
7898 * vax-tdep.c (vax_frame_saved_pc): New function.
7899 (vax_frame_args_address_correct): Ditto.
7900 (vax_frame_args_address): Ditto.
7901 (vax_frame_locals_address): Ditto.
7902 (vax_frame_num_args): Move code to be in proximity to
7903 other frame-related functions.
7904 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7905 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7906 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7907 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7908 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7909
36af0b35
L
79102002-04-22 H.J. Lu (hjl@gnu.org)
7911
7912 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7913 includedir.
7914
ab62c900
JT
79152002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7916
7917 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7918 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7919 (FRAME_INIT_SAVED_REGS): New macro.
7920
7232b100
JT
79212002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7922
7923 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7924
b70d2aee
JT
79252002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7926
7927 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7928 where needed.
7929 (fetch_osf_core_registers): Likewise.
7930 (supply_gregset): Likewise.
7931
a0e8a2d1 79322002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 7933
a0e8a2d1
JB
7934 * symfile.h (get_section_index): Define.
7935 * symfile.c (get_section_index): New function.
7936 * mdebugread.c (SC_IS_SBSS): New macro.
7937 (SC_IS_BSS): Return true for the scBss storage class only, as
7938 the scSBss storage class refers to the .sbss section.
7939 (parse_partial_symbols): Discard the symbols which associated
7940 section does not exist.
7941 Make sure to use the .sbss section index for symbols which
7942 storage class is scBss, rather than using the .bss section index.
7943
51eb8b08
JT
79442002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7945
7946 * vax-tdep.c: Update copyright years.
7947 (vax_register_name): New function.
7948 (vax_register_byte): Ditto.
7949 (vax_register_raw_size): Ditto.
7950 (vax_register_virtual_size): Ditto.
7951 (vax_register_virtual_type): Ditto.
7952 * config/vax/tm-vax.h: Update copyright years.
7953 (REGISTER_NAMES): Remove.
7954 (REGISTER_NAME): Define.
7955 (REGISTER_BYTE): Use vax_register_byte.
7956 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7957 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7958 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7959
6cc1c0a8
AC
79602002-04-21 Andrew Cagney <ac131313@redhat.com>
7961
7962 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7963 declaration
7964 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7965
9319a2fe
DM
79662002-04-21 David S. Miller <davem@redhat.com>
7967
7968 * arch-utils.c (generic_prologue_frameless_p): Kill
7969 SKIP_PROLOGUE_FRAMELESS_P code.
7970 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7971 references.
7972 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7973 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7974 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7975 references.
7976 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7977 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7978 (sparc_gdbarch_init): Pass it to
7979 set_gdbarch_prologue_frameless_p.
a0e8a2d1 7980
e9ed6d01
JT
79812002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7982
7983 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7984 (alphabsd-nat.o): New dependency list.
7985
36012033
JT
79862002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7987
7988 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7989 alphafbsd-tdep.c.
7990 (alpha-linux-tdep.o): New dependency list.
7991 (alphafbsd-tdep.o): Likewise.
7992
3379287a
JT
79932002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7994
7995 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7996 to here...
7997 * alpha-tdep.c: ...from here.
7998 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7999
4bcbd6cb
JT
80002002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8001
8002 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8003 prototype from here...
8004 * alpha-tdep.h: ...to here.
8005
b31da25e
AC
80062002-04-21 Andrew Cagney <ac131313@redhat.com>
8007
8008 * frame.h (selected_frame_level): Document as deprecated.
8009 (frame_relative_level): Declare.
8010 * stack.c (frame_relative_level): New function.
8011 (selected_frame_level): Document as deprecated.
8012 (select_frame): Do not set the selected_frame_level.
8013
8014 * stack.c (frame_info, record_selected_frame): Update.
8015 (frame_command, current_frame_command): Update.
8016 (up_silently_base, up_command, down_silently_base): Update.
8017 (down_command): Update.
8018 * inflow.c (kill_command): Update.
8019 * tracepoint.c (finish_tfind_command): Update.
8020 * corelow.c (core_open): Update.
8021 * thread.c (info_threads_command): Update.
8022 (do_captured_thread_select): Update.
8023 * infcmd.c (finish_command): Update.
8024 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8025
9c1d6fe5
JT
80262002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8027
8028 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8029
ab89facf
AC
80302002-04-21 Andrew Cagney <ac131313@redhat.com>
8031
8032 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8033 type const.
8034
82a4efa1
JT
80352002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8036
8037 * alphafbsd-tdep.c: Update copyright years. Include
8038 alpha-tdep.h.
8039 (alphafbsd_use_struct_convention): Make static.
8040 (alphafbsd_init_abi): New function.
8041 (_initialize_alphafbsd_tdep): New function.
8042 * config/alpha/tm-fbsd.h: Update copyright years.
8043 (USE_STRUCT_CONVENTION): Remove.
8044
44dffaac
JT
80452002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8046
8047 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8048 an Alpha ABI variant.
8049 (alpha_abi_handler_list): Declare.
8050 (alpha_gdbarch_register_os_abi): New function.
8051 (alpha_gdbarch_init): Give registered ABI variant handlers a
8052 chance to tweak the gdbarch once we have set up defaults.
8053 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8054
65585be4
JT
80552002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8056
8057 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8058 to standard_coerce_float_to_double.
8059 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8060
d9b023cc
JT
80612002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8062
8063 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8064 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8065 from gdbarch_tdep rather than a constant.
8066 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8067 the default text address for all Alpha Unix ABIs.
8068 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8069 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8070
dc129d82
JT
80712002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8072
8073 * alpha-tdep.h: New file. Includes several Alpha target constants
8074 taken from...
8075 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8076 let gdbarch deal with.
8077 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8078 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8079 to dependency list.
8080 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8081 Alpha target register names.
8082 * alphabsd-nat.c: Likewise.
8083 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8084 Alpha target register names. Make serveral routines static.
8085 (alpha_get_saved_register): New function.
8086 (alpha_abi_names): New.
8087 (process_note_abi_tag_sections): New function.
8088 (get_elfosabi): New function.
8089 (alpha_gdbarch_init): New function.
8090 (alpha_dump_tdep): New function.
8091 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8092
d49d1e0a
AC
80932002-04-21 Andrew Cagney <ac131313@redhat.com>
8094
8095 * frame.c (find_saved_register): Delete #ifdef
8096 HAVE_REGISTER_WINDOWS code.
8097 * config/sparc/tm-sparc.h: Update comments.
8098 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8099
92e8c9ed
AC
81002002-04-21 Andrew Cagney <ac131313@redhat.com>
8101
8102 * i960-tdep.c (i960_find_saved_register): New function.
8103 (i960_get_saved_register): New function.
8104 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8105 (i960_get_saved_register): Declare.
8106 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8107
e1925118
DM
81082002-04-20 David S. Miller <davem@redhat.com>
8109
8110 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8111
29673b29
AC
81122002-04-20 Andrew Cagney <ac131313@redhat.com>
8113
8114 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8115 instead of NUM_PSEUDO_REGS.
8116
6c86dcd5
DM
81172002-04-20 David S. Miller <davem@redhat.com>
8118
8119 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8120 GDB_MULTI_ARCH_PARTIAL
8121 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8122 define, let tm-sp64.h do it.
8123
aa40ec90
JT
81242002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8125
8126 * frame.c (find_saved_register): Avoid a NULL pointer
8127 dereference and actually walk the frame list.
8128
0f79675b
AC
81292002-04-20 Andrew Cagney <ac131313@redhat.com>
8130
8131 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8132 sorted in most most-recent-used order. Document.
8133 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8134
f91305dd 81352002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
8136
8137 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8138 instead of ->prev.
8139 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8140 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8141 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8142 instead of ->prev.
8143
73d322b1
EZ
81442002-04-19 Elena Zannoni <ezannoni@redhat.com>
8145
8146 Fix PR gdb/471.
8147 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8148 (build_builtin_type_vec128): Ditto.
8149 (append_composite_type_field): Fix calculation of type length in
8150 union case.
8151
ccd9a834
EZ
81522002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8153
8154 * config/djgpp/README: Update.
8155
8156 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8157 compiler warnings.
8158
a57f9e49
JT
81592002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8160
8161 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8162 (alpha_setup_arbitrary_frame): ...to this.
8163 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8164 for alpha_setup_arbitrary_frame.
8165
f4f9705a
AC
81662002-04-18 Andrew Cagney <cagney@redhat.com>
8167
8168 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8169 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8170
f4f9705a
AC
8171 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8172 * target.h (memory_breakpoint_from_pc): Update declaration.
8173 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8174
8175 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8176 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8177 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8178 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8179 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8180 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8181 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8182 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8183 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8184 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8185 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8186 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8187
8188 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8189 const pointer.
8190 * monitor.c (monitor_insert_breakpoint): Ditto.
8191 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8192
8193 * config/mcore/tm-mcore.h: Update copyright.
8194 * mem-break.c: Ditto.
8195 * xstormy16-tdep.c: Ditto.
8196
29f319b8
PM
81972002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8198
8199 * p-exp.y: Add precedence rule for '^' token.
8200 This removes the shift/reduce conflicts.
8201 Remove the comment concerning these shift/reduce conflicts.
8202
ebeac11a
EZ
82032002-04-18 Elena Zannoni <ezannoni@redhat.com>
8204
8205 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8206 (registers_powerpc_nofp): New register set for processors
8207 without floating point unit.
8208
27c31547
DM
82092002-04-18 David S. Miller <davem@redhat.com>
8210
8211 * MAINTAINERS: Add myself to write-after-approval.
8212
47a73475
MS
82132002-04-17 Michael Snyder <msnyder@redhat.com>
8214
8215 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8216
953836b2
AC
82172002-04-17 Andrew Cagney <ac131313@redhat.com>
8218
8219 * rs6000-tdep.c (frame_initial_stack_address): Use
8220 frame_register_read to read the alloca_reg.
8221
8b0d4340
AC
82222002-04-17 Andrew Cagney <ac131313@redhat.com>
8223
8224 * frame.c (find_saved_register): Find saved registers in the next
8225 not prev frame.
8226 Fix PR gdb/365.
8227
d8864532
AC
82282002-04-17 Andrew Cagney <ac131313@redhat.com>
8229
8230 * gdbarch.sh (LANG): Set to ``c''.
8231
36cc83a3 82322002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 8233
36cc83a3 8234 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 8235
2f4150cc 82362002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
8237
8238 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8239 Update copyright.
8240
628703c6 8241 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 8242 Also fix PR gdb/391.
361d1df0 8243
56157b4a
AC
82442002-04-14 Andrew Cagney <ac131313@redhat.com>
8245
8246 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8247 * aclocal.m4, configure: Re-generate.
8248 Fix PR gdb/391.
361d1df0 8249
6d1e3329
EZ
82502002-04-14 Elena Zannoni <ezannoni@redhat.com>
8251
8252 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8253 instead of tm_print_insn.
8254
cb06fa07
EZ
82552002-04-14 Elena Zannoni <ezannoni@redhat.com>
8256
8257 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8258
f208ba17
AC
82592002-04-14 Andrew Cagney <ac131313@redhat.com>
8260
8261 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8262 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8263 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8264
20f01a46
DH
82652002-04-12 Don Howard <dhoward@redhat.com>
8266
8267 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8268 max_user_call_depth.
8269 (init_cmd_lists): Initialize the new value;
8270 * cli/cli-script.c (execute_user_command): Limit the call depth of
8271 user defined commands. This avoids a core-dump when user commands
8272 are infinitly recursive.
8273
a88376a3
KB
82742002-04-12 Kevin Buettner <kevinb@redhat.com>
8275
8276 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8277 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8278 from tdep struct instead of DEFAULT_LR_SAVE.
8279 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8280 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8281 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8282
f2172603
MS
82832002-04-12 Michael Snyder <msnyder@redhat.com>
8284
694f61fb 8285 * Remote.c: Spelling fix.
20fe79c8
MS
8286 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8287 If no symbol found for "sbrk", try "_sbrk".
8288 (make_output_phdrs): Use bfd_section_name.
8289 (gcore_copy_callback): Use bfd_section_name.
62995fc4 8290 * eval.c: Indentation fix-ups.
169a7369
MS
8291 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8292 in case it gets applied to an address that is already
8293 in the instruction space.
de74f71f
MS
8294 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8295 * symfile.c: Fix indentation, long lines.
f2172603
MS
8296 * source.c: White space fix-up.
8297
cda5a58a
AC
82982002-04-12 Andrew Cagney <cagney@redhat.com>
8299
8300 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8301 * frame.c (frame_register_read): New function. Return non-zero on
8302 success.
8303 (read_relative_register_raw_bytes_for_frame): Delete.
8304 (read_relative_register_raw_bytes): Delete.
8305 * frame.h (frame_register_read): Declare.
8306 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8307 * sh-tdep.c: Ditto.
8308 * infcmd.c (do_registers_info): Ditto.
8309 * hppa-tdep.c: Ditto.
8310 * rs6000-tdep.c: Ditto.
8311 * h8500-tdep.c: Ditto.
8312 * mips-tdep.c: Ditto.
8313 * h8300-tdep.c: Ditto.
8314 * z8k-tdep.c: Ditto.
8315
2ea5f656
KB
83162002-04-12 Kevin Buettner <kevinb@redhat.com>
8317
8318 From Jimi X <jimix@watson.ibm.com>:
8319 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8320 64-bit SysV ABI.
8321
27b15785
KB
83222002-04-12 Kevin Buettner <kevinb@redhat.com>
8323
8324 From Jimi X <jimix@watson.ibm.com>:
8325 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8326 bfd info.
8327
5d57ee30
KB
83282002-04-12 Kevin Buettner <kevinb@redhat.com>
8329
8330 From Jimi X <jimix@watson.ibm.com>:
8331 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8332 register sets for these processor variants.
8333
bc1e36ca
DJ
83342002-04-11 Daniel Jacobowitz <drow@mvista.com>
8335
bc1e36ca
DJ
8336 * regformats/reg-ppc.dat: Support FPSCR.
8337
e3f36dbd
KB
83382002-04-11 Kevin Buettner <kevinb@redhat.com>
8339
8340 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8341 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8342 Add fpscr as an invalid/unfetchable register.
8343 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8344 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8345 (fill_fpregset): Add support for register fpscr.
8346 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8347 (fill_gregset): Account for the fact that register ``mq'' might
8348 not exist.
8349 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8350 (registers_power): Add fpscr to register set at slot 71.
8351 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8352 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8353
943c9c25
MS
83542002-04-11 Michael Snyder <msnyder@redhat.com>
8355
8356 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8357 * configure: Regenerate.
8358 * config.in: Regenerate.
8359 * acconfig.h: Add define for _SYSCALL32.
8360 * core-sol2.c: Remove #define _SYSCALL32.
8361 * solib-legacy.c: Remove #define _SYSCALL32.
8362
d8c0a2e7
AC
83632002-04-10 Andrew Cagney <ac131313@redhat.com>
8364
8365 * stack.c (select_frame): Cleanup internal error message, do not
8366 use %p.
8367
7cc19214
AC
83682002-04-10 Andrew Cagney <ac131313@redhat.com>
8369
8370 * stack.c (select_frame): Check that selected_frame and the
8371 specified level are as expected.
8372 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8373 Update copyright.
8374 * frame.h (struct frame_info): Add field `level'. Update
8375 copyright.
8376 Work-in-progress PR gdb/464.
8377
67a2b77e
AC
83782002-04-10 Andrew Cagney <ac131313@redhat.com>
8379
8380 * maint.c (maint_print_section_info): Rename print_section_info.
8381 (print_bfd_section_info, print_objfile_section_info): Update.
8382 * inferior.h (struct gdbarch): Add opaque declaration.
8383 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8384 * gdbarch.h: Regenerate.
8385
8cfda98c
ML
83862002-04-10 Michal Ludvig <mludvig@suse.cz>
8387
8388 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8389 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8390 (kernel_u_size): Added.
8391 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8392 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8393
ca439ad2 83942002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 8395
ca439ad2
JI
8396 * valarith.c (find_size_for_pointer_math): New function, either returns
8397 the size for a pointer's target, returns 1 for void *, or errors for
8398 incomplete types.
8399 (value_add, value_sub): use find_size_for_pointer_math.
8400
2f2893d9
DJ
84012002-04-09 Daniel Jacobowitz <drow@mvista.com>
8402
8403 * linux-low.c (linux_look_up_symbols): New hook.
8404 (linux_target_ops): Add linux_look_up_symbols.
8405 * remote-utils.c (decode_address): New function.
8406 (look_up_one_symbol): New function.
8407 * server.c (handle_query): Call target look_up_symbols hook.
8408 * server.h (look_up_one_symbol): Add prototype.
8409 * target.h (struct target_ops): Add look_up_symbols hook.
8410
96cb11df
AC
84112002-04-09 Andrew Cagney <ac131313@redhat.com>
8412
8413 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8414 override FP_REGNUM with frame->fp. Update copyright.
8415 * parse.c (num_std_regs, std_regs): Delete.
8416 (target_map_name_to_register): Do not search std_regs. Update
8417 function description.
8418 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8419 declarations. Update copyright.
8420 Fix PR gdb/251.
361d1df0 8421
97658e92
DJ
84222002-04-09 Daniel Jacobowitz <drow@mvista.com>
8423
8424 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8425 after the last symbol in a block.
8426
6044e3eb
PM
84272002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8428
8429 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8430 is non zero as a found symbol.
8431
0406ec40
AC
84322002-04-08 Andrew Cagney <ac131313@redhat.com>
8433
8434 * findvar.c: Include "builtin-regs.h".
8435 (value_of_register): Call value_of_builtin_reg when applicable.
8436 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8437 (target_map_name_to_register): Call
8438 builtin_reg_map_name_to_regnum.
8439 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8440 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8441 (builtin_regs_h): Define.
8442 (builtin-regs.o): New target.
8443 (findvar.o): Add $(builtin_regs_h).
8444 * builtin-regs.c, builtin-regs.h: New files.
8445 * std-regs.c: New file.
8446 Partial fix for PR gdb/251.
8447
56a6dfb9
KB
84482002-04-08 Kevin Buettner <kevinb@redhat.com>
8449
8450 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8451 it's no longer required.
8452
3a808432
AC
84532002-04-08 Andrew Cagney <ac131313@redhat.com>
8454
8455 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8456
7c40d541
KB
84572002-04-08 Kevin Buettner <kevinb@redhat.com>
8458
8459 From Jimi X <jimix@watson.ibm.com>:
8460 * rs6000-tdep.c (rs6000_software_single_step): Use
8461 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8462 and size. Use target_insert_breakpoint() and
8463 target_remove_breakpoint() to insert and remove breakpoints
8464 instead of explicit memory reads and writes.
8465
cc9836a8
KB
84662002-04-08 Kevin Buettner <kevinb@redhat.com>
8467
8468 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8469 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8470 ELF_OBJECT_FORMAT ifdef.
8471
7495d1dc
KB
84722002-04-08 Kevin Buettner <kevinb@redhat.com>
8473
8474 From Jimi X <jimix@watson.ibm.com>:
8475 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8476
4288e836
KB
84772002-04-08 Kevin Buettner <kevinb@redhat.com>
8478
8479 From Jimi X <jimix@watson.ibm.com>:
8480 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8481 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8482
a4e4e501
MK
84832002-04-07 Mark Kettenis <kettenis@gnu.org>
8484
8485 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8486 s/asprintf/xasprintf/.
8487 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8488
006defba
AC
84892002-04-07 Andrew Cagney <ac131313@redhat.com>
8490
8491 I believe Jeff Law denies responsability for this one:
8492 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8493 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8494 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8495 Work-around for PR gdb/366.
8496
7aa83cac
EZ
84972002-04-07 Elena Zannoni <ezannoni@redhat.com>
8498
8499 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8500 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8501 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8502
cf1fcca1
EZ
85032002-04-07 Elena Zannoni <ezannoni@redhat.com>
8504
8505 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8506 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8507 information.
8508
3f289e6f
AC
85092002-04-07 Andrew Cagney <ac131313@redhat.com>
8510
8511 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8512 maintainer.
8513
129188f6
AC
85142002-04-07 Andrew Cagney <ac131313@redhat.com>
8515
8516 * README (Reporting Bugs in GDB): Document the bug web page as the
8517 prefered way of submitting bugs.
8518 Fix PR gdb/402.
8519
1200cd6e
AC
85202002-04-06 Andrew Cagney <ac131313@redhat.com>
8521
8522 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8523 -1. Update comment.
8524 * gdbarch.h, gdbarch.c: Re-generate.
8525
2853c33c
AS
85262002-04-07 Andreas Schwab <schwab@suse.de>
8527
8528 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8529 buffer to regcache_collect.
8530
c2169756
AC
85312002-04-06 Andrew Cagney <ac131313@redhat.com>
8532
8533 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8534 * gdbarch.c, gdbarch.h: Re-generate.
8535
25f1b008
AC
85362002-04-06 Andrew Cagney <ac131313@redhat.com>
8537
8538 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8539 declaration. Fix -Werror.
8540
59263426
DJ
85412002-04-05 Daniel Jacobowitz <drow@mvista.com>
8542
8543 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8544 * gdbarch.c: Regenerate.
8545
f5db4da3
MS
85462002-04-05 Michael Snyder <msnyder@redhat.com>
8547
80f8a6eb
MS
8548 * breakpoint.c (clear_command): Rewrite middle section to
8549 combine two loops with identical control conditions.
8550 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8551 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8552
ad3dcc5c
L
85532002-04-05 H.J. Lu (hjl@gnu.org)
8554
8555 * solib-svr4.c (bkpt_names): Add "__start".
8556
f32e7a74
AC
85572002-04-04 Andrew Cagney <ac131313@redhat.com>
8558
8559 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8560 as test for 64 bit target.
8561
8227c0ff
AC
85622002-04-05 Andrew Cagney <ac131313@redhat.com>
8563
8564 * h8500-tdep.c (h8500_write_fp): Delete function.
8565 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8566 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8567 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8568 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8569 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8570 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8571 (s390_write_fp):
8572 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8573 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8574 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8575 (d10v_write_fp): Delete function.
8576 * inferior.h (write_fp, generic_target_write_fp): Delete
8577 declarations.
8578 * regcache.c (generic_target_write_fp): Delete function.
8579 (write_fp): Delete function.
8580 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8581 * gdbarch.h, gdbarch.c: Regenerate.
8582 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8583 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8584 (sparc64_write_fp): Delete declaration.
8585 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8586 (h8500_write_fp): Delete declaration.
8587
2757dd86
AC
85882002-04-04 Andrew Cagney <ac131313@redhat.com>
8589
8590 * sparc-tdep.c (sparc64_write_fp): Delete.
8591 (sparc_push_dummy_frame): Replace write_fp call with code to store
8592 the FP directly.
8593 (sparc_gdbarch_init): Do not initialize write_fp.
8594
c69255e1
KB
85952002-04-05 Kevin Buettner <kevinb@redhat.com>
8596
8597 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8598 clause.
8599
ae767bfb
JB
86002002-03-29 Jim Blandy <jimb@redhat.com>
8601
8602 * stack.c (get_selected_block): Add new argument `addr_in_block',
8603 used to return the exact code address we used to select the block,
8604 not just the block.
8605 * blockframe.c (get_frame_block, get_current_block): Same.
8606 * frame.h (get_frame_block, get_current_block,
8607 get_selected_block): Update declarations.
8608 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8609 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8610
84d2ac95
MS
86112002-04-05 Michael Snyder <msnyder@redhat.com>
8612
8613 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8614 warning message.
8615
596aa3bf
JB
86162002-04-05 J. Brobecker <brobecker@gnat.com>
8617
8618 * utils.c (xfullpath): New function.
8619 * defs.h (xfullpath): Add declaration.
8620 * source.c (openp): Use xfullpath in place of gdb_realpath to
8621 avoid resolving the basename part of filenames when the
8622 associated file is a symbolic link. This fixes a potential
8623 inconsistency between the filenames known to GDB and the
8624 filenames it prints in the annotations.
8625 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8626 to be able to match a filename with either the real filename, or
8627 the name of any symbolic link to this file.
8628 (lookup_partial_symtab): Ditto.
8629
c02f5703
MS
86302002-04-04 Michael Snyder <msnyder@redhat.com>
8631
8632 * breakpoint.c: Add support for hardware breakpoints in overlays.
8633 (overlay_events_enabled): New state variable.
8634 (insert_breakpoints): Use overlay_events_enabled to decide
8635 whether to attempt to set a breakpoint at the overlay load addr.
8636 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8637 (remove_breakpoint): Use overlay_events_enabled to decide
8638 whether breakpoints need to be removed from overlay load addr.
8639 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8640 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8641 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8642 disable_overlay_breakpoints): Update overlay_events_enabled.
8643
5fb290d7
DJ
86442002-04-04 Daniel Jacobowitz <drow@mvista.com>
8645
8646 * dwarf2read.c (struct function_range): New.
8647 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8648 (check_cu_functions): New.
8649 (read_file_scope): Initialize global function lists.
8650 Call dwarf_decode_line after processing children.
8651 (read_func_scope): Add to global function list.
8652 (dwarf_decode_lines): Call check_cu_functions everywhere
8653 record_line is called. Call record_line with a linenumber
8654 of 0 to mark sequence ends.
8655
7b3fabf0
ML
86562002-04-04 Michal Ludvig <mludvig@suse.cz>
8657
361d1df0 8658 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8659 change sync with glibc.
8660
bce58c09
JB
86612002-04-03 Jim Blandy <jimb@redhat.com>
8662
8663 * configure.in: Call AC_C_INLINE.
8664 * configure: Regenerated.
361d1df0 8665
2fccf04a
DJ
86662002-04-01 Daniel Jacobowitz <drow@mvista.com>
8667
8668 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8669 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8670
2d1bfe2e
MK
86712002-03-31 Mark Kettenis <kettenis@gnu.org>
8672
a5941fbf
MK
8673 * NEWS: Mention gcore support on FreeBSD/i386.
8674
a90cd31d
MK
8675 * fbsd-proc.c: New file.
8676 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8677 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8678
2d1bfe2e
MK
8679 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8680 while statement.
8681
9eb6e5a1
JB
86822002-03-29 Jim Blandy <jimb@redhat.com>
8683
8684 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8685 unescaped newlines in string literals, but newer ones don't. So
8686 escape them.
8687
f02df580
MS
86882002-03-26 Michael Snyder <msnyder@redhat.com>
8689 Andrew Cagney <cagney@redhat.com>
8690
361d1df0 8691 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8692 restore file to memory.
8693 * cli/cli-dump.h: New file.
8694 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8695 * NEWS: Mention new commands.
f02df580 8696
109f874e
MS
86972002-03-28 Michael Snyder <msnyder@redhat.com>
8698
8699 * symfile.c (symbol_file_add): Move test for null symbols to later.
8700
520f6ade
AC
87012002-03-27 Andrew Cagney <ac131313@redhat.com>
8702
8703 From veksler at il.ibm.com:
8704 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8705 the xstrduped original path.
8706 Fix PR gdb/417.
8707
d4654627
MS
87082002-03-27 Michael Snyder <msnyder@redhat.com>
8709
8710 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8711 * infcmd.c (_initialize_infcmd): Ditto.
8712 * language.c (_initialize_language): Ditto.
8713 * symfile.c (_initialize_symfile): Ditto.
8714 * top.c (_init_main): Ditto.
8715 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8716
6be8bc0c
EZ
87172002-03-27 Elena Zannoni <ezannoni@redhat.com>
8718
8719 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8720 vector registers handling.
8721 (skip_prologue): Handle new AltiVec instructions. Fill in new
8722 fields of frame data.
8723 (frame_get_saved_regs): Fill in information for AltiVec registers.
8724
12af6855
JB
87252002-03-27 Jim Blandy <jimb@redhat.com>
8726
8727 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8728 a function; leave this macro here to invoke that function.
8729 (symbol_init_mangled_name): Declaration for that function.
8730 * symtab.c (symbol_init_mangled_name): New function.
8731
dc672865
AC
87322002-03-27 Andrew Cagney <ac131313@redhat.com>
8733
8734 * valarith.c: Replace strerror with safe_strerror.
8735 * tracepoint.c: Ditto.
8736 * lin-lwp.c: Ditto.
8737 * go32-nat.c: Ditto.
8738 * inflow.c: Ditto.
8739 * gnu-nat.c: Ditto.
8740
d96429cd
AS
87412002-03-27 Andreas Schwab <schwab@suse.de>
8742
8743 * event-top.c (command_line_handler): Remove useless if.
8744
7e336ba1
AJ
87452002-03-27 Andreas Jaeger <aj@suse.de>
8746
8747 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8748 comment.
8749
de220d0f
ML
87502002-03-27 Michal Ludvig <mludvig@suse.cz>
8751
8752 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8753 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8754 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8755 (x86_64_linux_dr_get_status, supply_gregset),
8756 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8757 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8758 (x86_64_register_info_table): Add.
8759 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8760 (x86_64_register_raw_size, x86_64_register_virtual_type),
8761 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8762 general x86_64_register_info_table.
8763 (i386_gdbarch_init): gdbarch_register_bytes is now set
8764 dynamicaly during initialization.
8765 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8766 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8767
0e98d0a7
DJ
87682002-03-27 Daniel Jacobowitz <drow@mvista.com>
8769
8770 * gdbserver/server.c (main): Call target_signal_to_host_p
8771 and target_signal_to_host on signals received from the remote.
8772 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8773 target_signal_from_host on signals sent to the remote.
8774 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8775 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8776
3130066b
DJ
87772002-03-27 Daniel Jacobowitz <drow@mvista.com>
8778
8779 * signals/signals.c: Include "server.h" in gdbserver build.
8780 (target_signal_from_name): Don't use STREQ.
8781 (_initialize_signals): Likewise. Don't include function in
8782 gdbserver build.
8783
9aedf4f4
DJ
87842002-03-27 Daniel Jacobowitz <drow@mvista.com>
8785
8786 * signals.c: Moved to...
8787 * signals/signals.c: Here.
7e336ba1 8788 * Makefile (signals.o): Update.
9aedf4f4 8789
3fa41cdb
JL
87902002-03-26 Jeff Law (law@redhat.com)
8791
8792 * somread.c (som_symtab_read): Remove some commented out code and
8793 updated related comments. Do not set the minimal symbol table to
8794 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8795 in a dynamic executable.
8796 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8797 where we are unable to find the minimal symbol for the given
8798 PC value.
8799
ee677e8d
MS
88002002-03-25 Jeff Law (law@redhat.com)
8801
8802 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8803
e76e1718
ML
88042002-03-25 Michal Ludvig <mludvig@suse.cz>
8805
8806 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8807
18a642a1
AC
88082002-03-23 Andrew Cagney <ac131313@redhat.com>
8809
8810 * command.h: Update copyright.
8811 (struct cmd_list_element): Replace definition with opaque
8812 declaration.
8813 (enum cmd_types): Document that it will eventually be moved to
8814 cli/cli-decode.h
8815 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8816 (MALLOCED_REPLACEMENT): Delete macro.
8817 * Makefile.in (cli_decode_h): Add $(command_h).
8818 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8819 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8820 * completer.c: Include "cli/cli-decode.h".
8821 * maint.c: Include "cli/cli-decode.h".
8822 * cli/cli-decode.h: Include "command.h".
8823 (enum command_class): Delete.
8824 (enum cmd_types): Comment out.
8825 (enum cmd_auto_boolean): Delete.
8826 (enum var_types): Delete.
8827
b2875cc0
AC
88282002-03-23 Andrew Cagney <ac131313@redhat.com>
8829
8830 * cli/cli-decode.c: Include "gdb_assert.h".
8831 (add_set_or_show_cmd): New static function.
8832 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8833 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8834 all fields, such as func, from the set command.
8835
3b45974e
AC
88362002-03-23 Andrew Cagney <ac131313@redhat.com>
8837
8838 * MAINTAINERS (sh-elf): Change warning flag to -w.
8839
823ca731
AC
88402002-03-23 Andrew Cagney <cagney@redhat.com>
8841
8842 * defs.h (error): Add printf format attribute.
8843 * thread-db.c (thread_from_lwp): Fix error format string.
8844 * stack.c (parse_frame_specification): Ditto.
8845 * cli/cli-decode.c (undef_cmd_error): Ditto.
8846 * scm-lang.c (scm_lookup_name): Ditto.
8847 * tracepoint.c (trace_error): Ditto.
8848 * remote-utils.c (usage): Ditto.
8849 * remote.c (compare_sections_command): Ditto.
8850 Fix PR gdb/328.
8851
0e101458
AC
88522002-03-22 Andrew Cagney <ac131313@redhat.com>
8853
8854 * gdbtypes.c (append_composite_type_field): New function.
8855 (init_composite_type): New function.
8856 * gdbtypes.h (append_composite_type_field): Declare.
8857 (init_composite_type): Ditto.
8858
8e0662df
EZ
88592002-03-22 Elena Zannoni <ezannoni@redhat.com>
8860
8861 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8862 function.
8e0662df
EZ
8863 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8864 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8865 structure returning convention for SYSV ABI case, but not
8866 for GNU/Linux, FreeBSD, or NetBSD.
8867
3121eff0
DJ
88682002-03-22 Daniel Jacobowitz <drow@mvista.com>
8869
8870 * symtab.h (lookup_block_symbol): Add mangled_name argument
8871 to prototype.
8872
8873 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8874 with new mangled_name argument.
8875 * linespec.c (decode_line_1): Likewise.
8876 * valops (value_of_this): Likewise.
8877 * symtab.c (lookup_transparent_type): Likewise.
8878 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8879 (lookup_symbol): If we are given a mangled name, pass it down
8880 to lookup_symbol_aux.
8881 (lookup_block_symbol): If we are given a mangled name to check
8882 against, only return symbols which match it.
8883
349b409f
CF
88842002-03-22 Christopher Faylor <cgf@redhat.com>
8885
8886 * win32-nat.c (child_create_inferior): Check for proper shell to use
8887 here, in case the user changes it on the fly.
8888 (_initialize_inftarg): Remove shell path considerations.
8889
2a873819
EZ
88902002-03-21 Elena Zannoni <ezannoni@redhat.com>
8891
8892 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8893 for gdbarch_max_register_raw_size and max_register_virtual_size.
8894 Adjust copyright year.
8895
a1b9830c
DJ
88962002-03-21 Daniel Jacobowitz <drow@mvista.com>
8897
8898 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8899 in a function to cover the entire beginning of the function
8900 as well if it does not already.
8901
8b5790f2
TR
89022002-03-21 Tom Rix <trix@redhat.com>
8903
8904 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8905 (rs6000_ptrace64): Renamed from ptrace64.
8906
bdbe5747
MH
89072002-03-20 Martin M. Hunt <hunt@redhat.com>
8908
8909 * gdbserver/remote-utils.c (remote_open): Don't call
8910 getprotobyname, we're all using TCP here so just use
8911 IPPROTO_TCP.
7e336ba1 8912 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
8913
89142002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 8915
bdbe5747
MH
8916 * regcache.c (_initialize_regcache): No need to call
8917 build_regcache() at this time; it gets called whenever
8918 the gdbarch changes.
8919
7781cd62
DB
89202002-03-20 David O'Brien <obrien@FreeBSD.org>
8921
8922 * sparc-nat.c: Include sys/param.h where possible.
8923
f65ca430
DJ
89242002-03-20 Daniel Jacobowitz <drow@mvista.com>
8925
8926 Fix PR gdb/422.
8927 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8928 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8929 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8930 complex types.
8931 * stabsread.c (rs6000_builtin_type): Likewise.
8932 (read_sun_floating_type): Likewise.
8933
0c867556
PS
89342002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8935
8936 * stabsread.c (read_member_functions): Remove skip code for duplicate
8937 constructor/destructor methods. Use standard parsing for these
8938 methods and just do not chain them to the list of methods after
8939 parsing.
8940
12b9c64f
AO
89412002-03-19 Alexandre Oliva <aoliva@redhat.com>
8942
8943 * coffread.c: Remove redundant static declarations. Replace
8944 occurrences of `PTR' with `void *'.
8945 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8946 * top.h (quit_cover): Likewise.
8947 * defs.h (catch_errors): Likewise.
8948
349c5d5f
AC
89492002-03-18 Andrew Cagney <ac131313@redhat.com>
8950
8951 * defs.h (XMALLOC): Define.
8952 * gdb-events.sh (XMALLOC): Delete macro.
8953 * gdb-events.c, gdb-events.h: Regenerate.
8954 * gdbarch.sh (XMALLOC): Delete macro.
8955 * gdbarch.c: Regenerate.
8956 * serial.c (XMALLOC): Delete macro.
8957 * ui-file.c (XMALLOC): Ditto.
8958 * ser-unix.h (XMALLOC): Ditto.
8959 * sh-tdep.c (XMALLOC): Ditto.
8960 * ui-out.c (XMALLOC): Ditto.
8961 * utils.c (XMALLOC): Ditto.
8962 * i386-tdep.c (XMALLOC): Ditto.
8963 * gdb-events.c (XMALLOC): Ditto.
8964 * d10v-tdep.c (XMALLOC): Ditto.
8965 * cli-out.c (XMALLOC): Ditto.
8966
8967 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8968 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8969 * ui-file.c, ui-out.c: Ditto.
8970
7d0766f3
AC
89712002-03-18 Andrew Cagney <ac131313@redhat.com>
8972
8973 * command.h (struct cmd_list_element): Add field context.
8974 (set_cmd_context, get_cmd_context): Declare.
8975 * cli/cli-decode.h: Ditto.
8976 * cli/cli-decode.c (get_cmd_context): New function.
8977 (set_cmd_context): New function.
8978 (add_cmd): Initialize context.
8979 Part of fixing PR gdb/145 and PR gdb/146.
8980
5913bcb0
AC
89812002-03-17 Andrew Cagney <ac131313@redhat.com>
8982
1868c04e
AC
8983 * cli/cli-decode.c (cmd_type): New function.
8984 * command.h (cmd_type): Declare.
8985 * infrun.c (set_schedlock_func): Call function cmd_type.
8986 * kod.c (kod_set_os): Call cmd_type.
8987 * cris-tdep.c (cris_version_update): Use function cmd_type.
8988 (cris_mode_update, cris_abi_update): Ditto.
8989
5913bcb0
AC
8990 * command.h: (execute_cmd_post_hook): Declare.
8991 (execute_cmd_pre_hook): Declare.
8992 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8993 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8994 functions. Execute pre/post hook while ensuring that afterwords
8995 hook_in is cleared.
8996 * top.c (execute_command): Use execute_cmd_post_hook, and
8997 execute_cmd_pre_hook to execute pre/post commands.
8998 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8999 hook_stop_stub.
9000 (hook_stop_stub): Call execute_cmd_pre_hook.
9001
b51450c9
AC
90022002-03-17 Andrew Cagney <ac131313@redhat.com>
9003
9004 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9005 set'' and this leads to a core dump. Move xstrdup of
9006 operating_system to after check that it is not NULL.
9007
f66c9f11
AC
90082002-03-17 Andrew Cagney <ac131313@redhat.com>
9009
8e694ecf
AC
9010 * kod.c (kod_set_os): Remove unnecessary check that
9011 ``command->type'' is set_cmd.
9012
f66c9f11
AC
9013 * valprint.c (set_input_radix): Use input_radix.
9014 (set_output_radix): Use output_radix.
9015 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9016 isn't reverted.
9017
9d01611c
AC
90182002-03-16 Andrew Cagney <ac131313@redhat.com>
9019
9020 * value.h (struct value): Delete field ``substring_addr''. Change
9021 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
9022 force_core_addr_align and force_pointer_aligh.
9023
9024 * value.h (struct value): Fix typo in above change.
9d01611c 9025
4156bb53
PS
90262002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9027
9028 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9029 to fix internal_error from ``maintenance print architecture''.
9030
0e5e3ea6
PS
90312002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9032
9033 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9034 for gcc versions after gcc-2.8.1.
9035
9b013045
PS
90362002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9037
9038 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9039 for method resolution. Restore adjustment of ``this'' pointer after
9040 calling value_struct_elt, which was accidentally removed during the
9041 HP merge.
9042
376c9600
AC
90432002-03-15 Andrew Cagney <ac131313@redhat.com>
9044
9045 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9046 value_of_register.
9047 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9048 get_saved_register.
9049 * value.h (value_of_register): Update.
9050
a4db0f07
RH
90512002-03-14 Richard Henderson <rth@redhat.com>
9052
9053 * configure.in: Detect declaration for canonicalize_file_name.
9054 * utils.c (canonicalize_file_name): Declare, if needed.
9055 (gdb_realpath): Prefer realpath if available and usable.
9056 * config.in, configure: Rebuild.
9057
96383835
RH
90582002-03-14 Richard Henderson <rth@redhat.com>
9059
9060 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9061 a constant array bound.
9062
9063 * MAINTAINERS: Add myself to write-after-approval.
9064
75245b24
MS
90652002-03-14 Michael Snyder <msnyder@redhat.com>
9066
9067 * symfile.c (syms_from_objfile): Return immediately if no syms.
9068 (symbol_file_add): Return immediately if no syms.
9069 (find_sym_fns): Return immediately if no syms.
9070
e641a1ca
ML
90712002-03-13 Michal Ludvig <mludvig@suse.cz>
9072
9073 * gdbserver/remote-util.c (remote_open): Print remote-side's
9074 IP address when remote debugging over the network.
7e336ba1 9075
df08bfec
DB
90762002-03-12 David O'Brien <obrien@FreeBSD.org>
9077
9078 * config/sparc/fbsd.mh: Fix copyright.
9079 * config/sparc/fbsd.mt: Likewise.
9080
9a57864f
RE
90812002-03-11 Richard Earnshaw <rearnsha@arm.com>
9082
9083 * MAINTAINERS: Fix typo in name of gdb warnings option.
9084 (x86-64): Fix formating so that this can be parsed by awk.
9085
dd7bf85e
DJ
90862002-03-10 Daniel Jacobowitz <drow@mvista.com>
9087
9088 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9089 * defs.h: Include "gdb/signals.h".
9090 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9091
33a0a2ac
ML
90922002-03-10 Michal Ludvig <mludvig@suse.cz>
9093
9094 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 9095 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
9096 from x86-64-tdep.h
9097
dd824b04
DJ
90982002-03-10 Daniel Jacobowitz <drow@mvista.com>
9099 Don Howard <dhoward@redhat.com>
9100
9101 * mips-tdep.c (ST0_FR): Define.
9102 (mips2_fp_compat): New function, temporarily disabled.
9103 (mips_read_fp_register_single): New function.
9104 (mips_read_fp_register_double): New function.
9105 (mips_print_register): Use them.
9106 (do_fp_register_row): Likewise.
9107
6a41ff59
AC
91082002-03-09 Andrew Cagney <ac131313@redhat.com>
9109
9110 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9111 approval''.
9112
4ea09c10
PS
91132002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9114
9115 * stabsread.c (read_member_functions): Fix is_stub test for
9116 static member functions, improve comment.
9117
6ccc741d
RE
91182002-03-07 Richard Earnshaw <rearnsha@arm.com>
9119
9120 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9121 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9122 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9123 commands that set boolean values.
9124 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9125 (arm_rdi_resume): Always initialize PC.
9126 (arm_rdi_open): Don't use rslt as a boolean.
9127 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9128 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9129 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9130 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9131
438013df
AO
91322002-03-06 Alexandre Oliva <aoliva@redhat.com>
9133
9134 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9135 * configure: Rebuilt.
9136
70ed8774
SC
91372002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9138
9139 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9140 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9141
5ba2abeb
AC
91422002-03-06 Andrew Cagney <ac131313@redhat.com>
9143
9144 * cli/cli-decode.c (set_cmd_completer): New function.
9145 * command.h (set_cmd_completer): Declare.
9146 * cli/cli-decode.h (set_cmd_completer): Ditto.
9147
9148 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9149 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9150 * win32-nat.c (_initialize_inftarg): Ditto.
9151 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9152 * proc-api.c (_initialize_proc_api): Ditto.
9153 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9154 * source.c (_initialize_source): Ditto.
9155 * exec.c (_initialize_exec): Ditto.
9156 * solib.c (_initialize_solib): Ditto.
9157 * top.c (init_main): Ditto.
9158 * tracepoint.c (_initialize_tracepoint): Ditto.
9159 * symfile.c (_initialize_symfile): Ditto.
9160 * printcmd.c (_initialize_printcmd): Ditto.
9161 * infcmd.c (_initialize_infcmd): Ditto.
9162 * corefile.c (_initialize_core): Ditto.
9163
f779ca99
AC
91642002-03-05 Andrew Cagney <ac131313@redhat.com>
9165
9166 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9167
01a3934b
AC
91682002-03-05 Andrew Cagney <ac131313@redhat.com>
9169
9170 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9171
37057839
AC
91722002-03-05 Andrew Cagney <ac131313@redhat.com>
9173
9174 * NEWS: Update headings, 5.2 has branched.
9175
c6ecbae5
DJ
91762002-03-04 Daniel Jacobowitz <drow@mvista.com>
9177
9178 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9179 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9180 (register_addr, REGISTER_RAW_SIZE): Likewise.
9181 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9182 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9183
e9f30c21
ML
91842002-03-03 Michal Ludvig <mludvig@suse.cz>
9185
9186 * MAINTAINERS (x86-64): Add myself.
9187 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9188 changed value_ptr -> struct value *
9189
54394ac3
DB
91902002-03-01 David O'Brien <obrien@FreeBSD.org>
9191
9192 * configure.host (sparc64-*-freebsd): Add.
9193 * configure.tgt: Likewise.
9194 * config/sparc/fbsd.mh: New file.
9195 * config/sparc/fbsd.mt: Likewise.
9196 * config/sparc/nm-fbsd.h: Likewise.
9197 * config/sparc/tm-fbsd.h: Likewise.
9198
bfe95955
DJ
91992002-03-01 Daniel Jacobowitz <drow@mvista.com>
9200
9201 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9202 regformats/reg-s390x.dat.
9203
f33c6cbf
AC
92042002-03-01 Andrew Cagney <ac131313@redhat.com>
9205
9206 * utils.c: Add FIXME explaining true/false problem.
9207
5ecaa7dd
AC
92082002-02-28 Andrew Cagney <ac131313@redhat.com>
9209
9210 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9211
2a251cc2
MC
92122002-02-28 Michael Chastain <mec@shout.net>
9213
9214 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9215
6a8031a3 92162002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
9217
9218 * gdbserver/linux-s390-low.c: New file.
9219 * regformats/reg-s390.dat: New file.
9220 * regformats/reg-s390x.dat: New file.
9221 * gdbserver/configure.srv: Add S/390.
9222 * gdbserver/Makefile.in: Add S/390.
9223 * configure.tgt: Enable gdbserver for S/390.
9224
ac469903
EZ
92252002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9226
9227 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9228 first line of the doc string for "info dos", except at the end of
9229 the sentence, since the short help stops at the first period.
9230
985cb1a3
JM
92312002-02-28 Jason Merrill <jason@redhat.com>
9232
9233 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9234
c570663e
FF
92352002-02-27 Fred Fish <fnf@redhat.com>
9236
9237 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9238 comment (dumy -> dummy).
9239
43630227
PS
92402002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9241
9242 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9243
b84911e8
RB
92442002-02-27 Rodney Brown <rbrown64@csc.com.au>
9245
9246 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9247
58caa3dc
DJ
92482002-02-27 Daniel Jacobowitz <drow@mvista.com>
9249
9250 * gdbserver/acconfig.h: New file.
9251 * gdbserver/i387-fp.c: New file.
9252 * gdbserver/i387-fp.h: New file.
9253 * gdbserver/linux-x86-64.c: New file.
9254 * regformats/reg-x86-64.dat: New file.
9255 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9256 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9257 * gdbserver/configure.in: Add support for regsets.
9258 * gdbserver/config.in: Regenerate.
9259 * gdbserver/configure: Regenerate.
9260 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9261 * gdbserver/linux-low.h: New file.
9262 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9263 for regsets.
9264 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9265 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9266 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9267 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9268 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9269 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9270 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9271 "i387-fp.h". Add PTRACE_GETREGS and friends.
9272 * gdbserver/regcache.c (supply_register): New function.
9273 (supply_register_by_name): New function.
9274 (collect_register): New function.
9275 (collect_register_by_name): New function.
9276
93652174
DJ
92772002-02-27 Daniel Jacobowitz <drow@mvista.com>
9278
9279 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9280 (config.status): Add configure.srv dependency.
9281 (server_h): Add config.h dependency.
9282
a02e4a61
DJ
92832002-02-27 Daniel Jacobowitz <drow@mvista.com>
9284
9285 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9286 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9287 * gdbserver/configure.srv: Change i386-*-linux* to use
9288 reg-i386-linux.o.
9289
ce0eebec
AC
92902002-02-26 Andrew Cagney <ac131313@redhat.com>
9291
9292 * x86-64-tdep.c: Re-indent. Update copyright date.
9293
82dbc5f7
AC
92942002-02-26 Andrew Cagney <ac131313@redhat.com>
9295
9296 From Michal Ludvig <mludvig@suse.cz>:
9297 * x86-64-tdep.c (value.h): Delete.
9298 (gdb_assert.h): Include.
9299 (x86_64_register_convert_to_virtual,
9300 x86_64_register_convert_to_raw ): Add check which lets only
9301 floating-point values to be converted.
9302 (value_push): Delete.
9303 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9304 (i386_gdbarch_init): Number of register_bytes fixed.
9305
e4621584
AC
93062002-02-26 Andrew Cagney <ac131313@redhat.com>
9307
9308 * MAINTAINERS: Add x86-64 target.
9309
81a9a963
AC
93102002-02-26 Andrew Cagney <ac131313@redhat.com>
9311
9312 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9313 * osfsolib.c (solib_map_sections): Ditto.
9314 * irix5-nat.c (solib_map_sections): Ditto.
9315 * corelow.c (gdb_check_format): Ditto.
9316 * symfile.c (symfile_bfd_open): Ditto.
9317 * solib.c (solib_map_sections): Ditto.
9318 Fix PR gdb/354.
7e336ba1 9319
0f017ab9
AC
93202002-02-26 Andrew Cagney <ac131313@redhat.com>
9321
9322 * remote.c (_initialize_remote): By default, disable ``e'' and
9323 ``E'' step out-of-range packets.
9324
75738c29
AS
93252002-02-26 Andreas Schwab <schwab@suse.de>
9326
9327 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9328 m68k_linux_frame_saved_pc.
9329 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9330 in_sigtramp.
9331 (SIGCONTEXT_PC_OFFSET): Remove.
9332 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9333 m68k_linux_sigtramp_saved_pc): New functions.
9334 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9335 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9336 (UCONTEXT_PC_OFFSET): Define.
9337 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9338 non-RT and RT signal trampolines.
9339
7e8ed687
RE
93402002-02-26 Richard Earnshaw <rearnsha@arm.com>
9341
9342 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9343 (TARGET_NBPG, STACK_END_ADDR): Delete
9344 (VARIABLES_INSIDE_BLOCK): Delete.
9345
6972bc8b
AC
93462002-02-25 Andrew Cagney <ac131313@redhat.com>
9347
9348 * utils.c (perror_with_name): Make string parameter constant.
9349 (print_sys_errmsg): Ditto.
9350 (query): Ditto.
9351 * defs.h (perror_with_name): Update.
9352 (print_sys_errmsg): Update.
9353 (query): Update.
9354
aa32f823
DJ
93552002-02-25 Daniel Jacobowitz <drow@mvista.com>
9356
9357 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9358 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9359
19caaa45
PS
93602002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9361
9362 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9363 if it already matches the current architecture from the exec file.
9364 Include arch-utils.h for gdbarch_info_init prototype.
9365 * Makefile.in (rs6000-nat.o): Update dependencies.
9366
d951901f
EZ
93672002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9368
9369 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9370 list of exported variables.
9371
7ea81414
DJ
93722002-02-24 Daniel Jacobowitz <drow@mvista.com>
9373
9374 * gdbserver/configure.srv: New file.
9375 * gdbserver/configure.in: Use configure.srv instead
9376 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9377 from it.
9378 * gdbserver/configure: Regenerated.
9379 * gdbserver/terminal.h: New file.
9380 * gdbserver/Makefile.in: Update for configure changes. Remove
9381 more unneeded include paths.
9382
080fe24b
AC
93832002-02-24 Andrew Cagney <ac131313@redhat.com>
9384
9385 From wiz at danbala:
9386 * config/sparc/tm-sp64.h: Fix grammar and typos.
9387 Fix PR gdb/287.
9388
8605d56e
AC
93892002-02-24 Andrew Cagney <ac131313@redhat.com>
9390
9391 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
9392 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9393 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9394 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
9395 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9396 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9397 * s390-tdep.c: Ditto.
92362027
AC
9398 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9399 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9400 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9401 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9402 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9403 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9404 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9405 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9406 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9407 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9408 Fix PR gdb/378.
7e336ba1 9409
8ed32cc0
AC
94102002-02-23 Andrew Cagney <ac131313@redhat.com>
9411
a3007b6f
AC
9412 * lin-thread.c: Delete file.
9413 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9414 to gdb_proc_service.h.
9415 * configure: Re-generate.
9416
50a9e2f1
AC
9417 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9418 * serial.c (serial_open): Delete check for "ocd".
9419 Fix PR gdb/349.
9420
8b6e7932
AC
9421 * Makefile.in (linux-thread.o): Delete target.
9422 * linux-thread.c: Delete file.
9423
d155c46b
AC
9424 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9425 renamed SH files to be consistent.
9426
8ed32cc0
AC
9427 * symtab.c (sort_search_symbols): Use xfree.
9428
0e18d038
RE
94292002-02-23 Richard Earnshaw <rearnsha@arm.com>
9430
9431 * arm-linux-tdep.c (arm_linux_init_abi): Register
9432 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9433 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9434 definition with undef, since we don't want the sysvr4 definition.
9435 (SKIP_TRAMPOLINE_CODE): Likewise.
9436
27aac7ff
AC
94372002-02-23 Andrew Cagney <ac131313@redhat.com>
9438
9439 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9440
9441 * configure.in: (AC_CHECK_FUNCS) Added test for
9442 canonicalize_file_name Regenerated.
9443 * config.in, configure: Regenerated.
9444 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9445 defined use canonicalize_file_name.
7e336ba1 9446
65a6e0ee
MC
94472002-02-23 Michael Chastain <mec@shout.net>
9448
9449 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9450
47b95330
AC
94512002-02-23 Andrew Cagney <ac131313@redhat.com>
9452
9453 * README: Remove references to cygnus.com.
9454 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9455 dot com'' form. Remove references to cygnus.com and sourceware.
9456
696f451b
AC
94572002-02-23 Andrew Cagney <ac131313@redhat.com>
9458
9459 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9460 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9461 1003.1-2001 no longer allows "head -1".
9462 * gdb/Makefile.in (version.c): Likewise.
9463 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9464 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9465 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9466
bbaca940
AC
94672002-02-23 Andrew Cagney <ac131313@redhat.com>
9468
9469 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9470 * command.h (cmd_cfunc_eq): Declare.
9471 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9472
9473 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9474 ``struct cmd_list_element *''.
9475 * cli/cli-cmds.c (is_complete_command): Update. Use
9476 cmd_cfunc_eq.
9477 * top.c (execute_command): Pass the command to
9478 is_complete_command.
9479 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9480
b8b8b047
AC
94812002-02-23 Andrew Cagney <ac131313@redhat.com>
9482
9483 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9484 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9485 architecture defines.
9486 * s390-tdep.c (s390_gdbarch_init): Likewise.
9487
19d3fc80
RE
94882002-02-23 Richard Earnshaw <rearnsha@arm.com>
9489
9490 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9491 (arm_linux_push_arguments): Likewise.
9492 (arm_linux_init_abi): Register them. Also register linux-specific
9493 call_dummy_words.
9494 (find_minsym_and_objfile): Use strcmp, not STREQ.
9495 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9496 (arm_linux_call_dummy_words): Delete declaration.
9497 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9498 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9499 declarations.
9500 (LOWEST_PC): Delete.
9501
3ab13650
PS
95022002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9503
9504 * maint.c (print_section_info): Do not prepend `0x' to filepos
9505 output, it will be handled by local_hex_string_custom.
9506
19d3fc80 95072002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
9508
9509 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9510 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9511 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9512
d85a5daf
JB
95132002-02-22 Jim Blandy <jimb@redhat.com>
9514
9515 Indicate that the bcache functions don't change the strings
9516 they're passed.
9517 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9518 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9519
eeb25b8a
PM
95202002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9521
9522 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9523
6badb179
CF
95242002-02-21 Christopher Faylor <cgf@redhat.com>
9525
9526 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9527 find the complete path to a loaded DLL.
9528
e8717518
FF
95292002-02-21 Fred Fish <fnf@redhat.com>
9530
9531 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9532 that marks the end of the range of a function, enter a line number
9533 entry that has a line number of zero and a PC offset that matches
9534 the end of the function. This starts a range of PC's for which no
9535 line number information is known.
9536 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9537 PC's for which no line number info is found (line number is zero)
9538 then we didn't find any valid line information.
9539 * symtab.h: Document use of zero line number entry.
9540
9abe5450
EZ
95412002-02-21 Elena Zannoni <ezannoni@redhat.com>
9542
9543 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9544 (have_ptrace_getvrregs): Define for run time checks.
9545 (gdb_vrregset_t): New type for Altivec register handling.
9546 (fetch_register, store_register): Fetch/store altivec register
9547 when needed.
9548 (fetch_altivec_register, store_altivec_register): New functions.
9549 (supply_vrregset, fill_vrregset): New functions.
9550 (fetch_altivec_registers, store_altivec_registers): New functions.
9551 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9552 registers as well.
9553
aaa38bb5
AJ
95542002-02-21 Jiri Smid <smid@suse.cz>
9555
9556 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9557
b34db576
RE
95582002-02-21 Richard Earnshaw <rearnsha@arm.com>
9559
9560 * Makefile.in (armnbsd-nat.o): Update dependencies.
9561 * armnbsd-nat.c (supply_gregset): New function. Common code to
9562 supply the integer register set.
9563 (supply_fparegset): New function. Similar for FPA registers.
9564 (fetch_regs, fetch_fp_regs): Use them.
9565 (fetch_core_registers): Likewise.
9566 (fetch_elfcore_registers): New function.
9567 (arm_netbsd_elfcore_fns): New core-file type specification.
9568 (_initialize_arm_netbsd_nat): Register it.
9569
3e56fc4b
RE
95702002-02-21 Richard Earnshaw <rearnsha@arm.com>
9571
9572 * armnbsd-nat.c: Include gdbcore.h.
9573 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9574 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9575 'void' to declaration, to shut up ARI.
9576 (fetch_core_registers): Make static. Rewrite using supply_register.
9577 (arm_netbsd_core_fns): New core-file type specification.
9578 (_initialize_arm_netbsd_nat): New function.
9579
097f6b0b
CF
95802002-02-21 Christopher Faylor <cgf@redhat.com>
9581
9582 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9583 value.
9584
c914e0cc
CF
95852002-02-20 Christopher Faylor <cgf@redhat.com>
9586
9587 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9588 fails.
9589
385fa495
DJ
95902002-02-20 Daniel Jacobowitz <drow@mvista.com>
9591
9592 * jv-exp.y (parse_number): Change type of implicit longs
9593 to builtin_type_uint64.
9594
e5f1222d
DJ
95952002-02-20 Daniel Jacobowitz <drow@mvista.com>
9596
9597 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9598 to be an integer instead of a `union wait'.
9599
75c9abc6
DJ
96002002-02-20 Daniel Jacobowitz <drow@mvista.com>
9601
9602 * mips-linux-nat.c: Call the operating system GNU/Linux.
9603 * mips-linux-tdep.c: Likewise.
9604 * mips-tdep.c: Likewise.
9605
551792a5
DJ
96062002-02-20 Daniel Jacobowitz <drow@mvista.com>
9607
9608 Fix PR gdb/265.
9609 * jv-exp.y (parse_number): Handle 64-bit integers.
9610
ee6e2b82
DJ
96112002-02-20 Daniel Jacobowitz <drow@mvista.com>
9612
9613 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9614 AC_STDC_HEADERS to AC_HEADER_STDC.
9615 * gdbserver/configure: Regenerated.
9616
a48442a0
RE
96172002-02-20 Richard Earnshaw <rearnsha@arm.com>
9618
9619 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9620 is defined.
9621 * sparc-tdep.c (get_longjmp_target): Likewise.
9622
fe419ffc
RE
96232002-02-20 Richard Earnshaw <rearnsha@arm.com>
9624
9625 * News: Add news about ARM and Multi-arch. Mention the new target
9626 arm*-*-netbsd*.
9627
5832ed7e
JB
96282002-02-19 Jim Blandy <jimb@redhat.com>
9629
9630 * stabsread.c (error_type_complaint): Improve error message.
9631
84563040
DJ
96322002-02-19 Daniel Jacobowitz <drow@mvista.com>
9633
9634 * gdbserver/README: Update documentation.
9635 * gdbserver/configure.in: Update configury to match documentation.
9636 * gdbserver/Makefile.in: Likewise.
9637 * gdbserver/configure: Regenerated.
9638 * gdbserver/aclocal.m4: New file, generated by aclocal.
9639 * gdbserver/config.in: New file, generated by autoheader.
9640
375fd65b
RE
96412002-02-19 Richard Earnshaw <rearnsha@arm.com>
9642
9643 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9644 armnbsd-nat.c.
9645
08216dd7
RE
96462002-02-19 Richard Earnshaw <rearnsha@arm.com>
9647
9648 * arm-tdep.h (enum arm_float_model): New enum.
9649 (struct gdbarch_tdep): Add fp_model.
9650 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9651 up floating-point conversions until we know the floating-point model
9652 in use by the inferior. Don't complain about being unable to
9653 determine the ABI of the inferior when we don't have one.
9654 (arm_extract_return_value): Support different floating-point models.
9655 (arm_store_return_value): Likewise.
aaa38bb5 9656 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9657 ARM_FLOAT_SOFT.
9658 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9659
65d6d66a
PS
96602002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9661
9662 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9663 of ``current_gdbarch''.
9664
47221191
RE
96652002-02-19 Richard Earnshaw <rearnsha@arm.com>
9666
9667 * armnbsd-nat.c : ANSIfy all function declarations.
9668 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9669 (fetch_inferior_registers): Re-implement in terms of above.
9670 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9671 (store_inferior_registers): Re-implement in terms of above.
9672
fdf39c9a
RE
96732002-02-19 Richard Earnshaw <rearnsha@arm.com>
9674
aaa38bb5 9675 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9676 kernel.
9677 * arm-linux-tdep.c: Likewise.
9678 * config/arm/tm-linux.h: Likewise.
9679
93247f88
RE
96802002-02-19 Richard Earnshaw <rearnsha@arm.com>
9681
9682 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9683 * config/arm/nbsd.mt (TM_FILE): Delete.
9684 * config/arm/tm-nbsd.h: Delete.
9685
d7b486e7
RE
96862002-02-19 Richard Earnshaw <rearnsha@arm.com>
9687
9688 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9689 Initialize CALL_DUMMY_LENGTH.
9690
41d39a95
RE
96912002-02-19 Richard Earnshaw <rearnsha@arm.com>
9692
9693 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9694 function.
9695 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9696 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9697 defines one thing and that is incorrect for this port.
9698 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9699
e1195560
PM
97002002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9701
9702 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9703
c1748f97
PM
97042002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9705
9706 * win32-nat.c (display_selector): New function. Displays information
9707 about the information returned by GetThreadSelectorEntry API function.
9708 (display_selectors): New function. Displays the infomation of
9709 the selector given as argument, or of CS, DS ans FS selectors
9710 if no argument is given.
9711 ( _initialize_inftarg): Add "w32" as info prefix command.
9712 Add "info w32 selector" as command calling display_selectors.
9713
e41e6bbf
PM
97142002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9715
9716 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9717 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9718 if not defined.
9719
0d3a9f48
RE
97202002-02-18 Richard Earnshaw <rearnsha@arm.com>
9721
9722 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9723
3fb4b924
RE
97242002-02-18 Richard Earnshaw <rearnsha@arm.com>
9725
9726 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9727 (arm_fix_call_dummy): Call it.
9728 (arm_call_dummy_breakpoint_offset): Delete.
9729 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9730 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9731
7f55af32
AC
97322002-02-18 Andrew Cagney <ac131313@redhat.com>
9733
9734 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9735 Default to func_frame_chain_valid.
9736 * gdbarch.h, gdbarch.c: Re-generate.
9737 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9738
05f13b9c
EZ
97392002-02-18 Elena Zannoni <ezannoni@redhat.com>
9740
9741 * ppc-linux-nat.c: Update copyright.
9742 (fetch_register, store_register): Add tid parameter, don't compute
9743 tid here.
9744 (fetch_ppc_registers, store_ppc_registers): Add tid
9745 parameter. Pass it along to callees.
9746 (fetch_inferior_registers, store_inferior_registers): Compute tid
9747 here, and pass it to calleed functions.
9748 (fill_gregset, supply_fpregset): Clean up formatting.
9749
d7afb4c9
RE
97502002-02-18 Richard Earnshaw <rearnsha@arm.com>
9751
9752 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9753 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9754
9df628e0
RE
97552002-02-18 Richard Earnshaw <rearnsha@arm.com>
9756
9757 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9758 * gdbarch.c gdbarch.h: Regenerate.
9759 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9760 function.
9761 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9762 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9763 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9764
9765 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9766 * arm-tdep.c (arm_get_longjmp_target): New function.
9767 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9768 this to a positive value register arm_get_longjmp_target as the
9769 longjmp handler.
9770 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9771 (arm_linux_init_abi): Set up longjmp description in tdep.
9772 * armnbsd-nat.c (get_longjmp_target): Delete.
9773 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9774 description in tdep.
9775 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9776 (get_longjmp_target): Delete declaration.
9777 (GET_LONGJMP_TARGET): Delete.
9778 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9779 (GET_LONGJMP_TARGET): Delete.
9780
57bc8964
KB
97812002-02-17 Kevin Buettner <kevinb@redhat.com>
9782
9783 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9784 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9785 of ``current_gdbarch''.
9786
83d31a92
TT
97872002-02-17 Tom Tromey <tromey@redhat.com>
9788
9789 * cli/cli-cmds.c (compare_strings): New function.
9790 (complete_command): Only print each unique item once.
9791 * completer.h (complete_line): Declare.
9792 * completer.c (complete_line): New function.
9793 (line_completion_function): Use it.
9794
17ef5d92
AC
97952002-02-16 Andrew Cagney <ac131313@redhat.com>
9796
9797 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9798 * gdbarch.h, gdbarch.c: Re-generate.
9799
491b8946
DJ
98002002-02-16 Daniel Jacobowitz <drow@mvista.com>
9801
9802 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9803
98042002-02-16 Daniel Jacobowitz <drow@mvista.com>
9805
9806 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9807 * valops.c (value_arg_coerce): Don't take the address of a reference
9808 to convert an argument to a reference.
9809
dfe7f3ac
CF
98102002-02-15 Christopher Faylor <cgf@redhat.com>
9811
9812 * win32-nat.c (get_image_name): New function.
9813 (handle_load_dll): Use get_image_name function.
9814 (get_child_debug_event): Avoid registering debug events until possibly
9815 execed process is started.
9816 (child_create_inferior): Allow invocation via shell so that command
9817 line redirection, etc. works ok.
9818 (_initialize_inftarg): Add new command: "set shell" to control whether
9819 a shell is used to start a process.
9820
1d33e73a
DJ
98212002-02-15 Daniel Jacobowitz <drow@mvista.com>
9822
9823 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9824 instead of find_register_by_number.
9825 (cannot_store_register): Likewise.
9826
48cd0caa
PM
98272002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9828
aaa38bb5 9829 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9830 fprintf_unfiltered (gdb_stderr, ...).
9831
8656e7d8
DJ
98322002-02-15 Daniel Jacobowitz <drow@mvista.com>
9833
9834 * gdbserver/gdbserver.1: Document --attach.
9835
66e810cd
RE
98362002-02-15 Richard Earnshaw <rearnsha@arm.com>
9837
9838 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9839 descriptions.
9840 * arm-tdep.c (arm_default_arm_le_breakpoint)
9841 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9842 (arm_default_thumb_be_breakpoint): New. Initialize them from
9843 traditional breakpoint defines.
9844 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9845 (arm_gdbarch_init): Initialize new breakpoint variables.
9846 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9847 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9848 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9849 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9850 code out to ...
9851 (arm_netbsd_init_abi_common): ... here; new function.
9852 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9853 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9854 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9855 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9856
97e03143
RE
98572002-02-15 Richard Earnshaw <rearnsha@arm.com>
9858
9859 * arm-tdep.h (enum arm_abi): New enum.
9860 (struct gdbarch_tdep): New structure.
9861 (LOWEST_PC): Provide a default.
9862 (arm_gdbarch_register_os_abi): Declare new function.
9863 * arm-tdep.c (arm_abi_names): New array.
9864 (process_note_abi_tag_sections): New function.
9865 (get_elfosabi): New function.
9866 (arm_gdbarch_register_os_abi): New function.
9867 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9868 support for that ABI has been built in, then call the appropriate
9869 configuration routine. Use gdbarch_num_regs() to get the number
9870 of registers.
9871 (arm_dump_tdep): New function.
9872 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9873 place-holder functions.
9874 (_initialize_arm_tdep): Register them.
9875 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9876
9877 * armnbsd-tdep.c: New file.
9878 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9879 * config/arm/nbsd.mt (TDEPFILES): Add it.
9880 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9881
9882 * armnbsd-nat.c: Include regcache.h.
9883 * Makefile.in (armnbsd-nat.o): Update dependency list.
9884
9885 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9886
ad68be46
DJ
98872002-02-14 Daniel Jacobowitz <drow@mvista.com>
9888
9889 * gdbserver/Makefile.in: Fix typos in target rules.
9890
003d6d1d
DJ
98912002-02-14 Daniel Jacobowitz <drow@mvista.com>
9892
aaa38bb5 9893 Fix part of PR gdb/267.
003d6d1d
DJ
9894 * linespec.c (find_methods): Handle constructors specially for now.
9895
6b230f1b
CV
98962002-02-14 Corinna Vinschen <vinschen@redhat.com>
9897
9898 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9899 handling.
9900 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9901 standard_coerce_float_to_double().
9902
1ea98d12
CF
99032002-02-14 Christopher Faylor <cgf@redhat.com>
9904
9905 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9906 GDBINIT_FILENAME.
9907
dd47e6fd
EZ
99082002-02-14 Elena Zannoni <ezannoni@redhat.com>
9909
9910 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9911 find_variant_by_name, because it confuses the multiarch
9912 framework. Return NULL if there isn't an architecture with the
9913 user supplied name, instead of forcing a different one without
9914 recording the change with the multiarch machinery.
9915 (find_variant_by_name): Delete.
9916
d7e39b9e
PS
99172002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9918
9919 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9920 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9921
76e42a4f
MH
99222002-02-13 Martin M. Hunt <hunt@redhat.com>
9923
aaa38bb5 9924 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
9925 print_frame_info_listing_hook, set current_source_symtab.
9926
0a30fbc4
DJ
99272002-02-14 Daniel Jacobowitz <drow@mvista.com>
9928
9929 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9930 and remove unused $(INCLUDE_DIR).
9931 Add regcache.c to OBS.
9932 Add generated register protocol files to clean target.
9933 Update dependencies for new objects, obsolete old target code.
9934
9935 * gdbserver/linux-low.c: Remove all platform-specific code to
9936 new files. Remove various dead code. Update to use regcache
9937 functionality.
9938 * gdbserver/remote-utils.c (fromhex): Add return statement
9939 to quiet warning.
9940 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9941 constant.
9942 (input_interrupt): Add integer parameter to match prototype
9943 of a signal handler.
9944 (outreg): Use register_data ().
9945 (prepare_resume_reply): Use gdbserver_expedite_regs.
9946 * gdbserver/server.c (main): Dynamically allocate own_buf because
9947 PBUFSIZ is no longer constant. Use registers_to_string () and
9948 registers_from_string ().
9949 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9950 for error (), fatal (), and warning (). Update definition of
9951 PBUFSIZ to use regcache functionality. Add include guard.
9952 * gdbserver/utils.c (fatal): Add missing ``const''.
9953 (warning): New function.
9954
9955 * regformats/regdat.sh: Include "regcache.h" in generated files.
9956 Provide init_registers () function.
9957 * regformats/regdef.h: Add prototype for set_register_cache ().
9958 Add include guard.
9959
9960 * gdbserver/linux-arm-low.c: New file.
9961 * gdbserver/linux-i386-low.c: New file.
9962 * gdbserver/linux-ia64-low.c: New file.
9963 * gdbserver/linux-m68k-low.c: New file.
9964 * gdbserver/linux-mips-low.c: New file.
9965 * gdbserver/linux-ppc-low.c: New file.
9966 * gdbserver/linux-sh-low.c: New file.
9967
9968 * gdbserver/regcache.c: New file.
9969 * gdbserver/regcache.h: New file.
9970
9971 * gdbserver/low-linux.c: Removed obsolete file.
9972
4cc841d0
DJ
99732002-02-14 Daniel Jacobowitz <drow@mvista.com>
9974
9975 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9976 * config/i386/linux.mt: Likewise.
9977 * config/ia64/linux.mt: Likewise.
9978 * config/m68k/linux.mh: Likewise.
9979 * config/powerpc/linux.mh: Likewise.
9980 * config/mips/linux.mt: Likewise.
9981
9982 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9983
9984 * config/i386/i386lynx.mh: Mark gdbserver variables
9985 as (currently) obsolete for this target.
9986 * config/i386/nbsd.mt: Likewise.
9987 * config/i386/nbsdelf.mt: Likewise.
9988 * config/m32r/m32r.mt: Likewise.
9989 * config/m68k/m68klynx.mh: Likewise.
9990 * config/m68k/nbsd.mt: Likewise.
9991 * config/m68k/sun3os4.mh: Likewise.
9992 * config/mips/vr5000.mt: Likewise.
9993 * config/ns32k/nbsd.mt: Likewise.
9994 * config/pa/hppabsd.mh: Likewise.
9995 * config/pa/hppaosf.mh: Likewise.
9996 * config/powerpc/nbsd.mt: Likewise.
9997 * config/rs6000/rs6000lynx.mh: Likewise.
9998 * config/s390/s390.mt: Likewise.
9999 * config/s390/s390x.mt: Likewise.
10000 * config/sparc/sparclynx.mh: Likewise.
10001 * config/sparc/sun4os4.mh: Likewise.
10002 * config/i386/x86-64linux.mt: Likewise.
10003 * config/sparc/linux.mh: Likewise.
10004
a85f51e7
DJ
100052002-02-14 Daniel Jacobowitz <drow@mvista.com>
10006
10007 * configure.tgt: Configure gdbserver only for known working
10008 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10009 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10010 SUBDIRS if it is configured. Update comment for ${nativefile}.
10011 * configure: Regenerated.
10012
65554fef
MS
100132002-02-13 Michael Snyder <msnyder@redhat.com>
10014
670a52db
MS
10015 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10016
6dbdc4a3
MS
10017 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10018 (default_gcore_mach): Just return 0, work around a problem in bfd.
10019 (default_gcore_target): OK to return NULL if exec_bfd is null.
10020 (make_mem_sec): Use a cast, avoid a warning.
10021
10022 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 10023 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
10024 sizeof (host pointer) != sizeof (target pointer)).
10025 (procfs_make_note_section): Avoid overflow in psargs string.
10026
aaa38bb5 10027 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
10028 implementation return an error.
10029
100302002-02-13 Rodney Brown <rbrown64@csc.com.au>
10031
10032 * procfs.c (procfs_make_note_section): Provide a default definition
10033 (for alpha-dec-osf4.0f). Fix typos.
10034
1e4d76e7
EZ
100352002-02-13 Elena Zannoni <ezannoni@redhat.com>
10036
10037 * linux-proc.c: Add include of regcache.h.
10038 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10039
b6d1a1d5
AC
100402002-02-13 Andrew Cagney <ac131313@redhat.com>
10041
10042 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
10043 * memattr.c (create_mem_region): Disallow useless empty region.
10044 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 10045 non-overlapping.
b6d1a1d5 10046
6c6ea35e
MC
100472002-02-13 Michael Chastain <mec@shout.net>
10048
10049 * defs.h: Kill CONST_PTR.
10050 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10051 * c-lang.c (c_builtin_types): Likewise.
10052 * ch-lang.c (ch_builtin_types): Likewise.
10053 * f-lang.c (f_builtin_types): Likewise.
10054 * language.c (unknown_builtin_types): Likewise.
10055 * m2-lang.c (m2_builtin_types): Likewise.
10056 * p-lang.c (pascal_builtin_types): Likewise.
10057 * scm-lang.c (c_builtin_types): Likewise.
10058
3e0b0f48
KS
100592002-02-13 Keith Seitz <keiths@redhat.com>
10060
10061 * arm-tdep.h (arm_get_next_pc): Add declaration.
10062
67255d04
RE
100632002-02-13 Richard Earnshaw <rearnsha@arm.com>
10064
10065 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10066 with other related struct-returning functions.
10067 (arm_extract_struct_value_address): New function.
10068 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10069 initialize float_format, double_format and long_double_format as
10070 appropriate to the endianness of the target.
10071 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10072 (arm_use_struct_convention): Delete declaration.
10073 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10074
079777f6
KS
100752002-02-13 Keith Seitz <keiths@redhat.com>
10076
10077 * defs.h (core_addr_to_string_nz): New function.
10078
34588f23
MK
100792002-02-13 Mark Kettenis <kettenis@gnu.org>
10080
10081 Apply missing bits of 2002-01-15 patch.
10082 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10083 (fill_fpregset): Use i387_fill_fsave.
10084
49b563f9
KS
100852002-02-12 Keith Seitz <keiths@redhat.com>
10086
49b563f9
KS
10087 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10088 (core_addr_to_string_nz): New function.
10089
aeb98c60
RE
100902002-02-11 Richard Earnshaw <rearnsha@arm.com>
10091
10092 * arm-linux-nat.c: Really include arm-tdep.h.
10093 * config/arm/tm-linux.h (struct type, struct value): Declare.
10094
65554fef
MS
100952002-02-11 Michael Snyder <msnyder@redhat.com>
10096
10097 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10098 (gcore section): Ifdef for Solaris and Unixware only.
10099 (procfs_do_thread_registers): Unixware needs one lwpstatus
10100 per thread (not one prstatus or pstatus).
10101 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10102 not over all gdb threads. For unixware, call elfcore_write_pstatus
10103 once before iterating over threads.
10104
34e8f22d
RE
101052002-02-11 Richard Earnshaw <rearnsha@arm.com>
10106
10107 * arm-tdep.h: New file.
10108 * arm-tdep.c: Include arm-tdep.h.
10109 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10110 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10111 (arm_print_float_info, arm_register_type, convert_to_extended)
10112 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10113 (arm_extract_return_value, arm_register_name): Make static.
10114 (arm_software_single_step): Similarly. Fix types in declaration.
10115 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10116 (arm_store_return_value, arm_store_struct_return): New functions.
10117 (arm_gdbarch_init): Register the above functions. Also register
10118 call_dummy_start_offset, sizeof_call_dummy_words,
10119 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10120 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 10121 max_register_virtual_size, register_size. Set up
34e8f22d
RE
10122 prologue_cache.saved_regs here, rather than ...
10123 (_initialize_arm_tdep): ... here.
10124 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10125 declarations.
10126 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10127 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10128 (arm_print_float_info, arm_register_type, convert_to_extended)
10129 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10130 (arm_extract_return_value, arm_register_name): Delete declarations.
10131 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10132 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10133 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10134 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10135 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10136 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10137 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10138 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10139 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10140 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10141 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10142 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10143 interface.
10144 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10145 * remote-rdi.c remote-rdp.c: Likewise.
10146 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10147 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10148 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10149 definition.
10150
10151 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10152 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10153 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10154 from non-ARM_ prefixed definitions.
10155 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10156 all uses of above.
10157 * remote-rdi.c remote-rdp.c: Likewise.
10158 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10159
148754e5
RE
101602002-02-11 Richard Earnshaw <rearnsha@arm.com>
10161
10162 * arm-tdep.c (arm_frameless_function_invocation)
10163 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10164 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10165 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10166 (arm_pop_frame, arm_get_next_pc): Make static.
10167 (arm_gdbarch_init): Register above in gdbarch structure.
10168 (arm_read_fp): Renamed from arm_target_read_fp.
10169 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10170 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10171 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10172 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10173 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10174 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10175 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
10176 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10177 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10178 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10179 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 10180
434d2d4f
DJ
101812002-02-10 Daniel Jacobowitz <drow@mvista.com>
10182
10183 * symtab.c (compare_search_syms): New function.
10184 (sort_search_symbols): New function.
10185 (search_symbols): Sort symbols after searching rather than
10186 before.
10187
55241689
AC
101882002-02-10 Andrew Cagney <ac131313@redhat.com>
10189
10190 * NEWS: Linux -> GNU/Linux.
10191
028c194b
AC
101922002-02-10 Andrew Cagney <ac131313@redhat.com>
10193
10194 * gdbarch.sh: For for level one methods, disallow a definition
10195 when partially multi-arched. Add comments explaining rationale.
10196 * gdbarch.h: Re-generate.
10197
6acf50cd
AC
101982002-02-10 Andrew Cagney <ac131313@redhat.com>
10199
10200 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10201 multi-arch partial.
aaa38bb5 10202
50248794
AC
102032002-02-10 Andrew Cagney <ac131313@redhat.com>
10204
10205 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10206 field. Use diff -u.
10207 * gdbarch.c: Re-generate.
10208
c30e0066
AC
102092002-02-10 Andrew Cagney <ac131313@redhat.com>
10210
9b56c5f3 10211 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
10212 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10213 partial.
10214
6e6d6484
AC
102152002-02-10 Andrew Cagney <ac131313@redhat.com>
10216
10217 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10218 multi-arch partial.
10219 (PUSH_ARGUMENTS): Switch to using predefault.
10220 * gdbarch.c: Regenerate.
10221
c203844d
AC
102222002-02-10 Andrew Cagney <ac131313@redhat.com>
10223
10224 * valops.c (PUSH_ARGUMENTS): Delete definition.
10225 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10226 partial. Default to default_push_arguments.
10227 * gdbarch.h, gdbarch.c: Regenerate.
10228
b5a2688f
AC
102292002-02-09 Andrew Cagney <ac131313@redhat.com>
10230
10231 * defs.h (throw_exception): Rename return_to_top_level. Update
10232 comments.
10233 * utils.c (error_stream, internal_verror, quit): Ditto.
10234 * top.c (throw_exception, catcher): Ditto.
10235 * sparclet-rom.c (sparclet_load): Ditto.
10236 * remote.c (interrupt_query, minitelnet): Ditto.
10237 * remote-sds.c (interrupt_query): Ditto.
10238 * remote-mips.c (mips_error, mips_kill): Ditto.
10239 * ocd.c (interrupt_query): Ditto.
10240 * monitor.c (monitor_interrupt_query): Ditto.
10241 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10242 * target.h: Update comment.
aaa38bb5 10243
b5a2688f 10244 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 10245
2fa5c1e0
AC
102462002-02-09 Andrew Cagney <ac131313@redhat.com>
10247
10248 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10249 default_double_format.
10250 * gdbarch.h, gdbarch.c: Re-generate.
10251 * findvar.c (floatformat_unknown): Delete variable definition.
10252 * doublest.h (floatformat_unknown): Delete variable declaration.
10253
da966255
JB
102542002-02-09 Jim Blandy <jimb@redhat.com>
10255
10256 * stabsread.c (read_type): Add code to parse Sun's syntax for
10257 prototyped function types.
10258
123a4891
AC
102592002-02-09 Andrew Cagney <ac131313@redhat.com>
10260
10261 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10262 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10263
fb39c8f3
PS
102642002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10265
10266 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10267 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10268 now _initialize_xcoffsolib gets called again and overrides the
10269 commands from solib.c in a native configuration.
10270
0b87a11d
MK
102712002-02-09 Mark Kettenis <kettenis@gnu.org>
10272
10273 * doublest.c (store_typed_floating): Don't try to return a value.
10274 Fixes PR gdb/290.
10275
bdc2fc72
JB
102762002-02-08 Jim Blandy <jimb@redhat.com>
10277
10278 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10279 is prototyped and has no arguments, print its argument list as
10280 `(void)'.
10281
da69bbcf
CD
102822002-02-08 Chris Demetriou <cgd@broadcom.com>
10283
10284 * MAINTAINERS (write-after-approval): Add myself.
10285 (paper-trail): I've escaped!
aaa38bb5 10286
b69571f5
CF
102872002-02-08 Christopher Faylor <cgf@redhat.com>
10288
10289 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10290 changes.
10291 (_initialize_check_for_gdb_ini): Ditto.
10292
f6871398
MH
102932002-02-08 Martin M. Hunt <hunt@redhat.com>
10294
10295 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10296 xaprintf -> xasprintf.
10297
4e52d31c
PM
102982002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10299
10300 * win32-nat.c: Remove use of printf and sprintf functions.
10301
39bbf761
RE
103022002-02-08 Richard Earnshaw <rearnsha@arm.com>
10303
10304 * arm-tdep.c (arm_frame_chain_valid): Make static.
10305 (arm_push_arguments): Likewise.
10306 (arm_gdbarch_init): New function.
10307 (_initialize_arm_tdep): Call it.
10308 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10309 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10310 (FRAME_CHAIN_VALID): Delete.
10311 (arm_frame_chain_valid): Delete declaration.
10312 (PUSH_ARGUMENTS): Delete.
10313 (arm_push_arguments): Delete declaration.
10314 (CALL_DUMMY_P): Delete.
10315
9c9532c9
CV
103162002-02-08 Andrew Cagney <ac131313@redhat.com>
10317 Corinna Vinschen <vinschen@redhat.com>
10318
10319 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10320 on builtin float types.
10321
4e8f7a8b
DJ
103222002-02-08 Daniel Jacobowitz <drow@mvista.com>
10323
10324 * utils.c: Include <curses.h> before "bfd.h".
10325 * tui/tui-hooks.c: Likewise.
10326 * tui/tui.c: Likewise.
10327 * tui/tuiCommand.c: Likewise.
10328 * tui/tuiData.c: Likewise.
10329 * tui/tuiDataWin.c: Likewise.
10330 * tui/tuiDisassem.c: Likewise.
10331 * tui/tuiGeneralWin.c: Likewise.
10332 * tui/tuiIO.c: Likewise.
10333 * tui/tuiLayout.c: Likewise.
10334 * tui/tuiRegs.c: Likewise.
10335 * tui/tuiSource.c: Likewise.
10336 * tui/tuiSourceWin.c: Likewise.
10337 * tui/tuiStack.c: Likewise.
10338 * tui/tuiWin.c: Likewise.
10339
cd4bffcf
EZ
103402002-02-07 Elena Zannoni <ezannoni@redhat.com>
10341
10342 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10343 to include space for pseudoregs as well. Update loops accordingly.
10344 (sh_fp_frame_init_saved_regs): Ditto.
10345 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10346
26806ce2
AC
103472002-02-07 Andrew Cagney <ac131313@redhat.com>
10348
10349 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10350 Add Richard Earnshaw to Arm maintainers.
10351
97fdab62
AC
103522002-02-07 Andrew Cagney <ac131313@redhat.com>
10353
a6b98203
AC
10354 * defs.h (warning_begin): Delete declaration.
10355
97fdab62
AC
10356 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10357 Delete macro.
10358
78b29b40
MS
103592002-02-07 Michael Snyder <msnyder@redhat.com>
10360
aaa38bb5 10361 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
10362 Logic bug, remove misplaced else.
10363
d8849953
KD
103642002-02-07 Klee Dienes <klee@apple.com>
10365
10366 * fork-inferior.c (fork_inferior): Add '!' to the list of
10367 characters that need to be quoted when building a string for the
10368 shell. Quote '!' specifically with a backslash, since CSH chokes
10369 when trying to evaluate "str!str".
aaa38bb5 10370
095778a0
NC
103712002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10372
10373 * rdi-share/host.h: Only provide a typedef for bool if it is not
10374 defined.
10375
1900040c
MS
103762002-02-04 Michael Snyder <msnyder@redhat.com>
10377
10378 * breakpoint.h (enum bptype): Add new overlay event bp type.
10379 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 10380
1900040c
MS
10381 * breakpoint.c (create_internal_breakpoint): New function.
10382 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10383 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10384 (create_thread_event_breakpoint): Ditto.
10385 (create_solib_event_breakpoint): Ditto.
10386 (create_overlay_event_breakpoint): New function.
10387 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10388 (update_breakpoints_after_exec): Delete and re-initialize
10389 overlay event breakpoints after an exec. Add FIXME comment
10390 about longjmp breakpoint.
10391 (print_it_typical): Ignore overlay event breakpoints.
10392 (print_one_breakpoint): Ditto.
10393 (mention): Ditto.
10394 (bpstat_what): Do not stop for overlay event breakpoints.
10395 (delete_breakpoint): Don't delete overlay event breakpoints.
10396 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10397 (breakpoint_re_set): Re-create overlay event breakpoint.
10398
10399 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10400 (overlay_manual_command): Disable overlay breakpoints.
10401 (overlay_off_command): Disable overlay breakpoints.
10402
082fc60d
RE
104032002-02-06 Richard Earnshaw <rearnsha@arm.com>
10404
10405 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10406 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10407 to here from config/tm-arm.h.
10408 (coff_sym_is_thumb): Make static.
10409 (arm_elf_make_msymbol_special): New function.
10410 (arm_coff_make_msymbol_special): New function.
10411 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10412 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10413 (coff_sym_is_thumb): Delete declaration.
10414 (arm_elf_make_msymbol_special): Declare.
10415 (arm_coff_make_msymbol_special): Declare.
10416 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10417 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10418
039c5766
RE
104192002-02-06 Richard Earnshaw <rearnsha@arm.com>
10420
10421 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10422
104232002-02-06 Richard Earnshaw <rearnsha@arm.com>
10424
10425 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10426 * gdbarch.c gdbarch.h: Regenerate.
10427 * arch-utils.c (default_print_float_info): New function.
10428 * arch-utils.h (default_print_float_info): Prototype it.
10429 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10430 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10431 (PRINT_FLOAT_INFO): Document it.
10432
10433 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10434 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10435 (PRINT_FLOAT_INFO): Define.
10436
58fa08f0
PM
104372002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10438
aaa38bb5 10439 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10440 Add typecast to sprintf argument to suppress a warning.
10441
7393af7c
PM
104422002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10443
58fa08f0 10444 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10445 to allow easier handling of pass state.
10446 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10447 that gives exception name and address.
10448 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10449 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10450 exceptions added.
aaa38bb5
AJ
10451 (child_continue): Correctly report continue_status.
10452 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10453 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10454 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10455 the exception should be passed to debuggee or not.
10456
6af4589c
MS
104572002-02-05 Michael Snyder <msnyder@redhat.com>
10458
10459 * regcache.c (fetch_register): Call target_fetch_register
10460 only if we don't call FETCH_PSEUDO_REGISTER.
10461 (store_register): Call target_store_register only if we
10462 don't call STORE_PSEUDO_REGISTER.
10463
a2cf933a
EZ
104642002-02-05 Elena Zannoni <ezannoni@redhat.com>
10465
10466 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10467 ELF_MAKE_MSYMBOL_SPECIAL.
10468 * gdbarch.c, gdbarch.h: Regenerate.
10469 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10470 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10471 * elfread.c (elf_symtab_read): Compile use of
10472 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10473 multiarched.
10474 * coffread.c (coff_symtab_read): Ditto, for
10475 COFF_MAKE_MSYMBOL_SPECIAL.
10476
6bb7be43
JB
104772002-02-05 Jim Blandy <jimb@redhat.com>
10478
10479 * solib-svr4.c (svr4_truncate_ptr): New function.
10480 (svr4_relocate_section_addresses): Do the address arithmetic with
10481 the appropriate truncation for target addresses, even when
10482 CORE_ADDR is larger than a target address.
10483
e18651ec
DJ
104842002-02-05 Daniel Jacobowitz <drow@mvista.com>
10485
10486 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10487 to (int *).
10488
6b2725be
DJ
104892002-02-05 Daniel Jacobowitz <drow@mvista.com>
10490
10491 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10492 code.
10493
fca9e603
DJ
104942002-02-05 Daniel Jacobowitz <drow@mvista.com>
10495
10496 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10497
6c537a52
DJ
104982002-02-05 Daniel Jacobowitz <drow@mvista.com>
10499
10500 * gdbserver/linux-low.c: Remove unused include files.
10501
d844cde6
DJ
105022002-02-05 Daniel Jacobowitz <drow@mvista.com>
10503
10504 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10505 (read_inferior_memory): Use it.
10506 (write_inferior_memory): Likewise.
10507
d07c63e7
DJ
105082002-02-05 Daniel Jacobowitz <drow@mvista.com>
10509
10510 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10511 grubbing through sys_errlist.
10512
da6d8c04
DJ
105132002-02-05 Daniel Jacobowitz <drow@mvista.com>
10514
10515 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10516
5b421780
PM
105172002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10518 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10519
9f60d481
AC
105202002-02-04 Andrew Cagney <ac131313@redhat.com>
10521
10522 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10523 (do_sfunc, set_cmd_sfunc): New functions.
10524
10525 * command.h (struct cmd_list_element): Add field func.
10526 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10527 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10528 * cli/cli-decode.h: Ditto.
10529
10530 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10531 (help_all, help_cmd_list): Ditto.
10532 (find_cmd, complete_on_cmdlist): Ditto.
10533 * top.c (execute_command): Ditto.
10534
10535 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10536 function.sfunc.
10537
10538 * infcmd.c (notice_args_read): Fix function signature.
10539
10540 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10541 * cli/cli-decode.c (add_set_cmd): Ditto.
10542 * utils.c (initialize_utils): Ditto.
10543 * maint.c (_initialize_maint_cmds): Ditto.
10544 * infrun.c (_initialize_infrun): Ditto.
10545 * demangle.c (_initialize_demangler): Ditto.
10546 * remote.c (add_packet_config_cmd): Ditto.
10547 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10548 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10549 * proc-api.c (_initialize_proc_api): Ditto.
10550 * kod.c (_initialize_kod): Ditto.
10551 * valprint.c (_initialize_valprint): Ditto.
10552 * top.c (init_main): Ditto.
10553 * infcmd.c (_initialize_infcmd): Ditto.
10554 * corefile.c (_initialize_core): Ditto.
10555 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10556 * arch-utils.c (initialize_current_architecture): Ditto.
10557 (_initialize_gdbarch_utils): Ditto.
10558 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10559
10560 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10561 * wince.c (_initialize_inftarg): Ditto.
10562 * symfile.c (_initialize_symfile): Ditto.
10563 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10564 * language.c (_initialize_language): Ditto.
10565 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10566
f9ba0717
MS
105672002-02-04 Michael Snyder <msnyder@redhat.com>
10568
10569 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10570
0c74b2a7
DJ
105712002-02-04 Daniel Jacobowitz <drow@mvista.com>
10572
10573 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10574 Add rules for building the register data files.
10575
c638789f
DJ
105762002-02-04 Daniel Jacobowitz <drow@mvista.com>
10577
10578 * regformats/regdat.sh: Add braces to the definition of
10579 expedite_regs_${arch}.
10580
db253027
DJ
105812002-02-04 Daniel Jacobowitz <drow@mvista.com>
10582
10583 * regformats/regdef.h (struct reg): Add comment describing the
10584 requirements for offset and size fields.
10585
206be19c
AS
105862002-02-04 Andreas Schwab <schwab@suse.de>
10587
10588 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10589 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10590
181c1381
RE
105912002-02-04 Richard Earnshaw <rearnsha@arm.com>
10592
10593 * gdbarch.sh (copyright): Update years in generated header.
10594 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10595 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10596 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10597 * dbxread.c: Likewise.
10598 * dwarfread.c: Likewise.
10599 * elfread.c: Likewise.
10600 * somread.c: Likewise.
10601
10602 * arm-tdep.c (arm_smash_text_address): New function.
10603 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10604
fa4ba8da
PM
106052002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10606
10607 Add support for hardware watchpoints on win32 native.
aaa38bb5 10608 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10609 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10610 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10611 of debug registers.
10612 (debug_registers_changed): New variable. Reflects when debug registers
10613 are changed and need to be written to inferior.
aaa38bb5 10614 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10615 was set, used when new threads are created.
10616 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10617 i386-nat code.
10618 (thread_rec): Set dr array if id is the thread of current_event .
10619 (child_continue, child_resume): Change the debug registers for all
10620 threads if debug_registers_changed.
10621 (child_add_thread): Change the debug registers if debug_registers_used.
10622 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10623 Link nm.h to new nm-cygwin.h file.
10624 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10625 of hardware registers.
10626
a73c86fb
AC
106272002-02-03 Andrew Cagney <ac131313@redhat.com>
10628
10629 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10630 Restore behavour broken by 2002-01-20 Andrew Cagney
10631 <ac131313@redhat.com> IEEE_FLOAT removal.
10632
acf5ed49
DJ
106332002-02-03 Daniel Jacobowitz <drow@mvista.com>
10634
10635 * c-valprint.c (c_val_print): Pass a proper valaddr to
10636 cp_print_class_method.
10637 * valops.c (search_struct_method): If there is only one method
10638 and args is NULL, return that method.
10639
493d28d5
DJ
106402002-02-03 Daniel Jacobowitz <drow@mvista.com>
10641
10642 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10643 accessing tag_name directly.
10644
7495dfdb
DJ
106452002-02-03 Daniel Jacobowitz <drow@mvista.com>
10646
10647 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10648 of accessing tag_name directly.
10649
dd6bda65
DJ
106502002-02-03 Daniel Jacobowitz <drow@mvista.com>
10651
10652 PR gdb/280
10653 * gdbtypes.c (replace_type): New function.
10654 * gdbtypes.h (replace_type): Add prototype.
10655 * stabsread.c (read_type): Use replace_type.
10656
88fe217c
RE
106572002-02-03 Richard Earnshaw <rearnsha@arm.com>
10658
10659 * Makefile.in (memattr.o): Add missing dependencies rule.
10660
e5d66720
PS
106612002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10662
10663 * breakpoint.c (break_at_finish_command): Really export.
10664 (break_at_finish_at_depth_command): Ditto.
10665 (tbreak_at_finish_command): Ditto.
10666 * hppa-tdep.c: Include completer.h.
10667 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10668 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10669
fffee0be
AC
106702002-02-01 Andrew Cagney <ac131313@redhat.com>
10671
10672 * utils.c (do_write): New function.
10673 (error_stream): Rewrite combining the code from error_begin and
10674 verror.
10675 (verror): Rewrite using error_stream.
10676 (error_begin): Delete function.
10677
255e7dbf
AC
106782002-02-01 Andrew Cagney <ac131313@redhat.com>
10679
10680 * utils.c (error_begin): Make static.
10681 * defs.h (error_begin): Delete declaration.
10682
10683 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10684 (decode_line_1): Use cplusplus_error instead of error_begin,
10685 cplusplus_hint and return_to_top_level.
10686 * coffread.c (coff_symfile_read): Use error instead of error_begin
10687 and return_to_top_level.
10688 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10689
ddfe3c15
AC
106902002-02-01 Andrew Cagney <ac131313@redhat.com>
10691
10692 * language.h (type_error, range_error): Make string parameter
10693 constant.
10694 * language.c (warning_pre_print): Delete extern declaration.
10695 * dwarfread.c (warning_pre_print): Ditto.
10696 * language.c (type_error, range_error): Rewrite to use verror and
10697 vwarning instead of warning_begin.
10698
03ac34d5
MS
106992002-02-01 Michael Snyder <msnyder@redhat.com>
10700
261c4ca2
MS
10701 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10702 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10703
e00d1dc8
AC
107042002-02-01 Andrew Cagney <ac131313@redhat.com>
10705
10706 * command.h (NO_FUNCTION): Delete macro.
10707 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10708 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10709 * tracepoint.c (_initialize_tracepoint): Ditto.
10710 * cli/cli-decode.c (add_set_cmd): Ditto.
10711 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10712
76b79d6e
DJ
107132002-02-01 Daniel Jacobowitz <drow@mvista.com>
10714
10715 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10716 Update ``this'' pointer when calling virtual functions.
10717
799f9e91
MS
107182002-02-01 Michael Snyder <msnyder@redhat.com>
10719
c7bd442c 10720 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10721 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10722
3cf384d4
DJ
107232002-02-01 Daniel Jacobowitz <drow@mvista.com>
10724
10725 * regformats/reg-arm.dat: New file.
10726 * regformats/reg-i386.dat: New file.
10727 * regformats/reg-ia64.dat: New file.
10728 * regformats/reg-m68k.dat: New file.
10729 * regformats/reg-mips.dat: New file.
10730 * regformats/reg-ppc.dat: New file.
10731 * regformats/reg-sh.dat: New file.
10732 * regformats/regdef.h: New file.
10733 * regformats/regdat.sh: New file.
10734
0defa245
RE
107352002-02-01 Richard Earnshaw <reanrsha@arm.com>
10736
10737 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10738 (arm_frame_args_address, arm_frame_locals_address): New functions.
10739 (arm_frame_num_args): New function.
10740 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10741 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10742 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10743
405f26e6
MS
107442002-01-31 Michael Snyder <msnyder@redhat.com>
10745
502fd408
MS
10746 * breakpoint.c (break_at_finish_command): Export.
10747 (break_at_finish_at_depth_command): Export.
10748 (tbreak_at_finish_command): Export.
d6020d45 10749 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 10750 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 10751 "txbreak" commands, which are HPPA specific.
502fd408 10752
7d35e135
MS
10753 * printcmd.c (disassemble_command): Remove an ancient
10754 artifact of an old merge.
10755
aaa38bb5 10756 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10757 Define enum constant values for overlay mode.
10758 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10759 (overlay_is_mapped, overlay_auto_command,
10760 overlay_manual_command): Ditto.
d874f1e2 10761
aaa38bb5
AJ
10762 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10763 breakpoint_here_p, breakpoint_inserted_here_p,
10764 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10765 describe_other_breakpoints, check_duplicates, clear_command):
10766 Coding standard fixes.
10767
8add0441 10768 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10769 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10770 code: check bfd SEC_READONLY flag for section.
10771
e351066e
AC
107722002-01-31 Andrew Cagney <ac131313@redhat.com>
10773
7d35e135 10774 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10775
8a48e967
DJ
107762002-01-30 Daniel Jacobowitz <drow@mvista.com>
10777
10778 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10779 data symbols, since we search based on textlow and texthigh.
10780 (find_pc_sect_symtab): Likewise.
10781
f5a96129
AC
107822002-01-30 Andrew Cagney <ac131313@redhat.com>
10783
10784 * defs.h (vwarning): Declare.
f5a96129
AC
10785 * utils.c (vwarning): New function.
10786 (warning): Call vwarning.
10787 (warning_begin): Delete function.
10788
10789 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10790 the warning message.
10791 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10792 warning_begin.
10793
cefd4ef5
MS
107942002-01-30 Michael Snyder <msnyder@redhat.com>
10795
1a703748
MS
10796 * NEWS: Mention "set trust-readonly-sections" command.
10797 Mention generate-core-file command.
cefd4ef5 10798
3a11626d
MS
107992002-01-15 Michael Snyder <msnyder@redhat.com>
10800
10801 * target.c: New command, "set trust-readonly-sections on".
10802 (do_xfer_memory): Honor the suggestion to trust readonly sections
10803 by reading them from the object file instead of from the target.
10804 (initialize_targets): Register command "set trust-readonly-sections".
10805
d1c7e53b
AC
108062002-01-29 Andrew Cagney <ac131313@redhat.com>
10807
10808 * parse.c (target_map_name_to_register): Simplify, search regs and
10809 pseudo-regs using a single loop.
10810
e2c9a72c
AC
108112002-01-30 Andrew Cagney <ac131313@redhat.com>
10812
10813 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10814
69824b4e
MK
108152002-01-15 Rodney Brown <rbrown64@csc.com.au>
10816
10817 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10818 * config/i386/i386v42mp.mh: Add i387-nat.o .
10819 * i386v4-nat.c: Include i387-nat.h.
10820 (supply_fpregset): Use i387_supply_fsave.
10821 (fill_fpregset): Use i387_fill_fsave.
10822
6eb69eab
RE
108232002-01-30 Richard Earnshaw <rearnsha@arm.com>
10824
10825 * arm-tdep.c (arm_call_dummy_words): Define.
10826 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10827 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10828 (CALL_DUMMY_WORDS): Define.
10829 (arm_call_dummy_words): Declare.
10830 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10831 (arm_linux_call_dummy_words): Declare.
10832
9852326a
AS
108332002-01-30 Andreas Schwab <schwab@suse.de>
10834
10835 * m68klinux-nat.c: Fix last change to use regcache_collect
10836 instead of referencing registers[] directly.
10837
977a3030
AC
108382002-01-29 Andrew Cagney <ac131313@redhat.com>
10839
10840 * parse.c (target_map_name_to_register): Delete code wrapped in
10841 #ifdef REGISTER_NAME_ALIAS_HOOK.
10842
2076c72b
MS
108432002-01-28 Michael Snyder <msnyder@redhat.com>
10844
10845 * regcache.c (legacy_read_register_gen): Need to be able to
10846 read pseudo-register as well as real register.
10847 (legacy_write_register_gen): Ditto.
10848
8fcc723b
AC
108492002-01-28 Andrew Cagney <ac131313@redhat.com>
10850
10851 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10852 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10853 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10854 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10855 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10856 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10857 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10858 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10859 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10860 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10861 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10862 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10863 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10864 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10865 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10866 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10867 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10868 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10869 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10870 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10871
afe64c1a
AC
108722002-01-28 Andrew Cagney <ac131313@redhat.com>
10873
10874 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10875 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10876 (initialize_current_architecture): Update target_byte_order using
10877 information from BFD.
aaa38bb5 10878 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
10879 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10880
75bc7ddf
AC
108812002-01-28 Andrew Cagney <ac131313@redhat.com>
10882
10883 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10884 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10885
10886 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10887 #ifdef INVALID_FLOAT.
10888 * infcmd.c (do_registers_info): Ditto.
10889 * values.c (unpack_double): Ditto. Add comment.
10890
10891 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10892 already commented out.
10893
0280a90a
AS
108942002-01-26 Andreas Schwab <schwab@suse.de>
10895
10896 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10897 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10898 registers and add support for PTRACE_GETREGS.
10899
7072a954
AC
109002002-01-24 Andrew Cagney <ac131313@redhat.com>
10901
10902 GDB 5.1.1 released from 5.1 branch.
10903 * NEWS: Add 5.1.1 news.
10904 * README: Sync with 5.1 branch.
10905
86f902e0
FF
109062002-01-23 Fred Fish <fnf@redhat.com>
10907
10908 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10909 stabstring on initial malloc. Reallocing will copy it for us,
10910 if necessary.
10911
8af51c36
EZ
109122002-01-23 Elena Zannoni <ezannoni@redhat.com>
10913
aaa38bb5 10914 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
10915 (HFILES_NO_SRCDIR): Remove hpread.h.
10916 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10917 (hpread.o): Update dependencies.
10918 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10919
10920 * hp-psymtab-read.c: Remove file.
10921 * hp-symtab-read.c: Remove file.
10922 * hpread.h: Remove file.
10923
10924 * hpread.c: Merge all contents of hp-psymtab-read.c,
10925 hp-symtab-read.c and hpread.h into this file, as it was prior to
10926 January 1999.
10927
10928 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 10929 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
10930 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10931 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10932
dc5cfeb6
EZ
109332002-01-23 Elena Zannoni <ezannoni@redhat.com>
10934
10935 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10936 fill_gregset): Call gdbarch_tdep() just once, assign result to
10937 variable and use that, instead of calling the function several
10938 times.
10939
ea87b71b
AO
109402002-01-24 Alexandre Oliva <aoliva@redhat.com>
10941
10942 * configure.host: Accept sparcv9 as alias for sparc64.
10943 * configure.tgt: Likewise.
10944
13fc0c2f
KB
109452002-01-22 Kevin Buettner <kevinb@redhat.com>
10946
10947 * solib-aix5.c (build_so_list_from_mapfile)
10948 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10949 arguments is not reversed.
10950 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10951 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 10952
7bd872fe
EZ
109532002-01-22 Elena Zannoni <ezannoni@redhat.com>
10954
10955 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10956 modified version of obsolete sh_fetch_pseudo_register.
10957 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10958 (sh4_register_read): New function.
10959 (sh_pseudo_register_write): New function. Renamed and modified
10960 version of obsolete sh_store_pseudo_register.
10961 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10962 (sh4_register_write): New function.
10963 (sh_gdbarch_init): Remove setting of gdbarch function
10964 fetch_pseudo_register and store_pseudo_register. Remove setting of
10965 register_convert_to_raw, register_convert_to_virtual,
10966 register_convertible.
10967 (sh_sh4_register_convertible): Delete. No longer needed. All is
10968 taken care by architecture specific functions
10969 register_read/register_write.
10970 (sh_sh4_register_convert_to_virtual): Make static.
10971 (sh_sh4_register_convert_to_raw): Ditto.
10972
069e84fd
AC
109732002-01-22 Andrew Cagney <ac131313@redhat.com>
10974
10975 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10976 (floatformat_is_nan, floatformat_mantissa): Ditto.
10977
10978 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10979 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10980 builtin_type_ieee_double_little,
10981 builtin_type_ieee_double_littlebyte_bigword,
10982 builtin_type_m68881_ext, builtin_type_i960_ext,
10983 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10984 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10985 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10986 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10987
211a4f69
CV
109882002-01-22 Corinna Vinschen <vinschen@redhat.com>
10989
10990 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10991 parameter. Set frameless flag if it exists and depended of
10992 whether the scanned function is frameless or not.
10993 (xstormy16_skip_prologue): If function is frameless, return
10994 result of xstormy16_scan_prologue().
10995 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10996 call.
10997
f81353e4
EZ
109982002-01-21 Elena Zannoni <ezannoni@redhat.com>
10999
11000 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11001 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11002 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11003 sh_sh4_register_byte, sh_sh4_register_raw_size,
11004 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11005 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11006 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11007 sh_store_pseudo_register, sh_do_pseudo_register): Call
11008 gdbarch_tdep() just once, assign result to variable and use that,
11009 instead of calling the function several times.
11010
63c73a17
MK
110112002-01-20 Mark Kettenis <kettenis@gnu.org>
11012
11013 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11014 macros instead of LAST_FPU_CTRL_REGNUM.
11015 (store_register): Likewise.
11016
39ad761d
JB
110172002-01-21 Jim Blandy <jimb@redhat.com>
11018
11019 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11020 is up-to-date before running the program, not just when a program
11021 exits.
11022
3d74b771
FF
110232002-01-21 Fred Fish <fnf@redhat.com>
11024
11025 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11026 when we have found all instructions we are looking for.
11027
966fbf70
RE
110282002-01-21 Richard Earnshaw <rearnsha@arm.com>
11029
11030 * arm-tdep.c (arm_register_name): New function.
11031 (arm_registers_names): Make static.
11032 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11033 (arm_register_name): Declare.
11034 (REGISTER_NAME): Use it.
11035
c3b4394c
RE
110362002-01-21 Richard Earnshaw <rearnsha@arm.com>
11037 Kevin Buettner <kevinb@redhat.com>
11038
11039 Convert arm targets to new FRAME interface.
11040 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11041 (arm_frame_find_save_regs): Delete.
11042 (arm_frame_init_saved_regs): New.
11043 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11044 Allocate extra_info as required. Convert all uses of fsr.regs
11045 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11046 to use extra_info.
11047 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11048 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11049 (check_prologue_cache, save_prologue_cache): Likewise.
11050 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11051 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11052 (FRAME_FIND_SAVED_REGS): Delete.
11053 (arm_frame_find_saved_regs): Delete prototype.
11054 (arm_frame_init_saved_regs): New prototype.
11055 (FRAME_INIT_SAVED_REGS): Define.
11056
61d99182
AC
110572002-01-20 Andrew Cagney <ac131313@redhat.com>
11058
11059 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11060
6aaea291
AC
110612002-01-20 Andrew Cagney <ac131313@redhat.com>
11062
11063 From Jeff Law <law@redhat.com>:
11064 * infttrace.c: Include <sys/pstat.h>.
11065 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11066 exec file if the ttrace equivalent fails.
11067
15f698d2
AC
110682002-01-20 Andrew Cagney <ac131313@redhat.com>
11069
11070 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11071 (closeLogFile): Ditto.
11072
f86ddd7c
MC
110732002-01-20 Michael Chastain <mec@shout.net>
11074
11075 * top.c (print_gdb_version): Bump copyright year to 2002.
11076
904507ce
AC
110772002-01-20 Andrew Cagney <ac131313@redhat.com>
11078
11079 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11080 Zannoni and Eli Zaretskii.
11081
d7f0b9ce
DJ
110822002-01-20 Daniel Jacobowitz <drow@mvista.com>
11083
11084 * buildsym.c: Update copyright years.
11085 * c-typeprint.c: Likewise.
11086 * dwarf2read.c: Likewise.
11087 * f-typeprint.c: Likewise.
11088 * gdbtypes.c: Likewise.
11089 * gdbtypes.h: Likewise.
11090 * hp-symtab-read.c: Likewise.
11091 * hpread.c: Likewise.
11092 * mdebugread.c: Likewise.
11093 * p-typeprint.c: Likewise.
11094
3fd3d7d2
AC
110952002-01-20 Andrew Cagney <ac131313@redhat.com>
11096
11097 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11098 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11099 byte-order selectable.
11100 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11101 * arch-utils.c: Ditto.
11102 (set_endian): Ditto.
11103 (set_endian_from_file): Ditto.
11104 * gdbserver/low-sim.c (create_inferior): Ditto.
11105 * gdbarch.sh: Ditto.
11106 * gdbarch.h: Re-generate.
aaa38bb5
AJ
11107 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11108 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11109 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11110 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11111 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11112 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11113 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
11114 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11115 macro definition.
11116 * config/mips/tm-wince.h: Remove #undef of macro
11117 TARGET_BYTE_ORDER_SELECTABLE.
11118 * config/sh/tm-wince.h: Ditto.
11119
b02dede2
DJ
111202002-01-20 Daniel Jacobowitz <drow@mvista.com>
11121
11122 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11123 member function fields. Add accessor macro
11124 TYPE_FN_FIELD_ARTIFICIAL.
11125 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11126 * c-typeprint.c (c_type_print_base): Skip artificial member
11127 functions.
11128
c3643761
DJ
111292002-01-20 Daniel Jacobowitz <drow@mvista.com>
11130
11131 * f-typeprint.c: Delete unused function f_type_print_args.
11132 * p-typeprint.c: Delete unused function pascal_type_print_args.
11133
8176bb6d
DJ
111342002-01-20 Daniel Jacobowitz <drow@mvista.com>
11135
11136 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11137 comment. Add ``artificial'' to ``union field_location''.
11138
11139 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11140
11141 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11142 * mdebugread.c (parse_symbol): Likewise.
11143 * stabsread.c (define_symbol): Likewise.
11144 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11145 initializing TYPE_FIELD_BITPOS to n (obsolete).
11146 (hpread_doc_function_type): Likewise.
11147 * hpread.c (hpread_function_type): Likewise.
11148
7fd60527
AC
111492002-01-20 Andrew Cagney <ac131313@redhat.com>
11150
11151 * configure.in (host_makefile_frag): Only require a host makefile
11152 fragment when a native build.
11153 * configure: Re-generate.
11154
c2f05ac9
AC
111552002-01-20 Andrew Cagney <ac131313@redhat.com>
11156
11157 * doublest.h (floatformat_from_type): Declare.
11158 * doublest.c (floatformat_from_type): New function.
11159 (convert_typed_floating): Use.
11160
11161 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11162 call to function floatformat_from_type.
11163
11164 * gdbarch.sh (IEEE_FLOAT): Delete.
11165 * gdbarch.h, gdbarch.c: Re-generate.
11166 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11167 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11168 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11169 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11170 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11171 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11172 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11173 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11174 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11175 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11176 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
11177 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11178
11179 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11180 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11181 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11182 * sh-tdep.c (sh_gdbarch_init): Ditto.
11183 * mips-tdep.c (mips_gdbarch_init): Ditto.
11184 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11185 * cris-tdep.c (cris_gdbarch_init): Ditto.
11186
abf22e64
AJ
111872002-01-20 Jiri Smid <smid@suse.cz>
11188
11189 * configure.host, configure.tgt: Support x86-64.
11190 * NEWS: Note new target x86-64.
11191
b7c4cbf8
AJ
11192 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11193 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11194 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11195 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11196 x86-64-linux-nat.o): Fix dependencies.
11197
82600034
AC
111982002-01-19 Andrew Cagney <ac131313@redhat.com>
11199
11200 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11201 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11202 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11203 * config/sparc/xm-sun4os4.h: Delete file.
11204 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 11205
bbe5c628
AC
112062002-01-19 Andrew Cagney <ac131313@redhat.com>
11207
11208 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11209 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11210 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11211 * config/i386/i386lynx.mh (XM_FILE): Delete.
11212 * config/rs6000/xm-rs6000ly.h: Delete file.
11213 * config/sparc/xm-sparclynx.h: Delete file.
11214 * config/m68k/xm-m68klynx.h: Delete file.
11215 * config/i386/xm-i386lynx.h: Delete file.
11216 * config/xm-lynx.h: Delete file.
11217 * config/djgpp/fnchange.lst: Update.
11218
f8453e34
JT
112192002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11220
11221 * alpha-tdep.c (alpha_register_byte): New function.
11222 (alpha_register_raw_size): Ditto.
11223 (alpha_register_virtual_size): Ditto.
11224 (alpha_skip_prologue_internal): Renamed from
11225 alpha_skip_prologue.
11226 (alpha_skip_prologue): New version that calls
11227 alpha_skip_prologue_internal.
11228 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11229 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11230 second argument from alpha_skip_prologue.
11231 (REGISTER_BYTE): Use alpha_register_byte.
11232 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11233 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11234 (FRAMELESS_FUNCTION_INVOCATION): Use
11235 generic_frameless_function_invocation_not.
11236 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11237 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11238
52d9e613
AC
112392002-01-19 Andrew Cagney <ac131313@redhat.com>
11240
11241 * config/mips/xm-news-mips.h: Delete file.
11242 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11243
11244 * config/m88k/xm-m88k.h: Delete file.
11245 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11246 * config/m88k/xm-delta88v4.h: Ditto.
11247 * config/m88k/xm-delta88.h: Ditto.
11248
11249 * config/alpha/xm-fbsd.h: Delete file.
11250 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11251
11252 * config/sparc/xm-sparc.h: Delete file.
11253 * Makefile.in (xm-sun4os4.h): Delete dependency.
11254 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11255 * config/sparc/xm-sun4os4.h: Ditto.
11256 * config/sparc/xm-linux.h: Ditto.
11257
11258 * config/i386/xm-windows.h: Delete file.
11259
2d1b2124
AC
112602002-01-19 Andrew Cagney <ac131313@redhat.com>
11261
11262 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11263 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11264
ee1f65f0
JT
112652002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11266
11267 * alpha-tdep.c (alpha_call_dummy_words): New.
11268 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11269 (CALL_DUMMY_P): Define.
11270 (CALL_DUMMY_WORDS): Define.
11271 (SIZEOF_CALL_DUMMY_WORDS): Define.
11272
98081e55
PB
112732002-01-19 Per Bothner <per@bothner.com>
11274
11275 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11276 isn't NULL, which can happen with some gcj-3.x-produced code.
11277
0d056799
JT
112782002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11279
11280 * alpha-tdep.c (alpha_register_virtual_type): New function.
11281 (alpha_init_frame_pc_first): Ditto.
11282 (alpha_fix_call_dummy): Ditto.
11283 (alpha_store_struct_return): Ditto.
11284 (alpha_extract_struct_value_address): Ditto.
11285 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11286 alpha_register_virtual_type.
11287 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11288 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11289 alpha_extract_struct_value_address.
11290 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11291 (INIT_FRAME_PC): Use init_frame_pc_noop.
11292 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11293
4604bcad
MK
112942002-01-19 Mark Kettenis <kettenis@gnu.org>
11295
11296 * i386gnu-nat.c: Include "i386-tdep.h".
11297 (fetch_fpregs): Simplify code dealing with uninitialized floating
11298 point states such that it doesn't require FP7_REGNUM.
11299
140f9984
JT
113002002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11301
abf22e64
AJ
11302 * alpha-tdep.c (frame_extra_info): New.
11303 (alpha_find_saved_regs): Make static. Use
140f9984
JT
11304 frame->extra_info.
11305 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
11306 (alpha_frame_saved_pc): Use frame->extra_info.
11307 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11308 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
11309 (init_extra_frame_info): Rename to...
11310 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 11311 (alpha_print_extra_frame_info): New function.
140f9984
JT
11312 (alpha_frame_locals_address): Ditto.
11313 (alpha_frame_args_address): Ditto.
abf22e64 11314 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
11315 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11316 alpha_frame_args_address.
abf22e64 11317 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 11318 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
11319 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11320 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
11321 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11322 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11323
d734c450
JT
113242002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11325
11326 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11327 (alpha_cannot_fetch_register): Ditto.
11328 (alpha_cannot_store_register): Ditto.
11329 (alpha_register_convertible): Ditto.
11330 (alpha_use_struct_convention): Ditto.
11331 * config/alpha/tm-alpha.h: Update copyright years.
11332 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11333 (INNER_THAN): Use core_addr_lessthan.
11334 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11335 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11336 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11337 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11338 (FRAME_CHAIN): Remove unnecessary cast.
11339
b4ceaee6
AC
113402002-01-18 Andrew Cagney <ac131313@redhat.com>
11341
11342 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11343 obsolete.
11344
0a65a603
AC
113452002-01-18 Andrew Cagney <ac131313@redhat.com>
11346
11347 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11348 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11349 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11350 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11351 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11352 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11353 * x86-64-linux-nat.c: Ditto.
11354
636a6dfc
JT
113552002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11356
abf22e64 11357 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
11358 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11359 (REGISTER_NAME): Define.
11360
acceddb6
JT
113612002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11362
11363 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11364
ec32e4be
JT
113652002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11366
11367 * alpha-tdep.c: Update copyright years.
11368 (alpha_next_pc): New function.
11369 (alpha_software_single_step): Ditto.
11370 * config/alpha/tm-alpha.h: Add prototype for
11371 alpha_software_single_step.
11372
e771a871
JT
113732002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11374
11375 * alphabsd-nat.c: Update copyright years.
11376 (fill_gregset): Use regcache_collect.
11377 (fill_fpregset): Likewise.
11378 (fetch_inferior_registers): Only fetch integer registers
11379 if requested to do so.
11380 (store_inferior_registers): Only store integer registers
11381 if requested to do so.
11382
7708fa01
AC
113832002-01-17 Andrew Cagney <ac131313@redhat.com>
11384
11385 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11386 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11387 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11388 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11389 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11390 * config/arm/linux.mh (XDEPFILES): Delete.
11391 * config/arm/nbsd.mh (XDEPFILES): Delete.
11392 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11393 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11394 * config/i386/i386m3.mh (XDEPFILES): Delete.
11395 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11396 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11397 * config/i386/fbsd.mh (XDEPFILES): Delete.
11398 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11399 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11400 * config/i386/i386v4.mh (XDEPFILES): Delete.
11401 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11402 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11403 * config/i386/i386aix.mh (XDEPFILES): Delete.
11404 * config/i386/go32.mh (XDEPFILES): Delete.
11405 * config/i386/cygwin.mh (XDEPFILES): Delete.
11406 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11407 * config/i386/i386mach.mh (XDEPFILES): Delete.
11408 * config/i386/i386v32.mh (XDEPFILES): Delete.
11409 * config/i386/linux.mh (XDEPFILES): Delete.
11410 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11411 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11412 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11413 * config/i386/i386sco.mh (XDEPFILES): Delete.
11414 * config/i386/i386v.mh (XDEPFILES): Delete.
11415 * config/i386/nbsd.mh (XDEPFILES): Delete.
11416 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11417 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11418 * config/i386/symmetry.mh (XDEPFILES): Delete.
11419 * config/i386/obsd.mh (XDEPFILES): Delete.
11420 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11421 * config/ia64/linux.mh (XDEPFILES): Delete.
11422 * config/ia64/aix.mh (XDEPFILES): Delete.
11423 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11424 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11425 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11426 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11427 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11428 * config/m68k/linux.mh (XDEPFILES): Delete.
11429 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11430 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11431 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11432 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11433 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11434 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11435 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11436 * config/m88k/delta88.mh (XDEPFILES): Delete.
11437 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11438 * config/m88k/m88k.mh (XDEPFILES): Delete.
11439 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11440 * config/mips/linux.mh (XDEPFILES): Delete.
11441 * config/mips/irix6.mh (XDEPFILES): Delete.
11442 * config/mips/irix5.mh (XDEPFILES): Delete.
11443 * config/mips/irix4.mh (XDEPFILES): Delete.
11444 * config/mips/irix3.mh (XDEPFILES): Delete.
11445 * config/mips/decstation.mh (XDEPFILES): Delete.
11446 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11447 (NATDEPFILES): Move core-aout.o to here.
11448 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11449 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11450 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11451 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11452 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11453 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11454 * config/pa/hpux11.mh (XDEPFILES): Delete.
11455 * config/powerpc/aix.mh (XDEPFILES): Delete.
11456 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11457 * config/powerpc/linux.mh (XDEPFILES): Delete.
11458 * config/romp/rtbsd.mh: Rename XDEPFILES.
11459 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11460 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11461 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11462 * config/s390/s390.mh (XDEPFILES): Delete.
11463 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11464 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11465 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11466 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11467 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11468 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11469 * config/sparc/linux.mh (XDEPFILES): Delete.
11470 * config/vax/vaxult.mh (XDEPFILES): Delete.
11471 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11472 * Makefile.in (DEPFILES): Remove XDEPFILES.
11473
375fc983
AC
114742002-01-17 Andrew Cagney <ac131313@redhat.com>
11475
11476 * utils.c (internal_verror): Fix comments, default is yes not no.
11477 Update queries to match. Default to quit and dump core.
11478
8926118c
AC
114792002-01-17 Andrew Cagney <ac131313@redhat.com>
11480
11481 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11482 copyright.
11483 * defs.h, event-top.c, gdbcmd.h: Ditto.
11484 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11485 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11486 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11487 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11488 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11489 * mi/mi-main.c:Ditto.
11490
11491 * stack.c, symfile.c: Update copyright.
11492
45b7b345
DJ
114932002-01-17 Daniel Jacobowitz <drow@mvista.com>
11494
db728ff7
DJ
11495 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11496 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11497 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11498 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11499
db728ff7
DJ
115002002-01-17 Daniel Jacobowitz <drow@mvista.com>
11501
11502 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11503 * gdbserver/low-lynx.c (myattach): Likewise.
11504 * gdbserver/low-nbsd.c (myattach): Likewise.
11505 * gdbserver/low-sim.c (myattach): Likewise.
11506 * gdbserver/low-sparc.c (myattach): Likewise.
11507 * gdbserver/low-sun3.c (myattach): Likewise.
11508
11509 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11510
db728ff7 11511 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11512 (main): Handle "--attach".
11513
8de3c354
AC
115142002-01-16 Andrew Cagney <ac131313@redhat.com>
11515
11516 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11517 maintainer.
11518
b0129042
DJ
115192002-01-15 Daniel Jacobowitz <drow@mvista.com>
11520
11521 * c-typeprint.c (is_type_conversion_operator): Add additional
11522 check for non-conversion operators.
11523
ba8679fb 115242002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
11525
11526 * linux-proc.c: Add "info proc" command, a la procfs.c.
11527 (read_mapping): New function, abstract and re-use code.
11528 (linux_find_memory_regions): Use new func read_mapping.
11529 (linux_info_proc_cmd): New function, implement "info proc".
11530 (_initialize_linux_proc): Add new command "info proc".
11531
e4f9b4d5
MS
115322002-01-15 Michael Snyder <msnyder@redhat.com>
11533
11534 * symfile.c (generic_load): Use bfd_map_over_sections method
11535 instead of manipulating bfd structure members directly.
11536 (add_section_size_callback): New function, bfd sections callback
11537 used by generic_load.
11538 (load_sections_callback): New function, bfd sections callback
11539 used by generic_load.
11540
08cf96df
EZ
115412002-01-15 Elena Zannoni <ezannoni@redhat.com>
11542
abf22e64 11543 [Based on work by Jim Blandy]
08cf96df
EZ
11544 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11545 (builtin_type_vec128): Export.
11546 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11547 types.
11548 (builtin_type_vec128): New builtin type for 128 bit vector
11549 registers.
11550 (build_gdbtypes): Initialize builtin_type_v16qi and
11551 builtin_type_v8hi. Create the vec128 register builtin type
11552 structure.
11553 (build_builtin_type_vec128): New function.
abf22e64 11554 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11555 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11556 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11557 AltiVec register to new builtin type.
11558
d7242108
DJ
115592001-01-15 Daniel Jacobowitz <drow@mvista.com>
11560
11561 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11562 to make_cv_type.
11563
4ee3352d
AC
115642002-01-14 Andrew Cagney <ac131313@redhat.com>
11565
11566 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11567 CLEAN_UP_REGISTER_VALUE.
11568 * regcache.c (supply_register): Update only call.
11569
f015b2e7
AC
115702002-01-14 Andrew Cagney <ac131313@redhat.com>
11571
11572 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11573 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11574 a29k-*-vxworks* targets as obsolete.
11575
356ae49d
MS
115762002-01-14 Michael Snyder <msnyder@redhat.com>
11577
11578 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11579 until we can resolve portability issues.
11580 * gregset.h: Remove references to fpxregs.
11581 * gcore.c (gcore_command): Initialize note_sec to NULL.
11582
ade8f45e
AC
115832002-01-13 Andrew Cagney <ac131313@redhat.com>
11584
11585 * signals.c (target_signal_to_name): Rewrite. Only use
11586 signals[].name when in bounds and non-NULL.
abf22e64 11587
89c49e7a
AC
115882002-01-13 Andrew Cagney <ac131313@redhat.com>
11589
11590 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11591 * signals.c (target_signal_to_name): Verify that SIG is within the
11592 bounds of the signals array.
11593
4daa9f9f
AC
115942002-01-13 Andrew Cagney <ac131313@redhat.com>
11595
11596 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11597
ba4bbdcb
KS
115982002-01-13 Keith Seitz <keiths@redhat.com>
11599
11600 * stack.c (print_frame_info_base): Print the frame's pc
11601 only if when print_frame_info_listing_hook is not defined.
11602
575bbeb6
KS
116032002-01-13 Keith Seitz <keiths@redhat.com>
11604
11605 * varobj.c (varobj_set_value): Make sure that there were no
11606 errors evaluating the object before attempting to set its
11607 value.
11608 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11609 so this offset adjustment is no longer necessary.
11610 (create_child): Don't set the error flag if the child is
11611 a CPLUS_FAKE_CHILD.
11612 (value_of_child): If value_fetch_lazy fails, return NULL
11613 so that callers will be notified that an error occurred.
11614 (c_value_of_variable): Delay check of variable's validity
11615 until later. We actually want all structs and unions to have
11616 the value "{...}".
11617 Do not return "???" for variables which could not be evaluated.
11618 This error condition must be returned to the caller so that it
11619 can get the error condition from gdb.
11620 (cplus_name_of_child): Adjust index for vptr before figuring
11621 out the name of the child.
11622 (cplus_value_of_child): If a child's (real) parent is not valid,
11623 don't even bother trying to give a value for it. Just return
11624 an error. Change all instances in this function.
11625 (cplus_type_of_child): If our parent is one of the "fake"
11626 parents, we need to get at the type of the real parent, and
11627 derive the child's true type using this information.
11628
b76898ab
AC
116292002-01-13 Andrew Cagney <ac131313@redhat.com>
11630
11631 From 2002-01-09 John Marshall <johnm@falch.net>:
11632 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11633 sources.redhat.com, and tweak some related URLs which had
11634 suffered from linkrot.
11635
b6649e88
AC
116362002-01-13 Andrew Cagney <ac131313@redhat.com>
11637
11638 From Jeff law:
11639 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11640 structures passed in registers.
11641
82cc5033
EZ
116422002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11643
11644 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11645 white space which prevented compilation. Reported by DSK
11646 <dsk@student.unsw.edu.au>.
11647
ba5f2f8a
MS
116482002-01-11 Michael Snyder <msnyder@redhat.com>
11649
fbd35540
MS
11650 * symfile.c (build_section_addr_info_from_section_tab):
11651 Use bfd access method instead of manipulating bfd directly.
11652 (syms_from_objfile): Ditto.
11653 (simple_overlay_update_1): Ditto.
11654 (simple_overlay_update): Ditto.
11655 (generic_load): Ditto.
11656 (overlay_unmapped_address): FIXME comment, bfd access methods.
11657 (sections_overlap): FIXME comment, bfd access methods.
11658 (pc_in_mapped_range): FIXME comment, bfd access methods.
11659 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11660 (section_is_mapped): FIXME comment, bfd access methods.
11661 (section_is_overlay): FIXME comment, bfd access methods.
11662
ba5f2f8a
MS
11663 * symfile.c (generic_load): Whitespace and long line cleanups.
11664 Remove duplicate variable, change several local variables to
11665 more appropriate data types.
11666 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11667
17df2af6
AC
116682002-01-12 Andrew Cagney <ac131313@redhat.com>
11669
11670 From Peter Schauer:
11671 * language.c (longest_local_hex_string_custom): Use phex_nz to
11672 convert NUM to a hex string.
11673
ec920329
EZ
116742002-01-12 Elena Zannoni <ezannoni@redhat.com>
11675
11676 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11677 the function.
538a76d6 11678 Update Copyright year.
ec920329 11679
3abd2e01
AC
116802002-01-12 Andrew Cagney <ac131313@redhat.com>
11681
11682 * language.c (longest_raw_hex_string): Delete unused function.
11683
b21b22e0
PS
116842002-01-11 Petr Sorfa <petrs@caldera.com>
11685
11686 * MAINTAINERS (write-after-approval): Add myself.
11687 * dwarf2read.c (read_tag_string_type): Handling of
11688 DW_AT_byte_size.
11689 (read_tag_string_type): FORTRAN fix to prevent propagation of
11690 first string size.
11691 (set_cu_language): Handling of DW_LANG_Fortran95
11692
747fe712
RE
116932002-01-11 Richard Earnshaw <rearnsha@arm.com>
11694
11695 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11696 GETPID(inferior_ptid).
11697 (store_inferior_registers): Likewise.
11698
f1bea926
JM
116992002-01-10 Jason Merrill <jason@redhat.com>
11700
11701 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11702 Fix DW_OP_minus.
11703
ae940673
AC
117042002-01-10 Andrew Cagney <ac131313@redhat.com>
11705
11706 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11707 and bfd/elf32-sh-nbsd.c.
11708
00546b04
MS
117092002-01-10 Michael Snyder <msnyder@redhat.com>
11710
352ed7b4
MS
11711 * NEWS: Mention --pid and corefile/proc-id behavior change.
11712
c18be923
MS
11713 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11714 * gcore.c: Include cli/cli-decode.h instead of command.h.
11715
00546b04
MS
11716 * main.c (captured_main): Add new command line option "--pid".
11717 If the second command line argument (following the symbol-file)
11718 begins with a digit, try to attach to it before trying to open
11719 it as a corefile.
11720 (print_gdb_help): Document the "--pid" argument.
11721
db60ec62
EZ
117222002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11723
11724 * completer.c (command_completer): New function.
11725
11726 * completer.h <command_completer>: Add prototype.
11727
11728 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11729 completer for the "help" command.
11730
39c22d1a
JM
117312002-01-09 Jason Merrill <jason@redhat.com>
11732
11733 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11734
c564377f
MS
117352002-01-09 Michael Snyder <msnyder@redhat.com>
11736
975aec09
MS
11737 * i386-linux-nat.c (fill_fpxregset): Make global.
11738 (store_fpxregset): Ditto.
11739
db4a10fa
MS
11740 * gregset.h (gdb_fpxregset_t): Define.
11741 (supply_fpxregset): Prototype.
11742 (fill_fpxregset): Prototype.
11743
c564377f
MS
11744 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11745
c3d45d70
RE
117462002-01-09 Richard Earnshaw <rearnsha@arm.com>
11747
11748 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11749 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11750 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11751
fcc87af1
AC
117522002-01-09 Andrew Cagney <ac131313@redhat.com>
11753
11754 * MAINTAINERS: Update target maintainer rules so that any
11755 Maintainer can approve a tested patch for a maintenance-only
11756 target.
11757
dd96c05b
RE
117582002-01-09 Richard Earnshaw <rearnsha@arm.com>
11759
d4297db9 11760 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11761
d4297db9 11762 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11763 IN_SIGTRAMP.
11764
145fdc6e
MS
117652002-01-08 Michael Snyder <msnyder@redhat.com>
11766
11767 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11768 real name of the executable, rather than the /proc name.
11769
be4d1333
MS
117702002-01-03 Michael Snyder <msnyder@redhat.com>
11771
11772 Implement a "generate-core-file" command in gdb, save target state.
11773 * gcore.c: New file. Implement new command 'generate-core-file'.
11774 Save a corefile image of the current state of the inferior.
11775 * linux-proc.c: Add linux-specific code for saving corefiles.
11776 * target.h (struct target_ops): Add new target vectors for saving
11777 corefiles; to_find_memory_regions and to_make_corefile_notes.
11778 (target_find_memory_regions): New macro.
11779 (target_make_corefile_notes): New macro.
11780 * target.c (update_current_target): Inherit new target methods.
11781 (dummy_find_memory_regions): New place-holder method.
11782 (dummy_make_corefile_notes): New place-holder method.
11783 (init_dummy_target): Initialize new dummy target vectors.
11784 * exec.c (exec_set_find_memory_regions): New function.
11785 Allow the exec_ops vector for memory regions to be taken over.
11786 (exec_make_note_section): New function, target vector method.
11787 * defs.h (exec_set_find_memory_regions): Export prototype.
11788 * procfs.c (proc_find_memory_regions): New function, corefile method.
11789 (procfs_make_note_section): New function, corefile method.
11790 (init_procfs_ops): Set new target vector pointers.
11791 (find_memory_regions_callback): New function.
11792 (procfs_do_thread_registers): New function.
11793 (procfs_corefile_thread_callback): New function.
11794 * sol-thread.c (sol_find_memory_regions): New function.
11795 (sol_make_note_section): New function.
11796 (init_sol_thread_ops): Initialize new target vectors.
11797 * inftarg.c (inftarg_set_find_memory_regions): New function.
11798 Allow to_find_memory_regions vector to be taken over.
11799 (inftarg_set_make_corefile_notes): New function.
11800 Allow to_make_corefile_notes vector to be taken over.
11801 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11802 interface layer if not target_has_execution (may be a corefile).
11803 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11804 * config/sparc/sun4sol2.mh: Ditto.
11805 * config/alpha/alpha-linux.mh: Ditto.
11806 * config/arm/linux.mh: Ditto.
11807 * config/i386/x86-64linux.mh: Ditto.
11808 * config/ia64/linux.mh: Ditto.
11809 * config/m68k/linux.mh: Ditto.
11810 * config/mips/linux.mh: Ditto.
11811 * config/powerpc/linux.mh: Ditto.
11812 * config/sparc/linux.mh: Ditto.
11813
c6b92abd
MS
118142002-01-07 Michael Snyder <msnyder@redhat.com>
11815
11816 * arm-linux-nat.c: Remove references to regcache.c internal data
11817 (registers[] and register_valid[]).
11818
4b09dc8c
MS
118192002-01-07 Michael Snyder <msnyder@redhat.com>
11820
abf22e64
AJ
11821 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11822 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11823 symbol file and shlibs.
11824 * Makefile.in: Add rule for linux-proc.o.
11825 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11826 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11827 * config/arm/linux.mh: Ditto.
11828 * config/i386/linux.mh: Ditto.
11829 * config/i386/x86-64linux.mh: Ditto.
11830 * config/ia64/linux.mh: Ditto.
11831 * config/m68k/linux.mh: Ditto.
11832 * config/mips/linux.mh: Ditto.
11833 * config/powerpc/linux.mh: Ditto.
11834 * config/sparc/linux.mh: Ditto.
11835
c25b74ac
PM
118362002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11837
11838 * win32-nat.c: Add i386-tdep.h dependency.
11839
94cd915f
MS
118402002-01-07 Michael Snyder <msnyder@redhat.com>
11841
c7cccb76
MS
11842 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11843 instead of bfd_get_arch_size. Don't bail out just because
11844 there's no exec_bfd.
abf22e64 11845
34c0bd93
MS
11846 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11847 * p-valprint.c (pascal_object_print_value): Ditto.
11848 * somread.c (som_symtab_read): Ditto.
11849 * symfile.c (simple_free_overlay_region_table): Ditto.
11850 * valops.c (value_assign): Ditto.
11851
21c1c920
MS
11852 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11853 use tilde_expand and strerror for opening save-tracepoints file.
11854
5bbd998e
MS
11855 * thread-db.c (thread_db_new_objfile): Indendation fix.
11856
94cd915f
MS
11857 * infptrace.c (GDB_MAX_ALLOCA): New define.
11858 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11859 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11860 can be overridden with whatever value is appropriate to the host).
11861 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11862 alloca to allocate potentially large buffer.
11863 * rs6000-nat.c (child_xfer_memory): Ditto.
11864 * symm-nat.c (child_xfer_memory): Ditto.
11865 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11866
494e8a93
JSC
118672002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11868
11869 From Nick Clifton <nickc@redhat.com>
11870 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11871
d0e1d48e
MS
118722002-01-07 Michael Snyder <msnyder@redhat.com>
11873
abf22e64 11874 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
11875 Don't use exec_bfd if it's NULL.
11876
290b2c7a
MK
118772002-01-06 Mark Kettenis <kettenis@gnu.org>
11878
abf22e64 11879 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 11880
aef21287
AC
118812002-01-06 Andrew Cagney <ac131313@redhat.com>
11882
11883 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11884 * gnu-nat.c: Ditto.
11885
30efa627
AC
118862002-01-06 Andrew Cagney <ac131313@redhat.com>
11887
11888 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11889 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11890 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11891 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11892 z8k-coff have not been multi-arched. Update z8k-coff build
11893 status.
11894
9b4ff276
AC
118952002-01-06 Andrew Cagney <ac131313@redhat.com>
11896
11897 * MAINTAINERS: Mark a29k target as obsolete.
11898 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11899 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11900 comments.
11901 * NEWS: Note that a29k targets are obsolete.
11902 * a29k-tdep.c: Mark as obsolete.
11903 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11904 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11905 a29k-*-vxworks* targets as obsolete.
11906 * remote-adapt.c: Obsolete.
11907 * remote-eb.c: Obsolete.
11908 * remote-mm.c: Obsolete.
11909 * remote-udi.c: Obsolete.
11910 * config/a29k/a29k-udi.mt: Obsolete.
11911 * config/a29k/a29k.mt: Obsolete.
11912 * config/a29k/tm-a29k.h: Obsolete.
11913 * config/a29k/tm-vx29k.h: Obsolete.
11914 * config/a29k/vx29k.mt: Obsolete.
11915
a9011d31
AC
119162002-01-05 Andrew Cagney <ac131313@redhat.com>
11917
11918 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11919 with BFD_ENDIAN_BIG.
11920
9299404e
AC
119212002-01-05 Andrew Cagney <ac131313@redhat.com>
11922
11923 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11924 * configure, config.in: Re-generate.
11925 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11926 * defs.h: Do not include <endian.h>.
11927
7e89e357
JT
119282002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11929
11930 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11931 * config.in: Regenerate.
11932 * configure.in: Update copyright years.
11933 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11934 * configure: Regenerate.
11935 * i386bsd-nat.c: Update copyright years.
11936 (fill_gregset): Use regcache_collect.
11937 (fetch_inferior_registers): Only fetch integer registers
11938 if requested to do so. Add support for XMM registers
11939 using PT_GETXMMREGS.
11940 (store_inferior_registers): Only store integer registers
11941 if requested to do so. Add support for XMM registers
11942 using PT_SETXMMREGS.
11943 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11944 (store_inferior_registers): Remove.
11945 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11946 (fetch_elfcore_registers): New function.
11947 (i386nbsd_elfcore_fns): New.
11948 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11949 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11950 i386bsd-nat.o.
11951 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11952 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11953 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11954 * config/i386/tm-nbsd.h: Update copyright years.
11955 (HAVE_SSE_REGS): Define.
11956 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11957 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11958 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11959 (SIGCONTEXT_PC_OFFSET): Remove.
11960 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11961
a752853e
AC
119622002-01-05 Andrew Cagney <ac131313@redhat.com>
11963
11964 * configure.tgt: Remove powerpc-*-macos* target.
11965 * config/m68k/xm-mpw.h: Delete file.
11966 * config/xm-mpw.h: Delete file.
11967 * ser-mac.c: Delete file.
11968 * mpw-make.sed: Delete file.
11969 * mpw-config.in: Delete file.
11970 * mac-xdep.c: Delete file.
11971 * mac-gdb.r: Delete file.
11972 * mac-defs.h: Delete file.
11973 * mac-nat.c: Delete file.
11974 * config/powerpc/macos.mh: Delete file.
11975 * config/powerpc/macos.mt: Delete file.
11976 * config/powerpc/nm-macos.h: Delete file.
11977 * config/powerpc/tm-macos.h: Delete file.
11978 * source.c (openp, open_source_file): Remove obsolete code.
11979 * top.c (gdb_readline): Ditto.
11980 * utils.c (query): Ditto.
11981 * event-top.c (display_gdb_prompt): Ditto.
11982 * Makefile.in (ser-mac.o): Delete obsolete target.
11983 * NEWS: Update.
11984
d7449b42
AC
119852002-01-04 Andrew Cagney <ac131313@redhat.com>
11986
11987 * defs.h (BIG_ENDIAN): Delete macro definition.
11988 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11989 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11990 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11991 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11992 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11993 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11994 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11995 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11996 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11997 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11998 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11999 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12000 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12001 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12002 * gdbarch.c: Re-generate.
12003
356374e8
DJ
120042002-01-04 Daniel Jacobowitz <drow@mvista.com>
12005
12006 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12007 for core files.
12008
a2b8f8f8
JT
120092002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12010
12011 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12012
12466af9
AC
120132002-01-04 Andrew Cagney <ac131313@redhat.com>
12014
12015 * value.h (value_ptr): Delete typedef.
12016
3549ab40
JT
120172002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12018
12019 * i386nbsd-nat.c: Update copyright years.
12020 Include i386-tdep.h.
12021
fedbd091
EZ
120222002-01-04 Elena Zannoni <ezannoni@redhat.com>
12023
12024 * stabsread.c: Update copyright years.
12025
12026 From Debashis Mahata <debashis.mahata@wipro.com>:
12027 (read_struct_fields): Deal with Sun C compiler erroneous stab
12028 output for structs and unions.
fec8b34f 12029 Fix PR gdb/269.
fedbd091 12030
eb43544b
DJ
120312002-01-04 Daniel Jacobowitz <drow@mvista.com>
12032
12033 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12034 prototype.
12035
1514d34e
DJ
120362002-01-04 Daniel Jacobowitz <drow@mvista.com>
12037
12038 * cp-abi.c: Fix whitespace.
12039 (baseclass_offset): New wrapper function.
12040 * cp-abi.h (baseclass_offset): Add prototype.
12041 (struct cp_abi_ops): Add baseclass_offset pointer.
12042
12043 * valops.c (vb_match): Move to...
12044 * gnu-v2-abi.c (vb_match): here.
12045 * valops.c (baseclass_offset): Move to...
12046 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12047
12048 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12049
12050 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12051 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12052 * hpacc-abi.c (init_hpacc_ops): Likewise.
12053
7f8c9282
DJ
120542002-01-04 Daniel Jacobowitz <drow@mvista.com>
12055
12056 * valops.c (find_overload_match): Accept obj as a
12057 reference parameter. Update it before returning.
12058 * value.h (find_overload_match): Update prototype.
12059 * eval.c (evaluate_subexp_standard): Pass object to
12060 find_overload_match by reference.
12061
f23631e4
AC
120622002-01-03 Andrew Cagney <ac131313@redhat.com>
12063
12064 * valarith.c: Replace value_ptr with struct value pointer. Remove
12065 register attribute from value declarations.
12066 * valops.c: Ditto.
12067 * value.h: Ditto.
12068 * scm-lang.c (scm_lookup_name): Ditto.
12069
79e10fab 120702002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 12071
79e10fab
AC
12072 Abstract the functionality of iterating over mapped memory
12073 regions into a general purpose iterator function.
abf22e64 12074 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
12075 iterator for memory sections.
12076 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12077 (solib_mappings_callback): New function, callback for above.
12078 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12079 (info_mappings_callback): New function, callback for above.
12080
12081 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12082
c5ad026a
MK
120832002-01-01 Mark Kettenis <kettenis@gnu.org>
12084
d2a7c97a
MK
12085 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12086 * i386-tdep.c: Include "elf-bfd.h".
12087 (process_note_abi_tag_sections): New function.
12088 (i386_gdbarch_init): Add code to recognize various OS/ABI
12089 combinations.
12090
c5ad026a
MK
12091 * maint.c (_initialize_maint_cmds): Add missing \ in
12092 string-literal.
12093
a1a5b71e 12094For older changes see ChangeLog-2001
c906108c
SS
12095\f
12096Local Variables:
12097mode: change-log
12098left-margin: 8
12099fill-column: 74
12100version-control: never
12101End:
This page took 0.860848 seconds and 4 git commands to generate.