daily update
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
fb9b6b35
JJ
12002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2
3 * NEWS: add recent mi fixes.
4 * varobj.c (struct varobj): Add new "updated" flag.
5 (new_variable): Default "updated" flag to 0.
6 (varobj_set_value): Set "updated" flag to 1 if value
7 changes.
8 (varobj_update): Check varobj "updated" flag before
9 comparing old and refreshed values. Fix for
10 PR gdb/702.
11
8da065d5
DC
122002-10-23 David Carlton <carlton@math.stanford.edu>
13
14 * parse.c (parse_exp_1): Use BLOCK_START.
15 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
16 SYMBOL_BLOCK_VALUE.
17 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
18
87f2f08c
DC
192002-10-23 David Carlton <carlton@math.stanford.edu>
20
21 * symtab.c: Delete cplusplus_hint.
22 Delete prototype for find_template_name_end.
23
88cda038
EZ
242002-10-23 Elena Zannoni <ezannoni@redhat.com>
25
26 * symtab.h: Update comment.
27
2625d86c
MS
282002-10-23 Michael Snyder <msnyder@redhat.com>
29
30 * printcmd.c (address_info): Restore quotes in output.
31 * valops.c (value_of_local): Restore quotes in error message.
32
9cc0d196
EZ
332002-10-23 Elena Zannoni <ezannoni@redhat.com>
34
35 * symtab.c (symbol_demangled_name): New function.
36 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
37 turning most of it into a function.
38 (symbol_demangled_name): Export.
39
19de93d0
MS
402002-10-23 Michael Snyder <msnyder@redhat.com>
41
42 * valops.c (value_of_local): Restore quotes in error message.
43
89aad1f9
EZ
442002-10-23 Elena Zannoni <ezannoni@redhat.com>
45
46 * symtab.c (symbol_init_language_specific): New function.
47 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
48 turning most of it into a function.
49 (symbol_init_language_specific): Export.
50
d9fa45fe
DC
512002-10-23 David Carlton <carlton@math.stanford.edu>
52
53 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
54 (dwarf_attr_name): Ditto.
55 (dwarf_type_encoding_name): Ditto.
56 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
57 (process_die): Handle DW_TAG_namespace,
58 DW_TAG_imported_declaration, DW_TAG_imported_module.
59 (read_namespace): New function.
60
1045b512
JB
612002-10-22 Joel Brobecker <brobecker@gnat.com>
62
63 * configure.in: Define NEW_PROC_API on Interix too.
64 * configure: Regenerate.
65
662002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
67
68 * configure: Regenerate using the proper version of autoconf.
69
3987b9d4
EZ
702002-10-21 Elena Zannoni <ezannoni@redhat.com>
71
72 * findvar.c (read_var_value): Temporarily disable TLS code, until
73 complete TLS support is added.
74
9d774e44
EZ
752002-10-21 Jim Blandy <jimb@redhat.com>
76 Elena Zannoni <ezannoni@redhat.com>
77
78 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
79 for thread local storage locations.
80 (struct symbol): Add objfile field.
81 (SYMBOL_OBJFILE): Define.
82 * dwarf2read.c (is_thread_local): New static variable.
83 (new_symbol): If variable is in thread local fill in address class
84 and objfile appropriately.
85 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
86 stack operation.
87 * printcmd.c (address_info): Print the information for thread
88 local storage variable.
89 * findvar.c (read_var_value): In case of thread local variable,
90 defer to the target vector code to compute address.
91
bc4a16ae
EZ
922002-10-21 Elena Zannoni <ezannoni@redhat.com>
93
94 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
95 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
96
407caf07
EZ
972002-10-21 Elena Zannoni <ezannoni@redhat.com>
98
99 * symtab.h (address_class): Rename
100 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
101 * hpread.c (hpread_process_one_debug_symbol): Ditto.
102 * printcmd.c (address_info): Ditto.
103 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
104
005328e3
MK
1052002-10-20 Mark Kettenis <kettenis@gnu.org>
106
afdb036a
MK
107 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
108 DBREG_DRX macro to acces debug registers.
109
ca02e098
MK
110 * Makefile.in (i386obsd-tdep.o): New target.
111
03cc47f7
MK
112 * solib-sunos.c: Include "bcache.h" and "regcache.h".
113 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
114
005328e3
MK
115 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
116 * config/i386/obsd.mt: New file.
117 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
118 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
119 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
120 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
121 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
122 * i386obsd-tdep.c: New file.
123
9c96f9f2
AF
1242002-10-19 Adam Fedor <fedor@gnu.org>
125
126 * objc-exp.y (name_not_typename): Fix invalid comment.
127
ce1ed485
MK
1282002-10-20 Mark Kettenis <kettenis@gnu.org>
129
130 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
131 to allocate partial syms and macro byte caches.
132
1efc7aaa
DC
1332002-10-18 David Carlton <carlton@math.stanford.edu>
134
135 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
136
7e1d63ec
AF
1372002-10-18 Adam Fedor <fedor@gnu.org>
138
139 * stabsread.c (find_name_end): New function.
140 (define_symbol): Use it.
141
6e8d29a9
DJ
1422002-10-18 Daniel Jacobowitz <drow@mvista.com>
143
144 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
145 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
146 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
147 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
148
1efc7aaa 1492002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
150
151 * symfile.h: Add opaque declaration for struct obstack.
152 Declare obsavestring to take a const char *.
153 * symfile.c (obsavestring): Make first argument a const char *.
154
1aeae86e
AF
1552002-10-16 Adam Fedor <fedor@gnu.org>
156
157 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
158 names when matching breakpoints in current file.
159
8b2dbe47
KB
1602002-10-16 Kevin Buettner <kevinb@redhat.com>
161
162 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
163 (read_tag_pointer_type): Add address class support.
164 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
165 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
166 New methods.
167 * gdbarch.h, gdbarch.c: Regenerate.
168 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
169 (make_type_with_address_space, recursive_type_dump): Add address
170 class support.
171 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
172 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
173 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
174
74451869
KD
1752002-10-16 Klee Dienes <kdienes@apple.com>
176
177 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
178 to get the last character of a char[] buffer, not
179 name[sizeof(vptr_name)-1].
180
ff4cb3e8
AF
1812002-10-14 Adam Fedor <fedor@gnu.org>
182
183 * symtab.h: New objc_specific struct.
184 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
185 (SYMBOL_DEMANGLED_NAME): Likewise.
186
da2cf7e0
AF
1872002-10-14 Adam Fedor <fedor@gnu.org>
188
189 * symfile.c (init_filename_language_table): Add ObjC file extension.
190
4a351cef
AF
1912002-10-14 Adam Fedor <fedor@gnu.org>
192
193 * utils.c (puts_filtered_tabular): New function.
194 (fprintf_symbol_filtered): Get ObjC demangled name.
195 * defs.h (puts_filtered_tabular): Declared.
196
9750e763
KB
1972002-10-14 Kevin Buettner <kevinb@redhat.com>
198
199 * c-lang.h (c_type_print_varspec_prefix): Delete.
200 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
201 ``need_post_space'' parameter. Adjust all callers.
202
eee771c1
DJ
2032002-10-14 Daniel Jacobowitz <drow@mvista.com>
204
205 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
206 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
207 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
208 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
209
46c82446
AF
2102002-10-13 Adam Fedor <fedor@gnu.org>
211
212 * source.c (print_source_lines): Update comments.
213
d069f99d
AF
2142002-10-13 Adam Fedor <fedor@gnu.org>
215
216 * valops.c (value_of_local): New function.
217 (value_of_this): Use it.
218 * value.h (value_of_local): Declared.
219
53c551b7
AF
2202002-10-13 Adam Fedor <fedor@gnu.org>
221
222 * parse.c: (length_of_subexp, prefixify_subexp): Handle
223 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
224
eb392fbf
AF
2252002-10-12 Adam Fedor <fedor@gnu.org>
226
227 * language.c (binop_result_type): Add language_objc to case.
228 (integral_type): Likewise.
229 (character_type): Likewise.
230 (string_type): Likewise.
231 (boolean_type): Likewise.
232 (structured_type): Likewise.
233 (binop_type_check): Likewise.
234
e2b23ee9
AF
2352002-10-11 Adam Fedor <fedor@gnu.org>
236
237 * printcmd.c (address_info): Print 'self' for ObjC.
238
b01ab485
AF
2392002-10-11 Adam Fedor <fedor@gnu.org>
240
241 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
242 OP_SELF.
243
806e6073
AF
2442002-10-11 Adam Fedor <fedor@gnu.org>
245
246 * language.h (CAST_IS_CONVERSION): Add language_objc.
247
50f85cdf
AF
2482002-10-11 Adam Fedor <fedor@gnu.org>
249
250 * defs.h (enum language): Add language_objc.
251
0d540cdf
KD
2522002-10-11 Klee Dienes <kdienes@apple.com>
253
254 * findvar.c (read_memory_typed_address): New function.
255 * gdbcore.h (read_memory_typed_address): Add prototype.
256 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
257 to read a value destined for a CORE_ADDR, not read_memory_integer.
258 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
259 (f77_get_dynamic_lowerbound): Ditto.
260
d5dc7960
MH
2612002-10-11 Martin M. Hunt <hunt@redhat.com>
262
263 * utils.c (string_to_core_addr): After turning string into
264 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
265 which will do necessary sign-extension, etc.
266
8343f86c
DJ
2672002-10-11 Daniel Jacobowitz <drow@mvista.com>
268
269 * c-exp.y (THIS): Delete token and grammar rule.
270 (yylex): Don't return THIS.
271 * cp-valprint.c (vtbl_ptr_name_old): Delete.
272 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
273 * demangle.c (cplus_markers): Update comment. Put '$'
274 first. Remove CPLUS_MARKER.
275 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
276 * jv-exp.y (THIS): Delete token and grammar rule.
277 (yylex): Don't return THIS.
278 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
279 * objc-exp.y (THIS): Delete token and grammar rule.
280 (yylex): Don't return THIS.
281 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
282 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
283 (read_member_functions): Likewise for opname.
284 (read_tilde_fields): Use is_cplus_marker.
285
286 * defs.h (CPLUS_MARKER): Don't define.
287 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
288 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
289 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
290 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
291 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
292
293 * config/i386/tm-i386v4.h: Delete file.
294 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
295 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
296 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
297 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
298 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
299 * config/i386/i386sco5.mt (TM_FILE): Likewise.
300 * config/i386/i386v4.mt (TM_FILE): Likewise.
301 * config/i386/ncr3000.mt (TM_FILE): Likewise.
302
967c0d83
MM
3032002-10-10 Marko Mlinar <markom@opencores.org>
304
305 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
306 accidentially not commited 2002-10-09
307 * gdbarch.h, gdbarch.c: Re-generate.
308
f74fa174
MM
3092002-10-09 Marko Mlinar <markom@opencores.org>
310
311 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
312 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
313 * gdbarch.h, gdbarch.c: Re-generate.
314
57349743
JB
3152002-10-08 Petr Sorfa <petrs@caldera.com>
316
317 Revised and re-submitted by John Wolfe <jlw@caldera.com>
318
319 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
320 so we can work on more than one compilation unit at a time. This
321 helps prepare GDB to handle inter-CU die references.
322 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
323 the code to be defined before struct comp_unit_head.
324 (comp_unit_head): Added new members - offset, cu_head,
325 begin_die, next and dwarf2_abbrevs.
326 (dwarf2_abbrevs): Removed single static var; now member of
327 struct comp_unit_head.
328 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
329 members.
330 (psymtab_to_symtab_1): Changed to work with the new
331 struct comp_unit_head.
332 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
333 constructs the dwarf2_abbrevs[] inside the cu_header.
334 (dwarf2_empty_abbrev_table): Now expects a ptr to a
335 dwarf2_abbrev table to clean up.
336 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
337 handling of dwarf2_abbrevs inside the cu_header.
338 (read_partial_die): Now supports the call to the new
339 dwarf2_lookup_abbrev.
340 (read_full_die): Now supports the call to the new
341 dwarf2_lookup_abbrev.
342
4092aadb
CF
3432002-10-06 Christopher Faylor <cgf@redhat.com>
344
345 * Makefile.in (install-gdbtk): Add missing continuation backslash to
346 insure that shell variables, such as "transformed_name" are propagated
347 to later shell statements in rule.
348
af0b2512
MK
3492002-10-06 Mark Kettenis <kettenis@gnu.org>
350
351 * config/i386/nm-i386sco.h: Add protection against
352 multiple-inclusion. Include "i386/nm-i386v.h".
353 (REGISTER_U_ADDR): Remove define.
354 (i386_register_u_addr): Remove prototype.
355
d6020d45
MS
3562002-10-04 Michael Snyder <msnyder@redhat.com>
357
358 * m32r-stub.c (handle_exception): Make sure exception is "trap"
359 before treating it as a single-step event.
360
7248f48e
AF
3612002-10-03 Adam Fedor <fedor@gnu.org>
362
363 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
364 (objc_demangle): Remove assignment in if statements, Replace
365 free with xfree.
366 (add_msglist): Likewise.
367 (end_msglist): Likewise.
368 (complare_selectors): Likewise.
369 (selectors_info): Likewise.
370 (compare_classes): Likewise.
371 (classes_info): Likewise.
372 (print_object_command): Likewise.
373 (find_objc_msgcall_submethod): Replace PTR with void *.
374 * objc-lang.h: Remove check for __STDC__.
375
52c6a6ac
JJ
3762002-10-03 Jeff Johnston <jjohnstn@redhat.com>
377
378 * ui-out.h (ui_out_field_fmt_int): New prototype.
379 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
380 of field width and alignment.
381 * stack.c (print_frame_info_base): When printing frame level, use
382 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
383 PR gdb/192
384
7e3cec17
JJ
3852002-10-03 Jeff Johnston <jjohnstn@redhat.com>
386
387 * MAINTAINERS: Add self to Write After Approval list.
388
a58dd373
EZ
3892002-10-02 Elena Zannoni <ezannoni@redhat.com>
390
391 * infcmd.c (interrupt_target_command_wrapper): Delete.
392 (interrupt_target_command): Make non static.
393 (nofp_registers_info): Make static.
394 * stack.c (return_command_wrapper): Delete.
395 (return_command): Make non static.
396
cee6ddeb
EZ
3972002-10-02 Elena Zannoni <ezannoni@redhat.com>
398
399 * event-top.c (gdb_setup_readline): New function. Code moved from
400 _initialize_event_loop().
401 (_initialize_event_loop): Call gdb_setup_readline().
402
c4ed33b9
AC
4032002-10-02 Andrew Cagney <ac131313@redhat.com>
404
405 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
406 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
407 * gdbarch.h, gdbarch.c: Re-generate.
408
cef4f5dd
DJ
4092002-10-02 Daniel Jacobowitz <drow@mvista.com>
410
411 Fix PR gdb/778
412 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
413 before recursing.
414 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
415 of fill_in_vptr_fieldno.
416
36dc181b 4172002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 418
36dc181b
EZ
419 * inferior.h (registers_info, stepi_command, nexti_command,
420 continue_command, interrupt_target_command): Export from infcmd.c.
421 * frame.h (args_info, selected_frame_level_changed_hook,
422 return_command): Export from stack.c.
423 * v850ice.c (stepi_command, nexti_command, continue_command): use
424 prototypes from inferior.h.
425 * tracepoint.c (registers_info, args_info, locals_info): Use
426 prototypes from frame.h and inferior.h.
427 * Makefile.in (mi-main.o): Add dependency on frame.h.
428
6f99cb26
AC
4292002-10-02 Andrew Cagney <ac131313@redhat.com>
430
da3eff49
AC
431 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
432 value in register 3 adjusted by ppc_gp0_regnum.
433
6f99cb26
AC
434 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
435
da615bee
MM
4362002-10-02 Marko Mlinar <markom@opencores.org>
437
438 * MAINTAINERS: Add myself to the Write After Approval list.
439
d154bee2
AO
4402002-10-01 Alexandre Oliva <aoliva@redhat.com>
441
62a49b2c
AO
442 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
443 of the section for the N64 ABI, fixed.
444
d154bee2
AO
445 * config/mips/tm-irix6.h: Include solib.h.
446
ed348acc
EZ
4472002-10-01 Elena Zannoni <ezannoni@redhat.com>
448
449 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
450 GNU operators.
451
da0f9dcd
AC
4522002-10-01 Andrew Cagney <ac131313@redhat.com>
453
454 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
455 and that "mi0" syntax has been removed.
456
bdf64bac
DC
4572002-09-30 David Carlton <carlton@math.stanford.edu>
458
459 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
460 * ppc-sysv-tdep.c: #include "gdb_string.h".
461 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
462 pacify GCC.
463
54c2a1e6
AC
4642002-10-01 Andrew Cagney <ac131313@redhat.com>
465
466 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
467 "vrsave"'s register number.
468
cedea778
AC
4692002-09-30 Andrew Cagney <ac131313@redhat.com>
470
471 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
472 use frame_unwind_signed_register to obtain the PC.
473 (mips_frame_chain): Handle a generic dummy frame.
474 (mips_init_extra_frame_info): When a generic dummy frame, don't
475 re-compute the frame base.
476 (mips_pop_frame): Handle generic dummy frames.
477 (mips_gdbarch_init): When generic dummy frames, set
478 use_generic_dummy_frames, push_dummy_frame to
479 generic_push_dummy_frame, pc_in_call_dummy to
480 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
481 generic_save_dummy_frame_tos.
482
68315eb8
AC
4832002-09-30 Andrew Cagney <ac131313@redhat.com>
484
485 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
486 against TOP when TOP was explictly set.
487 (generic_push_dummy_frame): Set TOP to zero.
488
3b8630c3
EZ
4892002-09-30 Elena Zannoni <ezannoni@redhat.com>
490
491 * event-loop.c (start_event_loop): Rename variable 'result' to
492 'gdb_result', to avoid conflicts with upcoming intepreters changes.
493
28ee05e9
KS
4942002-09-30 Keith Seitz <keiths@redhat.com>
495
496 * gdb-events.sh (selected_thread_changed): New event.
497 * gdb-events.c: Regenerated.
498 * gdb-events.h: Regenerated.
499
6eecb1c8
HPN
5002002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
501
502 * MAINTAINERS: Add self to Write After Approval list.
503
92df71f0
FN
5042002-09-30 Fernando Nasser <fnasser@redhat.com>
505
3b8630c3
EZ
506 * disasm.c: New file.
507 * disasm.h: New file.
92df71f0
FN
508 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
509 (compare_lines): Ditto.
510 (dump_insns): Ditto.
3b8630c3
EZ
511 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
512 argument.
92df71f0 513 (do_assembly_only): Ditto.
3b8630c3
EZ
514 (do_disassembly): Renamed to gdb_disassembly and moved to
515 disasm.c. Sdded uiout argument.
516 * Makefile.in: Add new files. Reorder SFILES list. Update
517 dependencies. Include libgdb.a later in the insight executable.
92df71f0 518
0c22854d
AC
5192002-09-29 Andrew Cagney <ac131313@redhat.com>
520
521 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
522 bfd/elf64-alpha-fbsd.c.
523
e67f2023
AC
5242002-09-29 Andrew Cagney <ac131313@redhat.com>
525
526 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
527 i386gnu-tdep.c.
528
89396210
AC
5292002-09-29 Andrew Cagney <ac131313@redhat.com>
530
531 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
532 __FUNCTION__.
533 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
534 function name.
535 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
536 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
537 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
538 (S_msg_sig_post_reply): Ditto.
539
7079c36c
CV
5402002-09-28 Corinna Vinschen <vinschen@redhat.com>
541
89396210
AC
542 * sh-tdep.c (sh_use_struct_convention): Use definition according
543 to ABI.
7079c36c
CV
544 (sh_push_arguments): Store in register with correct endianess.
545 (sh_default_store_return_value): Ditto.
546 (sh_gdbarch_init): Set sizeof long double to 8.
547
975ac915
MK
5482002-09-27 Mark Kettenis <kettenis@gnu.org>
549
550 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
551 Fix some whitespace problems.
552
9bbe19fb
DC
5532002-09-27 David Carlton <carlton@math.stanford.edu>
554
555 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
556 (mcore-tdep.o): Ditto.
557 (ns32k-tdep.o): Ditto.
558 (ns32knbsd-tdep.o): Ditto.
559 (sh3-rom.o): Ditto.
560 (vax-tdep.o): Ditto.
561 * cris-tdep.c: #include "gdb_string.h"
562 * mcore-tdep.c: Ditto.
563 * ns32k-tdep.c: Ditto.
564 * ns32knbsd-tdep.c: Ditto.
565 * sh3-rom.c: Ditto.
566 * vax-tdep.c: Ditto.
567
43b2fdc7
DC
5682002-09-27 David Carlton <carlton@math.stanford.edu>
569
570 * config/djgpp/fnchange.lst: Add entries for
571 gdb/testsuite/gdb.c++/m-static files.
572
e8cfbbd9
JW
5732002-09-27 Jim Wilson <wilson@redhat.com>
574
575 * MAINTAINERS: Add myself to the Write After Approval list.
576
43b2fdc7 5772002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
578
579 * mips-tdep.c (find_proc_desc): Initialize startaddr.
580
581
9f3b7f07
AC
5822002-09-26 Andrew Cagney <ac131313@redhat.com>
583
584 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
585 frame.
586
11269d7e
AC
5872002-09-26 Andrew Cagney <ac131313@redhat.com>
588
589 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
590 (rs6000_struct_return_address): Delete variable.
591 (rs6000_store_struct_return): Update.
592 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
593 deprecated_extract_struct_value_address.
594 (rs6000_frame_align): New function.
595 (rs6000_gdbarch_init): Set frame_align.
596
f15ab4a7
AC
5972002-09-26 Andrew Cagney <ac131313@redhat.com>
598
599 From Grace Sainsbury <graces@redhat.com>:
600 * Makefile.in (gdbtk-main.o): New target.
601 (gdb.o): New target.
602 (main_h): Define.
603 (main.o): Update dependencies.
604 (gdb$(EXEEXT)): Add gdb.o.
605 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
606 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
607 (SUBDIR_GDBTK_CLEAN): Set.
608 (install-gdbtk): Install the insight binary.
609 (uninstall-gdbtk): New target.
610 (all-gdbtk, clean-gdbtk): New rule.
611 * top.c (use_windows): Default to zero.
612 * main.c: Include "main.h".
613 (main): Delete.
614 (struct captured_main_args): Delete.
615 (gdb_main): New function.
616 * main.h: New file.
617 * gdb.c: New File.
618
e36180d7
AC
6192002-09-25 Andrew Cagney <cagney@redhat.com>
620
621 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
622 (frame_map_regnum_to_name): New function.
623 (frame_map_name_to_regnum): New function.
624 * frame.h (frame_map_name_to_regnum): Declare.
625 (frame_map_regnum_to_name): Declare.
626 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
627 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
628 * parse.c: Do not include "builtin-regs.h".
629 (target_map_name_to_register): Delete function.
630 (write_dollar_variable): Use frame_map_name_to_regnum.
631 * parser-defs.h (target_map_name_to_register): Delete declaration.
632 * expprint.c: Include "frame.h".
633 (print_subexp): Use frame_map_regnum_to_name.
634 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
635 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
636
8b69000d
AC
6372002-09-25 Andrew Cagney <ac131313@redhat.com>
638
639 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
640 wasn't saved, and the next innermost frame is a dummy, return the
641 dummy frame's link register.
642
046ca86a
JB
6432002-09-24 Jim Blandy <jimb@redhat.com>
644
645 Fix from Paul Breed:
646 * main.c (captured_main): Add a `break' after the case for 'b'.
647
94b66fa7
KS
6482002-09-24 Keith Seitz <keiths@redhat.com>
649
650 * varobj.c (c_type_of_child): Use get_target_type instead
651 of TYPE_TARGET_TYPE.
652
c214a6fd
FN
6532002-09-22 Fernando Nasser <fnasser@redhat.com>
654
53cb0458
FN
655 * source.c (get_current_or_default_source_symtab_and_line): Remove
656 function.
657 (set_default_source_symtab_and_line): New function. Attempts to
658 determine a source file to list lines from if one is not currently
659 defined.
660 (get_current_source_symtab_and_line): Initialize sal.pc and
661 sal.end fields.
662 (set_current_source_symtab_and_line): Mark argument as const.
663 * source.h: Update declarations and comments.
664 * linespec.c (decode_line_1): Replace call to removed routine above.
665 * stack.c (print_frame_info_base): Ditto.
666 * cli/cli-cmds.c (edit_command): Ditto.
667 (list_command): Ditto.
668
6692002-09-22 Fernando Nasser <fnasser@redhat.com>
670
d6020d45 671 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 672 sal.pc and sal.end fields.
c214a6fd
FN
673 (get_current_or_default_source_symtab_and_line): Ditto.
674 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
675 so we do not cause a new source symtab to be searched for (reverting an
676 unintentional change from the 2002-09-20 patch).
677 * scm-lang.c (scm_unpac): Ditto.
678
cc3b68a5
AC
6792002-09-21 Andrew Cagney <cagney@redhat.com>
680
681 * complaints.c (symfile_explanations): Remove new-line from
682 ``isolated_message''.
683 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
684 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
685
5835abe7
NC
6862002-09-20 Nick Clifton <nickc@redhat.com>
687
688 * NEWS: Announce that V850EA ISA is no longer supported.
689 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
690
a15ef5f5
DC
6912002-09-20 David Carlton <carlton@math.stanford.edu>
692
06ba1b39
DC
693 * Makefile.in (c-lang.o): Correct dependencies.
694 (utils.o): Gather dependencies.
695 (charset.o): Move.
a15ef5f5
DC
696 * c-lang.c: #include "gdb_string.h"
697
87885426
FN
6982002-09-20 Fernando Nasser <fnasser@redhat.com>
699
700 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
701 * cli/cli-cmds.c (list_command): New function. Implements the new
702 cli edit command.
703 (_init_cli_cmds): Add new command definition.
704 * gdb.1: Document edit command.
705 * doc/gdb.texinfo: Document edit command.
706
7072002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
708
709 * source.c: Make global variables current_source_symtab and
710 current_source_line static.
711 (list_command): Moved to cli/cli-cmds.c.
712 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
713 (get_first_line_listed): New accessor function.
714 (get_lines_to_list): New accessor function.
715 (get_current_source_symtab_and_line): New function. Retrieves the
716 position in the source code that we consider current.
717 (get_current_or_default_source_symtab_and_line): New function.
718 Like the above but attempts to determine a default position if one
719 is not currently defined.
720 (set_current_source_symtab_and_line): New function. Sets the source
721 code position considered current and returns the previously set one.
722 (clear_current_source_symtab_and_line): Reset stored information about
723 a current source line.
724 (_initialize_source): Remove registration for the "list" command and
725 its alias.
726 * source.h: Add declarations for the new functions above.
727 * symtab.h: Remove declarations for the global variables mentioned
728 above.
729 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
730 obtain current source line.
731 * linespec.c (decode_line_1): Ditto.
732 * macroscope.c (default_macro_scope): Ditto.
733 * scm-lang.c (scm_unpac): Ditto.
734 * stack.c (print_frame_info_base): Ditto.
735 * symfile.c (clear_symtab_users): Ditto.
736 * symtab.c (decode_line_spec): Ditto.
737 * cli/cli-cmds.c (list_command): Moved here from source.c.
738 (ambiguous_line_spec): Moved here from source.c.
739 (_init_cli_cmds): Add definition for "list" and its alias.
740 * Makefile.in: Update dependencies.
741
ddd216ea
CV
7422002-09-20 Corinna Vinschen <vinschen@redhat.com>
743
744 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
745 with what gcc thinks is correct.
746
6d305052
CV
7472002-09-20 Corinna Vinschen <vinschen@redhat.com>
748
749 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
750 multiple register push instruction.
751
234b45d4
KB
7522002-09-19 Jim Blandy <jimb@redhat.com>
753
754 Add support for distinct host and target character sets.
755 * charset.c, charset.h: New files.
756 * c-exp.y: #include "charset.h".
757 (yylex): Convert character and string literals to the target
758 character set, before returning them as the semantic value of the
759 token.
760 * c-lang.c: #include "charset.h".
761 (c_emit_char): Use charset-specific methods to recognize
762 characters with backslash escape forms, to decide which characters
763 to print literally and which to print using numeric escape
764 sequences, and to convert target characters to host characters
765 before printing.
766 * utils.c: #include "charset.h".
767 (no_control_char_error): New function.
768 (parse_escape): Use charset-specific methods to recognize
769 backslash escapes, parse `control character' notation, and convert
770 characters from the host character set to the target character set.
771 * configure.in: Set the default host character set.
772 Check where to find iconv, and what its argument types might be.
773 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
774 * Makefile.in (SFILES): List charset.c.
775 (COMMON_OBS): List charset.o.
776 (charset.o): New rule.
777 (charset_h): New header dependency variable.
778 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
779 (LIBICONV): New variable, set by configure.
780 (CLIBS): Include $(LIBICONV) here.
781 * aclocal.m4, config.in, configure: Regenerated.
782
525d6a61
JB
7832002-09-19 Joel Brobecker <brobecker@gnat.com>
784
785 * ada-exp.y: Add missing semicolons to end rules. Fixes a
786 bison 1.35 warning.
787
3ed93867
RE
7882002-09-19 Richard Earnshaw <rearnsha@arm.com>
789
790 * gdb_mbuild.sh: New file.
791
437666f8
AC
7922002-09-19 Andrew Cagney <ac131313@redhat.com>
793
794 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
795
389e51db
AC
7962002-09-18 Andrew Cagney <ac131313@redhat.com>
797
798 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
799 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
800 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
801 valops.c, value.h: Revert previous change.
802
3b4efeaa
MS
8032002-09-18 Michael Snyder <msnyder@redhat.com>
804
805 Preliminary support for Objective-C:
806 * defs.h (language_objc): New enum value.
807 (puts_filtered_tabular): Declaration only, exported from utils.c.
808 (skip_quoted): Delete, declared in completer.h.
809 * c-exp.y: Include completer.h.
810 * p-exp.y: Ditto.
811 * jv-exp.y: Ditto.
812 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
813 New operator enum values.
814 * language.h (CAST_IS_CONVERSION): Test for language_objc.
815 * language.c (binop_result_type): Handle language_objc case.
816 (integral_type, character_type, string_type, boolean_type,
817 structured_type, binop_type_check): Ditto.
818 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
819 (struct objc_specific): Add to general_symbol_info.
820 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
821 (SYMBOL_DEMANGLED_NAME): Handle objc case.
822 * parser-defs.h (struct objc_class_str): New struct type.
823 (start_msglist, end_msglist, add_msglist): Declaration only,
824 exported from objc-lang.c.
825 * value.h (value_of_local, value_nsstring,
826 call_function_by_hand_expecting_type): Exported from valops.c.
827 * valops.c (find_function_addr): Export.
828 (call_function_by_hand_expecting_type): New function.
829 (value_of_local): New function.
830 * symfile.c (init_filename_language_table): Add ".m" extension
831 for Objective-C.
832 * utils.c (puts_filtered_tabular): New function.
833 (fprintf_symbol_filtered): Add objc demangling support (disabled).
834 (set/show demangle): Extend help-string to refer to ObjC.
835 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
836 * stabsread.c (symbol_reference_defined): Objective-C symbols
837 may contain colons: make allowances when scanning stabs strings
838 for colons.
839 (objc_find_colon): New function.
840 * printcmd.c (address_info): If language == objc then print
841 "self" instead of "this".
842 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
843 OP_NSSTRING, and OP_SELF.
844 (prefixify_subexp): Ditto.
845 * source.c (print_source_lines): Mention objc in comment.
846 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
847 method names.
848
b9caf505
AC
8492002-09-18 Andrew Cagney <ac131313@redhat.com>
850
851 * complaints.h: Update copyright.
852 (struct complaints): Declare.
853 (struct complaint): Make `message' constant.
854 (internal_complaint): Declare.
855 (complaint): Declare.
856 (complaint_root): Delete declaration.
857 (symfile_complaints): Delete declaration.
858 (struct complaints): Add opaque declaration.
859 (clear_complaints): Add a complaints parameter.
860 * complaints.c: Update copyright.
861 (enum complaint_series): Define.
862 (complaint_root): Delete.
863 (struct complaints): Define.
864 (complaint_sentinel, symfile_complaint_book): New variables.
865 (symfile_explanations, symfile_complaints): New variables.
866 New variables.
867 (get_complaints): New function.
868 (vcomplaint): New function.
869 (complaint): New function.
870 (internal_complaint): New function.
871 (complain): Call vcomplain with symfile_complaint.
872 (clear_complaints): Rewrite.
873 (_initialize_complaints): Use add_setshow_command.
874 * Makefile.in (complaints.o): Update dependencies.
875 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
876 to call to clear_complaints.
877 (new_symfile_objfile, reread_symbols): Ditto.
878 (oldsyms_complaint): Delete.
879 (empty_symtab_complaint, unknown_option_complaint): Delete.
880 (free_named_symtabs): Use complaint instead of complain.
881
d2e6263c
MS
8822002-09-18 Michael Snyder <msnyder@redhat.com>
883
5fb2031a
AC
884 Contributed by Apple Computer, Inc. Merged with current sources
885 by Adam Fedor <fedor@doc.com> [cagney].
886
d2e6263c
MS
887 * objc-lang.c: First clean-up round: comments, indentation.
888 * objc-lang.h: Ditto.
889 * objc-lang.y: Ditto.
890
dec43320
AC
8912002-09-18 Andrew Cagney <ac131313@redhat.com>
892
893 * maint.c (maintenance_internal_error): Print the parameter as the
894 error message.
895 (maintenance_internal_warning): New function.
896 (_initialize_maint_cmds): Add command `maint internal-warning'.
897
898 * defs.h (internal_warning, internal_vwarning): Declare.
899 * utils.c (struct internal_problem): Define.
900 (internal_vproblem): New function.
901 (internal_warning): New function.
902 (internal_vwarning): New function.
903 (internal_warning_problem, internal_error_problem): New variables.
904 (internal_verror): Just call internal_vproblem.
905
b81654f1
MS
9062002-09-18 Michael Snyder <msnyder@redhat.com>
907
908 * objc-lang.c: New file, support for Objective-C.
909 Preliminary check-in, not yet integrated into gdb.
910 * objc-lang.h: New file.
911 * objc-exp.y: New file.
912
0542c381
AC
9132002-09-18 Andrew Cagney <ac131313@redhat.com>
914
7bda5e4a
AC
915 * infrun.c (signal_stop_update): Convert definition to ISO C.
916 (signal_print_update): Ditto.
917 (signal_pass_update): Ditto.
918 * inflow.c (terminal_save_ours): Ditto.
919
5247b418
AC
920 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
921 comments.
922
fc60962c
AC
923 * config/djgpp/fnchange.lst: Handle name clashes between
924 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
925 bfd/coff-tic80.c.
926
0542c381
AC
927 * i386-linux-tdep.h: Fix tipo.
928
5b924b9b
AF
9292002-09-18 Adam Fedor <fedor@gnu.org>
930
931 * MAINTAINERS: Add myself to the Write After Approval list.
932
5afc051b
JB
9332002-09-18 Jim Blandy <jimb@redhat.com>
934
935 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
936 texthigh and textlow to reader-specific structs caused
937 objfile_relocate to miss them. This is fixable, but the work that
938 the change was supposed to prepare GDB for never got done anyway.
939
eb944380
DC
9402002-09-18 David Carlton <carlton@math.stanford.edu>
941
942 * MAINTAINERS: Alphabetize Write After Approval list.
943
948e66d9
DJ
9442002-09-18 Daniel Jacobowitz <drow@mvista.com>
945
946 Fix PR gdb/709
947 * values.c (value_static_field): Call read_var_value.
948
dc604539
AC
9492002-09-18 Andrew Cagney <ac131313@redhat.com>
950
951 * valops.c (hand_function_call): Align the initial stack pointer
952 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
953 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
954 return value.
955 * mips-tdep.c (mips_frame_align): New function.
956 (mips_gdbarch_init): Set frame_align.
957 * gdbarch.sh (FRAME_ALIGN): New method.
958 * gdbarch.h, gdbarch.c: Re-generate.
959
cb7e422f
ML
9602002-09-18 Michal Ludvig <mludvig@suse.cz>
961
962 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
963 registers.
964
a094c6fb
AC
9652002-09-17 Andrew Cagney <ac131313@redhat.com>
966
967 * NEWS: Mention that MIPS $fp behavior changed.
968 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
969 reference to FP_REGNUM.
970 (mipsnbsd_cannot_store_register): Ditto.
971 * mips-linux-nat.c: Update copyright.
972 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
973 (mips_linux_cannot_store_register): Ditto.
974 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
975 * config/mips/tm-mips.h: Update copyright.
976 (FP_REGNUM): Delete macro.
977 (MIPS_REGISTER_NAMES): Replace "fp" with "".
978 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
979 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
980 (mips_r3041_reg_names, mips_r3051_reg_names)
981 (mips_r3081_reg_names): Replace "fp" with "".
982 Fix PR gdb/480.
983
45cf40d1
TR
9842002-09-17 Theodore A. Roth <troth@verinet.com>
985
986 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
987 generic_read_register_dummy() (PR gdb/703).
988 (avr_push_return_address): #if 0 out unused vars.
989 (avr_gdbarch_init): Enable use of avr_push_return_address().
990
c7e701b5
MS
9912002-09-17 Michael Snyder <msnyder@redhat.com>
992
d76ba2a5 993 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
994 RTE will take care of it.
995
20bcf01c
AC
9962002-09-17 Andrew Cagney <ac131313@redhat.com>
997
998 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
999 invalid, return SP_REGNUM.
1000
009a9971 10012002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
1002
1003 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1004 point registers without sign extension.
1005
135c175f
AC
10062002-09-17 Andrew Cagney <cagney@redhat.com>
1007
1008 * blockframe.c (deprecated_read_register_dummy): Rename
1009 generic_read_register_dummy.
1010 * frame.c (frame_unwind_signed_register): New function.
1011 (frame_unwind_unsigned_register): New function.
1012 * frame.h (frame_unwind_signed_register): Declare.
1013 (frame_unwind_unsigned_register): Declare.
1014 (deprecated_read_register_dummy): Rename
1015 generic_read_register_dummy.
1016
1017 * h8300-tdep.c (h8300_frame_chain): Update.
1018 (h8300_frame_saved_pc): Update.
1019 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1020 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1021 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1022 (s390_frame_chain): Update.
1023 * v850-tdep.c (v850_find_callers_reg): Update.
1024 (v850_frame_saved_pc): Update.
1025 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1026 (m32r_find_callers_reg): Update.
1027 (m32r_frame_saved_pc): Update.
1028 * sh-tdep.c (sh_find_callers_reg): Update.
1029 (sh64_get_saved_pr): Update.
1030 (sh_init_extra_frame_info): Update.
1031 (sh_init_extra_frame_info): Update.
1032 (sh64_init_extra_frame_info): Update.
1033 (sh64_init_extra_frame_info): Update.
1034 * mcore-tdep.c (mcore_find_callers_reg): Update.
1035 (mcore_frame_saved_pc): Update.
1036 (mcore_init_extra_frame_info): Update.
1037 * i386-tdep.c (i386_frame_saved_pc): Update.
1038 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1039 (ia64_init_extra_frame_info): Update.
1040 (ia64_init_extra_frame_info): Update.
1041 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1042 * cris-tdep.c (cris_init_extra_frame_info): Update.
1043 * avr-tdep.c (avr_frame_chain): Update.
1044 (avr_init_extra_frame_info): Update.
1045 (avr_frame_saved_pc): Update.
1046 * arm-tdep.c (arm_find_callers_reg): Update.
1047 (arm_init_extra_frame_info): Update.
1048 (arm_frame_saved_pc): Update.
1049
a741e514
TT
10502002-09-17 Tom Tromey <tromey@redhat.com>
1051
1052 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1053 is "'".
1054
d1a8e808
CV
10552002-09-17 Corinna Vinschen <vinschen@redhat.com>
1056
1057 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1058 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1059 NEXT_PROLOGUE_INSN.
1060 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1061 NEXT_PROLOGUE_INSN.
1062
d9025a18
JB
10632002-09-16 Joel Brobecker <brobecker@gnat.com>
1064
1065 * osfsolib.c: Remove file, replaced by solib-osf.c.
1066 * Makefile.in: Remove compilation rules for osfsolib.c.
1067
1b2ef1b6
DC
10682002-09-16 David Carlton <carlton@math.stanford.edu>
1069
1070 * cp-valprint.c (cp_print_class_method): Correct args to
1071 check_stub_method_group.
1072
928e48af
CV
10732002-09-16 Corinna Vinschen <vinschen@redhat.com>
1074
1075 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1076 `set architecture'. Unify naming convention of functions.
1077 (h8300_skip_prologue): Improve prologue analysis.
1078 (h8300_push_arguments): Rewritten to more closely match GCC's
1079 bizarre argument-passing behavior, along with the comment describing
1080 said behavior.
1081 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1082 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1083 sim, remote-e7000.c, remote-hms.c and remote.c
1084
5e3397bb
MK
10852002-09-15 Mark Kettenis <kettenis@gnu.org>
1086
1087 * i386-tdep.c (gdb_print_insn_i386): Removed.
1088 (i386_print_insn): New function.
1089 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1090 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1091 tm_print_insn_info.
1092
f710f4fc
MK
10932002-09-14 Mark Kettenis <kettenis@gnu.org>
1094
1095 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1096 zero.
1097
db54fef4
CV
10982002-09-14 Corinna Vinschen <vinschen@redhat.com>
1099
1100 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1101 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1102 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1103
2becadee
CF
11042002-09-13 Christopher Faylor <cgf@redhat.com>
1105
1106 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1107
de17c821
DJ
11082002-09-13 Daniel Jacobowitz <drow@mvista.com>
1109
1110 * gdbtypes.c (check_stub_method): Make static.
1111 (check_stub_method_group): New function.
1112 * gdbtypes.h: Update prototypes.
1113 * cp-support.c: New file.
1114 * cp-support.h: New file.
1115
1116 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1117 (update_method_name_from_physname): New function.
1118 (read_member_functions): Correct method names for operators
1119 and v3 constructors/destructors. Separate v2 constructors and
1120 destructors.
1121 * Makefile.in (stabsread.o): Update dependencies.
1122 (SFILES): Add cp-support.c.
1123 (COMMON_OBS): Add cp-support.o.
1124 (cp_support_h, cp-support.o): Add.
1125
1126 * cp-valprint.c (cp_print_class_method): Call
1127 check_stub_method_group instead of check_stub_method. Remove
1128 extraneous QUITs.
1129 * p-valprint.c (pascal_object_print_class_method): Likewise.
1130 * valops.c (search_struct_method): Likewise.
1131 (find_method_list, value_struct_elt_for_reference): Likewise.
1132
e76cff22
AC
11332002-09-13 Andrew Cagney <cagney@redhat.com>
1134
1135 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1136 * gdbarch.h, gdbarch.c: Regenerate.
1137
905abb3f
AC
11382002-09-13 Andrew Cagney <ac131313@redhat.com>
1139
1140 * frame.c (find_saved_register): Delete function.
1141 * frame.h (find_saved_register): Delete declaration.
1142 Fix PR gdb/631.
1143
64159455
AC
1144Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1145
1146 * mips-tdep.c (read_next_frame_reg): Re-hack using
1147 frame_register_unwind.
1148
795e1e11
AC
1149Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1150
1151 * mips-tdep.c (mips_get_saved_register): Re-hack using
1152 frame_register_unwind.
1153
5720643c
JB
11542002-09-12 Joel Brobecker <brobecker@gnat.com>
1155
1156 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1157 vector. Will be useful for Interix.
1158 * gdbarch.h, gdbarch.c: Regenerate.
1159
1160 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1161 name of the malloc function by NAME_OF_MALLOC.
1162
3bada2a2
JB
11632002-09-12 Joel Brobecker <brobecker@gnat.com>
1164
1165 * value.h (find_function_in_inferior): Add const keyword to
1166 one of the parameters. Allows us to invoke this function with
1167 a const char *.
1168 * valops.c (find_function_in_inferior): Likewise.
1169
3db26b01
JB
11702002-09-12 Joel Brobecker <brobecker@gnat.com>
1171
1172 * exec.c (xfer_memory): Fix compilation warning with old versions
1173 of GCC.
1174 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1175
17c5ed2c
DC
11762002-09-12 David Carlton <carlton@math.stanford.edu>
1177
1178 * symtab.h: Run through gdb_indent.h.
1179 Add 2002 to Copyright year list.
1180
ecd1107e
AM
11812002-09-12 Alan Modra <amodra@bigpond.net.au>
1182
1183 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1184 mach constants.
1185 * MAINTAINERS: Add myself to write after approval list.
1186
e64f66d1
JB
11872002-09-11 J. Brobecker <brobecker@gnat.com>
1188
1189 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1190
f9395794
JB
11912002-09-11 J. Brobecker <brobecker@gnat.com>
1192
1193 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1194 Interix.
1195
1a303dec
MS
11962002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1197
1198 * procfs.c (do_detach): Clear current signal, not just fault.
1199 Corrects problem with breakpoint trap signal leaking to detached
1200 process on Tru64.
1201
c0219d42
MS
12022002-09-10 Michael Snyder <msnyder@redhat.com>
1203
1204 * buildsym.c (finish_block): Protect against null pointer.
1205
9d84ac84
AC
12062002-09-10 Andrew Cagney <cagney@redhat.com>
1207
1208 * infcmd.c (default_print_registers_info): Send all output to
1209 ``file'' instead of ``gdb_stdout''.
1210
77d8f2b4
MS
12112002-09-10 Michael Snyder <msnyder@redhat.com>
1212
1213 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1214 LONGEST, and use signed register read (addresses are sign-
1215 extended for mips).
1216
99656a61
SC
12172002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1218
1219 * event-loop.c (gdb_do_one_event): Make public.
1220 * event-loop.h (gdb_do_one_event): Declare.
1221
da12f4d8
JL
12222002-09-10 Jeff Law <law@redhat.com>
1223
1224 * infttrace.c (child_resume): Simplify and rework to avoid
1225 TT_PROC_CONTINUE.
1226
d0aee0c4
FF
12272002-09-09 Fred Fish <fnf@intrinsity.com>
1228
1229 * printcmd.c (print_scalar_formatted): "len" is the number of
1230 target bytes, NOT the number of target bits.
1231
7cb3ec5e
EZ
12322002-09-09 Elena Zannoni <ezannoni@redhat.com>
1233
1234 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1235 * top.c (init_main): Set rl_terminal_name.
1236
4dc81987
AS
12372002-09-08 Aidan Skinner <aidan@velvet.net>
1238
1239 * ada-lang.c (ada_array_bound, ada_type_match,
1240 _initialize_ada_language): Fix K&R definitions.
1241 * ada-tasks.c (get_current_task): Fix K&R definitions.
1242 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1243
842330b4
CF
12442002-09-07 Christopher Faylor <cgf@redhat.com>
1245
1246 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1247 Add XP.
1248
43156d82
MK
12492002-09-06 Mark Kettenis <kettenis@gnu.org>
1250
66da5fd8
MK
1251 * i386-tdep.c (i386_register_virtual_type,
1252 i386_register_convertible, i386_register_convert_to_virtual,
1253 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1254 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1255 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1256 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1257 Don't set push_arguments twice.
1258
4b218c18
MK
1259 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1260 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1261 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1262 sigtramp_end to NULL.
1263 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1264 defines.
1265 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1266
4cc314d5
MK
1267 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1268 whitespace.
1269
43156d82
MK
1270 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1271 * gdbarch.h, gdbarch.c: Re-generate.
1272 * blockframe.c (find_pc_sect_partial_function): Convert to use
1273 SIGTRAMP_START_P predicate.
1274
6672060b
MS
12752002-09-05 Michael Snyder <msnyder@redhat.com>
1276
a90c3637
MS
1277 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1278 generic_dummy_frame method and old method. Also distinguish
1279 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 1280 (arm_extract_return_value): Use new regcache method.
a90c3637 1281
6672060b
MS
1282 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1283 adjustment that doesn't conform to the ABI.
1284 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1285 saved regcache, not from current regcache.
1286
299ffc64
AC
12872002-09-05 Andrew Cagney <ac131313@redhat.com>
1288
1289 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1290 * README: Update.
1291
a3a2ee65
JT
12922002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1293
1294 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1295 if arm_apcs_32 is false.
1296
2bc7eea9
AC
12972002-09-04 Andrew Cagney <ac131313@redhat.com>
1298
1299 GDB 5.3 branch created.
1300
8a55a7c5
TR
13012002-09-03 Theodore A. Roth <troth@verinet.com>
1302
1303 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1304 generic_unwind_get_saved_register.
1305
e26fb1d7
DC
13062002-09-03 David Carlton <carlton@math.stanford.edu>
1307
1308 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1309 argument (PR gdb/653). Update call to smash_to_method_type.
1310 (read_structure_scope): Update call to dwarf2_add_member_fn.
1311
30d52491
ML
13122002-09-03 Michal Ludvig <mludvig@suse.cz>
1313
1314 * x86-64-linux-tdep.c: Include gdb_string.h
1315 * x86-64-linux-nat.c: Ditto.
1316
06891d83
JT
13172002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1318
1319 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1320 when YYDEBUG is set to 1.
1321 * c-exp.y: Likewise.
1322 * f-exp.y: Likewise.
1323 * jv-exp.y: Likewise.
1324 * m2-exp.y: Likewise.
1325 * p-exp.y: Likewise.
1326
7d400e77
JT
13272002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1328
1329 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1330 dependency list.
1331 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1332 solib_svr4_fetch_link_map_offsets to
1333 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1334 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1335 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1336 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1337 solib-svr4.o, and solib-legacy.o.
1338 * config/i386/tm-nbsd.h: Include solib.h.
1339
704a27c4
JT
13402002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1341
1342 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1343 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1344 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1345 comment noting that this needs its own target configuration.
1346 * config/i386/nbsd.mt: New file.
1347 * config/i386/nbsdaout.mt: Remove.
1348 * config/i386/nbsdelf.mt: Ditto.
1349 * config/i386/tm-nbsdaout.h: Ditto.
1350
d66198e1
JT
13512002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1352
1353 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1354 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1355 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1356 tdep->sigtramp_end.
1357 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1358 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1359 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1360
3cac699e
JT
13612002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1362
1363 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1364 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1365 * i386-tdep.h (i386bsd_init_abi): New prototype.
1366 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1367 function declaration.
1368 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1369 for NetBSD-a.out or NetBSD-ELF.
1370 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1371 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1372 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1373 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1374 and nbsd-tdep.h.
1375 (i386nbsd_pc_in_sigtramp): New function.
1376 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1377 i386nbsd_pc_in_sigtramp.
1378 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1379 and i386nbsdelf_init_abi OS ABI handlers.
1380 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1381 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1382
7010ca0a
MK
13832002-09-02 Mark Kettenis <kettenis@gnu.org>
1384
1385 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1386 registers if the target really has them.
1387
6dd93b72
JT
13882002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1389
1390 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1391 than nbsd-tdep.h.
1392
2ca8ae21
JT
13932002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1394
1395 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1396 list.
1397 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1398 (alphanbsd_skip_sigtramp_frame): New functions.
1399 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1400 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1401 to alphanbsd_sigcontext_addr.
1402
3d9b49b0
JT
14032002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1404
1405 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1406 list.
1407 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1408 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1409 nbsd_pc_in_sigtramp.
1410 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1411 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1412 * nbsd-tdep.c: Include gdb_string.h.
1413 (nbsd_pc_in_sigtramp): New function.
1414 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1415 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1416 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1417 ppcnbsd_pc_in_sigtramp.
1418 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1419 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1420 shnbsd_pc_in_sigtramp.
1421 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1422 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1423 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1424
c860120c
PM
14252002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1426
1427 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1428 watchpoints to NULL.
1429 (insert_breakpoints): set val field of watchpoints if NULL.
1430
1431
c7612d53
JB
14322002-08-29 Jim Blandy <jimb@redhat.com>
1433
1434 * symtab.c (lookup_symbol_aux): In the cases where we find a
1435 minimal symbol of an appropriate name and use its address to
1436 select a symtab to read and search, use `name' (as passed to us)
1437 as the demangled name when searching the symtab's global and
1438 static blocks, not the minsym's name.
1439
66609862
KS
14402002-08-29 Keith Seitz <keiths@redhat.com>
1441
1442 * stack.c (print_frame_info_base): Always set current_source_symtab
1443 and current_source_line.
1444
151fefe2
JB
14452002-08-29 Donn Terry <donnte@microsoft.com>
1446
1447 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1448
bfb3754e
KS
14492002-08-28 Keith Seitz <keiths@redhat.com>
1450
1451 * stack.c (select_frame): Add FIXME concerning selected-frame
1452 events.
1453 (select_frame_command): Send selected-frame-level-changed
1454 event notification, but only if the level actually changed.
1455 (up_silently_base): Add selected-frame-level-changed event
1456 notification.
1457 (down_silently_base): Likewise.
1458
e822a2a0
AC
14592002-08-28 Andrew Cagney <ac131313@redhat.com>
1460
1461 * Makefile.in: Update dependencies for all gdb/*.c files.
1462
309367d4
TT
14632002-08-27 Tom Tromey <tromey@redhat.com>
1464
1465 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1466 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1467 Update dependencies.
1468 * i387-tdep.c: Include gdb_string.h.
1469 * osabi.c: Likewise.
1470 * i386-linux-nat.c: Likewise.
1471 * lin-lwp.c: Likewise.
1472 * ax-gdb.c: Likewise.
1473 * signals/signals.c: Likewise.
1474 * jv-valprint.c: Likewise.
1475 * p-lang.c: Likewise.
1476 * c-valprint.c: Likewise.
1477 * cp-abi.c: Likewise.
1478
e1507482
EZ
14792002-08-27 Elena Zannoni <ezannoni@redhat.com>
1480
1481 * cli/cli-script.h (copy_command_lines): Export.
1482 * breakpoint.c: Include cli/cli-script.h.
1483 * Makefile.in (breakpoint.o): Update dependencies.
1484
c6510018
MS
14852002-08-26 Michael Snyder <msnyder@redhat.com>
1486
1487 * breakpoint.c (insert_breakpoints): Protect all references
1488 to 'process_warning'. Shorten long lines.
1489
c2b8ed2c
MS
14902002-08-26 Joel Brobecker <brobecker@gnat.com>
1491
1492 * cli/cli-script.c (copy_command_lines): New function.
1493 * defs.h (copy_command_lines): Export.
1494 * testsuite/gdb.base/commands.exp: New tests for commands
1495 attached to a temporary breakpoint, and for commands that
1496 delete the breakpoint they are attached to.
1497
14982002-08-26 Michael Snyder <msnyder@redhat.com>
1499
1500 * breakpoint.c (bpstat_stop_status): Instead of copying the
1501 pointer to the breakpoint commands struct, make a new copy
1502 of the struct and point to that.
1503 (bpstat_clear): Free the commands struct.
1504 (bpstat_clear_actions): Free the commands struct.
1505 (bpstat_do_actions): Free the command actions. Also execute
1506 the local cleanups, instead of deleting them.
1507 (delete_breakpoint): Leave the commands field of the bpstat
1508 chain alone -- it will be freed later.
1509
64b84175
KB
15102002-08-26 Kevin Buettner <kevinb@redhat.com>
1511
1512 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1513 deleted in 2002-08-20 commit. This function is still used by
1514 ppc-linux-nat.c.
1515
55970da6
KS
15162002-08-26 Keith Seitz <keiths@redhat.com>
1517
1518 * gdb-events.sh: Add selected-frame-level-changed event.
1519 * gdb-events.c: Regenerated.
1520 * gdb-events.h: Regenerated.
1521
a790ad35
SC
15222002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1523
1524 Fix PR gdb/393:
1525 * inflow.c (terminal_save_ours): New function to save terminal
1526 settings.
1527 * inferior.h (terminal_save_ours): Declare.
1528 * target.c (debug_to_terminal_save_ours): New function.
1529 (cleanup_target): Defaults to_terminal_save_ours.
1530 (update_current_target): Inherit to_terminal_save_ours.
1531 (setup_target_debug): Set to_terminal_save_ours.
1532 * target.h (target_terminal_save_ours): New to save terminal settings.
1533 (target_ops): New member to_terminal_save_ours.
1534 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1535 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1536 * inftarg.c (init_child_ops): Likewise.
1537 * m3-nat.c (init_m3_ops): Likewise.
1538 * procfs.c (init_procfs_ops): Likewise.
1539 * wince.c (init_child_ops): Likewise.
1540 * win32-nat.c (init_child_ops): Likewise.
1541 * sol-thread.c (init_sol_thread_ops): Likewise.
1542
c00dcbe9
MK
15432002-08-26 Mark Kettenis <kettenis@gnu.org>
1544
3d7f4f49
MK
1545 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1546 use regcache_* functions.
1547 (i386_gdbarch_init): Set store_return_value instead of
1548 deprecated_store_return_value.
1549
c00dcbe9
MK
1550 * regcache.c (regcache_raw_write_signed,
1551 regcache_raw_write_unsigned): New functions.
1552 * regcache.h (regcache_raw_write_signed,
1553 regcache_raw_write_unsigned): New prototypes.
1554
0e0d15ca
AC
15552002-08-25 Andrew Cagney <ac131313@redhat.com>
1556
1557 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1558 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1559 source file dependencies. Cleanup corresponding generator rules.
1560
d3b22ed5
AC
15612002-08-25 Andrew Cagney <ac131313@redhat.com>
1562
1563 * regcache.h (register_offset_hack): Declare.
1564 (regcache_cooked_read_using_offset_hack): Declare.
1565 (regcache_cooked_write_using_offset_hack): Declare.
1566
1567 * regcache.c (register_offset_hack): New function.
1568 (regcache_cooked_read_using_offset_hack): New function.
1569 (regcache_cooked_write_using_offset_hack): New function.
1570 (regcache_dump): Check that the registers, according to their
1571 offset, are packed hard against each other.
1572 (cooked_xfer_using_offset_hack): New function.
1573
bb425013
AC
15742002-08-25 Andrew Cagney <ac131313@redhat.com>
1575
1576 * regcache.c (struct regcache_descr): Add field register_type.
1577 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1578 in as a parameter
1579 (init_regcache_descr): Initialize register_type. Pass the descr
1580 to init_legacy_regcache_descr. Use register_type instead of
1581 REGISTER_VIRTUAL_TYPE.
1582 (register_type): New function.
1583 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1584 * regcache.h (register_type): Declare.
1585
d0403e00
AC
15862002-08-25 Andrew Cagney <ac131313@redhat.com>
1587
1588 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1589 instead of deprecated_store_return_value. Fix fallout from
1590 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1591
0ed04cce
AC
15922002-08-25 Andrew Cagney <ac131313@redhat.com>
1593
1594 * regcache.c (max_register_size): New function.
1595 (init_legacy_regcache_descr): Ensure that max_register_size is
1596 large enough for REGISTER_VIRTUAL_SIZE.
1597 * regcache.h (max_register_size): Declare.
1598
46d79c04
AC
15992002-08-24 Andrew Cagney <ac131313@redhat.com>
1600
1601 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1602 store_return_value.
1603 (e500_extract_return_value): Change type of valbuf pointer to
1604 void.
1605
853c7bd0
MK
16062002-08-24 Mark Kettenis <kettenis@gnu.org>
1607
cd87e769
MK
1608 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1609 workaround.
1610
853c7bd0
MK
1611 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1612 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1613 long long) to prevent compiler warning on 64-bit systems.
1614
ebba8386
AC
16152002-08-23 Andrew Cagney <cagney@redhat.com>
1616
1617 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1618 (DEPRECATED_STORE_RETURN_VALUE): New method.
1619 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1620 * gdbarch.h, gdbarch.c: Re-generate.
1621
1622 * values.c (set_return_value): Pass current_regcache to
1623 STORE_RETURN_VALUE.
1624 * arch-utils.h (legacy_store_return_value): Declare.
1625 * arch-utils.c (legacy_store_return_value): New function.
1626 (legacy_extract_return_value): Update parameters.
1627
1628 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1629 STORE_RETURN_VALUE.
1630 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1631 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1632 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1633 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1634 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1635 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1636 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1637 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1638 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1639 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1640
1641 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1642 * i386-tdep.c (i386_extract_return_value): Update.
1643 * arch-utils.c (legacy_extract_return_value): Update.
1644 * frv-tdep.c (frv_gdbarch_init): Update.
1645 * cris-tdep.c (cris_gdbarch_init): Update.
1646 * d10v-tdep.c (d10v_gdbarch_init): Update.
1647 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1648 * m68k-tdep.c (m68k_gdbarch_init): Update.
1649 * mcore-tdep.c (mcore_gdbarch_init): Update.
1650 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1651 * s390-tdep.c (s390_gdbarch_init): Update.
1652 * sparc-tdep.c (sparc_gdbarch_init): Update.
1653 * sh-tdep.c (sh_gdbarch_init): Update.
1654 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1655 * v850-tdep.c (v850_gdbarch_init): Update.
1656 * avr-tdep.c (avr_gdbarch_init): Update.
1657 * ia64-tdep.c (ia64_gdbarch_init): Update.
1658 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1659 * vax-tdep.c (vax_gdbarch_init): Update.
1660 * alpha-tdep.c (alpha_gdbarch_init): Update.
1661 * arm-tdep.c (arm_gdbarch_init): Update.
1662 * mips-tdep.c (mips_gdbarch_init): Update.
1663 * i386-tdep.c (i386_gdbarch_init): Update.
1664
5bd8c6d0
AC
16652002-08-23 Andrew Cagney <ac131313@redhat.com>
1666
1667 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1668 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1669
e73e1724
MK
16702002-08-24 Mark Kettenis <kettenis@gnu.org>
1671
1672 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1673 problems.
1674
3e6564e1
JB
16752002-08-23 Joel Brobecker <brobecker@gnat.com>
1676
1677 * infrun.c (handle_inferior_event): Move a comment outside of a
1678 function call, in order to avoid indent reformatting this part
1679 of the code in an unreadable way.
1680
81d0cc19
GS
16812002-08-23 Grace Sainsbury <graces@redhat.com>
1682
1683 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1684 when breakpoints fail. Move general breakpoint error messages to
1685 insert_breakpoints.
1686 * breakpoint.c (insert_breakpoints): Change warnings when
1687 breakpoints are nto inserted to specify the type. Remove call to
1688 memory_error when hardware breakpoints can't be inserted. Remove
1689 multiple calls to warning so all messages are sent to the user at
1690 once.
1691 (delete_breakpoints): Make insert error messsages more explicit.
1692
17574093
DJ
16932002-08-23 Daniel Jacobowitz <drow@mvista.com>
1694
1695 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1696 gdbserver/ChangeLog.
1697
8acc2935
MK
16982002-08-23 Mark Kettenis <kettenis@gnu.org>
1699
dfe01d39
MK
1700 * i386-tdep.c: Include "objfiles.h".
1701 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1702 skip_trampoline_code.
1703 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1704 (CPLUS_MARKER): Define to '.'.
1705
8acc2935
MK
1706 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1707 member.
1708 (linux_corefile_thread_callback): Increase args->num_notes.
1709 (linux_make_note_section): Initialize thread_args.num_notes, and
1710 use it to determine whether notes for any threads were created.
1711
151fefe2 17122002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1713
1714 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1715 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1716 and PCUNKILL.
1717 (write_with_trace): Conditionalize out the switch branch handling
1718 PCSHOLD if the corresponding macro is not defined. Likewise for
1719 PRSABORT and PRSTOP.
1720 This change will be needed by the Interix port.
1721
e1507482
EZ
17222002-08-22 Elena Zannoni <ezannoni@redhat.com>
1723
1724 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1725 write_register wherever possible instead of manipulating the
1726 register bytes directly.
1727 Assign VALUE_CONTENTS to a variable and use that.
1728 The GPR numbers are now dependent on the architecture.
1729
96ff0de4
EZ
17302002-08-22 Elena Zannoni <ezannoni@redhat.com>
1731
1732 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1733 ev_offset fields.
1734 (skip_prologue): Add support for BookE/e500 instructions.
1735 (e500_extract_return_value): New function.
1736 (frame_get_saved_regs): Add support for saving ev registers and
1737 pseudo gpr's.
1738 (e500_store_return_value): New function.
1739 (rs6000_gdbarch_init): Move up default intializations of
1740 deprecated_extract_return_value and store_return_value. Overwrite
1741 init of store_return_value with e500 specific version.
1742 Set extract_return_value for e500.
1743
fbefca5b
EZ
17442002-08-22 Elena Zannoni <ezannoni@redhat.com>
1745
1746 * blockframe.c (generic_call_dummy_register_unwind): Use
1747 regcache_cooked_read to catch cases in which the variable is
1748 stored in a pseudo register.
1749
4d210288
AC
17502002-08-22 Andrew Cagney <cagney@redhat.com>
1751
1752 * NEWS: Mention that the i960 has been made obsolete.
1753 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1754 i960-tdep.c
1755 (remote-nrom.o): Obsolete target.
1756 (remote-nindy.o, i960-tdep.o): Ditto.
1757 * remote-nrom.c: Make file obsolete.
1758 * remote-nindy.c, remote-vx960.c: Ditto.
1759 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1760 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1761 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1762 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1763 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1764 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1765 i960-*-vxworks* obsolete.
1766 * MAINTAINERS: Note that the i960 is obsolete.
1767
6c0c456d
CV
17682002-08-21 Corinna Vinschen <vinschen@redhat.com
1769
1770 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1771 detach to allow reinitialization.
1772
9f9d12b3
AC
17732002-08-22 Andrew Cagney <ac131313@redhat.com>
1774
1775 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1776 attempt).
1777
ebeb39fe
JB
17782002-08-22 Jim Blandy <jimb@redhat.com>
1779
1780 * coffread.c (coff_symfile_read): Don't try to read the line
1781 number table from disk if the image file doesn't have a symbol
1782 table; we'll never actually look at the info anyway, and Windows
1783 ships DLL's with bogus file offsets for the line number data.
1784
5bf1c677
EZ
17852002-08-21 Elena Zannoni <ezannoni@redhat.com>
1786
1787 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1788 an e500 executable.
1789
71b8ef93
MS
17902002-08-21 Michael Snyder <msnyder@redhat.com>
1791
1792 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1793 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1794 (DEFAULT_MIPS_TYPE): Delete unused macro.
1795 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1796 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1797
d174216d
JB
17982002-08-21 Jim Blandy <jimb@redhat.com>
1799
1800 * valops.c (value_cast): Simplify and correct logic for doing a
1801 static cast from a pointer to a base class to a pointer to a
1802 derived class.
1803
0ab7a791
AC
18042002-08-21 Andrew Cagney <ac131313@redhat.com>
1805
1806 * infcmd.c (default_print_registers_info): Replace
1807 do_registers_info.
1808 (registers_info): Use gdbarch_print_registers_info instead of
1809 DO_REGISTERS_INFO.
1810 * inferior.h (default_print_registers_info): Replace
1811 do_registers_info.
1812 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1813 (DO_REGISTERS_INFO): Change to a predicate function.
1814 * gdbarch.h, gdbarch.c: Regenerate.
1815
e23792cc
KS
18162002-08-21 Keith Seitz <keiths@redhat.com>
1817
1818 * gdb-events.sh: Add target-changed event.
1819 * gdb-events.c: Regenerated.
1820 * gdb-events.c: Regenerated.
1821 * valops.c (value_assign): Add target-changed event notification
1822 to inlval_register, lval_memory, and lval_reg_frame_relative.
1823
9fb14e79
JB
18242002-08-21 Joel Brobecker <brobecker@gnat.com>
1825
1826 * NEWS: Add an entry regarding the improvement of the next/step
1827 operation on Alpha Tru64 multi-processor machines.
1828
6d39a69f
AC
18292002-08-21 Andrew Cagney <ac131313@redhat.com>
1830
72acd513
AC
1831 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1832 directores.
342af04b 1833 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1834 * Makefile.in (install-gdbtk): Move to install section.
1835 (rdi-share/libangsd.a): Move to end of file.
1836
fa5f27c7
AC
18372002-08-19 Andrew Cagney <ac131313@redhat.com>
1838
1839 * frame.c (frame_register_unwind): When a register, set addrp to
1840 the register's byte.
1841
5a89d8aa
MS
18422002-08-20 Michael Snyder <msnyder@redhat.com>
1843
1844 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1845 used locally, so move them from the target machine header to here.
1846 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1847 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1848 Make static.
1849 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1850
822e978b
AC
18512002-08-20 Andrew Cagney <cagney@redhat.com>
1852
1853 * NEWS: Mention that the Apollo line was made obsolete.
1854 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1855 m68*-hp-hpux* obsolete.
1856 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1857 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1858 * buildsym.c (make_blockvector): Make static.
1859 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1860 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1861 (ALLDEPFILES): Remove dstread.c.
1862 (dstread.o): Obsolete make rule.
1863 * dstread.c: Makefile obsolete.
1864 * dst.h: Ditto.
1865 * config/m68k/hp300hpux.mt: Ditto.
1866 * config/m68k/hp300hpux.mh: Ditto.
1867 * config/m68k/hp300bsd.mt: Ditto.
1868 * config/m68k/hp300bsd.mh: Ditto.
1869 * config/m68k/apollo68b.mt: Ditto.
1870 * config/m68k/apollo68v.mh: Ditto.
1871 * config/m68k/apollo68b.mh: Ditto.
1872
e41b17f0
MS
18732002-08-20 Michael Snyder <msnyder@redhat.com>
1874
1875 * mips-tdep.c (mips_in_return_stub): Make static.
1876 (mips_gdbarch_init): Set in_solib_return_trampoline.
1877 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1878
d50355b6
MS
18792002-08-20 Michael Snyder <msnyder@redhat.com>
1880
1881 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1882 * gdbarch.c, gdbarch.h: Regenerate.
1883 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1884 Add.
1885 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1886
757a7cc6
MS
18872002-08-20 Michael Snyder <msnyder@redhat.com>
1888
1889 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1890 (mips_gdbarch_init): Set skip_trampoline_code,
1891 in_solib_call_trampoline.
1892 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1893 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1894
c8001721
EZ
18952002-08-20 Elena Zannoni <ezannoni@redhat.com>
1896
1897 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1898
1899 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1900 vector type for ev registers.
1901 (e500_pseudo_register_read): New function.
1902 (e500_pseudo_register_write): New function.
1903 (e500_dwarf2_reg_to_regnum): New function.
1904 (PPC_UISA_NOFP_SPRS): New macro.
1905 (PPC_EV_REGS): New macro.
1906 (PPC_GPRS_PSEUDO_REGS): New macro.
1907 (registers_e500): New register set for e500.
1908 (variants): Add e500 variant.
1909 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1910 before setting architectural dependent variations. Initialize ev
1911 registers numbers. Add case for e500 architecture. Set the
1912 number of pseudo registers.
1913
64366f1c
EZ
19142002-08-20 Elena Zannoni <ezannoni@redhat.com>
1915
1916 * rs6000-tdep.c: Clean up comments.
1917
7e78f0ca
AC
19182002-08-20 Andrew Cagney <cagney@redhat.com>
1919
1920 * h8300-tdep.c: Re-indent file.
1921
697f7479
JB
19222002-08-20 Jim Blandy <jimb@redhat.com>
1923
1924 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1925 default for this.
697f7479 1926
e86ae29f
KS
19272002-08-20 Keith Seitz <keiths@redhat.com>
1928
1929 * breakpoints.c (watch_command_1): Use internal breakpoint
1930 when setting a watchpoint_scope breakpoint.
1931
216b504f
EZ
19322002-08-20 Elena Zannoni <ezannoni@redhat.com>
1933
1934 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1935 (build_builtin_type_vec64i): Ditto.
1936 (build_builtin_type_vec128): Ditto.
1937 (build_builtin_type_vec128i): Ditto.
1938
f7ab6ec6
MS
19392002-08-19 Michael Snyder <msnyder@redhat.com>
1940
1941 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1942 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1943 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1944 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1945 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1946 CALL_DUMMY_ADDRESS): Delete.
1947 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1948 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1949 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1950 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1951 push_return_address.
1952 (mips_register_raw_size, mips_eabi_use_struct_convention,
1953 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1954 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1955 mips_init_extra_frame_info, mips_eabi_push_arguments,
1956 mips_n32n64_push_arguments, mips_push_return_address,
1957 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1958 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1959
b5d1566e
MS
19602002-08-19 Michael Snyder <msnyder@redhat.com>
1961
1962 * mips-tdep.c (mips_frame_num_args): New function.
1963 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1964 frame_saved_pc, frame_args_address, frame_locals_address,
1965 frame_num_args, and frame_args_skip.
1966 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1967 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1968 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1969 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1970
2f1488ce
MS
19712002-08-20 Michael Snyder <msnyder@redhat.com>
1972
1973 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1974 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1975 * mips-tdep.c (mips_store_struct_return): New function.
1976 (mips_extract_struct_value_address): New function.
1977 (mips_gdbarch_init): Set store_struct_return and
1978 extract_struct_value_address.
1979
41ff2da1
DC
19802002-08-20 David Carlton <carlton@math.stanford.edu>
1981
1982 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1983 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1984 (read_file_scope): Check that line_header is nonzero before
1985 decoding macro information.
1986
e5451d58
MK
19872002-08-20 Mark Kettenis <kettenis@gnu.org>
1988
1989 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1990 flag the general-purpose registers as floating-point on targets
1991 that don't support the floating-point registers.
1992
4a6daafa
EZ
19932002-08-20 Elena Zannoni <ezannoni@redhat.com>
1994
1995 * rs6000-tdep.c (altivec_register_p): Delete.
1996 (rs6000_do_altivec_registers): Delete.
1997 (rs6000_altivec_registers_info): Delete.
1998 (rs6000_do_registers_info): Delete.
1999 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2000 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2001
ab4327e0
EZ
20022002-08-20 Elena Zannoni <ezannoni@redhat.com>
2003
2004 * infcmd.c (do_registers_info): Print vector registers in hex
2005 format only.
2006 (print_vector_info): Check that printing registers
2007 makes sense.
2008 (print_float_info): Ditto.
2009
cb1d2653
AC
20102002-08-20 Andrew Cagney <ac131313@redhat.com>
2011
2012 * mips-tdep.c (mips_gdbarch_init): Update.
2013 (mips_o32_extract_return_value): Rewrite.
2014 (mips_o32_store_return_value): Rewrite.
2015 (mips_o32_xfer_return_value): New function.
2016 (mips_xfer_register): Tweak debug print message. Allow for
2017 buf_offset when dumping the value transfered.
2018
dfc3d9b2
AC
20192002-08-20 Andrew Cagney <ac131313@redhat.com>
2020
2021 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2022 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2023 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2024 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2025 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2026
7807aa61
MS
20272002-08-14 Michael Snyder <msnyder@redhat.com>
2028
2029 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2030
489461e2
EZ
20312002-08-19 Elena Zannoni <ezannoni@redhat.com>
2032
2033 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2034 register.
2035 (P): New macro to define a register as a pseudo register.
2036 (R, R4, R8, R16, FR32, R64, R0): Updated.
2037 (struct variant): Add new fields for number of pseudo registers
2038 and number of total registers.
2039 (tot_num_registers): New macro replacing....
2040 (num_registers): ...deleted macro.
2041 (num_registers): New function.
2042 (num_pseudo_registers): New function.
2043 (variants): Update all variants to intialize new fields correctly.
2044 Postpone initialization of number of pseudo regs and real regs.
2045 (init_variants): New function.
2046 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2047 registers offsets.
2048
fcaffe4c
DC
20492002-08-19 David Carlton <carlton@math.stanford.edu>
2050
2c2738a0
DC
2051 * valops.c (search_struct_field): Change error message to treat
2052 return value of 0 from value_static_field as meaning that field is
2053 optimized out.
2054 (value_struct_elt_for_reference): Ditto.
2055 * values.c (value_static_field): Treat an unresolved location the
2056 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
2057 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2058 enclosed. Fix PR gdb/574.
fcaffe4c
DC
2059 * MAINTAINERS: Add self to Write After Approval list.
2060
88658117
AC
20612002-08-19 Andrew Cagney <ac131313@redhat.com>
2062
2063 * mips-tdep.c (mips_xfer_register): New function.
2064 (mips_n32n64_extract_return_value): Rewrite.
2065 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2066 instead of deprecated_extract_return_value.
2067
21283beb
EZ
20682002-08-19 Elena Zannoni <ezannoni@redhat.com>
2069
2070 * rs6000-tdep.c (TDEP): Delete macro.
2071 (branch_dest): Replace use of TDEP macro with its body.
2072 (rs6000_pop_frame): Ditto.
2073 (rs6000_push_arguments): Ditto.
2074 (rs6000_skip_trampoline_code): Ditto.
2075 (rs6000_frame_saved_pc): Ditto.
2076 (rs6000_frame_chain): Ditto.
2077 (rs6000_register_name): Ditto.
2078 (rs6000_register_byte): Ditto.
2079 (rs6000_register_raw_size): Ditto.
2080 (rs6000_register_virtual_type): Ditto.
2081 (rs6000_register_convertible): Ditto.
2082 (rs6000_convert_from_func_ptr_addr): Ditto.
2083
bf072999
DJ
20842002-08-19 Daniel Jacobowitz <drow@mvista.com>
2085
2086 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2087 conditionally.
2088 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2089 MIPS_LINUX_JB_ELEMENT_SIZE.
2090 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2091 for MAX_REGISTER_RAW_SIZE arrays.
2092 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2093 MIPS_LINUX_JB_ELEMENT_SIZE.
2094
9b949a49
PM
20952002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2096
2097 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2098
6d3e79c6
AS
20992002-08-19 Aidan Skinner <aidan@velvet.net>
2100
2101 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2102 ada-valprint.c ada-tasks.c.
2103 (YYFILES): Add ada-exp.y.
2104 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2105 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2106 (ada-exp.tab.o): New target.
2107
06c0b04e
AC
21082002-08-18 Andrew Cagney <ac131313@redhat.com>
2109
2110 * regcache.c (regcache_xfer_part): New function.
2111 (regcache_raw_read_part): New function.
2112 (regcache_raw_write_part): New function.
2113 (regcache_cooked_read_part): New function.
2114 (regcache_cooked_write_part): New function.
2115 * regcache.h (regcache_raw_read_part): Declare.
2116 (regcache_raw_write_part): Declare.
2117 (regcache_cooked_read_part): Declare.
2118 (regcache_cooked_write_part): Declare.
2119
92d1e331
DJ
21202002-08-18 Daniel Jacobowitz <drow@mvista.com>
2121
2122 * remote.c (remote_open_1): Add async_p.
2123 (remote_async_open_1): Delete.
2124 (open_remote_target): Delete.
2125 (remote_open, extended_remote_open): Update calls to remote_open_1.
2126 (remote_async_open, extended_remote_async_open): Call
2127 remote_open_1 instead of remote_async_open_1.
2128
247055de
MK
21292002-08-19 Mark Kettenis <kettenis@gnu.org>
2130
2131 * blockframe.c: Fix a few coding standard violations.
2132
641eda39
MK
21332002-08-19 Mark Kettenis <kettenis@gnu.org>
2134
0b717710
MK
2135 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2136 here from ...
2137 * config/i386/tm-i386sco5.h: ... here. File removed.
2138 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2139
26d28e12 2140 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
2141 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2142 (TM_FILE): Set to tm-i386.h.
2143 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2144 * config/i386/tm-i386v.h: Remove file.
2145 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2146 instead of "i386/tm-i386v.h".
2147 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2148 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2149 "i386/tm-i386v.h".
2150 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2151 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2152 "i386/tm-i386.h".
2153
d4e0bab4
MK
21542002-08-18 Mark Kettenis <kettenis@gnu.org>
2155
2156 * config/i386/nm-i386v.h: Add protection against
2157 multiple-inclusion.
2158 (i386_register_u_addr): Remove prototype.
2159 (register_u_addr): New prototype.
2160 (REGISTER_U_ADDR): Redefine accordingly.
2161 * i386v-nat.c: Improve several comments.
2162 (i386_register_u_addr): Change signature and rename to
2163 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2164 ubase variable.
2165
46cac009
AC
21662002-08-18 Andrew Cagney <ac131313@redhat.com>
2167
2168 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2169 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2170 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2171 deprecated_extract_return_value.
2172 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2173 rename mips_o32o64_push_arguments.
2174 (mips_gdbarch_init): Update.
2175 (mips_extract_return_value): Delete.
2176 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2177 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2178 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2179 (mips_n32n64_extract_return_value): Clone
2180 mips_extract_return_value.
2181 (mips_store_return_value): Delete.
2182 (mips_o32_store_return_value): Clone mips_store_return_value.
2183 (mips_o64_store_return_value): Clone mips_store_return_value.
2184 (mips_eabi_store_return_value): Clone mips_store_return_value.
2185 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2186
d2e4a39e
AS
21872002-08-18 Aidan Skinner <aidan@velvet.net>
2188
0c30c098
AS
2189 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2190 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2191
21922002-08-18 Aidan Skinner <aidan@velvet.net>
2193
2194 * ada-lang.c: Run through gdb_indent.sh.
2195 * ada-lang.h: Run through gdb_indent.sh.
2196 * ada-tasks.c: Run through gdb_indent.sh.
2197 * ada-typeprint.c: Run through gdb_indent.sh.
2198 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 2199
01fc4e33
AC
22002002-08-18 Andrew Cagney <ac131313@redhat.com>
2201
2202 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2203 ABI.
2204
d8ee244c
MK
22052002-08-18 Mark Kettenis <kettenis@gnu.org>
2206
c38d8261
MK
2207 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2208
222db64c
MK
2209 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2210 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2211
c2848c82
MK
2212 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2213 write_register_gen instead of write_register_bytes.
2214
d8ee244c
MK
2215 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2216 i[3456]-*-osf1mk* configurations have been made obsolete.
2217 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2218 i[3456]86-*-osf1mk* hosts obsolete.
2219 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2220 targets obsolete.
2221 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2222 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2223 config/i386/i386m3.mt, config/i386/nm-m3.h,
2224 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2225 config/i386/i386mk.mh, config/i386/i386mk.mt,
2226 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2227 obsolete.
2228 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2229 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2230 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2231
61d8d407
AC
22322002-08-18 Andrew Cagney <ac131313@redhat.com>
2233
2234 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2235 (hppa_value_returned_from_stack): Declare.
2236 (hppa_extract_return_value): Declare.
2237 * config/pa/hppa.mt: New file.
2238 * configure.tgt: Recognize hppa*-*-*.
2239 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2240
0c52bd59
MK
22412002-08-18 Mark Kettenis <kettenis@gnu.org>
2242
2243 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2244 comment.
2245
b5686e99
MK
22462002-08-17 Mark Kettenis <kettenis@gnu.org>
2247
2248 * top.c (gdb_rl_operate_and_get_next): Make sure
2249 operate-and-get-next functions correctly even when the history
2250 list is completely filled.
2251
c1bab85b
AC
22522002-08-18 Andrew Cagney <ac131313@redhat.com>
2253
2254 * MAINTAINERS (Target Instruction Set Architectures): Rename
2255 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2256 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2257 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2258 already listed under Host/Native.
2259
2260 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2261 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2262 mips*-*-*.
2263
32089c7c
AC
22642002-08-17 Andrew Cagney <ac131313@redhat.com>
2265
2266 * config/ia64/ia64.mt: New file.
2267 * config/alpha/alpha.mt: New file.
2268 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2269 ia64-linux-gnu. Mention that ia64-elf is broken.
2270 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2271
b4671f85
MK
22722002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2273
2274 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2275 generic_func_frame_valid instead of func_frame_valid.
2276
c8edd8b4
JB
22772002-08-16 Joel Brobecker <brobecker@gnat.com>
2278
2279 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2280 procfs appears to be broken when debugging on multi-processor
2281 machines. So enable software single stepping in order to avoid
2282 using the procfs interface to do next/step operations, using
2283 internal breakpoints instead.
2284
2285 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2286 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2287 make this pc address equal to the value it would have if the
2288 system stepping capability was used. Also set a new flag used
2289 to ensure that we don't readjust the PC one more time later.
2290
2291 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2292 address by DECR_PC_AFTER_BREAK when software single step is
2293 in use for this architecture, as this has already been taken
2294 care of in handle_inferior_event().
2295
238617f6
JB
22962002-08-16 Joel Brobecker <brobecker@gnat.com>
2297
2298 * infrun.c (handle_inferior_event): Minor reformatting, to make
2299 a rather long condition expression easier to read.
2300
541a7aac
AC
23012002-08-16 Andrew Cagney <ac131313@redhat.com>
2302
2303 * Makefile.in (gdbtk.o): Move to end of file.
2304 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2305 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2306 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2307 (gdbtk-wrapper.o, gdbres.o): Ditto.
2308
f92d4a7b
AC
23092002-08-16 Andrew Cagney <ac131313@redhat.com>
2310
2311 * Makefile.in (copying.o): Separate out compile rule.
2312 (hpux-thread.o, procfs.o, signals.o): Ditto.
2313 (v850ice.o, z8k-tdep.o): Ditto.
2314 (tui-file.o): Move to TUI section.
2315 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2316 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2317
1cce71eb
JB
23182002-08-16 Joel Brobecker <brobecker@gnat.com>
2319
2320 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2321 skip_trampoline_code, for better namespace-proofing.
2322
2323 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2324
0851f23d
JB
23252002-08-16 Joel Brobecker <brobecker@gnat.com>
2326
2327 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2328
f8d40ec8
JB
23292002-08-16 Joel Brobecker <brobecker@gnat.com>
2330
2331 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2332 signal, check whether we hit a breakpoint before checking for a
2333 single step breakpoint. Otherwise, GDB fails to notice that a
2334 breakpoint has been hit when stepping onto a breakpoint.
2335
63d022e0
KS
23362002-08-16 Keith Seitz <keiths@redhat.com>
2337
2338 * gdb-events.sh (clear_gdb_event_hooks): New function.
2339 * gdb-events.c: Regenerate.
2340 * gdb-events.h: Regenerate.
2341
6e31adb3
AC
23422002-08-16 Andrew Cagney <ac131313@redhat.com>
2343
2344 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2345 not_a_sw_breakpoint.
2346 * breakpoint.h (bpstat_stop_status): Add parameter names.
2347
c8189ed1
GS
23482002-08-16 Grace Sainsbury <graces@redhat.com>
2349
2350 * remote.c (remote_insert_hw_breakpoint)
2351 (remote_remove_hw_breakpoint): Fix calculation of length field
2352 for Z-packet.
2353
d05285fa
MS
23542002-08-15 Michael Snyder <msnyder@redhat.com>
2355
466d7106
MS
2356 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2357 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2358 (supply_fpregset): Ditto.
2359
d05285fa
MS
2360 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2361 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2362 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 2363 (TARGET_READ_SP): Delete.
bf1f5b4c 2364 (DO_REGISTERS_INFO): Delete.
102182a9
MS
2365 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2366 Delete.
2367 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2368 from macros to functions.
bf1f5b4c 2369
d05285fa
MS
2370 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2371 (mips_register_convertible, mips_register_convert_to_virtual,
2372 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
2373 (mips_read_sp): New function.
2374 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
2375 (mips_do_registers_info): Make static.
2376 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
2377 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2378 (mips_register_convert_from_type, mips_register_convert_to_type):
2379 New functions.
2380 (mips_gdbarch_init): Set up function_start_offset,
2381 register_virtual_size, pc_in_sigtramp.
d05285fa 2382
e76f1f2e
AC
23832002-08-15 Andrew Cagney <ac131313@redhat.com>
2384
2385 * infcmd.c (vector_info): New function.
2386 (_initialize_infcmd): Add command "info vector".
2387 (print_vector_info): New function.
2388
2389 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2390 * gdbarch.h, gdbarch.c: Regenerate.
2391
4782dc19
AC
23922002-08-15 Andrew Cagney <ac131313@redhat.com>
2393
2394 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2395 ``print_all''. Only print vector registers when ``print_all''.
2396
23e3a7ac
AC
23972002-08-15 Andrew Cagney <ac131313@redhat.com>
2398
8e186fd6
AC
2399 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2400 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2401
23e3a7ac
AC
2402 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2403 Add `args' parameter.
2404 * gdbarch.h, gdbarch.c: Regenerate.
2405
2406 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2407
2408 * infcmd.c (float_info): Call print_float_info.
2409 (print_float_info): New function. By default, print the
2410 floating-point registers.
2411
2412 * arch-utils.h (default_print_float_info): Delete declaration.
2413 * arch-utils.c (default_print_float_info): Delete function.
2414
e0ca2bb9
MK
24152002-08-16 Mark Kettenis <kettenis@gnu.org>
2416
3f733acc
MK
2417 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2418 out define.
2419
7d8d2918
MK
2420 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2421 FRAME.
2422
1c7cc583
MK
2423 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2424 * configure.host: Make i[3456]86-*-aix host obsolete.
2425 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2426 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2427 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2428 config/i386/xm-i386aix.h: Make files obsolete.
2429 * i386aix-nat.c: Make file obsolete.
2430 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2431 (i386aix-nat.o): Make target obsolete.
2432
e0ca2bb9
MK
2433 * config/i386/nm-gnu.h: Removed.
2434 * config/i386/nm-i386gnu.h: New file.
2435 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2436 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2437 Moved here from ...
2438 * config/i386/tm-i386gnu.h: ... here. Removed.
2439 * config/i386/xm-i386gnu.h: Removed.
2440 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2441 (NAT_FILE): Set to nm-i386gnu.h.
2442 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2443 * i386-tdep.c: New file.
2444 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2445 (i386gnu-tdep.o): Specify dependencies.
2446
16057ec7 24472002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 2448
6b99ee2e
MK
2449 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2450 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2451 Adjust a few comments to reflect reality a bit closer.
2452 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2453 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2454 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2455 target_insert_watchpoint, target_remove_watchpoint):
2456 Move defines to ...
2457 * config/i386/nm-i386sco5.h: ... here.
2458 (kernel_u_size): Add prototype. Improve a few comments and add
2459 protection against multiple inclusion.
2460
d9a6f65c
MK
2461 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2462 out define.
2463
047eff6a
MK
2464 * uw-thread.c (SP_ARG0): Define if not already defined.
2465 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2466
dcdb1290
MK
2467 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2468
5d2d0b2a
MK
2469 * config/i386/tm-i386.h: Don't include "regcache.h".
2470
61113f8b
MK
2471 * i387-tdep.h (i387_print_float_info): New prototype.
2472 * i387-tdep.c (print_i387_value, print_i387_ext,
2473 print_i387_status_word, print_i387_control_word): Add `struct
2474 ui_file *' argument and use it for output.
2475 (i387_print_float_info): Renamed from i387_float_info. Add
2476 `struct gdbarch *' and `struct ui_file *' arguments and use the
2477 latter for output.
2478 * i386-tdep.c: Include "i387-tdep.h".
2479 (i386_gdbarch_init): Set print_float_info.
2480 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2481 (FLOAT_INFO): Remove define.
2482
46e0f506
MS
24832002-08-13 Michael Snyder <msnyder@redhat.com>
2484
2485 * mips-tdep.c (mips_push_arguments): Rename to
2486 mips_eabi_push_arguments, and tune for EABI.
2487 (MIPS_REGS_HAVE_HOME_P): Delete.
2488 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2489 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2490 Delete references to mips_regs_have_home_p.
2491
409268de
KS
24922002-08-14 Keith Seitz <keiths@redhat.com>
2493
2494 * Makefile.in (install-gdbtk): Create insight plugin directory.
2495 Install plugins.tcl file.
2496
ffc6a242
KS
24972002-08-14 Keith Seitz <keiths@redhat.com>
2498
2499 * configure.in: Move SUBDIRS to near top of the file so that
2500 --enable options may add things to it.
2501 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2502 * configure: Regenerate.
2503
ebafbe83
MS
25042002-08-13 Michael Snyder <msnyder@redhat.com>
2505
2506 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2507 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2508 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2509
32f6f25d
AC
25102002-08-13 Andrew Cagney <ac131313@redhat.com>
2511
2512 * vax-tdep.c (vax_get_saved_register): Delete function.
2513 (vax_gdbarch_init): Update.
2514 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2515 (ns32k_gdbarch_init): Update.
2516 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2517 (alpha_gdbarch_init): Update.
2518
53826de9
AC
25192002-08-13 Andrew Cagney <cagney@redhat.com>
2520
2521 * regcache.c (init_regcache_descr): Overallocate the
2522 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2523 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2524 nr_raw_registers.
2525 (set_register_cached): Add range checking assertions. Use
2526 current_regcache.
2527
16057ec7 25282002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
2529
2530 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2531 numbers for MMX registers.
2532
7b4c2dce
AC
25332002-08-13 Andrew Cagney <cagney@redhat.com>
2534
2535 * i386-tdep.c (i386_gdbarch_init): Use
2536 generic_unwind_get_saved_register.
2537
1e03ad20
KB
25382002-08-13 Kevin Buettner <kevinb@redhat.com>
2539
2540 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2541 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2542 target vector.
2543 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2544 Delete. Add comment regarding this now-deleted target method.
2545
548bcbec
SC
25462002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2547
2548 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2549 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2550 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2551 real PC and the page number (if it's within the memory bank window).
2552 (m68hc11_pseudo_register_write): Likewise when saving.
2553 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2554 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2555 (m68hc11_register_raw_size): And use 32-bit for it.
2556 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2557 16K memory bank is used by the prog; also use the virtual pc.
2558
7df11f59
SC
25592002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2560
2561 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2562 (m68hc11_gdbarch_init): Install it in gdbarch.
2563 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2564 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2565 (MSYMBOL_SIZE): New for documentation.
2566 (insn_return_kind): Enum to specify how a function returns.
2567 (frame_extra_info): Cleanup and record the return mode.
2568 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2569 register in address computation.
2570 (m68hc11_get_return_insn): New to obtain the return instruction used
2571 by the function.
2572 (m68hc11_frame_init_saved_regs): Take into account the return
2573 instruction used by the function for far and interrupt functions.
2574 (m68hc11_init_extra_frame_info): Take into account page register.
2575 (m68hc11_frame_args_address): Adjust according to the return mode.
2576 (show_regs): Print page register only when it's used.
2577
5706502a
SC
25782002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2579
2580 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2581 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2582 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2583 registers.
2584 (m68hc11_register_raw_size): Likewise.
2585
28fc6740
AC
25862002-08-13 Andrew Cagney <cagney@redhat.com>
2587
2588 * i386-tdep.c (i386_register_name): Handle mmx registers.
2589 (mmx_regnum_p): New function.
2590 (i386_mmx_names): New array.
2591 (mmx_num_regs): New variable.
2592 (i386_pseudo_register_read): New function.
2593 (i386_pseudo_register_write): New function.
2594 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2595
2596 * regcache.c (regcache_raw_read_unsigned): New function.
2597 (regcache_raw_read_signed): New function.
2598 * regcache.h (regcache_raw_read_unsigned): Declare.
2599 (regcache_raw_read_signed): Declare.
2600
a378f419
AC
26012002-08-13 Andrew Cagney <cagney@redhat.com>
2602
2603 * regcache.c (regcache_raw_read_as_address): Delete function.
2604 (regcache_cooked_read_signed): New function.
2605 (regcache_cooked_read_unsigned): New function.
2606 * regcache.h (regcache_cooked_read_signed): Declare.
2607 (regcache_cooked_read_unsigned): Declare.
2608 (regcache_raw_read_as_address): Delete declaration.
2609
2610 * blockframe.c (generic_read_register_dummy): Use
2611 regcache_cooked_read_unsigned.
2612 * i386-tdep.c (i386_extract_struct_value_address): Use
2613 regcache_cooked_read_unsigned.
2614
81967506
SC
26152002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2616
2617 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2618 double sizes according to ELF ABI flags.
2619 (gdbarch_tdep): Record elf_flags.
2620
ffe1f3ee
SC
26212002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2622
2623 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2624 (m6812_prolog): They can appear in 68HC12 function prologue.
2625 (m68hc11_frame_chain): Cleanup.
2626
98216c5d
AC
26272002-08-12 Andrew Cagney <cagney@redhat.com>
2628
2629 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2630 declarations.
2631 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2632 (i386_linux_register_raw_size): Delete function.
2633 (i386_linux_init_abi): Update.
2634 * i386-tdep.c (i386_register_raw_size): Delete function.
2635 (i386_register_byte): Delete function.
2636 (i386_gdbarch_init): Update.
2637 (i386_register_size): Delete array.
2638 (i386_register_offset): Delete array.
2639
2640 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2641 (REGISTER_RAW_SIZE): Delete macro.
2642 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2643 (REGISTER_BYTE): Delete macro.
2644
3b19021e
AS
26452002-08-11 Aidan Skinner <aidan@velvet.net>
2646
2647 * ada-lang.c (ada_lookup_partial_symbol)
2648 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2649 prototype names so that grep ^func works properly.
2650
2651 * ada-lang.c (ada_array_element_type)
2652 (ada_lookup_partial_symbol): Fix typos in parameter list.
2653
2654 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2655 Fix prototype names so that grep ^func works properly.
2656
b063e7a2
AC
26572002-08-10 Andrew Cagney <cagney@redhat.com>
2658 Elena Zannoni <ezannoni@redhat.com>
2659 Martin M. Hunt <hunt@redhat.com>
2660
2661 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2662 (build_builtin_type_vec128i): Set the vector bit.
2663 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2664 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2665 (build_builtin_type_vec64): New function.
2666 (build_builtin_type_vec64i): New function.
2667 (build_gdbtypes): Initialize builtin_type_vec64 and
2668 builtin_type_vec64i.
2669
a7e3c2ad
AC
26702002-08-09 Andrew Cagney <cagney@redhat.com>
2671
2672 * regcache.c (regcache_dump): Compare the register offset
2673 with REGISTER_BYTE.
2674 * arch-utils.c (generic_register_byte): New function.
2675 * arch-utils.h (generic_register_byte): Declare.
2676 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2677 * gdbarch.h, gdbarch.c: Regenerate.
2678
af030b9a
AC
26792002-08-09 Andrew Cagney <cagney@redhat.com>
2680
2681 * regcache.c: Include "gdbcmd.h"
2682 (_initialize_regcache): Add commands "maintenance print
2683 registers", "maintenance print raw-registers" and "maintenance
2684 print cooked-registers".
2685 (enum regcache_dump_what): Define.
2686 (dump_endian_bytes): New function.
2687 (regcache_dump): New function.
2688 (regcache_print): New function.
2689 (maintenance_print_registers): New function.
2690 (maintenance_print_raw_registers): New function.
2691 (maintenance_print_cooked_registers): New function.
2692 * Makefile.in (regcache.o): Update dependencies.
2693
cb3d25d1
MS
26942002-08-09 Michael Snyder <msnyder@redhat.com>
2695
2696 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2697 (mips_push_arguments): Correct some comments. Use paddr_nz
2698 for printing addresses in debug output. Replace static
2699 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2700 (mips_n32n64_push_arguments): New function, cloned from
2701 mips_push_arguments and tuned for the n32/n64 ABI.
2702 (mips_push_register): Buffer needs dynamic allocation.
2703 (mips_print_register): Ditto.
2704 (do_gp_register_row): Ditto.
2705 (mips_store_return_value): Ditto.
2706 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2707
2163ab9d
DH
27082002-08-09 Don Howard <dhoward@redhat.com>
2709
2710 * memattr.c (mem_info_command): Print special case of upper bound
2711 as max CORE_ADDR + 1.
2712
b78bcb18
MS
27132002-08-08 Michael Snyder <msnyder@redhat.com>
2714
2715 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2716 returns structs by ref if they're too big to fit in two registers.
2717
ffabd70d
KB
27182002-08-09 Kevin Buettner <kevinb@redhat.com>
2719
2720 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2721 saved regs value.
2722 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2723 mips_find_saved_regs().
2724 (mips_pop_frame): Likewise.
2725
fbcdb4a3
KB
27262002-08-09 Kevin Buettner <kevinb@redhat.com>
2727
2728 * blockframe.c (frame_saved_regs_register_unwind): Revise
2729 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2730 frames are in use.
2731
3c3bea1c
GS
27322002-08-09 Grace Sainsbury <graces@redhat.com>
2733
2734 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2735 T-packets; the 'a' is not taken as a register number.
2736 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2737 (remote_stopped_data_address): New functions; add to target
2738 vector.
2739 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2740 prototypes to match other implementations of this
2741 function. replace integer argument with pointer -- the length
2742 field in the Z-packet is the length of what is pointed to or 1 if
2743 pointer is null. Add to target vector.
2744 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2745 target vector.
2746
2747 From Mark Salter:
2748 * remote.c (remote_wait): Add support to extract optional
2749 watchpoint information from T-packet. Ignore unrecognized
2750 optional info in T-packet.
2751 (remote_async_wait): Ditto.
2752
5d1d95de
CV
27532002-08-09 Corinna Vinschen <vinschen@redhat.com>
2754
2755 * cli/cli-dump.c: Change fopen modes to use binary open modes
2756 as defined in include/fopen-bin.h throughout.
2757
c86b5b38
MS
27582002-08-08 Michael Snyder <msnyder@redhat.com>
2759
2760 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2761
b30590dc
KB
27622002-08-08 Kevin Buettner <kevinb@redhat.com>
2763
2764 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2765 assertion failure by returning early after a warning.
2766
498868ed
KB
27672002-08-08 Kevin Buettner <kevinb@redhat.com>
2768
2769 * mips-tdep.c (mips_find_saved_regs): Make static.
2770 (mips_frame_init_saved_regs): New function.
2771 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2772 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2773 (mips_find_saved_regs): Delete declaration.
2774
b2dd6311
GS
27752002-08-08 Grace Sainsbury <graces@redhat.com>
2776
3c3bea1c
GS
2777 * remote.c (remote_wait, remote_async_wait): Change
2778 thread_num from int to ULONGEST.
2779 (unpack_varlen_hex): Change result parameter from
2780 int * to ULONGEST *.
b2dd6311 2781
ea47855f
AC
27822002-08-08 Andrew Cagney <ac131313@redhat.com>
2783
2784 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2785 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2786 powerpc*-*-*.
2787 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2788
69db8bae
AC
27892002-08-08 Andrew Cagney <cagney@redhat.com>
2790
2791 * gcore.c (override_derive_stack_segment): Delete variable.
2792 (preempt_derive_stack_segment): Delete function.
2793 (derive_stack_segment): Delete function.
2794 (default_derive_stack_segment): Renamed to derive_stack_segment.
2795 (override_derive_heap_segment): Delete variable.
2796 (preempt_derive_heap_segment): Delete function.
2797 (derive_heap_segment): Delete function.
2798 (default_derive_heap_segment): Rename to derive_heap_segment.
2799
cb811fe7
MS
28002002-08-06 Michael Snyder <msnyder@redhat.com>
2801
2802 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2803 * mips-tdep.c (mips_EABI_use_struct_convention,
2804 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2805 New functions. (mips_use_struct_convention): Delete.
2806 (mips_gdbarch_init): set use_gdbarch_convention.
2807
8b389c40
MS
28082002-08-06 Michael Snyder <msnyder@redhat.com>
2809
2810 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2811 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2812 mips_o32_reg_struct_has_addr): New functions.
2813 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2814
5c27f28a
AC
28152002-08-07 Andrew Cagney <ac131313@redhat.com>
2816
2817 * regcache.c (pseudo_register): Delete function.
2818 (fetch_register): Delete function.
2819 (store_register): Delete function.
2820 (regcache_raw_read, legacy_read_register_gen): Use
2821 target_fetch_registers instead of fetch_register.
2822 (legacy_write_register_gen, regcache_raw_write): Use
2823 target_store_register instead of store_register.
2824 (write_register_bytes): Ditto.
2825
2826 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2827 (STORE_PSEUDO_REGISTER): Delete.
2828 * gdbarch.h, gdbarch.c: Regenerate.
2829
5b331675
CV
28302002-08-06 Corinna Vinschen <vinschen@redhat.com>
2831
2832 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2833 write dump file binary.
2834
6acdf5c7
MS
28352002-08-05 Michael Snyder <msnyder@redhat.com>
2836
2837 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2838 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2839 (mips_gdbarch_init): Set N32 target to be mips64.
2840
b2f01c35
KB
28412002-08-06 Kevin Buettner <kevinb@redhat.com>
2842
2843 * frame.c (find_saved_register): Break out of loop once saved
2844 register address is found. Don't mention sparc in loop comment
2845 anymore.
2846
63db5580
KB
28472002-08-06 Kevin Buettner <kevinb@redhat.com>
2848
2849 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2850 mips_default_saved_regsize to 8.
2851
5e34e75e
AC
28522002-08-06 Andrew Cagney <ac131313@redhat.com>
2853
2854 * gcore.c: Do not include <sys/procfs.h>.
2855 * Makefile.in (gcore.o): Update dependencies.
2856
eb4c54a2
AC
28572002-08-06 Andrew Cagney <cagney@redhat.com>
2858
2859 * configure.tgt: Make arc-*-* obsolete.
2860 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2861 * MAINTAINERS: Make arc-elf obsolete.
2862 * arc-tdep.c: Make file obsolete.
2863 * config/arc/arc.mt: Ditto.
2864 * config/arc/tm-arc.h: Ditto.
2865
ced15480
TR
28662002-08-05 Theodore A. Roth <troth@verinet.com>
2867
c1bab85b 2868 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2869
b4743822
AC
28702002-08-05 Andrew Cagney <ac131313@redhat.com>
2871
2872 * mcore-tdep.c (mcore_gdbarch_init): Use
2873 generic_unwind_get_saved_register instead of
2874 generic_get_saved_register.
2875 * v850-tdep.c (v850_gdbarch_init): Ditto.
2876 * frv-tdep.c (frv_gdbarch_init): Ditto.
2877 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2878 * s390-tdep.c (s390_gdbarch_init): Ditto.
2879 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2880 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2881 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2882
3956d554
JB
28832002-08-05 Joel Brobecker <brobecker@gnat.com>
2884
2885 * objfiles.h: Add missing #include "symfile.h"
2886
2887 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2888
8249c0d6
AC
28892002-08-04 Andrew Cagney <ac131313@redhat.com>
2890
2891 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2892 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2893 of FIELD_BITSIZE.
2894
b9d14705
DJ
28952002-08-04 Daniel Jacobowitz <drow@mvista.com>
2896
2897 * NEWS: Cleanup and nitpick.
2898
dd73b9bb
AC
28992002-08-03 Andrew Cagney <ac131313@redhat.com>
2900
2901 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2902
043a27f8
AC
29032002-08-03 Andrew Cagney <ac131313@redhat.com>
2904
2905 * Makefile.in (gdbtk-bp.o): Update dependencies.
2906 (gdbtk-register.o): Ditto.
2907 (gdbtk-varobj.o): Ditto.
2908
46ce284d
AC
29092002-08-03 Andrew Cagney <cagney@redhat.com>
2910
2911 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2912 m68hc11_fetch_pseudo_register.
2913 (m68hc11_pseudo_register_write): Replace
2914 m68hc11_store_pseudo_register.
2915 (m68hc11_gdbarch_init): Update.
2916
b66d6d2e
AC
2917Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2918
2919 * gdbarch.sh: Include "gdb_string.h".
2920 * gdbarch.c: Regenerate.
2921
2922 * regcache.c: Include "gdb_string.h".
2923 * ax-general.c: Ditto.
2924 * varobj.c: Ditto.
2925 * std-regs.c: Ditto.
2926 * fbsd-proc.c: Ditto.
2927 * thread.c: Ditto.
2928
2929 * Makefile.in (regcache.o): Update dependencies.
2930 (thread.o, gdbarch.o): Ditto.
2931 (ax-general.o, gdbarch.o): Ditto.
2932 (varobj.o, std-regs.o): Ditto.
2933 (fbsd-proc.o): Specify dependencies.
2934
29e1842b
AC
29352002-08-02 Andrew Cagney <cagney@redhat.com>
2936
2937 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2938 regnum.
2939 (regcache_cooked_write): Ditto.
2940
68365089
AC
29412002-08-02 Andrew Cagney <ac131313@redhat.com>
2942
2943 * regcache.c (regcache_cooked_read): New function.
2944 (regcache_cooked_write): New function.
2945 (read_register_gen): Rewrite using regcache_cooked_read.
2946 (write_register_gen): Rewrite using regcache_cooked_write.
2947
2948 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2949 Declare.
2950
d8124050
AC
29512002-08-02 Andrew Cagney <cagney@redhat.com>
2952
2953 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2954 Replace the architecture methods register_read and register_write.
2955 * gdbarch.h, gdbarch.c: Regenerate.
2956 * regcache.c (init_regcache_descr): Update.
2957 (read_register_gen): Update.
2958 (write_register_gen): Update.
2959 (supply_register): Update comment.
2960
2961 * sh-tdep.c (sh_gdbarch_init): Update.
2962 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2963 `regcache' and `gdbarch' parameters. Make `buffer' a void
2964 pointer. Update code.
2965 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2966 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2967 void pointer. Update code.
2968 (sh64_register_write): Delete.
2969 (sh4_register_read): Delete.
2970 (sh64_register_read): Delete.
2971 (sh4_register_write): Delete.
2972 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2973 void pointer, `to' parameter a void pointer.
2974 (sh_sh64_register_convert_to_raw): Ditto.
2975
a6425924
KB
29762002-08-01 Kevin Buettner <kevinb@redhat.com>
2977
2978 * mips-tdep.c (mips_register_virtual_type): Use architecture
2979 invariant return values.
2980
ff5922b5
AC
29812002-08-01 Andrew Cagney <cagney@redhat.com>
2982
2983 * linux-proc.c: Include "gdb_string.h".
2984 * Makefile.in (linux-proc.o): Update dependency list.
2985
32a6503c
KB
29862002-08-01 Kevin Buettner <kevinb@redhat.com>
2987
2988 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2989 comment.
2990
ccaa32c7
GS
29912002-08-01 Grace Sainsbury <graces@redhat.com>
2992
2993 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2994 to_insert_watchpoint, to_remove_watchpoint,
2995 to_stopped_by_watchpoint, to_stopped_data_address,
2996 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2997 target vecctor. Define their corresponding macros so they call
2998 them.
2999
3000 * target.c: Add default and debug versions of for
3001 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3002 to_insert_watchpoint, to_remove_watchpoint,
3003 to_stopped_by_watchpoint, to_stopped_data_address,
3004 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3005
78fde5f8
KB
30062002-08-01 Kevin Buettner <kevinb@redhat.com>
3007
3008 * mips-tdep.c (mips_register_virtual_type): New function.
3009 (mips_gdbarch_init): Register mips_register_virtual_type()
3010 with gdbarch machinery.
3011 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3012 this file instead of tm-bigmips.h.
3013 (MIPS_REGSIZE): Delete this macro.
3014 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3015 multiarch version in mips-tdep.c will be found.
3016
db034ac5
AC
30172002-08-01 Andrew Cagney <cagney@redhat.com>
3018
3019 * NEWS: Menion that CHILL has been made obsolete.
3020
3021 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
3022 * stabsread.c (read_range_type): Ditto.
3023 * gdbtypes.h: Ditto.
3024 * language.c (binop_type_check): Ditto.
3025 (binop_result_type): Ditto.
3026 (integral_type): Ditto.
3027 (character_type): Ditto.
3028 (string_type): Ditto.
3029 (boolean_type): Ditto.
3030 (structured_type): Ditto.
3031 (lang_bool_type): Ditto.
3032 (binop_type_check): Ditto.
3033 * language.h (_LANG_chill): Ditto.
3034 * dwarfread.c (set_cu_language): Ditto.
3035 * dwarfread.c (CHILL_PRODUCER): Ditto.
3036 * dwarfread.c (handle_producer): Ditto.
3037 * expression.h (enum exp_opcode): Ditto.
3038 * eval.c: Ditto for comments.
3039 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3040 * expprint.c (print_subexp): Ditto.
3041 (print_subexp): Ditto.
3042 * valops.c (value_cast): Ditto.
3043 (search_struct_field): Ditto.
3044 * value.h (COERCE_VARYING_ARRAY): Ditto.
3045 * symfile.c (init_filename_language_table): Ditto.
3046 (add_psymbol_with_dem_name_to_list): Ditto.
3047 * valarith.c (value_binop): Ditto.
3048 (value_neg): Ditto.
3049 * valops.c (value_slice): Ditto.
3050 * symtab.h (union language_specific): Ditto.
3051 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3052 (SYMBOL_DEMANGLED_NAME): Ditto.
3053 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3054 * defs.h (enum language): Ditto.
3055 * symtab.c (got_symtab): Ditto.
3056 * utils.c (fprintf_symbol_filtered): Ditto.
3057
3058 * ch-typeprint.c: Make file obsolete.
3059 * ch-valprint.c: Make file obsolete.
3060 * ch-lang.h: Make file obsolete.
3061 * ch-exp.c: Make file obsolete.
3062 * ch-lang.c: Make file obsolete.
3063
3064 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3065 CHILL_LIB.
3066 (TARGET_FLAGS_TO_PASS): Ditto.
3067 (CHILLFLAGS): Obsolete.
3068 (CHILL): Obsolete.
3069 (CHILL_FOR_TARGET): Obsolete.
3070 (CHILL_LIB): Obsolete.
3071 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3072 ch-valprint.c.
3073 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3074 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3075 ch-lang.o.
3076 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3077 targets.
3078
8aaf0b47
JB
30792002-07-31 Joel Brobecker <brobecker@gnat.com>
3080
3081 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3082 This does not change anything at the moment, but will be helpful
3083 later when full Ada support is integrated.
3084
f3a7b3a5
KB
30852002-07-31 Kevin Buettner <kevinb@redhat.com>
3086
3087 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3088 help message.
3089
fb850278
KB
30902002-07-31 Kevin Buettner <kevinb@redhat.com>
3091
3092 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3093 and save it in a local variable. Use variable in later test.
3094
e3bddbfa
KB
30952002-07-31 Kevin Buettner <kevinb@redhat.com>
3096
3097 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3098 test. (Thanks to Daniel Jacobowitz.)
3099
28d169de
KB
31002002-07-31 Kevin Buettner <kevinb@redhat.com>
3101
3102 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3103 (mips_abi_strings): Add "n64".
3104 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3105
7fe7e44e
KB
31062002-07-31 Kevin Buettner <kevinb@redhat.com>
3107
3108 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3109 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3110
c6caf090
KB
31112002-07-31 Kevin Buettner <kevinb@redhat.com>
3112
3113 * utils.c (host_pointer_to_address, address_to_host_pointer):
3114 Use gdb_assert() instead of explicit call to internal_error().
3115
c41669e0
KB
31162002-07-30 Kevin Buettner <kevinb@redhat.com>
3117
3118 * Makefile.in (rs6000-nat.o): Update dependencies.
3119
3120 From Nicholas Duffek:
3121 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3122 (aix-thread.o): New rule.
3123 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3124 * config/powerpc/aix432.mh: New file.
3125
2fda4977
DJ
31262002-07-30 Daniel Jacobowitz <drow@mvista.com>
3127
3128 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3129 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3130 (fetch_core_registers, ppc_linux_supply_gregset)
3131 (ppc_linux_supply_fpregset): New functions.
3132 (ppc_linux_regset_core_fns): New.
3133 (_initialize_ppc_linux_tdep): Call add_core_fns.
3134 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3135 and ppc_linux_supply_gregset.
3136 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3137 (supply_fpregset): Call ppc_linux_supply_fpregset.
3138 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3139 corelow.o.
3140 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3141
729051e6
DJ
31422002-07-30 Daniel Jacobowitz <drow@mvista.com>
3143
3144 * symtab.c (lookup_symbol): Demangle before lowercasing.
3145
5f8a3188
AC
31462002-07-30 Andrew Cagney <ac131313@redhat.com>
3147
3148 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3149 declaration.
3150 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3151 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3152 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3153 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3154 "gdb_string.h".
3155 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3156 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3157 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3158 (avr-tdep.o, mon960-rom.o): Ditto.
3159 (aout_stabs_gnu_h): Define.
3160 (symtab_h): Remove $(gdb_obstack_h).
3161
67f07146
JB
31622002-07-30 Jim Blandy <jimb@redhat.com>
3163
3164 Patch from David Carlton <carlton@math.stanford.edu>:
3165 * gdbinit.in: Move the `dir' commands that add GDB's own source
3166 directory to the search path to the end, so that the `gdb' source
3167 directory will be searched first.
3168
04ea0df1
AC
31692002-07-29 Andrew Cagney <ac131313@redhat.com>
3170
3171 * gdb_obstack.h: New file.
3172 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3173 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3174 * objfiles.h: Include "gdb_obstack.h".
3175 * Makefile.in (gdb_obstack_h): Define.
3176 (symtab_h): Add $(gdb_obstack_h).
3177 (objfiles_h): Add $(gdb_obstack_h).
3178
3179 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3180 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3181 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3182 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3183 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3184 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3185 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3186 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3187
3188 * Makefile.in (bcache.o): Update dependencies.
3189 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3190 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3191 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3192 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3193 (stabsread.o, symfile.o, symmisc.o): Ditto.
3194 (symtab.o, typeprint.o, macroexp.o): Ditto.
3195 (macrotab.o, mdebugread.o): Ditto.
3196 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3197 (coff_ecoff_h, aout_aout64_h): Define.
3198 (aout_stabs_gnu_h, libaout_h): Define.
3199
d138e37a
AC
32002002-07-29 Andrew Cagney <cagney@redhat.com>
3201
3202 * regcache.c (struct regcache_descr): Rename nr_registers to
3203 nr_cooked_registers. Revise comments describing the structure
3204 member fields.
3205 (init_regcache_descr): Update.
3206 (init_legacy_regcache_descr): Update.
3207 (read_register_gen, write_register_gen): When a cooked register in
3208 the raw register range, directly access the value from the raw
3209 register cache.
3210
460e6ec3
AC
32112002-07-29 Andrew Cagney <ac131313@redhat.com>
3212
3213 * z8k-tdep.c: Do not include "obstack.h".
3214 * h8300-tdep.c, h8500-tdep.c: Ditto.
3215 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3216 * valprint.c, v850-tdep.c: Ditto.
3217 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3218 * mn10200-tdep.c: Ditto.
3219
3220 * Makefile.in (z8k-tdep.o): Update dependencies.
3221 (m68hc11-tdep.o, valprint.o): Ditto.
3222 (v850-tdep.o, d10v-tdep.o): Ditto.
3223 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3224 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3225 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3226 (sh_opc_h, gdb_sim_sh_h): Define.
3227 (elf_sh_h, elf_bfd_h): Define.
3228 (opcode_m68hc11_h): Define.
3229 (OPCODES_SRC, OPCODES_DIR): define.
3230 (OPCODES): Use $(OPCODES_DIR).
3231 (gdb_sim_d10v_h): Rename sim_d10v_h.
3232 (gdb_sim_arm_h): Rename sim_arm_h.
3233
790c9cf0
KB
32342002-07-26 Kevin Buettner <kevinb@redhat.com>
3235
3236 * utils.c (host_pointer_to_address, address_to_host_pointer):
3237 Change internal_error() message to indicate function responsible
3238 for the error.
3239
9647fa49
KB
32402002-07-26 Kevin Buettner <kevinb@redhat.com>
3241
3242 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3243 calls to local_hex_string_custom().
3244
dabbe2c0
KB
32452002-07-26 Kevin Buettner <kevinb@redhat.com>
3246
3247 * irix5-nat.c: Move IRIX shared library support from here...
3248 * solib-irix.c: ...to here. Revised substantially to work with
3249 generic solib framework.
3250
b96d0a4e
KB
3251 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3252 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3253 * mips-irix-tdep.c: New file.
3254
313fb2f6
KB
3255 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3256 (mips-irix-tdep.o, solib-irix.o): New rules.
3257 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3258 solib-irix.o.
3259 * config/mips/irix6.mt (TDEPFILES): Likewise.
3260 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3261
ab2eaf26
KB
32622002-07-26 Kevin Buettner <kevinb@redhat.com>
3263
177e4768 3264 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
3265 disabled (via ``#if 0'') includes.
3266
7244546a
KB
32672002-07-26 Kevin Buettner <kevinb@redhat.com>
3268
3269 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3270 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3271 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3272 Add support for the fpscr register.
3273 * rs6000-nat.c (regmap, fetch_inferior_registers)
3274 (store_inferior_registers, fetch_core_registers): Likewise.
3275
dd7be90a
KB
32762002-07-26 Kevin Buettner <kevinb@redhat.com>
3277
3278 * rs6000-nat.c (language.h): Include.
3279 (special_regs): Delete this array.
3280 (regmap): New function.
3281 (fetch_register, store_register): Use regmap() to map gdb
3282 register numbers to ptrace register numbers. Also, use
3283 outputs from regmap() to make decisions regarding type of
3284 ptrace() call to make. In particular, don't compare against
3285 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3286 (fetch_inferior_registers, store_inferior_registers): Where
3287 possible, obtain register numbers from tdep struct. Don't
3288 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3289 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3290 (LAST_UISA_SP_REGNUM): Delete.
3291
11bf77db
KB
32922002-07-25 Kevin Buettner <kevinb@redhat.com>
3293
3294 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
3295 (fetch_registers, store_register, fetch_core_registers): Don't
3296 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
3297 regcache_collect() as appropriate.
3298 (find_toc_address): Format hex address with local_hex_string().
3299
06afebeb
AC
33002002-07-25 Andrew Cagney <ac131313@redhat.com>
3301
3302 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3303 bfd/elf32-frv.c.
3304
8c554d79
TT
33052002-07-24 Tom Tromey <tromey@redhat.com>
3306
3307 * jv-exp.y: Marked all strings with _().
3308 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3309 internal_error.
3310 (MethodInvocation, CastExpression, parse_number, yyerror,
3311 java_type_from_name, push_expression_name, yylex): Typo fixes.
3312
e4c242d9
DJ
33132002-07-24 Daniel Jacobowitz <drow@mvista.com>
3314
3315 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3316 (tee_file_flush, tee_file_write, tee_file_fputs)
3317 (tee_file_isatty): New.
3318 * ui-file.h (tee_file_new): Add prototype.
3319
ebf56fd3
AS
33202002-07-24 Aidan Skinner <aidan@velvet.net>
3321
3322 * ada-lang.c: Change k&r style function definitions to prototyped
3323 form.
3324 * ada-typeprint.c: Change k&r style function definitions to prototyped
3325 form.
3326 * ada-valprint.c: Change k&r style function definitions to prototyped
3327 form.
3328
7fb623f7
AC
33292002-07-24 Andrew Cagney <cagney@redhat.com>
3330
3331 * README: Remove reference to remote-bug.
3332 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3333 remote-bug.c.
3334 (m88k-nat.o): Delete rule.
3335 (m88k-tdep.o): Delete rule.
3336 (remote-bug.o): Delete rule.
3337 * MAINTAINERS: Mark as obsolete.
3338 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3339 * m88k-tdep.c: Make file obsolete.
3340 * config/m88k/m88k.mh: Ditto.
3341 * config/m88k/delta88v4.mh: Ditto.
3342 * config/m88k/delta88v4.mt: Ditto.
3343 * config/m88k/delta88.mt: Ditto.
3344 * config/m88k/delta88.mh: Ditto.
3345 * remote-bug.c: Ditto.
3346 * config/m88k/tm-delta88.h: Ditto.
3347 * config/m88k/nm-delta88v4.h: Ditto.
3348 * config/m88k/xm-delta88.h: Ditto.
3349 * config/m88k/xm-dgux.h: Ditto.
3350 * config/m88k/tm-m88k.h: Ditto.
3351 * config/m88k/nm-m88k.h: Ditto.
3352 * config/m88k/tm-delta88v4.h: Ditto.
3353 * m88k-nat.c: Ditto.
3354 * cxux-nat.c: Ditto.
3355 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3356 and m88*-*-* obsolete.
3357 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3358 m88*-*-* obsolete.
3359
37611a2b
AC
33602002-07-24 Andrew Cagney <cagney@redhat.com>
3361
3362 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3363 constant. Same for local pointer variables.
3364 (extract_signed_integer): Ditto.
3365 * defs.h (extract_unsigned_integer): Update.
3366 (extract_signed_integer): Update.
3367
1aaa5f99
AC
33682002-07-24 Andrew Cagney <cagney@redhat.com>
3369
3370 * regcache.c (regcache_raw_write): Change buf parameter to a
3371 constant void pointer.
3372 (regcache_raw_read): Change buf parameter to a void pointer.
3373 (legacy_write_register_gen): Change myaddr parameter a constant
3374 void pointer.
3375 (supply_register): Change val parameter to a const void pointer.
3376 * regcache.h (regcache_raw_write): Update declaration.
3377 (regcache_raw_read): Update declaration.
3378 (supply_register): Update declaration.
3379
b4f5539f
TT
33802002-07-24 Tom Tromey <tromey@redhat.com>
3381
3382 * defs.h (gdb_readline_wrapper): Declare.
3383 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3384 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3385 * top.c (gdb_readline_wrapper): New function.
3386 (command_line_input): Use it.
3387
0818c12a
AC
33882002-07-24 Andrew Cagney <cagney@redhat.com>
3389
3390 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3391 regcache_read and regcache_write.
3392 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3393 * regcache.c: Update.
3394 * sh-tdep.c (sh64_push_arguments): Update comment.
3395 (sh_pseudo_register_read): Update.
3396 (sh_pseudo_register_write): Update.
3397 (sh4_register_read): Update.
3398 (sh4_register_write): Update.
3399 (sh64_pseudo_register_read): Update.
3400 (sh64_pseudo_register_write): Update.
3401 (sh64_register_read): Update.
3402 (sh64_register_write): Update.
3403 * i386-tdep.c (i386_extract_return_value): Update.
3404 (i386_extract_struct_value_address): Update.
3405 (i386_extract_return_value): Update.
3406 * blockframe.c (generic_read_register_dummy): Update.
3407 (generic_call_dummy_register_unwind): Update
3408 * infrun.c (write_inferior_status_register): Update.
3409
f7321c06
JB
34102002-07-23 Jim Blandy <jimb@redhat.com>
3411
3412 * parser-defs.h (expression_context_pc): Make this extern.
3413 (Thanks to Michael Snyder.)
3414
2037aebb
AC
34152002-07-23 Andrew Cagney <ac131313@redhat.com>
3416
3417 GDB 5.2.1 released from 5.2 branch.
3418 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3419 * README: Update to mention 5.2.1.
3420
66504d44
MS
34212002-07-23 Mark Salter <msalter@redhat.com>
3422
3423 * remote.c (remote_read_bytes): Fix check for error.
3424
27bae383
KB
34252002-07-22 Kevin Buettner <kevinb@redhat.com>
3426
3427 * aix-thread.c (language.h): Include.
3428 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3429 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3430 Print newlines at end of debug messages.
3431 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3432 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3433
34342002-07-22 Kevin Buettner <kevinb@redhat.com>
3435
3436 * aix-thread.c (ppc-tdep.h): Include.
3437 (special_register_p): New function.
3438 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3439 (store_regs_user_thread): Use register number information from
3440 gdbarch_tdep struct instead of hardcoded offsets relative to
3441 FIRST_UISA_SP_REGNUM.
3442 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3443 special_register_p() instead of using FPLAST_REGNUM and
3444 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3445 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3446 will be MQ's register number.
3447
34482002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
3449
3450 * aix-thread.c (ops): Rename to aix_thread_ops.
3451 (base_ops): Rename to base_target.
3452 (ops_attach): Rename to aix_thread_attach.
3453 (ops_detach): Rename to aix_thread_detach.
3454 (ops_resume): Rename to aix_thread_detach.
3455 (ops_wait): Rename to aix_thread_wait.
3456 (ops_kill): Rename to aix_thread_kill.
3457 (init_ops): Rename to init_aix_thread_ops.
3458 (ops_fetch_register): Rename to aix_thread_fetch_register.
3459 (ops_store_register): Rename to aix_thread_store_register.
3460 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3461 (ops_thread_alive): Rename to aix_thread_thread_alive.
3462 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3463 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3464 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3465 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3466 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3467 (store_regs_lib): Rename to store_regs_user_thread.
3468 (store_regs_kern): Rename to store_regs_kernel_thread.
3469
27bae383 34702002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3471
3472 * aix-thread.c (ops_prepare_to_store): Eliminate.
3473 (init_ops): Don't initialize ops.prepare_to_store.
3474 (store_regs_kern): Pre-fetch register buffers from child,
3475 because some registers may not be in the cache. Copy
3476 regs from register cache only if they are cached.
3477 (store_regs_lib): Copy regs from register cache only
3478 if they are cached.
3479 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3480 fill_gprs64): Ditto.
3481
61c5da0b
KB
34822002-07-22 Kevin Buettner <kevinb@redhat.com>
3483
3484 * aix-thread.c (gdb_assert.h): Include.
3485 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3486 register sizes (from register cache) match size of buffer holding
3487 register data.
3488 (fill_sprs32): Change parameter types to match those in the ptrace()
3489 buffer.
3490 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3491 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3492
34932002-07-22 Michael Snyder <msnyder@redhat.com>
3494
3495 * aix-thread.c (supply_sprs64): Cosmetic change.
3496 (supply_sprs32): Cosmetic change.
3497 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3498 (fill_sprs64): Use regcache_collect instead of read_register.
3499 (store_regs_lib): Use regcache_collect instead of
3500 read_register. Use fill_sprs32 instead of fill_sprs64,
3501 if debugging a 32-bit architecture.
3502 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3503 out of the register cache, instead of passing a pointer into
3504 the register cache directly to ptrace. Use regcache_collect
3505 insteaad of read_register.
3506 (ops_prepare_to_store): Use target_read_registers instead
3507 of read_register_bytes.
3508
36479eb1
AS
35092002-07-20 Aidan Skinner <aidan@velvet.net>
3510
3511 * MAINTAINERS: Add self under write after approval.
3512
80ae6ee2
AS
35132002-07-20 Aidan Skinner <aidan@velvet.net>
3514
3515 * ada-tasks.c: Change k&r style function definitions to prototyped
3516 form.
3517
8a8ab2b9
AC
35182002-07-19 Andrew Cagney <ac131313@redhat.com>
3519
3520 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3521 * x86-64-tdep.c: Include "objfiles.h".
3522 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3523 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3524
fb16b900
ML
35252002-07-17 Michal Ludvig <michal@suse.cz>
3526
3527 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3528 (update_context): Initialise cfa variable.
3529
0fe7bf7b
MS
35302002-07-17 Michael Snyder <msnyder@redhat.com>
3531
3532 * aix-thread.c: Shorten some long lines.
3533 Bring comments into line with code spec.
3534
488f131b
JB
35352002-07-18 Joel Brobecker <brobecker@gnat.com>
3536
3537 * infrun.c: Re-indent using gdb_indent.sh.
3538
46c415d2
JB
35392002-07-18 Joel Brobecker <brobecker@gnat.com>
3540
3541 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3542 Leave the indentation temporarily untouched, to minimize the diffs.
3543
cdecafbe
EZ
35442002-07-18 Elena Zannoni <ezannoni@redhat.com>
3545
3546 * stabsread.c: Make os9k sections of the code obsolete,
3547 for real this time.
3548 * stabsread.h: Make os9k sections of the code obsolete.
3549
7b6aa020
ML
35502002-07-18 Michal Ludvig <mludvig@suse.cz>
3551
09ec9b38
ML
3552 * linux-low.c (regsets_store_inferior_registers): Add free()
3553 at the end of a loop to prevent memory leak.
3554 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3555 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3556 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3557 line a comment.
4894ac5d 3558 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3559
233282cd
JB
35602002-07-17 Jim Blandy <jimb@redhat.com>
3561
3562 * macrocmd.c (info_macro_command): Remove newline from error
3563 message.
3564
7b6aa020 35652002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3566
3567 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3568 (sh_gdbarch_init): Use it for sh-dsp.
3569
f7ef9339
KB
35702002-07-16 Kevin Buettner <kevinb@redhat.com>
3571
3572 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3573 64-bit DWARF2 format.
3574
8dd72958
JB
35752002-07-16 Joel Brobecker <brobecker@gnat.com>
3576
3577 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3578 <sys/proc.h> when not available.
3579
a99a9e1b
AC
35802002-07-16 Andrew Cagney <ac131313@redhat.com>
3581
3582 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3583 * stabsread.c: Make os9k sections of the code obsolete.
3584 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3585 * config/i386/i386os9k.mt: Make file obsolete.
3586 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3587 (COMMON_OBS): Remove os9kread.o
3588 (SFILES): Remove os9kread.c.
3589 (os9kread.o, remote-os9k.o): Make target obsolete.
3590 * remote-os9k.c: Make file obsolete.
3591 * os9kread.c: Make file obsolete.
3592 * Makefile.in
3593
7a3085c1
AC
35942002-07-16 Andrew Cagney <ac131313@redhat.com>
3595
3596 * NEWS: Mention that the FR30 has been made obsolete.
3597 * fr30-tdep.c: Make file obsolete.
3598 * config/fr30/tm-fr30.h: Ditto.
3599 * config/fr30/fr30.mt: Ditto.
3600 * configure.tgt: Make fr30-*-elf obsolete.
3601 * MAINTAINERS: Make fr30-elf obsolete.
3602
28a93f5a
PM
36032002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3604
3605 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3606 found is not inside a section.
3607
be006b8b
KB
36082002-07-15 Kevin Buettner <kevinb@redhat.com>
3609
3610 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3611 strerror().
3612 (pdc_realloc): Use xrealloc() instead of realloc().
3613
14fa3751
KB
36142002-07-15 Kevin Buettner <kevinb@redhat.com>
3615
3616 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3617 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3618 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3619 macros.
3620
42cc437f
KB
36212002-07-15 Kevin Buettner <kevinb@redhat.com>
3622
3623 * aix-thread.c (ptrace_check): Eliminate goto.
3624 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3625 problem.
3626
8e2c28d4
KB
36272002-07-15 Kevin Buettner <kevinb@redhat.com>
3628
3629 * aix-thread.c (gdbcmd.h): Include.
3630 (DEBUG, DBG, DBG2, dbg): Eliminate.
3631 (debug_aix_thread): New static global.
3632 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3633 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3634 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3635 invocations to DBG and DBG2 macros to test against
3636 ``debug_aix_thread'' and call fprintf_unfiltered().
3637 (_initialize_aix_thread): Add new command "set debug aix-thread".
3638
30413464
AC
36392002-07-15 Andrew Cagney <ac131313@redhat.com>
3640
3641 From Gerhard Tonn <TON@de.ibm.com>:
3642 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3643 instead of supply_register.
3644
7c43edc1
AC
36452002-07-15 Andrew Cagney <ac131313@redhat.com>
3646
3647 * dwarf2cfi.c: Include "gdb_assert.h".
3648 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3649 non-NULL.
3650 (update_context): Do not use __func__. Add missing ``break''.
3651 (update_context): Do not use __func__.
3652
9364a0ef
EZ
36532002-07-15 Elena Zannoni <ezannoni@redhat.com>
3654
3655 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3656 and its setting. Set gdbarch instruction printing functions
3657 directly. For non-rs6000 case use new function
3658 gdb_print_insn_powerpc.
3659 (gdb_print_insn_powerpc): New function.
3660
3fbeef0b
AC
36612002-07-13 Andrew Cagney <ac131313@redhat.com>
3662
92eb23c5 3663 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3664 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3665 * configure.tgt: Mark d30v-*-* as obsolete.
3666 * d30v-tdep.c: Mark file as obsolete.
3667 * config/d30v/d30v.mt: Ditto.
3668 * config/d30v/tm-d30v.h: Ditto.
3669
aacb1f0a
AS
36702002-07-13 Aidan Skinner <aidan@velvet.net>
3671
3672 * ada-tasks.c (add_task_entry): replace calls to
3673 malloc() with xmalloc
3674 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3675
3676 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3677 ada_finish_decode_line_1, all_sals_for_line
3678 ada_breakpoint_rewrite): replace calls to free() with xfree()
3679
c11d79f2
KB
36802002-07-12 Kevin Buettner <kevinb@redhat.com>
3681
3682 From Nicholas Duffek (with minor changes by Martin Hunt,
3683 Louis Hamilton, and Kevin Buettner):
3684 * aix-thread.c: New file.
3685
8e19ed76
PS
36862002-07-12 Petr Sorfa <petrs@caldera.com>
3687
3688 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3689 complaint for invalid attribute class or form.
3690 (read_func_scope): DW_AT_frame_base
3691 better handling of DW_AT_block*.
3692 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3693 better handling of DW_AT_block*.
3694 (read_common_block): DW_AT_location
3695 better handling of DW_AT_block*.
3696 (read_partial_die): DW_AT_location better handling
3697 of DW_AT_block*.
3698 (new_symbol): DW_AT_external better handling of
3699 DW_AT_block*. Proper initialization of variable
3700 "addr".
3701 (attr_form_is_block): New function that returns true
3702 if the attribute's form is of DW_FORM_block*.
3703
295401f7
DJ
37042002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3705
3706 * valops.c (find_method_list): Remove comment about
3707 removed STATIC_MEMFUNCP argument.
3708 (value_find_oload_method_list): Likewise.
3709
e42dc924
KB
37102002-07-12 Kevin Buettner <kevinb@redhat.com>
3711
3712 From Nicholas Duffek:
3713 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3714 target_new_objfile_hook.
3715
6904b546
KB
37162002-07-12 Kevin Buettner <kevinb@redhat.com>
3717
3718 From Nicholas Duffek:
3719 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3720 csect.
3721
53fe9346
AC
37222002-07-12 Andrew Cagney <cagney@redhat.com>
3723
3724 * MAINTAINERS: Mention --enable-sim-build-warnings.
3725 (m68hc11-elf): Disable sim build warnings.
3726 (m32r-elf): Mark as broken obsolete candidate.
3727 (x86_64-linux-gnu): Mark as buildable with -Werror.
3728 (arm-elf): Change -w to ``,'' which enables warnings but not
3729 -Werror.
3730
af5f3db6
AC
37312002-07-12 Andrew Cagney <ac131313@redhat.com>
3732
3733 * bcache.h: Update copyright.
3734 (struct bstring, struct bcache): Move definition to "bcache.c".
3735 Replaced by opaque declaration.
3736 (bcache_xfree): Replace free_bcache.
3737 (bcache_xmalloc, bcache_memory_used): Declare.
3738
3739 * bcache.c: Update copyright.
3740 (struct bstring, struct bcache): Moved to here from "bcache.h".
3741 Update comments.
3742 (bcache_xmalloc, bcache_memory_used): New functions.
3743 (bcache_xfree): Replace function free_bcache.
3744
3745 * Makefile.in (objfiles.o): Add $(bcache_h).
3746 (objfiles_h): Remove $(bcache_h).
3747 (symfile.o): Add $(bcache_h).
3748
3749 * symmisc.c: Update copyright.
3750 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3751 (print_objfile_statistics): Use bcache_memory_used.
3752
3753 * symfile.c: Include "bcache.h".
3754 (reread_symbols): Use bcache_xfree.
3755 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3756 (add_psymbol_to_list): Pass psymbol_cache by value.
3757 (add_psymbol_with_dem_name_to_list): Ditto.
3758
3759 * objfiles.h: Update copyright.
3760 (struct bcache): Declare opaque. Do not include "bcache.h".
3761 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3762 bcache'' pointers.
3763 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3764
3765 * objfiles.c: Include "bcache.h". Update copyright.
3766 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3767 macro_cache.
3768 (free_objfile): Use bcache_xfree.
3769
444199e7
GS
37702002-07-11 Grace Sainsbury <graces@redhat.com>
3771
3772 * monitor.c (monitor_fetch_register): Make name a constant.
3773 (monitor_store_register): Same.
3774
261397f8
DJ
37752002-07-11 Daniel Jacobowitz <drow@mvista.com>
3776
3777 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3778 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3779 (finish_block) For non-function blocks, hash the symbol table. For
3780 function blocks, mark the symbol table as unhashed.
3781 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3782 (msymbol_hash_iw): Likewise.
3783 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3784 value.
3785 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3786 (lookup_minimal_symbol): Likewise for both.
3787 * symtab.h (struct block): Add `hashtable' flag. Comment the
3788 hashtable.
3789 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3790 (ALL_BLOCK_SYMBOLS): Update.
3791 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3792 (struct symbol): Add `hash_next' pointer.
3793 * symtab.c (lookup_block_symbol): Search using the hash table when
3794 possible.
3795 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3796 (search_symbols, find_addr_symbol): Likewise.
3797
3798 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3799 (read_dst_symtab): Likewise.
3800 * jv-lang.c (get_java_class_symtab): Likewise.
3801 * mdebugread.c: Include "gdb_assert.h".
3802 (shrink_block): Assert that the block being modified is not hashed.
3803 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3804 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3805 symbols.
3806 (dump_symtab): Recognize hashed blocks.
3807 * printcmd.c (print_frame_args): Assert that function blocks do not
3808 have hashed symbol tables.
3809 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3810 (fill_in_ada_prototype, debug_print_block): Likewise.
3811 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3812
6f0eaa01
CV
38132002-07-11 Corinna Vinschen <vinschen@redhat.com>
3814
3815 * stack.c (print_frame): Use result of frame_address_in_block()
3816 instead of fi->pc when evaluating symbols.
3817 (backtrace_command_1): Ditto.
3818
a208b0cb
AC
38192002-07-11 Andrew Cagney <cagney@redhat.com>
3820
3821 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3822 Make static.
3823
3824 * arm-tdep.c (arm_register_name): Make return type constant.
3825
a6b6b089
AC
38262002-07-10 Andrew Cagney <ac131313@redhat.com>
3827
5ae5f592
AC
3828 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3829 prototype.
3830 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3831 * s390-tdep.c (s390_fp_regnum): Ditto.
3832 (s390_read_fp): Ditto.
3833 (s390_pop_frame): Ditto.
3834 (_initialize_s390_tdep): Ditto.
3835 * remote.c (get_remote_state): Ditto.
3836 * procfs.c (mappingflags): Ditto.
3837 * memattr.c (_initialize_mem): Ditto.
3838 * mcore-tdep.c (mcore_pop_frame): Ditto.
3839 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3840 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3841 * language.c (set_case_str): Ditto.
3842 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3843 * frv-tdep.c (new_variant): Ditto.
3844 (frv_stopped_data_address): Ditto.
3845 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3846 (context_alloc): Ditto.
3847 (frame_state_alloc): Ditto.
3848 (unwind_tmp_obstack_init): Ditto.
3849 (unwind_tmp_obstack_free): Ditto.
3850 (cfi_read_fp): Ditto.
3851 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3852 (cris_pop_frame): Ditto.
3853 * c-lang.c (scanning_macro_expansion): Ditto.
3854 (finished_macro_expansion): Ditto.
3855 (c_preprocess_and_parse): Ditto.
3856 * gdbarch.sh: Ditto.
3857 * gdbarch.h, gdbarch.c: Regenerate.
3858 * config/mn10200/tm-mn10200.h: Adjust indentation.
3859 * target.c: Adjust indentation.
3860 * symtab.h: Adjust indentation.
3861 * stabsread.h: Adjust indentation.
3862 * remote-es.c: Adjust indentation.
3863 * os9kread.c: Adjust indentation.
3864
38652002-07-10 Andrew Cagney <ac131313@redhat.com>
3866
a6b6b089
AC
3867 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3868 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3869
a1789893
GS
38702002-07-10 Grace Sainsbury <graces@redhat.com>
3871
3872 * NEWS: Mention m68k, mcore multi-arching.
3873 * MAINTAINERS: Change status of m68k, mcore to reflect
3874 multi-arching.
3875
02f0d45d
DJ
38762002-07-10 Daniel Jacobowitz <drow@mvista.com>
3877
3878 * valops.c (find_overload_match): Free oload_syms.
3879
f15f768e
JB
38802002-07-09 Joel Brobecker <brobecker@gnat.com>
3881
3882 Define HAVE_SYS_PROC_H if sys/proc.h exists
3883 * configure.in: Add check for sys/proc.h
3884 * config.in: Regenerate.
3885 * configure: Regenerate.
3886
902a7139
GS
38872002-07-09 Grace Sainsbury <graces@redhat.com>
3888
3889 * config/m68k/tm-m68k.h: Remove macros wrapped in
3890 #if !GDB_MULTI_ARCH.
3891
a534e424
AC
38922002-07-08 Andrew Cagney <ac131313@redhat.com>
3893
3894 * config.in, configure: Regenerate.
3895
9b94f7bf
MK
38962002-07-08 Mark Kettenis <kettenis@gnu.org>
3897
3898 * dwarf2cfi.c: Include "gcore.h".
3899 (execute_stack_op): Fix implementation of the
3900 DW_OP_deref and DW_OP_deref_size operators by letting do their
3901 lookup in the target.
3902
1d34db41
MK
39032002-07-07 Mark Kettenis <kettenis@gnu.org>
3904
3905 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3906 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3907 tdep->sc_sp_offset.
3908
79d5b63a
DJ
39092002-07-05 Daniel Jacobowitz <drow@mvista.com>
3910
3911 Fix PR gdb/595, gdb/602
3912 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3913 Don't call value_cast, just read the vtable pointer; update comments
3914 to match.
3915
3bb912e8
GS
39162002-07-05 Grace Sainsbury <graces@redhat.com>
3917
3918 * config/mcore/tm-mcore.h: Remove file.
3919 * config/mcore/mcore.mt: Remove definition of TM_FILE
3920 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3921
ca39387d
MK
39222002-07-05 Mark Kettenis <kettenis@gnu.org>
3923
3924 * i386bsd-tdep.c: Include "gdb_string.h".
3925
efdc1108
GS
39262002-07-04 Grace Sainsbury <graces@redhat.com>
3927
3928 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3929 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3930 mcore-tdep.
3931 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3932 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3933 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3934 (RETVAL_REGNUM): Move macros from tm-mcore.h
3935 (mcore_reg_struct_has_addr): New function.
3936 (mcore_gdbarch_init): Added initializations for the macros removed
3937 from tm-mcore.h.
3938
bb21884d
MK
39392002-07-04 Mark Kettenis <kettenis@gnu.org>
3940
3941 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3942 traditonal string branding within the ELF header.
3943
228c6d41
DJ
39442002-07-04 Daniel Jacobowitz <drow@mvista.com>
3945
3946 * symtab.c (remove_params): New function.
3947 (make_symbol_overload_list): Use it instead of cplus_demangle.
3948 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3949
2404952e
MK
39502002-07-04 Mark Kettenis <kettenis@gnu.org>
3951
e5e4acad
MK
3952 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3953
baadce09
MK
3954 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3955 New variables.
3956 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3957 and tdep->sigtramp_end.
3958 * i386obsd-nat.c: New file.
3959 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3960
2404952e
MK
3961 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3962 Don't call get_current_frame().
3963
9b4f1ba7
PM
39642002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3965
3966 * i386-nat.c (child_post_startup_inferior): New function
3967 calling i386_cleanup_dregs if
3968 I386_USE_GENERIC_WATCHPOINTS is defined.
3969 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3970 conditional to acknowledge that i386-nat.c has its
3971 own child_post_startup_inferior function.
3972
c0d1d883
MK
39732002-07-04 Mark Kettenis <kettenis@gnu.org>
3974
00f8375e
MK
3975 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3976 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3977 instead of MAX_REGISTER_RAW_SIZE.
3978 (i386_extract_return_value, i386_extract_struct_value_address):
3979 Convert to use regcache.
3980 (i386_gdbarch_init): Set max_register_raw_size and
3981 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3982 Set extract_return_value and extract_struct_value_address instead
3983 of their deprecated variants.
3984
c0d1d883
MK
3985 Convert i386 target to generic dummy frames.
3986 * i386-tdep.c: Include "symfile.h".
3987 (i386_frameless_signal_p): Consider a function to be frameless if
3988 the pc points at the first instruction of the function.
3989 (i386_frame_chain): Handle (generic) call dummies.
3990 (i386_frame_saved_pc): Likewise.
3991 (i386_frame_init_saved_regs): Remove code dealing with call
3992 dummies on the stack.
3993 (i386_push_dummy_frame): Removed.
3994 (i386_call_dummy_words): Removed.
3995 (i386_fix_call_dummy): Removed.
3996 (i386_push_return_address): New function.
3997 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3998 parameter, and don't call get_current_frame.
3999 (i386_pop_frame): New function.
4000 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4001 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4002 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4003 call_dummy_length to 0, set call_dummy_words to NULL, set
4004 sizeof_call_dummy_words to 0, set fix_call_dummy to
4005 generic_fix_call_dummy, set pc_in_call_dummy to
4006 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4007 generic_push_dummy_frame, set push_return_address to
4008 i386_push_return_address and set frame_chain_valid to
4009 generic_file_frame_chain_valid.
4010
049ee0e4
AC
40112002-07-03 Andrew Cagney <ac131313@redhat.com>
4012
4013 * gdbarch.sh (struct regcache): Add opaque declaration.
4014 (EXTRACT_RETURN_VALUE): New architecture method.
4015 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4016 * gdbarch.h, gdbarch.c: Regenerate.
4017 * arch-utils.c (legacy_extract_return_value): New function.
4018 * arch-utils.h (legacy_extract_return_value): Declare.
4019 * values.c (value_being_returned): Re-enable code handling
4020 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4021 deprecated_grub_regcache_for_registers call to block handling
4022 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4023 (EXTRACT_RETURN_VALUE): Do not define.
4024
4e0d9804
GS
40252002-07-03 Grace Sainsbury <graces@redhat.com>
4026
4027 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4028 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4029 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4030 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4031 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4032 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4033 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4034 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4035 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4036 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4037 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4038 argument so the function fits the prototype in the architecture
4039 vector.
4040 (mcore_pop_frame): Remove argument so the function fits the
4041 prototype. Use get_current_frame instead of the argument.
4042 (mcore_push_arguments): Change type of struct_return so the
4043 function can be used in the architecture vector.
4044 (mcore_store_struct_return): Add.
4045 (mcore_frame_init_saved_regs): Add.
4046 (mcore_gdbarch_init): Add function calls to replace the macros
4047 removed from tm-mcore.h
4048
36160dc4
AC
40492002-07-03 Andrew Cagney <ac131313@redhat.com>
4050
4051 * infcmd.c (print_return_value): Remove compatibility code calling
4052 deprecated_grub_regcache_for_registers.
4053
4054 * values.c: Include "regcache.h".
4055 (value_being_returned): Update. Use
4056 deprecated_grub_regcache_for_registers to extract the register
4057 buffer address.
4058 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4059 ``struct regcache''.
4060 * Makefile.in (values.o): Add dependency on $(regcache_h).
4061
4062 * inferior.h (run_stack_dummy): Change type of second parameter to
4063 a ``struct regcache''.
4064 * valops.c (hand_function_call): Change type of retbuf to ``struct
4065 regcache''. Allocate using regcache_xmalloc, clean using
4066 make_cleanup_regcache_xfree.
4067 * infcmd.c (run_stack_dummy): Update. Use
4068 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4069
4070 * regcache.c (do_regcache_xfree): New function.
4071 (make_cleanup_regcache_xfree): New function.
4072 * regcache.h (make_cleanup_regcache_xfree): Declare.
4073
e64d9b3d
MH
40742002-07-03 Martin M. Hunt <hunt@redhat.com>
4075
4dd79c29
MH
4076 * event-top.c (command_line_handler): Don't read past
4077 beginning of buffer.
e64d9b3d 4078
4dd79c29
MH
40792002-07-03 Martin M. Hunt <hunt@redhat.com>
4080
e64d9b3d
MH
4081 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4082 struct frame_id.
4083 (varobj_create): Store frame_id for root.
4084 (varobj_gen_name): Use xasprintf.
4085 (varobj_update): Save and restore frame using get_frame_id() and
4086 frame_find_by_id().
4087 (create_child): Use xasprintf.
4088 (new_root_variable): Initialize frame_id.
4089 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4090 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4091 to prevent memory leak.
4092
26e6c56a
AC
40932002-07-03 Andrew Cagney <ac131313@redhat.com>
4094
4095 * valops.c (hand_function_call): Move declaration of retbuf to
4096 start of function, allocate using malloc, add a cleanup but before
4097 the inf_status cleanup, cleanup the buffer. Rename local variable
4098 old_chain to inf_status_cleanup.
4099
f436dd25
MH
41002002-07-03 Martin M. Hunt <hunt@redhat.com>
4101
4102 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4103
4104 * cli/cli-decode.c (cmd_func_p): New function.
4105 (cmd_func): New function.
4106
4107 * command.h: Add cmd_func() and cmd_func_p().
4108
4cfe2084
GS
41092002-07-03 Grace Sainsbury <graces@redhat.com>
4110
4111 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4112 (REGISTER_SIZE): Remove.
4113 (MAX_REGISTER_RAW_SIZE): Remove.
4114 (REGISTER_VIRTUAL_TYPE): Remove.
4115 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4116 (REGISTER_NAME): Remove.
4117 (USE_GENERIC_DUMMY_FRAMES): Remove.
4118 (CALL_DUMMY): Remove.
4119 (CALL_DUMMY_START_OFFSET): Remove.
4120 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4121 (CALL_DUMMY_LOCATION): Remove.
4122 (FIX_CALL_DUMMY): Remove.
4123 (CALL_DUMMY_ADDRESS): Remove.
4124 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4125 (SAVE_DUMMY_FRAME_TOS): Remove.
4126 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4127 (mcore_register_virtual_type): New function.
4128 (mcore_register_byte): New function.
4129 (mcore_register_size): New function.
4130 (mcore_register_name): New function.
4131 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4132 macros removed from tm-mcore.h.
4133 (mcore_dump_tdep): Add.
4134 (_initialize_mcore_tdep): Add gdbarch_register call.
4135
4fd667e9
MK
41362002-07-03 Mark Kettenis <kettenis@gnu.org>
4137
4138 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4139 frameless_look_for_prologue, such that we actually call this
4140 function.
4141
42f99ac2
JB
41422002-07-02 Joel Brobecker <brobecker@gnat.com>
4143
4144 * frame.h (frame_address_in_block): New function.
4145
4146 * blockframe.c (frame_address_in_block): New function extracted
4147 from get_frame_block().
4148 (get_frame_block): Use frame_address_in_block().
4149 (block_innermost_frame): Use frame_address_in_block() to match
4150 the frame pc address against the block boundaries rather than
4151 the frame pc directly. This prevents a failure when a frame pc
4152 is actually a return-address pointing immediately after the end
4153 of the given block.
4154
103a1597 41552002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
4156
4157 * MAINTAINERS: Add self under write after approval.
4158
41592002-07-02 Grace Sainsbury <graces@redhat.com>
4160
103a1597
GS
4161 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4162 used in architecture vector. The default is
4163 m68k_local_breakpoint_from_pc.
4164 (m68k_local_breakpoint_from_pc): Add.
4165 (enum): Add register numbers from tm-m68k.h.
4166 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4167 vector.
4168 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4169 GDB_MULTI_ARCH_PARTIAL.
4170 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4171 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4172 m68k-tdep.c.
4173 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4174 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4175 to enum in m68k-tdep.c
4176
7a5a0534
JB
41772002-07-02 Joel Brobecker <brobecker@gnat.com>
4178
4179 * solib-osf.c (open_map): Compute the list of shared libraries
4180 loaded by the inferior, rather than the list of libraries loaded
4181 by GDB itself. Otherwise, GDB ends up reading the symbols from
4182 the wrong shared libraries...
4183
6f558d74
MK
41842002-07-02 Mark Kettenis <kettenis@gnu.org>
4185
b7d15bf7
MK
4186 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4187 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4188 macros.
4189 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4190 Remove functions.
4191 (FRAMELESS_SIGNAL): Remove function.
4192 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4193 i386_linux_saved_pc_after_call): Removed.
4194 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4195 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4196 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4197
6bff26de
MK
4198 * i386-tdep.c (i386_frameless_signal_p): New function.
4199 (i386_frame_chain): Deal with frameless signals.
4200 (i386_sigtramp_saved_sp): New function.
4201 (i386_frame_saved_pc): Deal with frameless signals.
4202 (i386_saved_pc_after_call): Make sure the correct value is
4203 returned just after entry into a sigtramp.
4204 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4205 i386fbsd4_sc_sp_offset): New variables.
4206 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4207 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4208 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4209 similiar to what we already did for sc_pc_offset.
4210 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4211 tdep->sc_sp_offset.
4212
6f558d74
MK
4213 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4214
145564b7
ML
42152002-07-02 Michal Ludvig <mludvig@suse.cz>
4216
4217 * config/i386/tm-x86-64linux.h: New.
4218 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4219 definitions.
4220 * config/i386/nm-x86-64.h: Rename to ...
4221 * config/i386/nm-x86-64linux.h: ... this one.
4222 * config/i386/x86-64linux.mh: Reflect the above change.
4223
3a1e71e3
MK
42242002-07-01 Mark Kettenis <kettenis@gnu.org>
4225
21d0e8a4
MK
4226 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4227 with sigcontext_addr. Add sc_sp_offset.
4228 (i386bsd_sigtramp_saved_pc): Remove prototype.
4229 (i386bsd_sicontext_addr): Add prototype.
4230 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4231 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4232 (i386_svr4_sigtramp_saved_pc): Removed.
4233 (i386_svr4_sigcontext_addr): New function.
4234 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4235 Initialize tdep->sigcontext_addr instead. Initialize
4236 tdep->sc_pc_offset and tdep->sc_sp_offset.
4237 (i386_gdbarch_init): Likewise.
4238 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4239 any more.
4240 (i386bsd_sigtramp_saved_pc): Remove function.
4241 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4242 Initialize tdep->sigcontext_addr instead. Initialize
4243 tdep->sc_pc_offset.
4244 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4245 of tdep->sigtramp_saved_pc.
4246 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4247 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4248 instead.
4249
3a1e71e3
MK
4250 * i386-tdep.c (i386_frameless_function_invocation,
4251 i386_frame_num_args, i386_frame_init_saved_regs,
4252 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4253 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4254 i386_extract_return_value, i386_store_return_value,
4255 i386_extract_struct_value_address, i386_register_virtual_type,
4256 i386_register_convertible, i386_register_convert_to_virtual,
4257 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4258 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4259 static.
4260
52e9098c
MK
42612002-07-01 Mark Kettenis <kettenis@gnu.org>
4262
77b13a25
MK
4263 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4264
52e9098c
MK
4265 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4266 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4267 this macro. Include "value.h".
4268
1b372fff
AS
42692002-06-30 Aidan Skinner <aidan@velvet.net>
4270
4271 * ada-exp.tab.c: remove as it's a generated file
4272 * ada-lex.c: remove as it's a generated file
4273
9c5045b5
MK
42742002-06-30 Mark Kettenis <kettenis@gnu.org>
4275
4a93c5bb
MK
4276 * config/i386/tm-i386.h (struct frame_info, struct
4277 frame_saved_regs, struct value, struct type): Remove forward
4278 declarations.
4279
322d4fe0
MK
4280 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4281 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4282 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4283 (FILL_FPXREGSET): Define.
4284
fdd8263d
MK
4285 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4286
482e577b
MK
4287 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4288 i[3456]86-*-netbsd* case.
4289 * config/i386/tm-obsd.h: Removed.
4290 * config/i386/obsd.mt: Removed.
4291 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4292 core-aout.o.
4293 (MH_CFLAGS): Add -DYYDEBUG=0.
4294
6916549a
MK
4295 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4296 i386nbsd_sc_pc_offset on OpenBSD too.
4297
9c5045b5
MK
4298 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4299 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4300 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4301 define.
4302 * i386bsd-tdep.c: Include "arch-utils.h".
4303 (i386bsd_aout_in_solib_call_trampoline): New function.
4304 (i386bsd_init_abi): Set in_solib_call_trampoline to
4305 i386bsd_aout_in_solib_call_trampoline.
4306 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4307 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4308
aa84d1bb
AC
43092002-06-28 Andrew Cagney <ac131313@redhat.com>
4310
4311 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4312 (struct obstack, struct bcache): Add opaque declarations.
4313 * Makefile.in (macrotab_h): Update
4314
b4d83933
AC
43152002-06-28 Andrew Cagney <ac131313@redhat.com>
4316
4317 * blockframe.c (generic_find_dummy_frame): Change return type to
4318 ``struct regcache''.
4319 (struct dummy_frame): Replace field ``registers'' with regcache, a
4320 struct regcache object.
4321 (generic_find_dummy_frame): Update.
4322 (generic_push_dummy_frame): Update. Use regcache_xfree,
4323 regcache_xmalloc and regcache_cpy.
4324 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4325 regcache_xfree.
4326 (deprecated_generic_find_dummy_frame): Update.
4327 (generic_read_register_dummy): Update. Use
4328 regcache_read_as_address.
4329 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4330 (generic_get_saved_register): Update. Use regcache_read.
4331
08c0b5bc
AC
43322002-06-28 Andrew Cagney <ac131313@redhat.com>
4333
4334 * Makefile.in (objfiles_h): Add $(bcache_h).
4335 * objfiles.h: Include "bcache.h".
4336
4337 * Makefile.in (symtab_h): Remove $(bcache_h).
4338 * symtab.h: Do not include "bcache.h".
4339
1f89801a
AC
43402002-06-28 Andrew Cagney <ac131313@redhat.com>
4341
4342 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4343 generic_func_frame_chain_valid.
4344
b9644b58
DB
43452002-06-28 David O'Brien <obrien@FreeBSD.org>
4346
4347 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4348 * config/i386/tm-fbsd.h: Likewise.
4349
dd486634
AC
43502002-06-28 Andrew Cagney <ac131313@redhat.com>
4351
4352 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4353 generic_unwind_get_saved_register.
4354
0b434a00
AC
43552002-06-27 Andrew Cagney <ac131313@redhat.com>
4356
4357 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4358 * regcache.c (supply_register): Add missing argument to
4359 register_buffer call.
4360
f30e5a77
AC
43612002-06-27 Andrew Cagney <ac131313@redhat.com>
4362
4363 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4364 Solaris /bin/grep does not not like it. From Peter Schauer.
4365
9f064c95
TT
43662002-06-26 Tom Tromey <tromey@redhat.com>
4367
4368 * command.h (add_setshow_cmd): Declare.
4369 (add_setshow_cmd_full): Declare.
4370 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4371 returns void. Use add_setshow_cmd_full.
4372 (add_setshow_cmd_full): New function.
4373 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4374 (add_setshow_boolean_cmd): Likewise.
4375
099c7589
JT
43762002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4377
4378 * config/vax/tm-vax.h: Protect from multiple inclusion.
4379 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4380 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4381 * config/vax/tm-vaxbsd.h: ...here. New file.
4382 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4383
1d049c5e
JT
43842002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4385
4386 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4387 (BELIEVE_PCC_PROMOTION): Remove.
4388 (AP_REGNUM): Move to...
4389 * config/vax/nm-vax.h: ...here.
4390 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4391 (vax_breakpoint_from_pc): New function.
4392 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4393 and gdbarch_believe_pcc_promotion.
4394
4791e091
JT
43952002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4396
4397 * Makefile.in (vax_tdep_h): Define.
4398 (vax-tdep.o): Use $(vax_tdep_h).
4399 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4400 (vax_dump_tdep): New function.
4401 (_initialize_vax_tdep): Register vax_dump_tdep.
4402 * vax-tdep.h: Include osabi.h.
4403 (struct gdbarch_tdep): New.
4404
da130f98
AC
44052002-06-26 Andrew Cagney <cagney@redhat.com>
4406
4407 * frame.h (deprecated_generic_find_dummy_frame): Rename
4408 generic_find_dummy_frame.
4409 * blockframe.c (generic_find_dummy_frame): Make static.
4410 (deprecated_generic_find_dummy_frame): New function.
4411 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4412 generic_find_dummy_frame with deprecated_find_dummy_frame.
4413 (sh64_nofp_frame_init_saved_regs): Ditto.
4414 (sh_fp_frame_init_saved_regs): Ditto.
4415 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4416 (s390_frame_chain): Ditto.
4417 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4418
6300c360
GS
44192002-06-26 Grace Sainsbury <graces@redhat.com>
4420
4421 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4422 gdbarch vector are at the top.
4423 (NUM_REGS): Remove.
4424 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4425 (FRAME_ARGS_ADDRESS): Remove.
4426 (FRAME_LOCALS_ADDRESS): Remove.
4427 (FRAME_NUM_ARGS): Remove.
4428 (FRAME_ARGS_SKIP): Remove.
4429 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4430 (m68k_gdbarch_init): Add gdbarch initializations for macros
4431 undefined in tm-m68k.h
4432
1c617db8
GS
44332002-06-26 Grace Sainsbury <graces@redhat.com>
4434
4435 * monitor.h: Add the function regname to monitor_ops
4436 structure. This way NUM_REGS does not have to be a constant.
4437 * monitor.c (monitor_fetch_register): Added support for regname
4438 function. The function is called if the array regnames is NULL.
4439 (monitor_store_register): Same.
da130f98
AC
4440 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4441 regnames array.
1c617db8
GS
4442 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4443 cpu32bug_cmds.regname to point to new function.
4444 * abug-rom.c (abug_regname): Same as above.
4445 (init_abug_cmds): Same.
4446 * dbug-rom.c (dbug_regname): Same as above.
4447 (init_dbug_cmds): Same.
4448 * remote-est.c (est_regname): Same.
4449 (init_est_cmds): Same.
4450 * rom68k-rom.c (rom68k_regname): Same.
4451 (init_rom68k_cmds): Same.
4452
ea9365bb
TT
44532002-06-25 Tom Tromey <tromey@redhat.com>
4454
4455 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4456
72cec141
AC
44572002-06-25 Andrew Cagney <cagney@redhat.com>
4458
4459 * infrun.c (stop_registers): Change variable's type to ``struct
4460 regcache'''.
4461 (xmalloc_inferior_status): Delete function.
4462 (free_inferior_status): Delete function.
4463 (normal_stop): Use regcache_cpy.
4464 (struct inferior_status): Change type of fields ``stop_registers''
4465 and ``registers'' to ``struct regcache''.
4466 (write_inferior_status_register): Use regcache_write.
4467 (save_inferior_status): Instead of calling
4468 xmalloc_inferior_status, allocate the inf_status buffer directly.
4469 Use regcache_dup_no_passthrough and regcache_dup to save the
4470 buffers.
4471 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4472 Replace the stop_registers regcache instead of overriding it. Use
4473 regcache_xfree. Instead of calling free_inferior_status, xfree
4474 the buffer directly.
4475 (discard_inferior_status): Use regcache_xfree. Instead of calling
4476 free_inferior_status, xfree the buffer directly.
4477 (build_infrun): Use regcache_xmalloc.
4478 (_initialize_infrun): Delete redundant call to build_infrun.
4479
4480 * Makefile.in (infcmd.o): Add $(regcache_h).
4481
4482 * infcmd.c: Include "regcache.h".
4483 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4484 obtain the address of `stop_registers' register buffer.
4485 (print_return_value): Ditto.
4486
4487 * inferior.h (struct regcache): Add opaque declaration.
4488 (stop_registers): Change variable's declared type to ``struct
4489 regcache''.
4490
defc6f8c
TT
44912002-06-24 Tom Tromey <tromey@redhat.com>
4492
c0e624e7
TT
4493 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4494 * target.c (initialize_targets): Fixed typo in
4495 trust-readonly-sections `show' documentation.
4496
defc6f8c
TT
4497 * main.c: Marked all strings with _().
4498
2b236d82
DH
44992002-06-24 Don Howard <dhoward@redhat.com>
4500
4501 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4502 that means max CORE_ADDR+1.
4503 (lookup_mem_region): Ditto.
4504 (mem_info_command): Ditto.
4505
942dc0e9
GS
45062002-06-24 Grace Sainsbury <graces@redhat.com>
4507
4508 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4509 (REGISTER_BYTES_OK): Remove.
4510 (REGISTER_BYTES): Remove.
4511 (STORE_STRUCT_RETURN): Remove.
4512 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4513 (STORE_RETURN_VALUE): Remove.
4514 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4515 (FRAME_CHAIN): Remove.
4516 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4517 (FRAME_SAVED_PC): Remove.
4518 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4519 (m68k_store_struct_return): Add.
4520 (m68k_deprecated_extract_return_value): Add.
4521 (m68k_deprecated_extract_struct_value_address): Add.
4522 (m68k_store_return_value): Add.
4523 (m68k_frame_chain): Add.
4524 (m68k_frameless_function_invocation): Add.
4525 (m68k_frame_saved_pc): Add.
4526 (m68k_gdbarch_init): added set_gdbarch calls for new
4527 functions and deleted macros.
4528
03c30d4d
TT
45292002-06-23 Tom Tromey <tromey@redhat.com>
4530
4531 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4532 (ALLDEPFILES): Likewise.
4533 (udiheaders): Removed.
4534 (udip2soc.o): Likewise.
4535 (udi2go32.o): Likewise.
4536 (udr.o): Likewise.
4537 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4538
37e71372
AC
45392002-06-22 Andrew Cagney <ac131313@redhat.com>
4540
06a6ac57
AC
4541 * infrun.c (_initialize_infrun): Delete unnecessary call to
4542 build_infrun.
4543
37e71372
AC
4544 * regcache.h: Update comments describing the regcache_cpy family
4545 of functions.
4546 (regcache_save, regcache_restore): Delete declaration.
4547 (regcache_save_no_passthrough): Delete declaration.
4548 (regcache_restore_no_passthrough): Delete declaration.
4549 * regcache.c (regcache_save): Delete function.
4550 (regcache_save_no_passthrough): Delete function.
4551 (regcache_restore): Delete function.
4552 (regcache_restore_no_passthrough): Delete function.
4553
78f6d055
AC
45542002-06-21 Andrew Cagney <ac131313@redhat.com>
4555
4556 * config/m68k/tm-m68k.h: Fix typo.
4557 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4558 (m68k_frame_init_saved_regs): Declare.
4559
78b119cb
JB
45602002-06-21 Jim Blandy <jimb@redhat.com>
4561
4562 Remove some vestiges of Harris 88k support.
4563 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4564 register numbering quirk.
4565 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4566 odd symbols occurring in Harris 88k ELF targets.
4567
0fbb3da7
TT
45682002-06-21 Tom Tromey <tromey@redhat.com>
4569
4570 * gdb_locale.h: New file.
4571 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4572 (defs_h): Added gdb_locale.h.
4573 * configure, config.in: Rebuilt.
4574 * configure.in (PACKAGE): Define.
4575 * defs.h: Include gdb_locale.h.
4576 * main.c (captured_main): Call setlocale, bindtextdomain,
4577 textdomain.
4578
456f8b9d
DB
45792002-06-21 Dave Brolley <brolley@redhat.com>
4580
4581 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4582 * config/frv/frv.mt: New file.
4583 * config/frv/tm-frv.h: New file.
4584 * configure.tgt: Support frv-*-*.
4585 * Makefile.in (frv-tdep.o): New target.
4586 * frv-tdep.c: New file.
4587 * NEWS: Mention frv.
4588
cdd463f9
DB
45892002-06-21 Dave Brolley <brolley@redhat.com>
4590
4591 * MAINTAINERS: Add self to "Write After Approval" list.
4592
5d3ed2e3
GS
45932002-06-21 Grace Sainsbury <graces@redhat.com>
4594
4595 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4596 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4597 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4598 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4599 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4600
4601 * m68k-tdep.c: Include arch-utils.h
4602 (m68k_register_raw_size): Add.
4603 (m68k_register_virtual_size): Add.
4604 (m68k_register_virtual_type): Add.
4605 (m68k_register_name): Add.
4606 (m68k_stack_align): Add.
4607 (m68k_register_byte): Add.
4608 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4609 tm-m68k.h.
4610
7f8e7424
GS
46112002-06-21 Grace Sainsbury <graces@redhat.com>
4612
a2c6a6d5 4613 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4614 m68k_find_saved_regs.
4615 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4616 references to it with frame->saved_regs.
7f8e7424
GS
4617 (m68k_gdbarch_init): Added function calls to initialize the
4618 gdbarch structure.
a2c6a6d5
GS
4619 (m68k_fix_call_dummy): Add.
4620 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4621 (CALL_DUMMY): Remove.
4622 (CALL_DUMMY_LENGTH): Remove.
4623 (CALL_DUMMY_START_OFFSET): Remove.
4624 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4625 (FIX_CALL_DUMMY): Remove.
4626 (PUSH_DUMMY_FRAME): Remove.
4627 (POP_FRAME): Remove.
7f8e7424 4628
f461f5cf
PM
46292002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4630
4631 * parse.c (parse_fprintf): New function used to avoid calls to
4632 fprintf in bison parser generated debug code.
4633 * parser-defs.h: Declaration of new parse_fprintf function.
4634 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4635 Set YYDEBUG to 1 by default.
4636 Set YYFPRINTF as parse_fprintf.
4637
7f0c12ed
ML
46382002-06-21 Michal Ludvig <mludvig@suse.cz>
4639
4640 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4641 encoding anymore.
4642 (pointer_encoding, enum ptr_encoding): New.
4643 (execute_cfa_program): Take care about pointer encoding.
4644 (dwarf2_build_frame_info): Only call parse_frame_info for
4645 .debug_frame and .eh_frame.
4646 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4647 fixed augmentation handling, added relative addressing,
4648 ignore duplicate FDEs. Added comments.
19d833a2 4649 * dwarf2cfi.c: Reindented.
7f0c12ed 4650
87c4a039
EZ
46512002-06-20 Elena Zannoni <ezannoni@redhat.com>
4652
4653 * event-top.c (command_handler): Don't use space_at_cmd_start
4654 unless there is sbrk() on the host. Assign time and space data
4655 to union fields of the appropriate length.
4656
1cf877ad
ML
46572002-06-20 Michal Ludvig <mludvig@suse.cz>
4658
4659 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4660 x86_64_register_name. Return type changed to 'const char *'.
4661 (x86_64_register_name2nr): Rename to x86_64_register_number.
4662 (x86_64_gdbarch_init): Update to reflect the change.
4663 * x86-64-tdep.h: Ditto.
4664 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4665 (supply_fpregset): Ditto.
4666
3fadccb3
AC
46672002-06-19 Andrew Cagney <cagney@redhat.com>
4668
4669 * regcache.h: Update copyright.
4670 (struct regcache, struct gdbarch): Add opaque declarations.
4671 (current_regcache): Declare global variable.
4672 (regcache_read, regcache_write): Add gdbarch parameter.
4673 (regcache_save, regcache_save_no_passthrough)
4674 (regcache_restore, regcache_restore_no_passthrough)
4675 (regcache_dup, regcache_dup_no_passthrough)
4676 (regcache_cpy, regcache_cpy_no_passthrough)
4677 (deprecated_grub_regcache_for_registers)
4678 (deprecated_grub_regcache_for_register_valid)
4679 (regcache_valid_p): Add function declarations.
4680
4681 * regcache.c: Update copyright.
4682 (regcache_descr_handle): New global variable.
4683 (struct regcache_descr): Define.
4684 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4685 (regcache_descr, xfree_regcache_descr): New functions.
4686 (struct regcache): Define.
4687 (regcache_xmalloc, regcache_xfree): New functions.
4688 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4689 (regcache_dup, regcache_dup_no_passthrough): New functions.
4690 (regcache_valid_p, regcache_read_as_address): New functions.
4691 (deprecated_grub_regcache_for_registers): New function.
4692 (deprecated_grub_regcache_for_register_valid): New function.
4693 (current_regcache): New global variable.
4694 (register_buffer): Add regcache parameter. Update calls.
4695 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4696 (read_register_gen, write_register_gen): Update register_buffer
4697 call. Test for legacy_p instead of gdbarch_register_read_p or
4698 gdbarch_register_write_p.
4699 (regcache_collect): Update register_buffer call.
4700 (build_regcache): Rewrite. Use deprecated grub functions.
4701 (regcache_save, regcache_save_no_passthrough): New functions.
4702 (regcache_restore, regcache_restore_no_passthrough): New
4703 functions.
4704 (_initialize_regcache): Create the regcache_data_handle. Swap
4705 current_regcache global variable.
4706
4707 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4708 parameter to regcache_read and regcache_write calls.
4709 (sh4_register_read): Ditto.
4710 (sh64_pseudo_register_read): Ditto.
4711 (sh64_register_read): Ditto.
4712 (sh_pseudo_register_write): Ditto.
4713 (sh4_register_write): Ditto.
4714 (sh64_pseudo_register_write): Ditto.
4715 (sh64_register_write): Ditto.
4716
4717 * defs.h (XCALLOC): Define.
4718
152d9db6
GS
47192002-06-19 Grace Sainsbury <graces@redhat.com>
4720
4721 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4722 * m68k-tdep.c (m68k_gdbarch_init): Added.
4723 (m68k_dump_tdep): Added.
4724
170911c7
DJ
47252002-06-19 Daniel Jacobowitz <drow@mvista.com>
4726
4727 * ada-lang.c (fill_in_ada_prototype): Update comment.
4728
2e4ebe70
DJ
47292002-06-19 Daniel Jacobowitz <drow@mvista.com>
4730
4731 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4732 MIPS_ABI_LAST.
4733 (mips_abi_string, mips_abi_strings): New.
4734 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4735 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4736 tdep->mips_abi_string. Honor mips_abi_string. Default to
4737 O32 if no ABI is found.
4738 (mips_dump_tdep): Use mips_abi_strings.
4739 (mips_abi_update): New function.
4740 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4741 ``set mips abi'' and ``show mips abi''. Check the size of
4742 mips_abi_strings.
4743
16775908
AC
47442002-06-19 Andrew Cagney <cagney@redhat.com>
4745
4746 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4747 constant.
4748
5051bfa4 47492002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4750
5051bfa4
JB
4751 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4752 current frame using only the first stack size adjustment. All
4753 subsequent size adjustments are not considered to be part of
4754 the "static" part of the current frame.
4755 Compute the address of the saved registers relative to the
4756 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4757 in use in this frame.
4758
56468235
DH
47592002-06-18 Don Howard <dhoward@redhat.com>
4760
4761 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4762 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4763 suggesting this solution.
4764
0b624158
AC
47652002-06-18 Andrew Cagney <ac131313@redhat.com>
4766
4767 * config/romp/xm-rtbsd.h: Delete file.
4768 * config/romp/rtbsd.mh: Delete file.
4769
221ea385
KS
47702002-06-18 Keith Seitz <keiths@redhat.com>
4771
4772 * breakpoint.c (condition_command): Post breakpoint_modify
4773 when a condition is added to an existing breakpoint.
4774 (commands_command): Likewise for commands.
4775 (set_ignore_count): Likewise for ignore counts.
4776 If no tty, do not simply return, still need to send event
4777 notification.
4778 (ignore_command): Only print a newline if the command came
4779 from a tty.
4780 Don't call breakpoints_changed, since this is now properly
4781 handled by set_ignore_count.
4782
5402eed1
AC
47832002-06-18 Andrew Cagney <cagney@redhat.com>
4784
4785 * MAINTAINERS: Note that cris-elf target can be compiled with
4786 -Werror.
4787 * cris-tdep.c (cris_register_name): Make return type constant.
4788 (cris_breakpoint_from_pc): Ditto.
4789
cc22880b
ML
47902002-06-18 Michal Ludvig <mludvig@suse.cz>
4791
4792 * frame.h (struct frame_info): Change type of context to
4793 'struct context'.
4794
fa88f677
AC
47952002-06-17 Andrew Cagney <cagney@redhat.com>
4796
4797 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4798 pointer.
4799 * gdbarch.h, gdbarch.c: Regenerate.
4800 * config/mips/tm-mips.h (mips_register_name): Update.
4801 * i386-tdep.h (i386_register_name): Update.
4802 * mips-tdep.c (mips_register_name): Update
4803 * alpha-tdep.c (alpha_register_name): Update.
4804 * arch-utils.c (legacy_register_name): Update.
4805 * arch-utils.h (legacy_register_name): Update.
4806 * avr-tdep.c (avr_register_name): Update.
4807 * ia64-tdep.c (ia64_register_name): Update.
4808 * i386-tdep.c (i386_register_name): Update.
4809 * sparc-tdep.c (sparc32_register_name): Update.
4810 (sparc64_register_name): Update.
4811 (sparclite_register_name): Update.
4812 (sparclet_register_name): Update.
4813 * sh-tdep.c (sh_generic_register_name): Update.
4814 (sh_sh_register_name): Update.
4815 (sh_sh3_register_name): Update.
4816 (sh_sh3e_register_name): Update.
4817 (sh_sh_dsp_register_name): Update.
4818 (sh_sh3_dsp_register_name): Update.
4819 (sh_sh4_register_name): Update.
4820 (sh_sh64_register_name): Update.
4821 * s390-tdep.c (s390_register_name): Update.
4822 * rs6000-tdep.c (rs6000_register_name): Update.
4823 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4824 (ns32k_register_name_32382): Update.
4825 * d10v-tdep.c (d10v_ts2_register_name): Update.
4826 (d10v_ts3_register_name): Update.
4827 * xstormy16-tdep.c (xstormy16_register_name): Update.
4828 * vax-tdep.c (vax_register_name): Update.
4829 * v850-tdep.c (v850_register_name): Update.
4830 * m68hc11-tdep.c (m68hc11_register_name): Update.
4831 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4832 (am33_register_name): Update.
4833
ea1e7ef6
GS
48342002-06-17 Grace Sainsbury <graces@redhat.com>
4835
4836 * m68k-tdep.c: Reindented.
4837
9b02dd1b
AC
48382002-06-17 Andrew Cagney <ac131313@redhat.com>
4839
4840 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4841 list of predefined types.
4842
8758dec1
MK
48432002-06-16 Mark Kettenis <kettenis@gnu.org>
4844
b6197528
MK
4845 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4846 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4847 REGISTER_CONVERT_TO_RAW): Remove defines.
4848 (i386_register_virtual_type, i386_register_convertible,
4849 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4850 Remove prototypes.
4851 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4852 macros mentioned above.
4853
82b47e62
MK
4854 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4855 (i386lynx_saved_pc_after_call): Remove prototype.
4856 * i386ly-tdep.c: Include "i386-tdep.h".
4857 (i386lynx_saved_pc_after_call): Make static. Use
4858 read_memory_nobpt instead of read_memory. Use
4859 read_memory_unsigned_integer instead of read_memory_integer.
4860 (i386lynx_init_abi): New function.
4861 (i386lynx_coff_osabi_sniffer): New function.
4862 (_initialize_i386bsd_tdep): New function.
4863
8758dec1
MK
4864 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4865 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4866 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4867 (i386_fix_call_dummy): Remove prototype.
4868 * i386-tdep.c (i386_call_dummy_words): New variable.
4869 (i386_gdbarch_init): Adjust for removal of the
4870 macros mentioned above.
4871
e9e68a56
AC
48722002-06-15 Andrew Cagney <ac131313@redhat.com>
4873
4874 * command.h (add_setshow_auto_boolean_cmd): Replace
4875 add_set_auto_boolean_cmd.
4876 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4877 add_set_auto_boolean_cmd.
4878 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4879 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4880 mask-address'' command.
4881 (show_mask_address): Add cmd parameter.
4882 * remote.c (add_packet_config_cmd): Update. Change type of
4883 set_func and show_func to cmd_sfunc_ftype.
4884 (_initialize_remote): Update `set remote Z-packet'
4885 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4886 (show_remote_protocol_e_packet_cmd): Ditto.
4887 (show_remote_protocol_E_packet_cmd): Ditto.
4888 (show_remote_protocol_P_packet_cmd): Ditto.
4889 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4890 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4891 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4892 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4893 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4894 (show_remote_protocol_Z_packet_cmd): Ditto.
4895 (show_remote_protocol_binary_download_cmd): Ditto.
4896 (show_remote_cmd): Pass NULL to all of above.
4897
fc08ec52
MK
48982002-06-15 Mark Kettenis <kettenis@gnu.org>
4899
4900 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4901 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4902 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4903 POP_FRAME): Remove defines.
4904 (i386_push_arguments, i386_store_struct_return,
4905 i386_extract_return_value, i386_store_return_value,
4906 i386_extract_struct_value_address, i386_push_dummy_frame,
4907 i386_pop_frame): Renove prototypes.
4908 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4909 macros mentioned above.
4910
e707bbc2
AC
49112002-06-15 Andrew Cagney <ac131313@redhat.com>
4912
4913 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4914 add_set_boolean_cmd.
4915 (add_setshow_cmd): New function.
4916 * command.h (add_setshow_boolean_cmd): Replace
4917 add_set_boolean_cmd.
4918 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4919 and ``set rdiromatzero''.
4920 * maint.c (_initialize_maint_cmds): Update commented out code.
4921 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4922 * target.c (initialize_targets): Update `set
4923 trust-readonly-sections'.
4924 * remote.c (_initialize_remote): Update `set remotebreak'.
4925
42fdc8df
MK
49262002-06-15 Mark Kettenis <kettenis@gnu.org>
4927
93924b6b
MK
4928 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4929 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4930 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4931 fit into multi-arch framework.
4932 (i386_breakpoint_from_pc): New function.
4933 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4934 above.
4935
42fdc8df
MK
4936 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4937 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4938 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4939 (i386_frameless_function_invocation, i386_frame_num_args,
4940 i386_frame_init_saved_regs): Remove prototypes.
4941 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4942 macros mentioned above.
4943
9773a94b
AC
49442002-06-15 Andrew Cagney <ac131313@redhat.com>
4945
4946 * cli/cli-decode.c (set_cmd_cfunc): Update.
4947 (set_cmd_sfunc): Update.
4948 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4949 (set_cmd_sfunc, set_cmd_cfunc): Update.
4950 * cli/cli-decode.h: Update.
4951
6e157172
MK
49522002-06-15 Mark Kettenis <kettenis@gnu.org>
4953
4954 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4955 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4956
7f19b9a2
AC
49572002-06-15 Andrew Cagney <ac131313@redhat.com>
4958
4959 * defs.h (auto_boolean): Declare enum.
4960 * command.h (cmd_auto_boolean): Delete enum.
4961 * mips-tdep.c (mask_address_var): Update.
4962 (mips_mask_address_p): Update.
4963 (show_mask_address): Update.
4964 * remote.c (struct packet_config): Update.
4965 (update_packet_config): Update.
4966 (show_packet_config_cmd): Update.
4967 (packet_ok): Update.
4968 (add_packet_config_cmd): Update.
4969 (_initialize_remote):
4970 * command.h: Update.
4971 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4972 (do_setshow_command): Update.
4973 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4974 * cli/cli-decode.h: Update.
4975
1cf88de5
MK
49762002-06-15 Mark Kettenis <kettenis@gnu.org>
4977
22ba8cf2
MK
4978 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4979 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4980 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4981 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4982 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4983 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4984
762c5349
MK
4985 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4986 list of DJGPP COFF targets.
4987
091198bb
MK
4988 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4989 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4990 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4991 (FP0_REGNUM): Remove define.
4992 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4993 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4994 (i386_register_virtual_size): Remove protoype.
4995 * i386-tdep.c (i386_register_virtual_size): Removed.
4996 (i386_extract_return_value, i386_store_return_value): Use
4997 FP0_REGNUM instead of NUM_FREGS to determine whether the
4998 floating-point registers are available.
4999 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5000 Adjust for removal of macros mentioned above.
5001
50022002-06-15 Mark Kettenis <kettenis@gnu.org>
5003
fcc9bf01
MK
5004 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5005 comments.
5006 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5007 Remove prototypes.
5008 (supply_gregset, fill_gregset): Remove use of register keyword and
5009 remove declaration for regmap. Use I386_NUM_GREGS instead of
5010 NUM_REGS and NUM_FREGS.
5011 (FPREGSET_FSAVE_OFFSET): Remove.
5012 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5013 NUM_FREGS to determine whether the floating-point registers are
5014 available.
5015
65e78234
MK
5016 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5017 gnu_store_registers): Replace usage of NUM_GREGS with
5018 I386_NUM_GREGS.
5019
98df6387
MK
5020 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5021 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5022 usage of NUM_GREGS with I386_NUM_GREGS.
5023
099a9414
MK
5024 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5025
57976e88
MK
5026 * i386bsd-nat.c: Include "i386-tdep.h".
5027 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5028 I386_NUM_GREGS.
5029
b335f4a6
MK
5030 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5031 and associated comment. They no longer make any sense, since we
5032 don't use this file anymore on Linux.
5033
1cf88de5
MK
5034 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5035 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5036 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5037 elements in these arrays.
5038 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5039 MAX_NUM_REGS.
5040
daa66587
MK
50412002-06-15 Mark Kettenis <kettenis@gnu.org>
5042
5043 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5044 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5045
26e9b323
AC
50462002-06-14 Andrew Cagney <cagney@redhat.com>
5047
5048 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5049 EXTRACT_RETURN_VALUE.
5050 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5051 EXTRACT_STRUCT_VALUE_ADDRESS.
5052 * gdbarch.h, gdbarch.c: Regenerate.
5053
5054 * values.c (value_being_returned): Handle
5055 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5056 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5057
5058 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5059 * arm-tdep.c (arm_gdbarch_init): Update.
5060 * avr-tdep.c (avr_gdbarch_init): Update.
5061 * cris-tdep.c (cris_gdbarch_init): Update.
5062 * d10v-tdep.c (d10v_gdbarch_init): Update.
5063 * ia64-tdep.c (ia64_gdbarch_init): Update.
5064 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5065 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5066 * s390-tdep.c (s390_gdbarch_init): Update.
5067 * sh-tdep.c (sh_gdbarch_init): Update.
5068 * s390-tdep.c (s390_gdbarch_init): Update.
5069 * sparc-tdep.c (sparc_gdbarch_init): Update.
5070 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5071 * v850-tdep.c (v850_gdbarch_init): Update.
5072 * vax-tdep.c (vax_gdbarch_init): Update.
5073 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5074 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5075
5076 * config/arc/tm-arc.h: Update.
5077 * config/d30v/tm-d30v.h: Update.
5078 * config/fr30/tm-fr30.h: Update.
5079 * config/h8300/tm-h8300.h: Update.
5080 * config/h8500/tm-h8500.h: Update.
5081 * config/i386/tm-i386.h: Update.
5082 * config/i386/tm-ptx.h: Update.
5083 * config/i386/tm-symmetry.h: Update.
5084 * config/i960/tm-i960.h: Update.
5085 * config/m32r/tm-m32r.h: Update.
5086 * config/m68k/tm-delta68.h: Update.
5087 * config/m68k/tm-linux.h: Update.
5088 * config/m68k/tm-m68k.h: Update.
5089 * config/m88k/tm-m88k.h: Update.
5090 * config/mcore/tm-mcore.h: Update.
5091 * config/mips/tm-mips.h: Update.
5092 * config/mn10200/tm-mn10200.h: Update.
5093 * config/pa/tm-hppa.h: Update.
5094 * config/pa/tm-hppa64.h: Update.
5095 * config/sparc/tm-sp64.h: Update.
5096 * config/sparc/tm-sparc.h: Update.
5097 * config/sparc/tm-sparclet.h: Update.
5098 * config/z8k/tm-z8k.h: Update.
5099
5179e78f
AC
51002002-06-14 Andrew Cagney <cagney@redhat.com>
5101
5102 * Makefile.in (i386_linux_tdep_h): Define.
5103 (i386_tdep_h, i387_tdep_h): Define.
5104 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5105 $(i386_tdep_h) and $(i387_tdep_h).
5106 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5107
8201327c
MK
51082002-06-14 Mark Kettenis <kettenis@gnu.org>
5109
edf393ac
MK
5110 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5111 Already covered by the default.
5112
896fb97d
MK
5113 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5114 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5115 (i386_gdbarch_init): Initialize long_double_format and long_double
5116 bit.
5117
8201327c
MK
5118 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5119 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5120 Move these to ...
5121 * config/i386/i386sol2.mh: ... here.
5122 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5123 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5124 (SIGCONTEXT_PC_OFFSET): Remove define.
5125 (IN_SIGTRAMP): Remove define.
5126 * i386-sol2-tdep.c: New file.
5127
5128 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5129 * config/i386/tm-i386nw.h: Removed.
5130
5131 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5132 USE_STRUCT_CONVENTION): Remove defines.
5133 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5134 (get_longjmp_target): Remove prototype.
5135 (IN_SIGTRAMP): Remove define.
5136 (i386bsd_in_sigtramp): Remove prototype.
5137 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5138 function. Update comment accordingly
5139 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5140 (FRAME_SAVED_PC): Remove define.
5141 (i386bsd_frame_saved_pc): Remove prototype.
5142 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5143 GET_LONGJMP_TARGET): Remove defines.
5144 (get_longjmp_target): Remove prototype.
5145 (IN_SIGTRAMP): Remove define.
5146 (i386bsd_in_sigtramp): Remove prototype.
5147 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5148 function. Update comment accordingly
5149 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5150 (FRAME_SAVED_PC): Remove define.
5151 (i386bsd_frame_saved_pc): Remove prototype.
5152 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5153 Remove prototype.
5154 (USE_STRUCT_CONVENTION): Remove prototype.
5155 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5156 declaration.
5157 (_initialize_i386bsd_nat): Revise logic to determine some
5158 constants at compile time when compiling a native GDB. Warn if
5159 things don't match up with what we expect.
5160 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5161 Remove variables.
5162 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5163 to use date stored in `struct gdbarch_tdep'.
5164 (i386bsd_sigcontext_offset): Remove varaible.
5165 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5166 stored in `struct gdbarch_tdep'.
5167 (i386bsd_frame_saved_pc): Make static.
5168 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5169 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5170 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5171 i386fbsd4_sc_pc_offset): New variables.
5172 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5173 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5174 functions.
5175 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5176 functions.
5177 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5178 Modify the value of i386fbsd_sigtramp_start and
5179 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5180 i386fbsd_sigtramp_end.
5181 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5182 function.
5183
5184 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5185 define to i386-linux-tdep.h.
5186 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5187 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5188 defines.
5189 (i386_linux_register_name, i386_linux_register_byte,
5190 i386_linux_register_raw_size): Remove prototypes.
5191 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5192 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5193 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5194 TARGET_WRITE_PC): Remove defines.
5195 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5196 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5197 i386_linux_write_pc): Remove prototypes.
5198 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5199 (get_longjmp_target): Remove prototype.
5200 * i386-linux-tdep.h: New file.
5201 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5202 * i386-linux-tdep.c: Include "i386-tdep.h" and
5203 "i386-linux-tdep.h".
5204 (i386_linux_register_name, i386_linux_register_byte,
5205 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5206 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5207 Make static.
5208 (i386_linux_init_abi): New function.
5209 (_initialize_i386_linux_tdep): New function.
5210
5211 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5212 (i386_saved_pc_after_call): Remove prototype.
5213 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5214 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5215 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5216 (i386_register_name, i386_stab_reg_to_regnum,
5217 i386_dwarf_reg_to_regnum): Remove prototypes.
5218 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5219 SIZEOF_SSE_REGS): Remove defines.
5220 (REGISTER_BYTES): Remove define.
5221 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5222 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5223 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5224 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5225 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5226 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5227 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5228 (get_longjmp_target): Remove prototype.
5229 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5230 (sigtramp_saved_pc): Remove define.
5231 (i386v4_sigtramp_saved_pc): Remove prototype.
5232 * config/i386/tm-go32.h (FRAME_CHAIN,
5233 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5234 (i386go32_frame_saved_pc): Remove prototype.
5235 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5236 (get_longjmp_target): Remove prototype.
5237 * i386-tdep.h: Include "osabi.h".
5238 (enum i386_abi): Removed.
5239 (enum struct_return): New enum.
5240 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5241 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5242 sc_pc_offset members.
5243 (i386_gdbarch_register_os_abi): Remove prototype.
5244 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5245 I386_SSE_NUM_REGS): New defines.
5246 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5247 I386_SSE_SIZEOF_REGS): New defines.
5248 (i386_register_name, i386_register_byte, i386_register_raw_size):
5249 New prototypes.
5250 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5251 (i386bsd_sigtramp_saved_pc): New prototype.
5252 * i386-tdep.c: Don't include "elf-bfd.h".
5253 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5254 i386_frame_chain, i386_saved_pc_after_call): Make static.
5255 (i386_frame_saved_pc): Rewrite to call architecture dependent
5256 function to deal with signal handlers. Make static.
5257 (i386go32_frame_saved_pc): Removed.
5258 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5259 Removed.
5260 (i386_get_longjmp_target): New function.
5261 (default_struct_convention, pcc_struct_convention,
5262 reg_struct_convention, valid_conventions, struct_convention): New
5263 variables.
5264 (i386_use_struct_convention): New function.
5265 (i386v4_sigtramp_saved_pc): Renamed to
5266 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5267 (i386_pc_in_sigtramp): New function.
5268 (i386_abi_names): Removed.
5269 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5270 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5271 Removed.
5272 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5273 i386_gdbarch_register_os_abi): Removed.
5274 (struct i386_abi_handler): Removed.
5275 (i386_abi_handler_list): Removed.
5276 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5277 functions.
5278 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5279 i386_nw_init_abi): New functions.
5280 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5281 Use set_gdbarch_xxx() calls instead of relying on macros for a
5282 number of calls.
5283 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5284 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5285 Register the various architecture variants defined in this file.
5286
ad2f7632
DJ
52872002-06-14 Daniel Jacobowitz <drow@mvista.com>
5288
5289 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5290 (struct main_type): Remove arg_types member. Update comments for
5291 struct field.
5292 (TYPE_ARG_TYPES): Remove.
5293 (TYPE_FN_FIELD_ARGS): Update.
5294 (smash_to_method_type): Update prototype.
5295
5296 * c-typeprint.c (cp_type_print_method_args): Take method type
5297 instead of argument list. Use new argument layout. Simplify.
5298 (c_type_print_args): Use new argument layout. Simplify.
5299 (c_type_print_base): Update call to cp_type_print_method_args.
5300 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5301 argument; use die->type instead. Update call to
5302 smash_to_method_type.
5303 (read_structure_scope): Update call to dwarf2_add_member_fn.
5304 * gdbtypes.c (allocate_stub_method): Update comment.
5305 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5306 Use new argument layout.
5307 (check_stub_method): Use new argument layout. Don't count
5308 void as an argument.
5309 (print_arg_types): Update comments. Use new argument layout.
5310 (recursive_dump_type): Don't print arg_types member.
5311 * hpread.c (hpread_read_struct_type): Use new argument layout.
5312 (fixup_class_method_type): Likewise.
5313 (hpread_type_lookup): Likewise.
5314 * stabsread.c (read_type): Update calls to read_args and
5315 smash_to_method_type.
5316 (read_args): Use new argument layout. Simplify.
5317 * valops.c (typecmp): Use new argument layout. Update parameters
5318 and comments. Simplify.
5319 (hand_function_call): Use new argument layout.
5320 (search_struct_method): Update call to typecmp.
5321 (find_overload_match): Use new argument layout.
5322
6da02953
DJ
53232002-06-13 Daniel Jacobowitz <drow@mvista.com>
5324
5325 * NEWS: Mention multithreaded debug support for gdbserver.
5326
519b2366
DJ
53272002-06-13 Daniel Jacobowitz <drow@mvista.com>
5328
5329 * MAINTAINERS: Mention NEWS.
5330
6c0d6680
DJ
53312002-06-13 Daniel Jacobowitz <drow@mvista.com>
5332
5333 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5334 (struct mips_objfile_private, compare_pdr_entries): New.
5335 (non_heuristic_proc_desc): Read the ".pdr" section if it
5336 is present.
5337
6529d2dd
AC
53382002-06-12 Andrew Cagney <ac131313@redhat.com>
5339
5340 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5341 (arm_debug): New static variable.
5342 (_initialize_arm_tdep): Add ``set debug arm'' command.
5343
26216b98
AC
53442002-06-12 Andrew Cagney <ac131313@redhat.com>
5345
5346 * Makefile.in (sim_arm_h): Define.
5347 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5348 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5349 (arm_register_sim_regno): New function, map an internal REGNUM
5350 onto a simulator register number.
5351 (arm_gdbarch_init): Set register_sim_regno.
5352
814b3ba0
AH
53532002-06-09 Aldy Hernandez <aldyh@redhat.com>
5354
5355 * MAINTAINERS: Add self.
5356
475b0867
JB
53572002-06-11 Jim Blandy <jimb@redhat.com>
5358
919d772c
JB
5359 * source.c (source_info): Mention whether the symtab has
5360 information about preprocessor macros.
5361
475b0867
JB
5362 Call the command `info macro', not `show macro'.
5363 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5364 Fix error message.
5365 (_initialize_macrocmd): Register `info_macro_command' in
5366 `infolist', not `showlist'.
5367
9e364162
DJ
53682002-06-11 Daniel Jacobowitz <drow@mvista.com>
5369
5370 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5371 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5372 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5373 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5374 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5375 unconditionally.
5376 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5377 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5378 (_initialize_mips_tdep): Remove dead code.
5379 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5380 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5381 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5382 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5383 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5384 MIPS_LAST_FP_ARG_REGNUM): Remove.
5385
23aa4c72
ML
53862002-06-11 Michal Ludvig <mludvig@suse.cz>
5387
5388 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5389 (unwind_tmp_obstack_free, parse_frame_info)
5390 (update_context, cfi_read_fp, cfi_write_fp)
5391 (cfi_frame_chain, cfi_init_extra_frame_info)
5392 (cfi_virtual_frame_pointer): Use the above function.
264d1763 5393 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 5394
70eb15a4
CV
53952002-06-11 Corinna Vinschen <vinschen@redhat.com>
5396
5397 * v850-tdep.c (v850_type_is_scalar): New function.
5398 (v850_use_struct_convention): Match current gcc implementation
5399 as close as possible.
5400 (v850_push_arguments): Fix stack_offset handling. Don't write
5401 struct_addr into register. This is done by v850_store_struct_return.
5402 (v850_extract_return_value): Care for structs.
5403 (v850_store_return_value): Ditto.
5404 (v850_store_struct_return): Actually write address.
5405
482a4d06
ML
54062002-06-11 Michal Ludvig <mludvig@suse.cz>
5407
5408 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5409 without debug information too.
5410
d855c300
AC
54112002-06-10 Andrew Cagney <ac131313@redhat.com>
5412
5413 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5414 Make multi-arch pure.
5415 * gdbarch.h, gdbarch.c: Re-generate.
5416 * arm-tdep.c (arm_print_float_info): Update.
5417 * arch-utils.h (default_print_float_info): Update.
5418 * arch-utils.c (default_print_float_info): Update.
5419 * infcmd.c (float_info): Update call.
5420
dd12a101
AC
54212002-06-10 Andrew Cagney <ac131313@redhat.com>
5422
5423 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5424 the front of the initialize list.
5425
101dcfbe
AC
54262002-06-10 Andrew Cagney <ac131313@redhat.com>
5427
5428 * infrun.c (struct inferior_status): Replace fields
5429 selected_frame_address and selected_level with field
5430 selected_frame_id.
5431 (save_inferior_status): Update. Use get_frame_id.
5432 (struct restore_selected_frame_args): Delete.
5433 (restore_selected_frame): Update. Use frame_find_by_id.
5434 (restore_inferior_status): Update.
5435
5436 * breakpoint.h (struct breakpoint): Change type of
5437 watchpoint_frame to frame_id.
5438 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5439 call to get_current_frame.
5440 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5441 get_current_frame.
5442 (watchpoint_check): Use frame_find_by_id.
5443
5444 * frame.h (record_selected_frame): Delete declaration.
5445 * stack.c (record_selected_frame): Delete function.
5446
5447 * frame.h (struct frame_id): Define.
5448 (get_frame_id): Declare.
5449 (frame_find_by_id): Declare.
5450 * frame.c (frame_find_by_id): New function.
5451 (get_frame_id): New function.
5452
304270b6
AV
54532002-06-10 Andrey Volkov <avolkov@transas.com>
5454
5455 * ser-e7kpc.c: Fix duplicated define and call of
5456 _initialize_ser_e7000pc
5457
2f2cf184
DJ
54582002-06-09 Daniel Jacobowitz <drow@mvista.com>
5459
5460 * signals/signals.c (target_signal_from_host): Fix #ifdef
5461 SIGRTMIN case.
5462 (do_target_signal_to_host): Likewise.
5463
caaa3122
DJ
54642002-06-09 Daniel Jacobowitz <drow@mvista.com>
5465
5466 * mips-tdep.c (mips_find_abi_section): New function.
5467 (mips_gdbarch_init): Call it.
5468
6ac5df3a
MK
54692002-06-09 Mark Kettenis <kettenis@gnu.org>
5470
5471 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5472 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5473 after Andrew's 2002-06-08 gdbarch change.
5474
82ea117a
MK
54752002-06-09 Mark Kettenis <kettenis@gnu.org>
5476
5477 * i386-linux-nat.c (suppy_gregset): Don't supply
5478 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5479 register cache.
5480 (fill_gregset): Don't fetch it under the same circumstances.
5481
3c25f8c7
AC
54822002-06-09 Andrew Cagney <cagney@redhat.com>
5483
5484 * Makefile.in (callback_h): Define.
5485 (remote_sim_h): Update path to remote-sim.h.
5486 (remote-rdp.o): Add $(callback_h).
5487 (remote-sim.o): Use $(callback_h).
5488 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5489 * remote-rdp.c: Include "gdb/callback.h".
5490
1029b7fa
MK
54912002-06-09 Mark Kettenis <kettenis@gnu.org>
5492
5493 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5494 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5495
616675d3
AC
54962002-06-08 Andrew Cagney <ac131313@redhat.com>
5497
a3efda28
AC
5498 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5499 * rdi-share/serpardr.c: Ditto.
5500 * rdi-share/unixcomm.c: Ditto.
5501 * rdi-share/serdrv.c: Ditto.
5502 * rdi-share/hostchan.h: Ditto.
5503 * rdi-share/hostchan.c: Ditto.
5504 * rdi-share/host.h: Ditto.
5505 * rdi-share/devsw.c: Ditto.
5506
c5f10366
AC
5507 * objfiles.h: Change type of obj_private to void pointer.
5508 * pa64solib.c: Update copyright. Don't include "assert.h", use
5509 strcmp instead of STREQ, use LONGEST, do not use PTR
5510 * somsolib.c: Ditto.
5511
616675d3
AC
5512 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5513 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5514 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5515
e4b415d9
AC
55162002-06-08 Andrew Cagney <ac131313@redhat.com>
5517
5518 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5519 (default_get_saved_register): Delete function.
5520 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5521 generic_unwind_get_saved_register.
5522 * gdbarch.h, gdbarch.c: Re-generate.
5523
ca0d0b52
AC
55242002-06-08 Andrew Cagney <ac131313@redhat.com>
5525
5526 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5527 generic_func_frame_chain_valid.
5528 * gdbarch.h, gdbarch.c: Re-generate.
5529 * blockframe.c (generic_func_frame_chain_valid): Only check
5530 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5531 passing FP to PC_IN_CALL_DUMMY.
5532 Fix PR gdb/360.
5533
76860b5f
AC
55342002-06-08 Andrew Cagney <ac131313@redhat.com>
5535
5536 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5537 (register_gdbarch_data): Initialize init_p.
5538 (gdbarch_data): Initialize data pointer using the init function.
5539 (init_gdbarch_data): Delete function.
5540 (gdbarch_update_p): Update.
5541 (initialize_non_multiarch): Update.
5542 (struct gdbarch): Add field initialized_p.
5543 * gdbarch.h, gdbarch.c: Re-generate.
5544
8dda9770
ML
55452002-06-07 Michal Ludvig <mludvig@suse.cz>
5546
5547 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5548 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5549 better do the things actually here.
5550 * x86-64-tdep.c (x86_64_register_name2nr): New.
5551 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5552 (x86_64_gdbarch_init): Respect the above change.
5553 * x86-64-tdep.h (x86_64_register_name2nr)
5554 (x86_64_register_nr2name): Add prototypes.
5555 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5556
3d79a47c
MS
55572002-06-06 Michael Snyder <msnyder@redhat.com>
5558
7bd91a28
MS
5559 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5560 Delete extra braces and re-indent.
5561 (d10v_store_return_value): Char return values
3d79a47c
MS
5562 must be shifted over by one byte in R0.
5563 (d10v_extract_return_value): Delete extra braces, re-indent.
5564
095a4c96
EZ
55652002-06-06 Elena Zannoni <ezannoni@redhat.com>
5566
5567 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5568 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5569 (d10v_integer_to_address): Rewrite.
5570 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5571 the d10v specific functions which take care of converting to the
5572 correct space.
5573
e8a77ca4
EZ
55742002-06-06 Elena Zannoni <ezannoni@redhat.com>
5575
5576 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5577 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5578
4f2e4a4f
AC
55792002-06-02 Andrew Cagney <ac131313@redhat.com>
5580
5581 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5582 includes.
5583 * config/tm-linux.h: Ditto.
5584 * config/alpha/tm-alphalinux.h: Ditto.
5585 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5586 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5587 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5588 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5589 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5590 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5591 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5592 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5593 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5594 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5595 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5596 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5597 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5598 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5599 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5600 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5601 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5602 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5603 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5604 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5605 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5606 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5607 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5608 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5609 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5610 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5611 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5612 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5613 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5614 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5615 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5616 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5617 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5618 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5619 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5620 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5621 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5622
ae2ab2ce
AS
56232002-05-04 Aidan Skinner <aidan@velvet.net>
5624
5625 * ada-exp.tab.c: New file
5626 * ada-exp.y: New file
5627 * ada-lang.c: New file
5628 * ada-lang.h: New file
5629 * ada-lex.c: New file
5630 * ada-lex.l: New file
5631 * ada-tasks.c: New file
5632 * ada-typeprint.c: New file
5633 * ada-valprint.c: New file
5634
0ddd0135
JT
56352002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5636
5637 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5638 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5639
750fbacc
JT
56402002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5641
5642 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5643 insetead of ppc-linux-tdep.o.
5644 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5645 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5646
df94e18a
AC
56472002-06-02 Andrew Cagney <ac131313@redhat.com>
5648
5649 2002-05-07 Christian Groessler <chris@groessler.org>
5650 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5651 bit register contents for little endian hosts.
5652
1a38ab75
AC
56532002-06-01 Andrew Cagney <ac131313@redhat.com>
5654
5655 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5656 any maintainer.
5657
8b1632ac
AC
56582002-06-01 Andrew Cagney <ac131313@redhat.com>
5659
5660 * gdbarch.h: Regenerate.
5661
627054c8
AC
56622002-06-01 Andrew Cagney <ac131313@redhat.com>
5663
5664 * MAINTAINERS: Add everyone to write-after-approval list.
5665
4f460812
AC
56662002-06-01 Andrew Cagney <ac131313@redhat.com>
5667
5668 * stack.c (frame_info): Use frame_register_unwind instead of
5669 saved_regs. Mention when the SP is on the stack or in a register.
5670
5671 * frame.h (frame_register_unwind_ftype): Define. Document.
5672 (struct frame_info): Add field register_unwind and
5673 register_unwind_cache.
5674 (frame_register_unwind): Declare.
5675 (generic_unwind_get_saved_register): Declare.
5676
5677 * frame.c (frame_register_unwind): New function.
5678 (generic_unwind_get_saved_register): New function.
5679
5680 * blockframe.c (generic_call_dummy_register_unwind): New function.
5681 (frame_saved_regs_register_unwind): New function.
5682 (set_unwind_by_pc): New function.
5683 (create_new_frame): New function.
5684 (get_prev_frame): New function.
5685
de888f76
AC
56862002-05-30 Andrew Cagney <ac131313@redhat.com>
5687
5688 * a29k-share/: Delete directory.
5689 * remote-vx29k.c: Delete file.
5690
2f2c3626
JT
56912002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5692
5693 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5694 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5695
9ce5c36a
JT
56962002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5697
5698 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5699 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5700 (sparc64nbsd-nat.o)
5701 (sparcnbsd-nat.o)
5702 (sparcnbsd-tdep.o): New dependency lists.
5703 * NEWS: Note new UltraSPARC NetBSD native configuration.
5704 * configure.host (sparc64-*-netbsd*): New host.
5705 * configure.tgt (sparc-*-netbsdelf*)
5706 (sparc-*-netbsd*): Set gdb_target to nbsd.
5707 (sparc64-*-netbsd*): New target.
5708 * sparc64nbsd-nat.c: New file.
5709 * sparcnbsd-nat.c: New file.
5710 * sparcnbsd-tdep.c: New file.
5711 * sparcnbsd-tdep.h: New file.
5712 * config/sparc/nbsd.mt: New file.
5713 * config/sparc/nbsd64.mh: New file.
5714 * config/sparc/nbsd64.mt: New file.
5715 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5716 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5717 (HOST_IPC): Remove.
5718 * config/sparc/nbsdaout.mt: Remove.
5719 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5720 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5721 (HOST_IPC): Remove.
5722 * config/sparc/nbsdelf.mt: Remove.
5723 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5724 sparc-nat.c compatiblity defines.
5725 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5726 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5727 * config/sparc/tm-nbsd64.h: New file.
5728 * config/sparc/tm-nbsdaout.h: Remove.
5729 * config/sparc/xm-nbsd.h: Remove.
5730
ef3cf062
JT
57312002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5732
5733 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5734 * sparc-tdep.c: Include osabi.h.
5735 (gdbarch_tdep): Add osabi member.
5736 (_initialize_sparc_tdep): Use gdbarch_register.
5737 (sparc_gdbarch_init): Use generic OS ABI framework.
5738 (sparc_dump_tdep): New function.
5739
ee8ff470
KB
57402002-05-30 Kevin Buettner <kevinb@redhat.com>
5741
5742 * corefile.c (do_captured_read_memory_integer): Return non-zero
5743 result.
5744 (safe_read_memory_integer): Copy result of memory read when
5745 status is non-zero. Also, add comments.
5746
7b112f9c
JT
57472002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5748
5749 * Makefile.in (ppc_tdep_h): Define.
5750 (ppc-linux-nat.o)
5751 (ppc-linux-tdep.o)
5752 (rs6000-tdep.o): Use $(ppc_tdep_h).
5753 (ppc-sysv-tdep.o)
5754 (ppcnbsd-nat.o)
5755 (ppcnbsd-tdep.o): New dependency lists.
5756 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5757 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5758 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5759 (ppc_sysv_abi_broken_use_struct_convention)
5760 (ppc_sysv_abi_use_struct_convention)
5761 (ppc_sysv_abi_push_arguments): Move to...
5762 * ppc-sysv-tdep.c: ...here.
5763 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5764 * rs6000-tdep.c (process_note_abi_tag_sections)
5765 (get_elfosabi): Remove.
5766 (rs6000_gdbarch_init): Use generic OS ABI framework.
5767 (rs6000_dump_tdep): New function.
5768 (_initialize_rs6000_tdep): Use gdbarch_register.
5769 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5770 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5771 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5772 of ppc-linux-tdep.o.
5773 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5774 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5775 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5776 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5777 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5778 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5779
480dd42a
JB
57802002-05-29 Jim Blandy <jimb@redhat.com>
5781
5782 * macroscope.c (default_macro_scope): Put `void' in empty argument
5783 list.
5784
4182591f
AC
57852002-05-29 Andrew Cagney <ac131313@redhat.com>
5786
5787 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5788 * arch-utils.c: Include "sim-regno.h".
5789 * gdbarch.sh: Don't include "sim-regno.h".
5790 * gdbarch.h, gdbarch.c: Regenerate.
5791 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5792 here.
5793 * arch-utils.h (legacy_register_sim_regno): To here.
5794 * remote-sim.c (legacy_register_sim_regno): Move function from
5795 here.
5796 * arch-utils.c (legacy_register_sim_regno): To here.
5797
8238d0bf
AC
57982002-05-28 Andrew Cagney <ac131313@redhat.com>
5799
5800 * sim-regno.h: New file.
5801 * Makefile.in (sim_regno_h): Define.
5802 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5803 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5804 (legacy_register_sim_regno): New function.
5805 (one2one_register_sim_regno): New function.
5806 (gdbsim_fetch_register): Rewrite.
5807 (gdbsim_store_register): Only store a register when
5808 REGISTER_SIM_REGNO is valid.
5809 * d10v-tdep.c: Include "sim-regno.h".
5810 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5811 (d10v_ts3_register_sim_regno): Ditto.
5812 * gdbarch.sh: Include "sim-regno.h".
5813 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5814 * gdbarch.h, gdbarch.c: Regenerate.
5815 * arch-utils.h (default_register_sim_regno): Delete declaration.
5816 * arch-utils.c (default_register_sim_regno): Delete function.
5817
485721b1
JT
58182002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5819
5820 * ppcnbsd-nat.c: Rewrite.
5821 * ppcnbsd-tdep.c: New file.
5822 * ppcnbsd-tdep.h: New file.
5823 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5824 solib.o, and solib-svr4.o.
5825 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5826 nbsd-tdep.o, and corelow.o.
5827
697f244d
AC
58282002-05-28 Andrew Cagney <ac131313@redhat.com>
5829
5830 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5831 `tr' and `sed'. Mention that `broken' targets are not expected to
5832 build.
5833
f08caad1 58342002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5835
5836 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5837 Let PC point right after the prologue before looking up symbols.
5838
3139facc
MH
58392002-05-27 Martin M. Hunt <hunt@redhat.com>
5840
5841 * i386-tdep.c (i386_register_virtual_type): Return
5842 builtin_type_vec128i for SSE registers.
5843
5844 * gdbtypes.h (builtin_type_vec128i): Declare.
5845
5846 * gdbtypes.c (build_builtin_type_vec128i): New function.
5847 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5848 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5849 (build_gdbtypes): Initialize new builtin vector types.
5850 (_initialize_gdbtypes): Register new vector types with gdbarch.
5851
6e3ba3b8
JT
58522002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5853
5854 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5855 since it has been multi-arch'd.
5856 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5857 Move Alpha and VAX multi-arch news entries to same section
5858 as other multi-arch news.
5859
93d5585d
JT
58602002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5861
5862 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5863 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5864 static. Rename some register numbers to put them in ns32k-tdep
5865 private namespace.
5866 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5867 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5868 functions.
5869 (_initialize_ns32k_tdep): Use gdbarch_register.
5870 * ns32k-tdep.h: New file.
5871 * ns32knbsd-tdep.c: New file.
5872 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5873 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5874 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5875 REGISTER_BYTES, REGISTER_BYTE): Remove.
5876 * config/ns32k/tm-ns32k.h: New file.
5877 * config/ns32k/tm-umax.h: Remove.
5878
efb2c70e
JT
58792002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5880
5881 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5882 ns32k_store_struct_return, ns32k_extract_return_value,
5883 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5884 functions.
5885 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5886 ns32k_saved_pc_after_call.
5887 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5888 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5889 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5890 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5891 ns32k_extract_struct_value_address.
5892
7bcc927b
JT
58932002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5894
5895 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5896 ns32k_fix_call_dummy): New.
5897 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5898 ns32k_call_dummy_words.
5899 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5900 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5901 CALL_DUMMY_NARGS): Remove.
5902 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5903
78f9d765
JT
59042002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5905
5906 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5907 ns32k_frame_saved_pc, ns32k_frame_args_address,
5908 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5909 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5910 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5911 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5912 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5913 (BREAKPOINT): Remove..
5914 (FRAME_CHAIN): Define as ns32k_frame_chain.
5915 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5916 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5917 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5918 (FRAME_FIND_SAVED_REGS): Remove.
5919 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5920 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5921 (POP_FRAME): Define as ns32k_pop_frame.
5922
f2c762e0
JT
59232002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5924
5925 * ns32k-tdep.c (ns32k_register_byte_32082,
5926 ns32k_register_byte_32382, ns32k_register_raw_size,
5927 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5928 functions.
5929 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5930 ns32k_register_byte_32382.
5931 * config/ns32k/tm-umax.h: Update copyright years.
5932 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5933 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5934 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5935 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5936 (ns32k_get_enter_addr): Fix prototype.
5937
af137673
JT
59382002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5939
5940 * ns32k-tdep.c: Update copyright years.
5941 (ns32k_register_name_32082): New function.
5942 (ns32k_register_name_32382): Ditto.
5943 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5944 (REGISTER_NAME): Define as ns32k_register_name_32382.
5945 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5946 (REGISTER_NAME): Define as ns32k_register_name_32082.
5947
a8bc7b56
JB
59482002-05-24 Jim Blandy <jimb@redhat.com>
5949
5950 * dwarf2read.c (free_line_header): Use xfree, not free.
5951
83a45910
JT
59522002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5953
5954 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5955 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5956
0db71247
AC
59572002-05-23 Andrew Cagney <ac131313@redhat.com>
5958
5959 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5960
b9e5e4dd
AC
59612002-05-23 Andrew Cagney <ac131313@redhat.com>
5962
5963 From Ross Alexander at NEC Europe:
5964 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5965
de530e84
MS
59662002-05-23 Michael Snyder <msnyder@redhat.com>
5967
5968 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5969 for input, rather than parse_and_eval_address.
5970
b91b96f4
AC
59712002-05-23 Andrew Cagney <ac131313@redhat.com>
5972
5973 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5974 * Makefile.in (sim_d10v_h): Update definition.
5975
8b279e7a
AC
59762002-05-24 Andrew Cagney <cagney@redhat.com>
5977
5978 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5979 change `2002-05-22 Michael Snyder' below.
5980 (d10v_push_arguments): Ditto.
5981 (d10v_extract_return_value): Ditto.
5982
0a3d0425
JB
59832002-05-23 Jim Blandy <jimb@redhat.com>
5984
5985 * macrotab.c (check_for_redefinition): Don't complain if the new
5986 definition is the same as the previous one. Take more arguments
5987 to allow the comparison.
5988 (macro_define_object, macro_define_function): Pass more arguments
5989 to check_for_redefinition.
5990
78eac43e
MS
59912002-05-22 Michael Snyder <msnyder@redhat.com>
5992
5993 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5994 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5995 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5996 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5997 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5998 Add a temp variable to save a call (and a memory read).
5999 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6000 if possible (so that PC_IN_CALL_DUMMY will work).
6001
9bc1edb8
CV
60022002-05-22 Corinna Vinschen <vinschen@redhat.com>
6003
6004 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6005
005ef3d2
ML
60062002-05-22 Michal Ludvig <mludvig@suse.cz>
6007
6008 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6009 fde->cie_ptr.
6010 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6011 (dwarf2_build_frame_info): Add offset to fde->initial_location
6012 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
6013 (execute_stack_op): Change type of 'result' from ULONGEST to
6014 CORE_ADDR.
005ef3d2 6015
fcf4f891
JT
60162002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6017
6018 * config/alpha/tm-nbsd.h: Include solib.h.
6019
cfef91e4
JT
60202002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6021
6022 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6023 assumptions about the host's byte order.
6024
9964235a
JT
60252002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6026
6027 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6028 to dependency list.
6029 * alphanbsd-tdep.c: Include solib-svr4.h.
6030 * shnbsd-tdep.c: Ditto.
6031
9eeef8ef
JT
60322002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6033
6034 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6035 nbsd-tdep.h to dependency list.
6036 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6037 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6038 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6039 nbsdaout.mh and nbsdelf.mh consistently.
6040 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6041 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6042 nbsdaout.mt and nbsdelf.mh consistently.
6043 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6044 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6045 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6046 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6047 a.out shared library stuff from here...
6048 * config/nm-nbsdaout.h: ...to here.
6049 * config/tm-nbsd.h: Remove.
6050 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6051 * config/arm/nbsd.mh: Remove.
6052 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6053 nbsd-tdep.o.
6054 * config/arm/nbsdaout.mh: New file.
6055 * config/arm/nbsdelf.mh: New file.
6056 * config/arm/nm-nbsdaout.h: New file.
6057 * config/i386/nbsd.mh: Remove.
6058 * config/i386/nbsd.mt: Remove.
6059 * config/i386/nbsdaout.mh: New file.
6060 * config/i386/nbsdaout.mt: New file.
6061 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6062 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6063 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6064 i386_register_u_addr): Remove.
6065 * config/i386/nm-nbsdaout.h: New file.
6066 * config/i386/nm-nbsdelf.h: Remove.
6067 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6068 (USE_STRUCT_CONVENTION): Remove.
6069 * config/i386/tm-nbsdaout.h: New file.
6070 * config/i386/tm-nbsdelf.h: Remove.
6071 * config/m68k/nbsd.mh: Remove.
6072 * config/m68k/nbsd.mt: Remove.
6073 * config/m68k/nbsdaout.mh: New file.
6074 * config/m68k/nbsdaout.mt: New file.
6075 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6076 * config/m68k/nm-nbsdaout.h: New file.
6077 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6078 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6079 * config/ns32k/nbsd.mh: Remove.
6080 * config/ns32k/nbsd.mt: Remove.
6081 * config/ns32k/nbsdaout.mh: New file.
6082 * config/ns32k/nbsdaout.mt: New file.
6083 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6084 * config/ns32k/nm-nbsdaout.h: New file.
6085 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6086 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6087 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6088 (SVR4_SHARED_LIBS): Remove.
6089 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6090 * config/sparc/nbsd.mh: Remove.
6091 * config/sparc/nbsd.mt: Remove.
6092 * config/sparc/nbsdaout.mh: New file.
6093 * config/sparc/nbsdaout.mt: New file.
6094 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6095 * config/sparc/nbsdelf.mt: New file.
6096 * config/sparc/nm-nbsdaout.h: New file.
6097 * config/sparc/nm-nbsdelf.h: Remove.
6098 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6099 * config/sparc/tm-nbsdaout.h: New file.
6100
257ce470
JT
61012002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6102
6103 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6104 mipsnbsd-tdep.c
6105 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6106
76a6d5fe
JT
61072002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6108
6109 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6110 shnbsd-nat.c.
6111 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6112
45888261
JT
61132002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6114
6115 * NEWS: Note new MIPS NetBSD native configuration.
6116 * configure.host (mips*-*-netbsd*): New host.
6117 * configure.tgt (mips*-*-netbsd*): New target.
6118 * mipsnbsd-nat.c: New file.
6119 * mipsnbsd-tdep.c: New file.
6120 * mipsnbsd-tdep.h: New file.
6121 * config/mips/nbsd.mh: New file.
6122 * config/mips/nbsd.mt: New file.
6123 * config/mips/nm-nbsd.h: New file.
6124 * config/mips/tm-nbsd.h: New file.
6125
70f80edf
JT
61262002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6127
6128 * Makefile.in (SFILES): Add osabi.c.
6129 (COMMON_OBS): Add osabi.o.
6130 (osabi.o): New dependency list.
6131 * osabi.c: New file.
6132 * osabi.h: New file.
6133 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6134
6135 * Makefile.in (alpha_tdep_h): Define and use instead of
6136 alpha-tdep.h.
6137 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6138 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6139 Remove.
6140 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6141 * alpha-tdep.h: Include osabi.h.
6142 (alpha_abi): Remove.
6143 (gdbarch_tdep): Use generic OS ABI framework.
6144 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6145 gdbarch_register_osabi.
6146 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6147 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6148 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6149
6150 * Makefile.in (sh_tdep_h): Add osabi.h.
6151 * sh-tdep.h (sh_osabi): Remove.
6152 (gdbarch_tdep): Use generic OS ABI framework.
6153 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6154 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6155 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6156 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6157
6158 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6159 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6160 gdbarch_register_osabi.
6161 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6162 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6163 (get_elfosabi): Rename to...
6164 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6165 ABI framework support routines.
6166 (arm_gdbarch_init): Use generic OS ABI framework.
6167 (arm_dump_tdep): Likewise.
6168 (_initialize_arm_tdep): Likewise.
6169 * arm-tdep.h: Include osabi.h.
6170 (arm_abi): Remove.
6171 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6172 osabi member.
6173 (arm_gdbarch_register_os_abi): Remove prototype.
6174 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6175 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6176
6177 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6178 * mips-tdep.c: Include osabi.h.
6179 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6180 OS ABI framework.
6181
d194345b
KH
61822002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6183
6184 * h8300-tdep.c: Fix formatting.
6185
70c6b0d1
EZ
61862002-05-20 Elena Zannoni <ezannoni@redhat.com>
6187
6188 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6189 printing vector registers.
6190
165b8e33
AC
61912002-05-19 Andrew Cagney <ac131313@redhat.com>
6192
6193 From Fernando Nasser:
6194 * remote.c (remote_async_open_1): Re-throw the exception when the
6195 connection fails.
6196 (remote_cisco_open): Ditto.
6197 (remote_open_1): Ditto.
6198
36918e70
AC
61992002-05-19 Andrew Cagney <ac131313@redhat.com>
6200
6201 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6202 (remote_start_remote): Add uiout parameter. Pass through to
6203 remote_start_remote_dummy.
6204 (remote_open_1): Use catch_exception instead of catch_errors.
6205 (remote_async_open_1): Ditto.
6206 (remote_cisco_open): Ditto.
6207
ae44c0c4
AC
62082002-05-19 Andrew Cagney <ac131313@redhat.com>
6209
6210 * remote.c (remote_start_remote): Replace PTR with void pointer.
6211 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6212 static.
6213
8efe637d
AC
62142002-05-18 Andrew Cagney <ac131313@redhat.com>
6215
6216 * gdb_indent.sh: Allow the script to be run in the sim directory.
6217
2f1b5984
MK
62182002-05-18 Mark Kettenis <kettenis@gnu.org>
6219
f0f625e2
MK
6220 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6221 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6222
2f1b5984
MK
6223 * corelow.c (core_open): Only call set_gdbarch_from_file if
6224 exec_bfd is NULL.
6225
fc974602
AV
62262002-05-17 Andrey Volkov <avolkov@transas.com>
6227
6228 * h8300-tdep.c: Add support of EXR register
6229 * config/h8300/tm-h8300.h: Ditto.
6230
906709f4
AV
62312002-05-17 Andrey Volkov <avolkov@transas.com>
6232
6233 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6234
6e591d68
AV
62352002-05-17 Andrey Volkov <avolkov@transas.com>
6236
6237 * h8300-tdep.c: Change literal regnums to REGNO.
6238
84f0252a
JB
62392002-05-17 Jim Blandy <jimb@redhat.com>
6240
e0e9281e
JB
6241 * NEWS: Note addition of macro support.
6242
84f0252a
JB
6243 Expand preprocessor macros in C expressions.
6244 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6245 (scan_macro_expansion, scanning_macro_expansion,
6246 finished_macro_expansion): New function declarations.
6247 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6248 variable declarations.
6249 * parser-defs.h (expression_context_pc): New declaration.
6250 * parse.c (expression_context_pc): New variable.
6251 (parse_exp_1): Set expression_context_pc, as well as
6252 expression_context_block.
6253 * c-exp.y (yylex): If we're not already reading the result of a
6254 macro expansion, try to macro-expand the next token. When we're
6255 done scanning a macro expansion, switch back to the mainline text.
6256 Commas and `if's in a macro's expansion don't terminate the input.
6257 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6258 (macro_original_text, macro_expanded_text,
6259 expression_macro_lookup_func, expression_macro_lookup_baton): New
6260 variables.
6261 (scan_macro_expansion, scanning_macro_expansion,
6262 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6263 c_preprocess_and_parse): New functions.
6264 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6265 c_preprocess_and_parse, instead of c_parse.
6266 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6267 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6268
1c509ca8
JR
6269Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6270
6271 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6272 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6273 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6274
2250ee0c
CV
62752002-05-17 Corinna Vinschen <vinschen@redhat.com>
6276
6277 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6278
ab3b8126
JT
62792002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6280
6281 * Makefile.in (sh_tdep_h): Define and use.
6282 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6283 register enum): Move to...
6284 * * sh-tdep.h: ...here.
6285 * sh-tdep.c: Include sh-tdep.h.
6286 * sh3-rom.c: Likewise.
6287 * shnbsd-tdep.c: Likewise.
6288
ed9d4749
MS
62892002-05-16 Michael Snyder <msnyder@redhat.com>
6290
6291 * arm-tdep.c: Spelling fix in comment.
6292
2e276125
JB
62932002-05-16 Jim Blandy <jimb@redhat.com>
6294
6821892e
JB
6295 Add commands for manually expanding macros and showing their
6296 definitions.
6297 * macrocmd.c, macroscope.c, macroscope.h: New files.
6298 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6299 (macroscope_h): New variable.
6300 (HFILES_NO_SRCDIR): Add macroscope.h.
6301 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6302 (macroscope.o, macrocmd.o): New rules.
6303
2e276125
JB
6304 Teach the Dwarf 2 reader to read macro information.
6305 * dwarf2read.c: #include "macrotab.h".
6306 (dwarf_macinfo_buffer): New variable.
6307 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6308 dwarf_macinfo_size.
6309 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6310 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6311 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6312 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6313 dwarf2_macro_spaces_in_definition): New complaints.
6314 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6315 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6316 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6317 the partial symbol table.
6318 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6319 from what's recorded in the partial symbol table.
6320 (read_file_scope): If the compilation unit has a
6321 `DW_AT_macro_info' attribute, read its macro information.
6322 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6323
2f53fe6c
DJ
63242002-05-16 Daniel Jacobowitz <drow@mvista.com>
6325
6326 Fix PR gdb/546
6327 * ser-tcp.c: Don't include <netinet/udp.h>.
6328
2be99286
SC
63292002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6330
6331 * MAINTAINERS: Update my email address.
6332
c9af212b 63332002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
6334
6335 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6336 include file of the same name.
6337
bf5f1a52
CV
63382002-05-16 Corinna Vinschen <vinschen@redhat.com>
6339
6340 * configure.tgt: Mark v850 as multi-arched.
6341 * config/v850/tm-v850.h: Remove file.
6342 * config/v850/v850.mt: Eliminate TM_FILE.
6343
435e042a
CV
63442002-05-16 Corinna Vinschen <vinschen@redhat.com>
6345
6346 * v850-tdep.c: Full multi-arch.
6347 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6348 Define GDB_MULTI_ARCH to 2.
6349
9819c6c8
PM
63502002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6351
6352 * p-exp.y (current_type): New static variable.
6353 Carries the type of the expression at the position that is parsed.
6354 (push_current_type, pop_current_type): Two new functions. Used
6355 to store/restore current_type in expression on specific tokens.
c9af212b
RE
6356 (search_field): New static variable. Set to one after parsing a point
6357 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
6358 (FIELDNAME): New token. After a point only a token belonging to
6359 current_type type definition is allowed.
6360 (all over token rules): reset and change current_type according
6361 to rules.
6362 (exp '[' rule): insert implicit array index field if
6363 exp is a pascal string type.
6364
3a06899a
CV
63652002-05-16 Corinna Vinschen <vinschen@redhat.com>
6366
6367 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6368 frame info. Use frame_info's saved_regs instead of matching member
6369 in extra_frame_info throughout.
6370 (v850_frame_init_saved_regs): New function.
6371 (v850_init_extra_frame_info): Move most functionality into
6372 v850_frame_init_saved_regs().
6373 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6374 (v850_frame_find_saved_regs): Remove declaration.
6375 (FRAME_FIND_SAVED_REGS): Remove definition.
6376 (v850_frame_init_saved_regs): Add declaration.
6377 (FRAME_INIT_SAVED_REGS): Add definition.
6378
6ed14b0e
CV
63792002-05-16 Corinna Vinschen <vinschen@redhat.com>
6380
6381 * v850-tdep.c: Begin multi-arch'ing v850.
6382 (v850_target_architecture_hook): Remove function.
6383 (v850_gdbarch_init): New function. Add code previously in
6384 v850_target_architecture_hook().
6385 (_initialize_v850_tdep): Don't set target_architecture_hook.
6386 Call register_gdbarch_init() instead.
6387
42725910
DJ
63882002-05-16 Daniel Jacobowitz <drow@mvista.com>
6389
6390 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6391 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6392 (fixup_class_method_type): Likewise.
6393
99d9066e
JB
63942002-05-15 Jim Blandy <jimb@redhat.com>
6395
6396 Add macro structures to GDB's symbol tables. Nobody puts anything
6397 in them yet.
6398 * symtab.h (struct symtab): New member: `macro_table'.
6399 * buildsym.h (pending_macros): New global variable.
6400 * buildsym.c: #include "macrotab.h".
6401 (buildsym_init): Initialize `pending_macros'.
6402 (end_symtab): If we found macro information while reading a CU's
6403 debugging info, do build a symtab structure for it. Make the
6404 symtab point to the macro information, and clear the
6405 `pending_macros' pointer which held it while we were reading the
6406 debug info.
6407 (really_free_pendings): Free any pending macro table.
6408 * objfiles.h (struct objfile): New member: `macro_cache'.
6409 * objfiles.c (allocate_objfile): Set allocate and free functions
6410 for the macro cache's objstack.
6411 (free_objfile): Empty the macro cache's obstack.
6412 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6413 set new allocate and free functions for it.
6414 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6415 free functions for the macro cache's objstack. (Why is this
6416 function building its own objfile?)
6417 * symmisc.c (print_objfile_statistics): Print statistics on the
6418 macro bcache.
6419 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6420
c899585b
RE
64212002-05-15 Richard Earnshaw <rearnsha@arm.com>
6422
6423 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6424 (REGISTER_U_ADDR): Delete definition.
6425 (arm_register_u_addr): Delete declaration.
6426
a6cdd8c5
RE
64272002-05-15 Richard Earnshaw <rearnsha@arm.com>
6428
6429 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6430 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6431
c97dcfc7
AC
64322002-05-14 Andrew Cagney <ac131313@redhat.com>
6433
6434 * regcache.c (register_valid): Revise comments refering to "Not
6435 available" and "unavailable".
6436 * frame.c (frame_register_read): Ditto.
6437 * findvar.c (value_of_register): Ditto.
6438
93021b7d
AC
64392002-05-15 Andrew Cagney <cagney@redhat.com>
6440
6441 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6442 (remote-sim.o): Update dependencies.
6443 (d10v-tdep.o): Specify dependencies.
6444 (sim_d10v_h): Define.
6445
a86bc61c
JB
64462002-05-14 Jim Blandy <jimb@redhat.com>
6447
6448 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6449 * macrotab.c (macro_lookup_inclusion, find_definition,
6450 new_macro_table): Same.
6451
6452 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6453 not `! strcmp ()'. This is a dubious improvement.
6454 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6455
6456 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6457 although it's not necessary, to avoid a warning.
6458
2fdde8f8
DJ
64592002-05-14 Daniel Jacobowitz <drow@mvista.com>
6460
6461 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6462 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6463 TYPE_INSTANCE_FLAGS.
6464 (struct main_type): New.
6465 (struct type): Move most members to struct main_type. Change
6466 cv_type and as_type to new type_chain member. Add instance_flags.
6467 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6468 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6469 (finish_cv_type): Remove prototype.
6470 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6471 Set TYPE_CHAIN.
6472 (alloc_type_instance): New function.
6473 (smash_type): New function.
6474 (make_pointer_type, make_reference_type, make_function_type)
6475 (smash_to_member_type, smash_to_method_type): Call smash_type.
6476 (make_qualified_type): New function.
6477 (make_type_with_address_space): Call make_qualified_type.
6478 (make_cv_type): Likewise.
6479 (finish_cv_type): Remove unnecessary function.
6480 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6481 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6482 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6483 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6484 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6485 * hpread.c (hpread_read_struct_type): Likewise.
6486 * stabsread.c (read_struct_type): Likewise.
6487
843fedf4
EZ
64882002-05-14 Elena Zannoni <ezannoni@redhat.com>
6489
6490 * configure.tgt: Add a catch all sh* target, for cases like
6491 sh[2,3,4]-elf and sh-hms.
6492
05a6c72c
KS
64932002-05-14 Keith Seitz <keiths@redhat.com>
6494
6495 * event-loop.c (create_file_handler): Don't do anything but
6496 update data when we are given a fd which we are already
6497 monitoring.
6498
5d085aaf
ML
64992002-05-14 Michal Ludvig <mludvig@suse.cz>
6500
6501 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6502 (update_context): Use __func__ in warnings.
6503
9db8d71f
DJ
65042002-05-14 Daniel Jacobowitz <drow@mvista.com>
6505
6506 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6507 and tcp_close to net_open and net_close.
6508 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6509 using UDP if requested. Don't try to disable Nagle on UDP
6510 sockets.
6511 * remote.c (remote_serial_open): New function. Warn about UDP.
6512 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6513
5dbc6baa
EZ
65142002-05-13 Elena Zannoni <ezannoni@redhat.com>
6515
6516 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6517
cc3023f7
EZ
65182002-05-13 Elena Zannoni <ezannoni@redhat.com>
6519
6520 * configure.tgt: Remove sh-hms target.
6521 * MAINTAINERS: Don't list sh-hms as a separate target.
6522
ec2bcbe7
JB
65232002-05-13 Jim Blandy <jimb@redhat.com>
6524
6525 Add first preprocessor macro-expansion files.
6526 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6527 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6528 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6529 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6530 (COMMON_OBS): Add macrotab.o, macroexp.o.
6531 (macroexp.o, macrotab.o): New rules.
6532
6d531722
AC
65332002-05-13 Andrew Cagney <ac131313@redhat.com>
6534
6535 * config/m88k/tm-m88k.h: Update copyright.
6536 (m88k_target_write_pc): Declare
6537 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6538 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6539 (SHIFT_INST_REGS): Update definition.
6540 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6541 using old definition of TARGET_WRITE_PC.
6542 * regcache.c (generic_target_write_pc): Delete code handling
6543 NNPC_REGNUM.
6544 * gdbarch.sh (NNPC_REGNUM): Delete.
6545 * gdbarch.h, gdbarch.c: Regenerate.
6546
3e3f2739
RE
65472002-05-13 Richard Earnshaw <rearnsha@arm.com>
6548
6549 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6550 builtin reg number.
6551
0004e5a2
DJ
65522002-05-13 Daniel Jacobowitz <drow@mvista.com>
6553
6554 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6555 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6556 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6557 access macros.
6558 * c-typeprint.c (cp_type_print_method_args): Likewise.
6559 (c_type_print_args): Likewise.
6560 * d10v-tdep.c (d10v_push_arguments): Likewise.
6561 (d10v_extract_return_value): Likewise.
6562 * expprint.c (print_subexp): Likewise.
6563 * gdbtypes.c (lookup_primitive_typename): Likewise.
6564 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6565 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6566 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6567 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6568 (TYPE_VECTOR): Likewise.
6569 * hpread.c (hpread_read_struct_type)
6570 (fix_static_member_physnames, fixup_class_method_type)
6571 (hpread_type_lookup): Likewise.
6572 * mdebugread.c (parse_symbol, parse_type): Likewise.
6573 * p-lang.c (is_pascal_string_type): Likewise.
6574 * valops.c (hand_function_call): Likewise.
6575 * x86-64-tdep.c (classify_argument): Likewise.
6576
6577 * hpread.c (hpread_read_function_type)
6578 (hpread_read_doc_function_type): Call replace_type.
6579 * dstread.c (create_new_type): Delete.
6580 (decode_dst_structure, process_dst_function): Call alloc_type.
6581 Use type access macros.
6582
dff95cc7
MK
65832002-05-12 Mark Kettenis <kettenis@gnu.org>
6584
6585 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6586 the're not supported by the current architecture.
6587 (i387_fill_fxsave): Likewise.
6588
bbcd32ad
FF
65892002-05-12 Fred Fish <fnf@redhat.com>
6590
6591 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6592 sect_index_xxx members to index the first slot in section_offsets
6593 if all of the section_offsets are zero.
6594
89cf4787
MK
65952002-05-12 Mark Kettenis <kettenis@gnu.org>
6596
6597 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6598 checked in with last change.
6599
1f77ffc5
MK
66002002-05-12 Mark Kettenis <kettenis@gnu.org>
6601
6602 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6603 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6604 config.sub.
6605
89b8b4a9
DJ
66062002-05-12 Daniel Jacobowitz <drow@mvista.com>
6607
6608 * Makefile.in: Update dependencies.
6609
14a5e767
AC
66102002-05-11 Andrew Cagney <ac131313@redhat.com>
6611
6612 * language.c (local_hex_string_custom): Simplify. Do not depend
6613 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6614
6615 * memattr.c (mem_info_command): Replace calls to
6616 longest_local_hex_string and longest_local_hex_string_custom.
6617 * buildsym.c (make_blockvector): Ditto.
6618 * solib.c (info_sharedlibrary_command): Ditto.
6619 * tracepoint.c (tracepoints_info): Ditto.
6620 * symtab.c (print_msymbol_info): Ditto.
6621
6622 * language.c (local_hex_string): Delete.
6623 (local_hex_string_custom): Delete.
6624 (longest_local_hex_string): Rename to local_hex_string.
6625 (longest_local_hex_string_custom): Rename to
6626 local_hex_string_custom.
6627 * language.h (local_hex_string): Change parameter type to LONGEST.
6628 (local_hex_string_custom): Ditto.
6629 (longest_local_hex_string): Delete declaration.
6630 (longest_local_hex_string_custom): Ditto.
6631
6632 * solib.c: Update copyright.
6633 * memattr.c: Update copyright.
6634
13d01224
AC
66352002-05-11 Andrew Cagney <ac131313@redhat.com>
6636
6637 * arch-utils.h (legacy_register_to_value): Declare.
6638 (legacy_value_to_register): Declare.
6639 (legacy_convert_register_p): Declare.
6640 * arch-utils.c (legacy_register_to_value): New function.
6641 (legacy_value_to_register): New function.
6642 (legacy_convert_register_p): New function.
6643
6644 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6645 (VALUE_TO_REGISTER): Define.
6646 (CONVERT_REGISTER_P): Define.
6647 * gdbarch.h, gdbarch.c: Regenerate.
6648
6649 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6650 VALUE_TO_REGISTER.
6651 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6652 CONVERT_REGISTER_P.
6653
4a1970e4
DJ
66542005-05-11 Daniel Jacobowitz <drow@mvista.com>
6655 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6656
6657 * Makefile.in: Update dependencies for valops.c.
6658 * valops.c: Include "gdb_assert.h".
6659 (typecmp): Skip THIS parameter to methods.
6660 (find_method_list): Remove static_memfuncp argument,
6661 update callers. Check for stub methods.
6662 (find_value_oload_method_list): Don't set *static_memfuncp.
6663 (find_overload_match): Don't check for stub methods. Assert
6664 that methods are not stubbed. Handle static methods.
6665 (value_find_oload_method_list): Remove static_memfuncp argument.
6666 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6667 to the argument list for static stub methods.
6668 * value.h (value_find_oload_method_list): Update prototype.
6669
b2e75d78
AC
66702002-05-11 Andrew Cagney <ac131313@redhat.com>
6671
6672 * arch-utils.h (generic_register_size): Declare.
6673 (generic_register_raw_size, generic_register_virtual_size): Delete
6674 declarations.
6675 * arch-utils.c (generic_register_raw_size): Delete.
6676 (generic_register_size): New function.
6677 (generic_register_virtual_size): Delete.
6678
6679 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6680 default generic_register_size.
6681 * gdbarch.h, gdbarch.c: Re-generate.
6682
6683 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6684 register_virtual_size.
6685 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6686 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6687
451fbdda
AC
66882002-05-11 Andrew Cagney <ac131313@redhat.com>
6689
6690 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6691 * gdbarch.h, gdbarch.c: Regenerate.
6692 * gnu-v3-abi.c: Update copyright.
6693 (vtable_address_point_offset): Update.
6694 (gnuv3_rtti_type): Update.
6695 (gnuv3_baseclass_offset): Update.
6696 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6697 (init_fetch_link_map_offsets): Update.
6698 * remote.c (get_remote_state): Update.
6699
6d2f5cea
DJ
67002002-05-11 Daniel Jacobowitz <drow@mvista.com>
6701
6702 * TODO: Remove value_headof/value_from_vtable_info comment.
6703 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6704 * values.c (value_headof, value_from_vtable_info): Delete.
6705 * value.h (value_from_vtable_info): Delete prototype.
6706
d2324da4
AC
67072002-05-11 Andrew Cagney <ac131313@redhat.com>
6708
6709 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6710 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6711 $(gdb_regex_h).
6712 (gdb_assert_h): Define.
6713 (gdb_wait_h): Define.
6714 (gdb_regex_h): Define.
6715
5c717440
DJ
67162002-05-11 Daniel Jacobowitz <drow@mvista.com>
6717
6718 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6719 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6720
6c7861b3
JT
67212002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6722
6723 * nbsd-tdep.c: Fix comment.
6724
ea5bc2a6
JT
67252002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6726
6727 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6728 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6729 (nbsd-tdep.o): New dependency list.
6730 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6731 nbsd-tdep.h.
6732 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6733 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6734 * nbsd-tdep.c: New file.
6735 * nbsd-tdep.h: New file.
6736 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6737 nbsd-tdep.h.
6738 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6739 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6740 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6741 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6742
b28da865
JT
67432002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6744
6745 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6746 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6747 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6748 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6749 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6750 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6751
4b8ff1fa
JT
67522002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6753
6754 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6755 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6756 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6757 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6758 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6759 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6760 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6761
dfe6eb1f
JT
67622002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6763
6764 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6765 fetch_elfcore_registers to...
6766 * i386nbsd-tdep.c: ...here.
6767 (i386nbsd_use_struct_convention): Rename to...
6768 (i386nbsd_aout_use_struct_convention): ...this.
6769 (i386nbsd_supply_reg): New function.
6770 (i386nbsd_fill_reg): New function.
6771 (fetch_core_registers): Use i386nbsd_supply_reg.
6772 (fetch_elfcore_registers): Likewise.
6773 (_initialize_i386nbsd_tdep): New function.
6774 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6775 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6776 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6777 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6778 (i386nbsd_aout_use_struct_convention): ...this.
6779
20cb8cda
JT
67802002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6781
6782 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6783 (store_inferior_registers): Use shnbsd_fill_reg.
6784 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6785 sh_nbsd_supply_register): Collapse into...
6786 (shnbsd_supply_reg): ...this.
6787 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6788 (shnbsd_fill_reg): ...this.
6789 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6790 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6791 (fetch_core_registers): Use shnbsd_supply_reg.
6792 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6793 (sh_nbsd_core_fns): Rename to...
6794 (shnbsd_core_fns): ...this.
6795 (sh_nbsd_elfcore_fns): Rename to...
6796 (shnbsd_elfcore_fns): ...this.
6797 (sh_nbsd_init_abi): Rename to...
6798 (shnbsd_init_abi): ...this.
6799 (_initialize_sh_nbsd_tdep): Rename to...
6800 (_initialize_shnbsd_tdep): ...this.
6801 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6802 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6803 sh_nbsd_fill_register): Remove prototypes.
6804 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6805
e750d25e
JT
68062002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6807
6808 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6809 (i387-nat.o): Delete dependency list.
6810 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6811 (x86-64-linux-nat.o): Likewise.
6812 * i387-nat.c: Delete file, moving contents to...
6813 * i387-tdep.c: ...here.
6814 * i387-nat.h: Rename...
6815 * i387-tdep.h: ...to this.
6816 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6817 * i386-linux-nat.c: Likewise.
6818 * i386bsd-nat.c: Likewise.
6819 * i386gnu-nat.c: Likewise.
6820 * i386nbsd-nat.c: Likewise.
6821 * i386v4-nat.c: Likewise.
6822 * x86-64-linux-nat.c: Likewise.
6823 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6824 * config/i386/go32.mh (NATDEPFILES): Likewise.
6825 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6826 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6827 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6828 * config/i386/linux.mh (NATDEPFILES): Likewise.
6829 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6830 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6831 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6832 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6833
1aee598a
JT
68342002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6835
6836 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6837 (alphanbsd-nat.o): Remove dependency list.
6838 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6839 * alphanbsd-nat.c: Delete. Contents moved to...
6840 * alphanbsd-tdep.c: ...here.
6841 (_initialize_alphanbsd_tdep): Register core functions.
6842 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6843
12bcb0fe
JT
68442002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6845
6846 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6847 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6848 (alphanbsd-nat.o): Likewise.
6849 (alphabsd-tdep.o): New dependency list.
6850 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6851 (fill_gregset): Use alphabsd_fill_reg.
6852 (supply_fpregset): Use alphabsd_supply_fpreg.
6853 (fill_fpregset): Use alphabsd_fill_fpreg.
6854 (fetch_inferior_registers): Use struct reg and struct fpreg
6855 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6856 and alphabsd_supply_fpreg.
6857 (store_inferior_registers): Use struct reg and struct fpreg
6858 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6859 and alphabsd_fill_fpreg.
6860 * alphabsd-tdep.c: New file.
6861 * alphabsd-tdep.h: New file.
6862 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6863 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6864 alphabsd_supply_fpreg.
6865 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6866 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6867
361d1df0
EC
68682002-05-11 Eric Christopher <echristo@redhat.com>
6869
6870 * mips-tdep.c (mips_double_register_type): Fix thinko.
6871 (mips_single_register_type): Ditto.
6872 * MAINTAINERS: Add self.
6873
92dd7cee
MK
68742002-05-11 Mark Kettenis <kettenis@gnu.org>
6875
6876 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6877 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6878 right thing on architectures with different endianness and/or
6879 integer sizes.
6880
e27da16d
JT
68812002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6882
6883 From Christian Limpach <chris@Pin.LU>
6884 * configure.in: Change sed expression which comments out
6885 NATDEPFILES to also comment out continuation lines.
6886 * configure: Regenerate.
6887
ddde02bd
EZ
68882002-05-10 Elena Zannoni <ezannoni@redhat.com>
6889
6890 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6891 big patch.
6892
1c922164
EZ
68932002-05-10 Elena Zannoni <ezannoni@redhat.com>
6894
6895 * sh-tdep.c: Include correct file.
6896
283150cd
EZ
68972002-05-10 Elena Zannoni <ezannoni@redhat.com>
6898
6899 New support for sh64-elf (sh5) target.
6900
6901 * configure.tgt: For sh64-elf target, default to sh-elf.
6902
6903 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6904 (struct gdbarch_tdep): Add new fields for new registers and ABI
6905 info.
361d1df0 6906
283150cd
EZ
6907 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6908 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6909 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6910 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6911 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6912 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6913 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6914 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6915 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6916 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6917 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6918 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6919 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6920 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6921 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6922 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6923 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6924 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6925 sign_extend, sh64_nofp_frame_init_saved_regs,
6926 sh64_init_extra_frame_info, sh64_get_saved_register,
6927 sh64_extract_struct_value_address, sh64_pop_frame,
6928 sh64_push_arguments, sh64_extract_return_value,
6929 sh64_store_return_value, sh64_show_media_regs,
6930 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6931 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6932 sh_sh64_register_virtual_type,
6933 sh_sh64_register_convert_to_virtual,
6934 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6935 sh64_register_read, sh64_pseudo_register_write,
6936 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6937 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6938 sh64_do_pseudo_register, sh_compact_do_registers_info,
6939 sh64_do_registers_info, sh_gdbarch_init): New functions.
6940
3117ed25
EZ
69412002-05-10 Elena Zannoni <ezannoni@redhat.com>
6942
6943 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6944
2654e6d4
DJ
69452002-05-10 Daniel Jacobowitz <drow@mvista.com>
6946
6947 * linespec.c (decode_line_1): Check for a double quote after
6948 a filename correctly.
6949
9ab3e532
JB
69502002-05-10 Jim Blandy <jimb@redhat.com>
6951
6952 Properly track the size of the current objfile's .debug_line section.
6953 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6954 (DWARF_LINE_SIZE): New macro.
6955 (dwarf2_build_psymtabs_hard): Record the line section's size in
6956 the partial symbol table.
6957 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6958 symbol table.
6959
126fa72d
PS
69602002-05-10 Petr Sorfa <petrs@caldera.com>
6961
6962 * ia64-tdep.c: Handle breakpoints on L instruction type
6963 in MLX instruction bundle by moving the breakpoint to
6964 the third slot (X instruction type) as L holds only data.
6965
1f077a3e
KB
69662002-05-10 Kevin Buettner <kevinb@redhat.com>
6967
6968 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6969 (process_one_symbol): Complain about discarding local symbols
6970 due to a misplaced N_LBRAC entry.
6971
8120c9d5 69722002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
6973
6974 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
6975 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6976 decrease the depth we are at, in the case of templates.
361d1df0 6977
67b2c998
DJ
69782002-05-09 Daniel Jacobowitz <drow@mvista.com>
6979
6980 * mips-tdep.c (mips_float_register_type): New function.
6981 (mips_double_register_type): New function.
6982 (mips_print_register): Use them.
6983 (do_fp_register_row): Likewise.
6984
fd326606
DJ
69852002-05-09 Daniel Jacobowitz <drow@mvista.com>
6986
6609d9af 6987 * signals/signals.c (signals): Remove conditional compilation around
fd326606 6988 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 6989 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 6990
bef35864
MS
69912002-05-09 Michael Snyder <msnyder@redhat.com>
6992
6993 * remote-rdp.c (remote_rdp_can_run): Remove.
6994
c55a3f73
TT
69952002-05-09 Tom Tromey <tromey@redhat.com>
6996
6997 * jv-valprint.c (java_val_print): Handle `char' as a special case
6998 of TYPE_CODE_INT.
6999
b8d5e71d
MS
70002002-05-09 Michael Snyder <msnyder@redhat.com>
7001
7002 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7003 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 7004 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 7005 str r(0123),[sp,#nn].
361d1df0 7006 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
7007 order-independent by placing it in a loop.
7008
e2cd42dd
MS
70092002-05-06 Michael Snyder <msnyder@redhat.com>
7010
7011 * stabsread.c (read_type): Add recognition for new attribute:
7012 "@V;" means that an array type is actually a vector.
7013 This is analogous to the vector flag that's been added to dwarf2.
7014
3ce1502b
MK
70152002-05-09 Mark Kettenis <kettenis@gnu.org>
7016
7017 * i386-tdep.h (i386_abi): New enum.
7018 (struct gdbarch_tdep): Replace os_ident member with abi.
7019 (i386_gdbarch_register_os_abi): New prototype.
7020 * i386-tdep.c (i386_abi_names): New array.
7021 (process_note_abi_tag_sections): Removed.
7022 (process_note_sections): New function.
7023 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7024 (struct i386_abi_handler): New struct.
7025 (i386_abi_handler_list): New variable.
7026 (i386_gdbarch_register_os_abi): New function.
7027 (i386_gdbarch_init): Adapt for the changes given above.
7028
084c156a
DJ
70292002-05-08 Daniel Jacobowitz <drow@mvista.com>
7030
7031 * gregset.h: Say "GNU/Linux".
7032
6599f021
EZ
70332002-05-08 Elena Zannoni <ezannoni@redhat.com>
7034
7035 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7036 (build_gdbtypes): Build builtin_type_v2_float.
7037 (_initialize_gdbtypes): Register new builtin type.
7038
40af4b0c
AC
70392002-05-08 Andrew Cagney <ac131313@redhat.com>
7040
7041 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7042 (clear_gdbarch_swap): New function.
7043 (initialize_non_multiarch): Call.
7044 (gdbarch_update_p): Before calling init(), swap out and clear the
7045 existing architecture.
7046 * gdbarch.c: Regenerate.
7047
4fe84f46
JT
70482002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7049
7050 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7051 alphanbsd-tdep.c.
7052
4015edd1
JT
70532002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7054
7055 * sh-nbsd-nat.c: Rename to...
7056 * shnbsd-nat.c: ...this.
7057 * sh-nbsd-tdep.c: Rename to...
7058 * shnbsd-tdep.c: ...this.
7059 * sh-nbsd-tdep.h: Rename to...
7060 * shnbsd-tdep.h: ...this.
7061 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7062 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7063
0e2bd219
RE
70642002-05-08 Richard Earnshaw <rearnsha@arm.com>
7065
7066 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7067 concatenation for command help messages.
7068
13a38d45
JT
70692002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7070
7071 * NEWS: Note new sh*-*-netbsdelf* configuration.
7072 * configure.host: Set gdb_host_cpu to sh for all sh*.
7073 (sh*-*-netbsdelf*): New host.
7074 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7075 (sh*-*-netbsdelf*): New target.
7076 * sh-nbsd-nat.c: New file.
7077 * sh-nbsd-tdep.c: New file.
7078 * sh-nbsd-tdep.h: New file.
7079 * config/sh/nbsd.mh: New file.
7080 * config/sh/nbsd.mt: New file.
7081 * config/sh/nm-nbsd.h: New file.
7082 * config/sh/tm-nbsd.h: New file.
7083
d658f924
JT
70842002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7085
7086 * sh-tdep.c (sh_osabi_names): Declare.
7087 (process_note_abi_tag_sections): New function.
7088 (get_elfosabi): Ditto.
7089 (sh_gdbarch_register_os_abi): Ditto.
7090 (sh_dump_tdep): Ditto.
7091 _initialize_sh_tdep): Use gdbarch_register to register
7092 sh_gdbarch_init and sh_dump_tdep.
7093 * config/sh/tm-sh.h (sh_osabi): Declare.
7094 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7095
848cfffb
AC
70962002-05-07 Andrew Cagney <ac131313@redhat.com>
7097
7098 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7099 (thumb_scan_prologue): Ditto.
7100 (arm_find_callers_reg): Ditto.
7101 (arm_frame_chain): Ditto.
7102 (arm_init_extra_frame_info): Ditto.
7103 (arm_frame_saved_pc): Ditto.
7104 (arm_pop_frame): Ditto.
7105 (arm_push_return_address): New function.
7106 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7107 call_dummy_location, call_dummy_breakpoint_offset_p,
7108 call_dummy_breakpoint_offset, call_dummy_p,
7109 call_dummy_stack_adjust_p, call_dummy_words,
7110 sizeof_call_dummy_words, call_dummy_start_offset,
7111 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7112 call_dummy_address, push_return_address and push_dummy_frame for
7113 generic dummy frames.
7114
e7d717c0
JT
71152002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7116
7117 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7118 size computation for alloca.
7119 (sh_fp_frame_init_saved_regs): Likewise.
7120
7bbcf283
RE
71212002-05-07 Richard Earnshaw <rearnsha@arm.com>
7122
7123 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7124 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 7125 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
7126 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7127 * remote-rdp.c (remote_rdp_fetch_register): Use
7128 ARM_MAX_REGISTER_RAW_SIZE.
7129 (remote_rdp_store_register): Likewise.
7130
4657573b
ML
71312002-05-07 Michal Ludvig <mludvig@suse.cz>
7132
361d1df0 7133 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
7134 added default labels to switch {} statements.
7135 * x86-64-tdep.c: Ditto.
7136 * x86-64-linux-nat.c: Ditto.
7137
010f3b2f
JT
71382002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7139
7140 * solib.h: Protect against multiple inclusion.
7141
debd256d
JB
71422002-05-06 Jim Blandy <jimb@redhat.com>
7143
9ab3e532
JB
7144 Add first preprocessor macro-expansion files.
7145 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7146 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7147 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7148 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7149 (COMMON_OBS): Add macrotab.o, macroexp.o.
7150 (macroexp.o, macrotab.o): New rules.
7151
debd256d
JB
7152 Separate the job of reading the line number info statement program
7153 header (...expialidocious) out into its own function.
7154 * dwarf2read.c (struct line_head, struct filenames, struct
7155 directories): Replace with...
7156 (struct line_header): New structure, containing the full
7157 contents of the statement program header, including the
7158 include directory and file name tables.
7159 (read_file_scope): If we have line number info, instead of just
7160 calling dwarf_decode_lines to do all the work, call
7161 dwarf_decode_line_header first to get a `struct line_header'
7162 containing the data in the statement program header, and then
7163 pass that to dwarf_decode_lines, which will pick up where that
7164 left off. Be sure to clean up the `struct line_header' object.
7165 (dwarf_decode_line_header, free_line_header, add_include_dir,
7166 add_file_name): New functions.
7167 (dwarf_decode_lines): Move all the code to read the statement
7168 program header into dwarf_decode_line_header. Take the line
7169 header it built as the first argument, instead of the offset to
7170 the compilation unit's line number info. Use the new `struct
7171 line_header' type instead of the old structures. No need to do
7172 cleanups here now, since we don't allocate anything.
7173 (dwarf2_statement_list_fits_in_line_number_section,
7174 dwarf2_line_header_too_long): New complaints.
7175
ac3aafc7
EZ
71762002-05-06 Elena Zannoni <ezannoni@redhat.com>
7177
7178 * gdbtypes.c (init_vector_type): New function.
7179 (build_builtin_type_vec128): Simplify the representation of SIMD
7180 registers.
7181 (build_gdbtypes): Initialize new builtin vector types.
7182 (_initialize_gdbtypes): Register new vector types with gdbarch.
7183 (builtin_type_v4_float, builtin_type_v4_int32,
7184 builtin_type_v8_int16, builtin_type_v16_int8,
7185 builtin_type_v2_int32, builtin_type_v4_int16,
7186 builtin_type_v8_int8): New (renamed) SIMD types.
7187
13e49980
MK
71882002-05-06 Mark Kettenis <kettenis@gnu.org>
7189
7190 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7191 (i387_fill_fxsave): Likewise.
7192
997b20b8
AO
71932002-05-05 Alexandre Oliva <aoliva@redhat.com>
7194
7195 * alpha-tdep.c (alpha_extract_return_value): Don't use
7196 non-constant array size in prototype.
7197
535c96ce
AC
71982002-05-04 Andrew Cagney <ac131313@redhat.com>
7199
7200 From Brian Taylor <briant at model dot com>:
7201 * ui-out.c (ui_out_field_core_addr): Use the function
7202 longest_local_hex_string_custom'to format addresses > 32 bits
7203 wide.
7204
7205 * ui-out.c (ui_out_field_core_addr): Update comment.
7206
bedfa57b
AC
72072002-05-04 Andrew Cagney <ac131313@redhat.com>
7208
7209 * stack.c (select_and_print_frame): Make static. Delete the
7210 parameter `level'.
7211 (func_command): Update call.
7212 (select_frame_command): Delete code computing the frame level.
7213 * frame.h (select_and_print_frame): Delete declaration.
7214
f621c63e
AC
72152002-05-04 Andrew Cagney <ac131313@redhat.com>
7216
7217 * sparc-tdep.c (sparc_get_saved_register): Comment why
7218 get_prev_frame call is safe.
7219
0f7d239c
AC
72202002-05-04 Andrew Cagney <ac131313@redhat.com>
7221
7222 * frame.h (select_frame): Delete level parameter.
7223 * stack.c (select_frame): Update. Use frame_relative_level to
7224 obtain the frame's level.
7225 (select_and_print_frame): Update call.
7226 (select_frame_command): Ditto.
7227 (up_silently_base): Ditto.
7228 (down_silently_base): Ditto.
7229 * ocd.c (ocd_start_remote): Ditto.
7230 * remote-rdp.c (remote_rdp_open): Ditto.
7231 * remote-mips.c (mips_initialize): Ditto.
7232 (common_open): Ditto.
7233 * remote-e7000.c (e7000_start_remote): Ditto.
7234 * m3-nat.c (select_thread): Ditto.
7235 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7236 (child_get_current_exception_event): Ditto.
7237 * varobj.c (varobj_create): Ditto.
7238 (varobj_update): Ditto.
7239 (c_value_of_root): Ditto.
7240 * tracepoint.c (finish_tfind_command): Ditto.
7241 * corelow.c (core_open): Ditto.
7242 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7243 * thread.c (info_threads_command): Ditto.
7244 (switch_to_thread): Ditto.
7245 * infrun.c (normal_stop): Ditto.
7246 (restore_selected_frame): Ditto.
7247 (restore_inferior_status): Ditto.
7248 * breakpoint.c (insert_breakpoints): Ditto.
7249 (watchpoint_check): Ditto.
7250 (bpstat_stop_status): Ditto.
7251 (do_enable_breakpoint): Ditto.
7252 * blockframe.c (flush_cached_frames): Ditto.
7253 (reinit_frame_cache): Ditto.
7254
71d6c7b1
AC
72552002-05-04 Andrew Cagney <ac131313@redhat.com>
7256
7257 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7258 maintainer.
7259
cda6c68a
JB
72602002-05-04 Jim Blandy <jimb@redhat.com>
7261
7262 * gdbtypes.c (replace_type): Doc fix.
7263
5c1c87f0
AC
72642002-05-04 Andrew Cagney <ac131313@redhat.com>
7265
7266 * valprint.c (strcat_longest): Delete commented out function.
7267 Update copyright.
7268
cd9bfe15
AC
72692002-05-04 Andrew Cagney <ac131313@redhat.com>
7270
7271 * MAINTAINERS: Mark a29k as deleted.
7272 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7273 Move new configurations to the top.
7274 * configure.tgt: Remove a29k.
7275 * config/a29k/tm-vx29k.h: Delete.
7276 * config/a29k/vx29k.mt: Delete.
7277 * config/a29k/tm-a29k.h: Delete.
7278 * config/a29k/a29k-udi.mt: Delete.
7279 * config/a29k/a29k.mt: Delete.
7280 * a29k-tdep.c: Delete.
7281 * remote-udi.c: Delete.
7282 * remote-mm.c: Delete.
7283 * remote-eb.c: Delete.
7284 * remote-adapt.c: Delete.
7285 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
7286 * config/s390/s390x.mt: Ditto.
7287 * config/s390/s390.mt: Ditto.
7288 * config/sparc/sparclynx.mh: Ditto.
7289 * config/sparc/linux.mh: Ditto.
7290 * config/pa/hppaosf.mh: Ditto.
7291 * config/pa/hppabsd.mh: Ditto.
7292 * config/ns32k/nbsd.mt: Ditto.
7293 * config/mips/vr5000.mt: Ditto.
7294 * config/m68k/sun3os4.mh: Ditto.
7295 * config/m68k/nbsd.mt: Ditto.
7296 * config/m68k/m68klynx.mh: Ditto.
7297 * config/m32r/m32r.mt: Ditto.
7298 * config/i386/x86-64linux.mt: Ditto.
7299 * config/i386/nbsdelf.mt: Ditto.
7300 * config/i386/nbsd.mt: Ditto.
7301 * config/i386/i386lynx.mh: Ditto.
7302
bf0c5130
AC
73032002-05-04 Andrew Cagney <ac131313@redhat.com>
7304
7305 * target.c (debug_print_register): New function. Handle oversize
7306 registers.
7307 (debug_to_fetch_registers): Call.
7308 (debug_to_store_registers): Call.
7309
2ae1c2d2
JB
73102002-05-03 Jim Blandy <jimb@redhat.com>
7311
13a393b0
JB
7312 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7313 (read_type): Doc fix.
7314 * gdbtypes.c (replace_type): Doc fix.
7315
2ae1c2d2
JB
7316 * stabsread.c (multiply_defined_struct): New complaint.
7317 (read_struct_type): If the type we were passed isn't empty, or
7318 incomplete, don't read the new struct type into it; complain,
7319 and return the original type unchanged. Take a new `type_code'
7320 argument, which is the type code for the new type.
7321 (read_type): Rather than storing the type's type code here, pass
7322 it as an argument to read_struct_type, and let that take care of
7323 storing it. That way, we don't overwrite the original type code,
7324 so read_struct_type can use it to decide whether we're overwriting
7325 something we shouldn't.
7326 (complain_about_struct_wipeout): New function.
7327
8de9bdc4
AC
73282002-05-03 Andrew Cagney <ac131313@redhat.com>
7329
7330 * gdbarch.sh: Assert that gdbarch is non-NULL.
7331 * gdbarch.c: Regenerate.
7332
f773fdbb
JM
73332002-05-03 Jason Merrill <jason@redhat.com>
7334
7335 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7336 and return NULL.
7337
0e04a514
ML
73382002-05-03 Michal Ludvig <mludvig@suse.cz>
7339
7340 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7341 (x86_64_dwarf2gdb_regno_map_length),
7342 (x86_64_dwarf2_reg_to_regnum): Added.
7343 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7344 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7345 (_initialize_x86_64_tdep): Synced with the change above.
7346 (x86_64_skip_prologue): Reformulated message.
7347
065432a8
PM
73482002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7349
7350 * f-exp.y: Also use new prev_lexptr variable
7351 to improve error reporting. Based on Michael Snyder
7352 2002-04-24 dated patch to c-exp.y.
7353 * jv-exp.y: Likewise.
7354 * m2-exp.y: Likewise.
7355
a3162708
EZ
73562002-05-02 Elena Zannoni <ezannoni@redhat.com>
7357
7358 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7359 we are dealing with vectors.
7360
03620c38
PM
73612002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7362
7363 * config/m68k/tm-nbsd.h: Obvious fix,
7364 correct machine name.
7365
6604db2e
PM
73662002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7367
7368 * p-typeprint.c (pascal_type_print_base): Add support
7369 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7370
0906b739
PM
73712002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7372
7373 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7374 for fondamental pascal 'char' type.
7375
e2625b33
PM
73762002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7377
7378 * p-lang.h (is_pascal_string_type): Declaration changed,
7379 new sixth argument of type char ** added.
361d1df0 7380 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
7381 changed. Args length_pos, length_size, string_pos, char_size
7382 can now be NULL. New argument arrayname set to the field
7383 name of the char array. Return value set to char array
7384 field index plus one.
361d1df0 7385 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
7386 is_pascal_string_type function.
7387
cf17c188
AC
73882002-05-02 Andrew Cagney <cagney@redhat.com>
7389
7390 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7391 <cagney@redhat.com> change.
7392 * gdbarch.c: Regenerate.
7393
52bca491
AC
73942002-05-02 Andrew Cagney <cagney@redhat.com>
7395
7396 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7397 before probing for a new one. Detect errorenous gdbarch_init
7398 functions.
7399 * gdbarch.c: Regenerate.
7400
d5e72505
AC
74012002-05-01 Andrew Cagney <cagney@redhat.com>
7402
7403 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7404 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7405 * config/v850/tm-v850.h: Ditto. Update copyright.
7406
af566d9f
AC
74072002-04-30 Andrew Cagney <ac131313@redhat.com>
7408
7409 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7410 current_gdbarch.
7411
880d85fa
MS
74122002-04-30 Michael Snyder <msnyder@redhat.com>
7413
94c30b78
MS
7414 * arm-tdep.c: Whitespace clean-ups.
7415 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7416 should have been removed as part of 4/24 change.
7417
6f5987a6
KB
74182002-04-30 Kevin Buettner <kevinb@redhat.com>
7419
7420 * rs6000-tdep.c: Added comment describing how fpscr register
7421 numbers were chosen.
7422
1a113c93
MS
74232002-04-30 Michael Snyder <msnyder@redhat.com>
7424
7425 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7426
9a6f53fe
EZ
74272002-04-29 Elena Zannoni <ezannoni@redhat.com>
7428
7429 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7430 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7431 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7432
11ed25ac
KB
74332002-04-29 Kevin Buettner <kevinb@redhat.com>
7434
7435 From Louis Hamilton <hamilton@redhat.com>:
7436 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7437 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7438 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7439 not bfd-private xcoff data, to determine wordsize.
7440 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7441
ae232405
AC
74422002-04-29 Andrew Cagney <ac131313@redhat.com>
7443
7444 GDB 5.2 released from 5.2 branch.
7445
91fd20f7
ML
74462002-04-29 Michal Ludvig <mludvig@suse.cz>
7447
7448 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7449 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7450 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7451
2dc5091b
EZ
74522002-04-29 Elena Zannoni <ezannoni@redhat.com>
7453
7454 * rs6000-tdep.c (rs6000_extract_return_value,
7455 rs6000_store_return_value): Handle returning vectors.
7456 (rs6000_gdbarch_init): Use
7457 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7458 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7459 New function.
7460 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7461 vectors.
7462 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7463 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7464
2b9848d8
PM
74652002-04-24 Pierre Muller <ics.u-strasbg.fr>
7466
7467 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7468 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7469 with fprintf_unfiltered (gdb_stderr,...).
7470
f8d17dc5
PM
74712002-04-24 Pierre Muller <ics.u-strasbg.fr>
7472
7473 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7474 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7475 Replace fprintf (stderr,...
7476 with fprintf_unfiltered (gdb_stderr,....
7477 * remote-es.c: Likewise.
7478 * remote-os9k.c: Likewise.
7479 * remote-st.c: Likewise.
7480
2f2f1ad1
AS
74812002-04-28 Andreas Schwab <schwab@suse.de>
7482
7483 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7484 linux-proc.o and gcore.o.
7485
b6779aa2
AC
74862002-04-26 Michal Ludvig <mludvig@suse.cz>
7487
7488 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7489 code without frame pointers.
7490
7e57f5f4
AC
74912002-04-26 Andrew Cagney <ac131313@redhat.com>
7492
7493 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7494 ON_STACK is needed.
7495
2ceb85d0
BE
74962002-04-26 Ben Elliston <bje@redhat.com>
7497
7498 * target.c (do_xfer_memory): Correct reference to the new option
7499 "trust-readonly-sections".
7500
f5f8a009
EZ
75012002-04-26 Elena Zannoni <ezannoni@redhat.com>
7502
7503 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7504 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7505 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7506 vectors.
7507 (read_array_type): Record the fact that this array type is really a
7508 vector (i.e. are passed in by value).
7509
5868c862
JT
75102002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7511
7512 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7513 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7514 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7515 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7516 * alpha-linux-tdep.c: Include frame.h.
7517 (alpha_linux_sigcontext_addr): New function.
7518 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7519 alpha_linux_sigcontext_addr.
7520 * alpha-osf1-tdep.c: Include gdbcore.h.
7521 (alpha_osf1_sigcontext_addr): New function.
7522 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7523 alpha_osf1_sigcontext_addr.
7524 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7525 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7526
bfb01f37
AC
75272002-04-26 Andrew Cagney <ac131313@redhat.com>
7528
361d1df0 7529 * stack.c (selected_frame_level):
bfb01f37
AC
7530 (select_frame): Do not set selected_frame_level.
7531 * frame.h (selected_frame_level): Delete declaration.
7532
15813d3f
AC
75332002-04-26 Andrew Cagney <ac131313@redhat.com>
7534
7535 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7536 convert_from_func_ptr-addr when AIX / PowerOpen.
7537
6096c27a
AC
75382002-04-25 Andrew Cagney <ac131313@redhat.com>
7539
7540 * valops.c (hand_function_call): Call
7541 generic_save_call_dummy_addr.
7542 * frame.h (generic_save_call_dummy_addr): Declare.
7543 * blockframe.c (struct dummy_frame): Add fields call_lo and
7544 call_hi.
7545 (generic_find_dummy_frame): Check for PC in range call_lo to
7546 call_hi instead of entry_point_address.
7547 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7548 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7549 (generic_save_call_dummy_addr): New function.
7550
f510d44e
DM
75512002-04-24 David S. Miller <davem@redhat.com>
7552
7553 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7554 sparc_skip_prologue.
7555 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7556 information to find prologue when possible.
7557 (sparc_prologue_frameless_p): Call examine_prologue directly.
7558 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7559 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7560 second argument.
7561 (SKIP_PROLOGUE): Likewise.
7562
15d72a92
JT
75632002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7564
7565 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7566 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7567 indicate that the condition it was testing is always true.
7568 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7569 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7570 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7571
accc6d1f
JT
75722002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7573
7574 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7575 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7576 tdep->jb_pc and tdep->jb_elt_size.
7577 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7578 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7579 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7580 * alpha-nat.c (get_longjmp_target): Remove.
7581 (JB_ELEMENT_SIZE): Ditto.
7582 (JB_PC): Ditto.
7583 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7584 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7585 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7586 to alpha_get_longjmp_target.
7587 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7588 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7589 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7590
1bfdc549
AC
75912002-04-25 Andrew Cagney <ac131313@redhat.com>
7592
7593 * README: Update to GDB 5.2.
7594
1bd316f0
AC
75952002-04-25 Andrew Cagney <ac131313@redhat.com>
7596
7597 * gdbarch.sh (LC_ALL): Set to `c'.
7598
2e5ff58c
TR
75992002-04-25 Theodore A. Roth <troth@verinet.com>
7600
7601 * avr-tdep.c: Ran through gdb_indent.sh.
7602
e33ce519
TR
76032002-04-25 Theodore A. Roth <troth@verinet.com>
7604
7605 * MAINTAINERS: Add myself as AVR maintainer.
7606 * NEWS: Note new target avr.
7607
8818c391
TR
76082002-04-25 Theodore A. Roth <troth@verinet.com>
7609
7610 * Makefile.in: Add support for AVR target.
7611 * configure.tgt: Add support for AVR target.
7612 * avr-tdep.c: New file
7613 * config/avr/avr.mt: New file.
7614
79509c2d
TR
76152002-04-25 Theodore A. Roth <troth@verinet.com>
7616
7617 * MAINTAINERS: Add myself to write-after-approval.
7618
dac8068e
PM
76192002-04-24 Pierre Muller <ics.u-strasbg.fr>
7620
7621 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7622 with fprintf_unfiltered (gdb_stderr,....
7623
25bf3106
PM
76242002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7625
7626 Fix PR gdb/508.
7627 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7628
24467a86
PM
76292002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7630
7631 * p-exp.y: Also use new prev_lexptr variable
7632 to improve error reporting. Based on Michael Snyder
7633 2002-04-24 dated patch to c-exp.y.
7634
95b80706
JT
76352002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7636
7637 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7638 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7639 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7640 to 0.
7641 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7642 and struct value.
7643 (FUNCTION_START_OFFSET): Remove.
7644 (BREAKPOINT): Ditto.
7645
e90cc612
JT
76462002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7647
7648 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7649 * NEWS: Ditto.
7650
6c72f9f9
JT
76512002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7652
7653 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7654 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7655 alpha_linux_pc_in_sigtramp.
7656 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7657 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7658 alpha_osf1_pc_in_sigtramp.
7659 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7660 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7661 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7662 alphafbsd_pc_in_sigtramp.
7663 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7664 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7665 alphanbsd_pc_in_sigtramp.
7666 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7667 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7668
5e4f3379
JT
76692002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7670
7671 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7672
da8ca43d
JT
76732002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7674
7675 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7676 alphanbsd-tdep.c.
7677 (alphanbsd-nat.o): New dependency list.
7678 (alphanbsd-tdep.o): Ditto.
7679 * NEWS: Note new native NetBSD/alpha configuration.
7680 * alphanbsd-nat.c: New file.
7681 * alphanbsd-tdep.c: Ditto.
7682 * configure.host (alpha*-*-netbsd*): New host.
7683 * configure.tgt (alpha*-*-netbsd*): New target.
7684 * config/alpha/nbsd.mh: New file.
7685 * config/alpha/nbsd.mt: Ditto.
7686 * config/alpha/nm-nbsd.h: Ditto.
7687 * config/alpha/tm-nbsd.h: Ditto.
7688
36a6271d
JT
76892002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7690
7691 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7692 (alpha-osf1-tdep.o): New dependency list.
7693 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7694 and skip_sigtramp_frame members.
7695 * alpha-linux-tdep.c: Include gdbcore.h.
7696 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7697 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7698 * alpha-osf1-tdep.c: New file.
7699 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7700 alpha-osf1-dep.c.
7701 (alpha_frame_past_sigtramp_frame): New function.
7702 (alpha_dynamic_sigtramp_offset): Ditto.
7703 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7704 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7705 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7706 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7707 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7708 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7709 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7710 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7711 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7712 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7713 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7714 to find_solib_trampoline_target.
7715 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7716 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7717 (SKIP_TRAMPOLINE_CODE): Remove.
7718 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7719 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7720 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7721 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7722 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7723 (PROC_SIGTRAMP_MAGIC): Ditto.
7724 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7725 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7726 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7727 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7728 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7729
2f4bc57b
JT
77302002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7731
7732 * NEWS: Note that Alpha targets are now multi-arch.
7733
665132f9
MS
77342002-04-24 Michael Snyder <msnyder@redhat.com>
7735
7736 * parser-defs.h (prev_lexptr): New external variable.
7737 * parse.c (parse_exp_1): Set prev_lexptr to null before
7738 calling the language-specific parser.
7739 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7740 (yyerror): Use prev_lexptr in error reporting.
7741
32872fa7
DJ
77422002-04-24 Daniel Jacobowitz <drow@mvista.com>
7743
7744 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7745 * gregset.h: If FILL_FPXREGSET is defined, provide
7746 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7747 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7748 is defined, call fill_fpxregset.
7749
57e76fac
MS
77502002-04-24 Roland McGrath <roland@frob.com>
7751
7752 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7753 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7754 (supply_gregset, supply_fpregset): New functions.
7755
7756 * gnu-nat.c (gnu_find_memory_regions): New function.
7757 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7758 (gnu_xfer_memory): Add a cast.
7759
f43845b3
MS
77602002-04-24 Michael Snyder <msnyder@redhat.com>
7761
361d1df0 7762 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7763 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7764 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7765 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7766 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7767 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7768
a0abec03
AC
7769Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7770
7771 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7772 NUM_PSEUDO_REGS can be used.
7773
d7bd68ca
AC
77742002-04-24 Andrew Cagney <ac131313@redhat.com>
7775
7776 * arch-utils.h: Update copyright.
7777
7778 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7779 * gdbarch.h, gdbarch.c: Re-generate.
7780
7781 * inferior.h (IN_SIGTRAMP): Delete definition.
7782 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7783 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7784
7785 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7786 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7787 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7788 (find_proc_framesize): Ditto.
7789 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7790 (alpha_init_extra_frame_info): Ditto.
7791 * infrun.c (handle_inferior_event): Ditto.
7792 (handle_inferior_event): Ditto.
7793 (check_sigtramp2): Ditto.
7794 * blockframe.c (create_new_frame): Ditto.
7795 (get_prev_frame): Ditto.
7796 * ppc-linux-tdep.c: Update comments.
7797 * i386-linux-tdep.c: Update comments.
7798 * breakpoint.c (bpstat_what): Update comment.
7799
4867e41e
DM
78002002-04-24 David S. Miller <davem@redhat.com>
7801
21d83aa5
DM
7802 * i960-tdep.c (register_in_window_p): New function.
7803 (i960_find_saved_register): Use it instead of
7804 REGISTER_IN_WINDOW_P.
7805 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7806
4867e41e
DM
7807 * symtab.h (find_stab_function_addr): Kill extern.
7808 * minsyms.c (find_stab_function_addr): Remove from here...
7809 * dbxread.c: ... to here, and mark it static.
7810
69cdf6a2
DM
78112002-04-20 David S. Miller <davem@redhat.com>
7812
7813 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7814 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7815
5a595886
DM
78162002-04-21 David S. Miller <davem@redhat.com>
7817
7818 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7819 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7820 (vx_write_register): Likewise.
7821
1da1a192
JB
78222002-04-23 J. Brobecker <brobecker@gnat.com>
7823
7824 * source.c (is_regular_file): New function.
7825 (openp): Check wether file to open is a regular file
7826 to avoid opening directories.
7827
baa6f10b
JT
78282002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7829
7830 * findvar.c (extract_signed_integer): Cast printf argument
7831 to suppress format warning.
7832 (extract_unsigned_integer): Likewise.
7833 * infcmd.c (registers_info): Likewise.
7834 * top.c (get_prompt_1): Likewise.
7835 * valops.c (value_assign): Likewise.
7836 * valprint.c (print_decimal): Likewise.
7837
b2c4da81
L
78382002-04-22 H.J. Lu (hjl@gnu.org)
7839
7840 * c-exp.y (typebase): Support
361d1df0 7841
b2c4da81
L
7842 [long|long long|short] [signed|unsigned] [int|]
7843
7844 and
7845
7846 signed [long|long long|short] int
7847
f267bd6a
JT
78482002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7849
7850 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7851 and vax-tdep.h.
7852 * vax-tdep.h: New file.
7853 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7854 Make several routines static.
7855 (vax_get_saved_register): New function.
7856 (vax_gdbarch_init): New function.
7857 (_initialize_vax_tdep): Register vax_gdbarch_init.
7858 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7859 Remove macros now under the control of gdbarch.
7860
da3c6d4a
MS
78612002-04-22 Michael Snyder <msnyder@redhat.com>
7862
11d3b27d
MS
7863 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7864 Some whitespace and coding standards tweaks.
da3c6d4a 7865
a33f7558
JT
78662002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7867
7868 * vax-tdep.c: Include regcache.h.
7869 (vax_call_dummy_words): New.
7870 (sizeof_vax_call_dummy_words): New.
7871 (vax_fix_call_dummy): New function.
7872 (vax_saved_pc_after_call): Ditto.
7873 * config/vax/tm-vax.h: Don't include regcache.h.
7874 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7875 (CALL_DUMMY): Remove.
7876 (CALL_DUMMY_WORDS): Define.
7877 (SIZEOF_CALL_DUMMY_WORDS): Define.
7878 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7879
47a73475
MS
78802002-04-18 Michael Snyder <msnyder@redhat.com>
7881
7882 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7883
52efde73
JT
78842002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7885
7886 * vax-tdep.c (vax_frame_chain): New function.
7887 (vax_push_dummy_frame): Ditto.
7888 (vax_pop_frame): Ditto.
7889 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7890 (FRAMELESS_FUNCTION_INVOCATION): Use
7891 generic_frameless_function_invocation_not.
7892 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7893 (POP_FRAME): Use vax_pop_frame.
7894
ea74468c
JT
78952002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7896
7897 * vax-tdep.c (vax_store_struct_return): New function.
7898 (vax_extract_return_value): Ditto.
7899 (vax_store_return_value): Ditto.
7900 (vax_extract_struct_value_address): Ditto.
7901 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7902 vax_store_struct_return.
7903 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7904 (STORE_RETURN_VALUE): Use vax_store_return_value.
7905 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7906
5516aa92
JT
79072002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7908
7909 * vax-tdep.c (vax_frame_saved_pc): New function.
7910 (vax_frame_args_address_correct): Ditto.
7911 (vax_frame_args_address): Ditto.
7912 (vax_frame_locals_address): Ditto.
7913 (vax_frame_num_args): Move code to be in proximity to
7914 other frame-related functions.
7915 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7916 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7917 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7918 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7919 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7920
36af0b35
L
79212002-04-22 H.J. Lu (hjl@gnu.org)
7922
7923 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7924 includedir.
7925
ab62c900
JT
79262002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7927
7928 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7929 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7930 (FRAME_INIT_SAVED_REGS): New macro.
7931
7232b100
JT
79322002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7933
7934 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7935
b70d2aee
JT
79362002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7937
7938 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7939 where needed.
7940 (fetch_osf_core_registers): Likewise.
7941 (supply_gregset): Likewise.
7942
a0e8a2d1 79432002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 7944
a0e8a2d1
JB
7945 * symfile.h (get_section_index): Define.
7946 * symfile.c (get_section_index): New function.
7947 * mdebugread.c (SC_IS_SBSS): New macro.
7948 (SC_IS_BSS): Return true for the scBss storage class only, as
7949 the scSBss storage class refers to the .sbss section.
7950 (parse_partial_symbols): Discard the symbols which associated
7951 section does not exist.
7952 Make sure to use the .sbss section index for symbols which
7953 storage class is scBss, rather than using the .bss section index.
7954
51eb8b08
JT
79552002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7956
7957 * vax-tdep.c: Update copyright years.
7958 (vax_register_name): New function.
7959 (vax_register_byte): Ditto.
7960 (vax_register_raw_size): Ditto.
7961 (vax_register_virtual_size): Ditto.
7962 (vax_register_virtual_type): Ditto.
7963 * config/vax/tm-vax.h: Update copyright years.
7964 (REGISTER_NAMES): Remove.
7965 (REGISTER_NAME): Define.
7966 (REGISTER_BYTE): Use vax_register_byte.
7967 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7968 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7969 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7970
6cc1c0a8
AC
79712002-04-21 Andrew Cagney <ac131313@redhat.com>
7972
7973 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7974 declaration
7975 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7976
9319a2fe
DM
79772002-04-21 David S. Miller <davem@redhat.com>
7978
7979 * arch-utils.c (generic_prologue_frameless_p): Kill
7980 SKIP_PROLOGUE_FRAMELESS_P code.
7981 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7982 references.
7983 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7984 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7985 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7986 references.
7987 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7988 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7989 (sparc_gdbarch_init): Pass it to
7990 set_gdbarch_prologue_frameless_p.
a0e8a2d1 7991
e9ed6d01
JT
79922002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7993
7994 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7995 (alphabsd-nat.o): New dependency list.
7996
36012033
JT
79972002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7998
7999 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8000 alphafbsd-tdep.c.
8001 (alpha-linux-tdep.o): New dependency list.
8002 (alphafbsd-tdep.o): Likewise.
8003
3379287a
JT
80042002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8005
8006 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8007 to here...
8008 * alpha-tdep.c: ...from here.
8009 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8010
4bcbd6cb
JT
80112002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8012
8013 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8014 prototype from here...
8015 * alpha-tdep.h: ...to here.
8016
b31da25e
AC
80172002-04-21 Andrew Cagney <ac131313@redhat.com>
8018
8019 * frame.h (selected_frame_level): Document as deprecated.
8020 (frame_relative_level): Declare.
8021 * stack.c (frame_relative_level): New function.
8022 (selected_frame_level): Document as deprecated.
8023 (select_frame): Do not set the selected_frame_level.
8024
8025 * stack.c (frame_info, record_selected_frame): Update.
8026 (frame_command, current_frame_command): Update.
8027 (up_silently_base, up_command, down_silently_base): Update.
8028 (down_command): Update.
8029 * inflow.c (kill_command): Update.
8030 * tracepoint.c (finish_tfind_command): Update.
8031 * corelow.c (core_open): Update.
8032 * thread.c (info_threads_command): Update.
8033 (do_captured_thread_select): Update.
8034 * infcmd.c (finish_command): Update.
8035 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8036
9c1d6fe5
JT
80372002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8038
8039 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8040
ab89facf
AC
80412002-04-21 Andrew Cagney <ac131313@redhat.com>
8042
8043 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8044 type const.
8045
82a4efa1
JT
80462002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8047
8048 * alphafbsd-tdep.c: Update copyright years. Include
8049 alpha-tdep.h.
8050 (alphafbsd_use_struct_convention): Make static.
8051 (alphafbsd_init_abi): New function.
8052 (_initialize_alphafbsd_tdep): New function.
8053 * config/alpha/tm-fbsd.h: Update copyright years.
8054 (USE_STRUCT_CONVENTION): Remove.
8055
44dffaac
JT
80562002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8057
8058 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8059 an Alpha ABI variant.
8060 (alpha_abi_handler_list): Declare.
8061 (alpha_gdbarch_register_os_abi): New function.
8062 (alpha_gdbarch_init): Give registered ABI variant handlers a
8063 chance to tweak the gdbarch once we have set up defaults.
8064 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8065
65585be4
JT
80662002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8067
8068 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8069 to standard_coerce_float_to_double.
8070 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8071
d9b023cc
JT
80722002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8073
8074 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8075 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8076 from gdbarch_tdep rather than a constant.
8077 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8078 the default text address for all Alpha Unix ABIs.
8079 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8080 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8081
dc129d82
JT
80822002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8083
8084 * alpha-tdep.h: New file. Includes several Alpha target constants
8085 taken from...
8086 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8087 let gdbarch deal with.
8088 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8089 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8090 to dependency list.
8091 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8092 Alpha target register names.
8093 * alphabsd-nat.c: Likewise.
8094 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8095 Alpha target register names. Make serveral routines static.
8096 (alpha_get_saved_register): New function.
8097 (alpha_abi_names): New.
8098 (process_note_abi_tag_sections): New function.
8099 (get_elfosabi): New function.
8100 (alpha_gdbarch_init): New function.
8101 (alpha_dump_tdep): New function.
8102 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8103
d49d1e0a
AC
81042002-04-21 Andrew Cagney <ac131313@redhat.com>
8105
8106 * frame.c (find_saved_register): Delete #ifdef
8107 HAVE_REGISTER_WINDOWS code.
8108 * config/sparc/tm-sparc.h: Update comments.
8109 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8110
92e8c9ed
AC
81112002-04-21 Andrew Cagney <ac131313@redhat.com>
8112
8113 * i960-tdep.c (i960_find_saved_register): New function.
8114 (i960_get_saved_register): New function.
8115 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8116 (i960_get_saved_register): Declare.
8117 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8118
e1925118
DM
81192002-04-20 David S. Miller <davem@redhat.com>
8120
8121 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8122
29673b29
AC
81232002-04-20 Andrew Cagney <ac131313@redhat.com>
8124
8125 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8126 instead of NUM_PSEUDO_REGS.
8127
6c86dcd5
DM
81282002-04-20 David S. Miller <davem@redhat.com>
8129
8130 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8131 GDB_MULTI_ARCH_PARTIAL
8132 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8133 define, let tm-sp64.h do it.
8134
aa40ec90
JT
81352002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8136
8137 * frame.c (find_saved_register): Avoid a NULL pointer
8138 dereference and actually walk the frame list.
8139
0f79675b
AC
81402002-04-20 Andrew Cagney <ac131313@redhat.com>
8141
8142 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8143 sorted in most most-recent-used order. Document.
8144 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8145
f91305dd 81462002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
8147
8148 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8149 instead of ->prev.
8150 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8151 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8152 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8153 instead of ->prev.
8154
73d322b1
EZ
81552002-04-19 Elena Zannoni <ezannoni@redhat.com>
8156
8157 Fix PR gdb/471.
8158 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8159 (build_builtin_type_vec128): Ditto.
8160 (append_composite_type_field): Fix calculation of type length in
8161 union case.
8162
ccd9a834
EZ
81632002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8164
8165 * config/djgpp/README: Update.
8166
8167 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8168 compiler warnings.
8169
a57f9e49
JT
81702002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8171
8172 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8173 (alpha_setup_arbitrary_frame): ...to this.
8174 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8175 for alpha_setup_arbitrary_frame.
8176
f4f9705a
AC
81772002-04-18 Andrew Cagney <cagney@redhat.com>
8178
8179 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8180 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8181
f4f9705a
AC
8182 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8183 * target.h (memory_breakpoint_from_pc): Update declaration.
8184 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8185
8186 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8187 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8188 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8189 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8190 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8191 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8192 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8193 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8194 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8195 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8196 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8197 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8198
8199 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8200 const pointer.
8201 * monitor.c (monitor_insert_breakpoint): Ditto.
8202 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8203
8204 * config/mcore/tm-mcore.h: Update copyright.
8205 * mem-break.c: Ditto.
8206 * xstormy16-tdep.c: Ditto.
8207
29f319b8
PM
82082002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8209
8210 * p-exp.y: Add precedence rule for '^' token.
8211 This removes the shift/reduce conflicts.
8212 Remove the comment concerning these shift/reduce conflicts.
8213
ebeac11a
EZ
82142002-04-18 Elena Zannoni <ezannoni@redhat.com>
8215
8216 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8217 (registers_powerpc_nofp): New register set for processors
8218 without floating point unit.
8219
27c31547
DM
82202002-04-18 David S. Miller <davem@redhat.com>
8221
8222 * MAINTAINERS: Add myself to write-after-approval.
8223
47a73475
MS
82242002-04-17 Michael Snyder <msnyder@redhat.com>
8225
8226 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8227
953836b2
AC
82282002-04-17 Andrew Cagney <ac131313@redhat.com>
8229
8230 * rs6000-tdep.c (frame_initial_stack_address): Use
8231 frame_register_read to read the alloca_reg.
8232
8b0d4340
AC
82332002-04-17 Andrew Cagney <ac131313@redhat.com>
8234
8235 * frame.c (find_saved_register): Find saved registers in the next
8236 not prev frame.
8237 Fix PR gdb/365.
8238
d8864532
AC
82392002-04-17 Andrew Cagney <ac131313@redhat.com>
8240
8241 * gdbarch.sh (LANG): Set to ``c''.
8242
36cc83a3 82432002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 8244
36cc83a3 8245 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 8246
2f4150cc 82472002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
8248
8249 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8250 Update copyright.
8251
628703c6 8252 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 8253 Also fix PR gdb/391.
361d1df0 8254
56157b4a
AC
82552002-04-14 Andrew Cagney <ac131313@redhat.com>
8256
8257 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8258 * aclocal.m4, configure: Re-generate.
8259 Fix PR gdb/391.
361d1df0 8260
6d1e3329
EZ
82612002-04-14 Elena Zannoni <ezannoni@redhat.com>
8262
8263 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8264 instead of tm_print_insn.
8265
cb06fa07
EZ
82662002-04-14 Elena Zannoni <ezannoni@redhat.com>
8267
8268 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8269
f208ba17
AC
82702002-04-14 Andrew Cagney <ac131313@redhat.com>
8271
8272 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8273 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8274 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8275
20f01a46
DH
82762002-04-12 Don Howard <dhoward@redhat.com>
8277
8278 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8279 max_user_call_depth.
8280 (init_cmd_lists): Initialize the new value;
8281 * cli/cli-script.c (execute_user_command): Limit the call depth of
8282 user defined commands. This avoids a core-dump when user commands
8283 are infinitly recursive.
8284
a88376a3
KB
82852002-04-12 Kevin Buettner <kevinb@redhat.com>
8286
8287 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8288 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8289 from tdep struct instead of DEFAULT_LR_SAVE.
8290 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8291 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8292 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8293
f2172603
MS
82942002-04-12 Michael Snyder <msnyder@redhat.com>
8295
694f61fb 8296 * Remote.c: Spelling fix.
20fe79c8
MS
8297 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8298 If no symbol found for "sbrk", try "_sbrk".
8299 (make_output_phdrs): Use bfd_section_name.
8300 (gcore_copy_callback): Use bfd_section_name.
62995fc4 8301 * eval.c: Indentation fix-ups.
169a7369
MS
8302 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8303 in case it gets applied to an address that is already
8304 in the instruction space.
de74f71f
MS
8305 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8306 * symfile.c: Fix indentation, long lines.
f2172603
MS
8307 * source.c: White space fix-up.
8308
cda5a58a
AC
83092002-04-12 Andrew Cagney <cagney@redhat.com>
8310
8311 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8312 * frame.c (frame_register_read): New function. Return non-zero on
8313 success.
8314 (read_relative_register_raw_bytes_for_frame): Delete.
8315 (read_relative_register_raw_bytes): Delete.
8316 * frame.h (frame_register_read): Declare.
8317 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8318 * sh-tdep.c: Ditto.
8319 * infcmd.c (do_registers_info): Ditto.
8320 * hppa-tdep.c: Ditto.
8321 * rs6000-tdep.c: Ditto.
8322 * h8500-tdep.c: Ditto.
8323 * mips-tdep.c: Ditto.
8324 * h8300-tdep.c: Ditto.
8325 * z8k-tdep.c: Ditto.
8326
2ea5f656
KB
83272002-04-12 Kevin Buettner <kevinb@redhat.com>
8328
8329 From Jimi X <jimix@watson.ibm.com>:
8330 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8331 64-bit SysV ABI.
8332
27b15785
KB
83332002-04-12 Kevin Buettner <kevinb@redhat.com>
8334
8335 From Jimi X <jimix@watson.ibm.com>:
8336 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8337 bfd info.
8338
5d57ee30
KB
83392002-04-12 Kevin Buettner <kevinb@redhat.com>
8340
8341 From Jimi X <jimix@watson.ibm.com>:
8342 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8343 register sets for these processor variants.
8344
bc1e36ca
DJ
83452002-04-11 Daniel Jacobowitz <drow@mvista.com>
8346
bc1e36ca
DJ
8347 * regformats/reg-ppc.dat: Support FPSCR.
8348
e3f36dbd
KB
83492002-04-11 Kevin Buettner <kevinb@redhat.com>
8350
8351 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8352 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8353 Add fpscr as an invalid/unfetchable register.
8354 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8355 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8356 (fill_fpregset): Add support for register fpscr.
8357 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8358 (fill_gregset): Account for the fact that register ``mq'' might
8359 not exist.
8360 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8361 (registers_power): Add fpscr to register set at slot 71.
8362 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8363 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8364
943c9c25
MS
83652002-04-11 Michael Snyder <msnyder@redhat.com>
8366
8367 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8368 * configure: Regenerate.
8369 * config.in: Regenerate.
8370 * acconfig.h: Add define for _SYSCALL32.
8371 * core-sol2.c: Remove #define _SYSCALL32.
8372 * solib-legacy.c: Remove #define _SYSCALL32.
8373
d8c0a2e7
AC
83742002-04-10 Andrew Cagney <ac131313@redhat.com>
8375
8376 * stack.c (select_frame): Cleanup internal error message, do not
8377 use %p.
8378
7cc19214
AC
83792002-04-10 Andrew Cagney <ac131313@redhat.com>
8380
8381 * stack.c (select_frame): Check that selected_frame and the
8382 specified level are as expected.
8383 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8384 Update copyright.
8385 * frame.h (struct frame_info): Add field `level'. Update
8386 copyright.
8387 Work-in-progress PR gdb/464.
8388
67a2b77e
AC
83892002-04-10 Andrew Cagney <ac131313@redhat.com>
8390
8391 * maint.c (maint_print_section_info): Rename print_section_info.
8392 (print_bfd_section_info, print_objfile_section_info): Update.
8393 * inferior.h (struct gdbarch): Add opaque declaration.
8394 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8395 * gdbarch.h: Regenerate.
8396
8cfda98c
ML
83972002-04-10 Michal Ludvig <mludvig@suse.cz>
8398
8399 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8400 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8401 (kernel_u_size): Added.
8402 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8403 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8404
ca439ad2 84052002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 8406
ca439ad2
JI
8407 * valarith.c (find_size_for_pointer_math): New function, either returns
8408 the size for a pointer's target, returns 1 for void *, or errors for
8409 incomplete types.
8410 (value_add, value_sub): use find_size_for_pointer_math.
8411
2f2893d9
DJ
84122002-04-09 Daniel Jacobowitz <drow@mvista.com>
8413
8414 * linux-low.c (linux_look_up_symbols): New hook.
8415 (linux_target_ops): Add linux_look_up_symbols.
8416 * remote-utils.c (decode_address): New function.
8417 (look_up_one_symbol): New function.
8418 * server.c (handle_query): Call target look_up_symbols hook.
8419 * server.h (look_up_one_symbol): Add prototype.
8420 * target.h (struct target_ops): Add look_up_symbols hook.
8421
96cb11df
AC
84222002-04-09 Andrew Cagney <ac131313@redhat.com>
8423
8424 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8425 override FP_REGNUM with frame->fp. Update copyright.
8426 * parse.c (num_std_regs, std_regs): Delete.
8427 (target_map_name_to_register): Do not search std_regs. Update
8428 function description.
8429 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8430 declarations. Update copyright.
8431 Fix PR gdb/251.
361d1df0 8432
97658e92
DJ
84332002-04-09 Daniel Jacobowitz <drow@mvista.com>
8434
8435 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8436 after the last symbol in a block.
8437
6044e3eb
PM
84382002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8439
8440 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8441 is non zero as a found symbol.
8442
0406ec40
AC
84432002-04-08 Andrew Cagney <ac131313@redhat.com>
8444
8445 * findvar.c: Include "builtin-regs.h".
8446 (value_of_register): Call value_of_builtin_reg when applicable.
8447 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8448 (target_map_name_to_register): Call
8449 builtin_reg_map_name_to_regnum.
8450 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8451 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8452 (builtin_regs_h): Define.
8453 (builtin-regs.o): New target.
8454 (findvar.o): Add $(builtin_regs_h).
8455 * builtin-regs.c, builtin-regs.h: New files.
8456 * std-regs.c: New file.
8457 Partial fix for PR gdb/251.
8458
56a6dfb9
KB
84592002-04-08 Kevin Buettner <kevinb@redhat.com>
8460
8461 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8462 it's no longer required.
8463
3a808432
AC
84642002-04-08 Andrew Cagney <ac131313@redhat.com>
8465
8466 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8467
7c40d541
KB
84682002-04-08 Kevin Buettner <kevinb@redhat.com>
8469
8470 From Jimi X <jimix@watson.ibm.com>:
8471 * rs6000-tdep.c (rs6000_software_single_step): Use
8472 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8473 and size. Use target_insert_breakpoint() and
8474 target_remove_breakpoint() to insert and remove breakpoints
8475 instead of explicit memory reads and writes.
8476
cc9836a8
KB
84772002-04-08 Kevin Buettner <kevinb@redhat.com>
8478
8479 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8480 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8481 ELF_OBJECT_FORMAT ifdef.
8482
7495d1dc
KB
84832002-04-08 Kevin Buettner <kevinb@redhat.com>
8484
8485 From Jimi X <jimix@watson.ibm.com>:
8486 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8487
4288e836
KB
84882002-04-08 Kevin Buettner <kevinb@redhat.com>
8489
8490 From Jimi X <jimix@watson.ibm.com>:
8491 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8492 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8493
a4e4e501
MK
84942002-04-07 Mark Kettenis <kettenis@gnu.org>
8495
8496 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8497 s/asprintf/xasprintf/.
8498 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8499
006defba
AC
85002002-04-07 Andrew Cagney <ac131313@redhat.com>
8501
8502 I believe Jeff Law denies responsability for this one:
8503 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8504 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8505 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8506 Work-around for PR gdb/366.
8507
7aa83cac
EZ
85082002-04-07 Elena Zannoni <ezannoni@redhat.com>
8509
8510 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8511 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8512 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8513
cf1fcca1
EZ
85142002-04-07 Elena Zannoni <ezannoni@redhat.com>
8515
8516 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8517 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8518 information.
8519
3f289e6f
AC
85202002-04-07 Andrew Cagney <ac131313@redhat.com>
8521
8522 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8523 maintainer.
8524
129188f6
AC
85252002-04-07 Andrew Cagney <ac131313@redhat.com>
8526
8527 * README (Reporting Bugs in GDB): Document the bug web page as the
8528 prefered way of submitting bugs.
8529 Fix PR gdb/402.
8530
1200cd6e
AC
85312002-04-06 Andrew Cagney <ac131313@redhat.com>
8532
8533 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8534 -1. Update comment.
8535 * gdbarch.h, gdbarch.c: Re-generate.
8536
2853c33c
AS
85372002-04-07 Andreas Schwab <schwab@suse.de>
8538
8539 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8540 buffer to regcache_collect.
8541
c2169756
AC
85422002-04-06 Andrew Cagney <ac131313@redhat.com>
8543
8544 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8545 * gdbarch.c, gdbarch.h: Re-generate.
8546
25f1b008
AC
85472002-04-06 Andrew Cagney <ac131313@redhat.com>
8548
8549 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8550 declaration. Fix -Werror.
8551
59263426
DJ
85522002-04-05 Daniel Jacobowitz <drow@mvista.com>
8553
8554 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8555 * gdbarch.c: Regenerate.
8556
f5db4da3
MS
85572002-04-05 Michael Snyder <msnyder@redhat.com>
8558
80f8a6eb
MS
8559 * breakpoint.c (clear_command): Rewrite middle section to
8560 combine two loops with identical control conditions.
8561 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8562 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8563
ad3dcc5c
L
85642002-04-05 H.J. Lu (hjl@gnu.org)
8565
8566 * solib-svr4.c (bkpt_names): Add "__start".
8567
f32e7a74
AC
85682002-04-04 Andrew Cagney <ac131313@redhat.com>
8569
8570 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8571 as test for 64 bit target.
8572
8227c0ff
AC
85732002-04-05 Andrew Cagney <ac131313@redhat.com>
8574
8575 * h8500-tdep.c (h8500_write_fp): Delete function.
8576 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8577 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8578 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8579 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8580 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8581 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8582 (s390_write_fp):
8583 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8584 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8585 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8586 (d10v_write_fp): Delete function.
8587 * inferior.h (write_fp, generic_target_write_fp): Delete
8588 declarations.
8589 * regcache.c (generic_target_write_fp): Delete function.
8590 (write_fp): Delete function.
8591 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8592 * gdbarch.h, gdbarch.c: Regenerate.
8593 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8594 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8595 (sparc64_write_fp): Delete declaration.
8596 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8597 (h8500_write_fp): Delete declaration.
8598
2757dd86
AC
85992002-04-04 Andrew Cagney <ac131313@redhat.com>
8600
8601 * sparc-tdep.c (sparc64_write_fp): Delete.
8602 (sparc_push_dummy_frame): Replace write_fp call with code to store
8603 the FP directly.
8604 (sparc_gdbarch_init): Do not initialize write_fp.
8605
c69255e1
KB
86062002-04-05 Kevin Buettner <kevinb@redhat.com>
8607
8608 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8609 clause.
8610
ae767bfb
JB
86112002-03-29 Jim Blandy <jimb@redhat.com>
8612
8613 * stack.c (get_selected_block): Add new argument `addr_in_block',
8614 used to return the exact code address we used to select the block,
8615 not just the block.
8616 * blockframe.c (get_frame_block, get_current_block): Same.
8617 * frame.h (get_frame_block, get_current_block,
8618 get_selected_block): Update declarations.
8619 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8620 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8621
84d2ac95
MS
86222002-04-05 Michael Snyder <msnyder@redhat.com>
8623
8624 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8625 warning message.
8626
596aa3bf
JB
86272002-04-05 J. Brobecker <brobecker@gnat.com>
8628
8629 * utils.c (xfullpath): New function.
8630 * defs.h (xfullpath): Add declaration.
8631 * source.c (openp): Use xfullpath in place of gdb_realpath to
8632 avoid resolving the basename part of filenames when the
8633 associated file is a symbolic link. This fixes a potential
8634 inconsistency between the filenames known to GDB and the
8635 filenames it prints in the annotations.
8636 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8637 to be able to match a filename with either the real filename, or
8638 the name of any symbolic link to this file.
8639 (lookup_partial_symtab): Ditto.
8640
c02f5703
MS
86412002-04-04 Michael Snyder <msnyder@redhat.com>
8642
8643 * breakpoint.c: Add support for hardware breakpoints in overlays.
8644 (overlay_events_enabled): New state variable.
8645 (insert_breakpoints): Use overlay_events_enabled to decide
8646 whether to attempt to set a breakpoint at the overlay load addr.
8647 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8648 (remove_breakpoint): Use overlay_events_enabled to decide
8649 whether breakpoints need to be removed from overlay load addr.
8650 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8651 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8652 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8653 disable_overlay_breakpoints): Update overlay_events_enabled.
8654
5fb290d7
DJ
86552002-04-04 Daniel Jacobowitz <drow@mvista.com>
8656
8657 * dwarf2read.c (struct function_range): New.
8658 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8659 (check_cu_functions): New.
8660 (read_file_scope): Initialize global function lists.
8661 Call dwarf_decode_line after processing children.
8662 (read_func_scope): Add to global function list.
8663 (dwarf_decode_lines): Call check_cu_functions everywhere
8664 record_line is called. Call record_line with a linenumber
8665 of 0 to mark sequence ends.
8666
7b3fabf0
ML
86672002-04-04 Michal Ludvig <mludvig@suse.cz>
8668
361d1df0 8669 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8670 change sync with glibc.
8671
bce58c09
JB
86722002-04-03 Jim Blandy <jimb@redhat.com>
8673
8674 * configure.in: Call AC_C_INLINE.
8675 * configure: Regenerated.
361d1df0 8676
2fccf04a
DJ
86772002-04-01 Daniel Jacobowitz <drow@mvista.com>
8678
8679 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8680 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8681
2d1bfe2e
MK
86822002-03-31 Mark Kettenis <kettenis@gnu.org>
8683
a5941fbf
MK
8684 * NEWS: Mention gcore support on FreeBSD/i386.
8685
a90cd31d
MK
8686 * fbsd-proc.c: New file.
8687 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8688 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8689
2d1bfe2e
MK
8690 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8691 while statement.
8692
9eb6e5a1
JB
86932002-03-29 Jim Blandy <jimb@redhat.com>
8694
8695 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8696 unescaped newlines in string literals, but newer ones don't. So
8697 escape them.
8698
f02df580
MS
86992002-03-26 Michael Snyder <msnyder@redhat.com>
8700 Andrew Cagney <cagney@redhat.com>
8701
361d1df0 8702 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8703 restore file to memory.
8704 * cli/cli-dump.h: New file.
8705 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8706 * NEWS: Mention new commands.
f02df580 8707
109f874e
MS
87082002-03-28 Michael Snyder <msnyder@redhat.com>
8709
8710 * symfile.c (symbol_file_add): Move test for null symbols to later.
8711
520f6ade
AC
87122002-03-27 Andrew Cagney <ac131313@redhat.com>
8713
8714 From veksler at il.ibm.com:
8715 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8716 the xstrduped original path.
8717 Fix PR gdb/417.
8718
d4654627
MS
87192002-03-27 Michael Snyder <msnyder@redhat.com>
8720
8721 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8722 * infcmd.c (_initialize_infcmd): Ditto.
8723 * language.c (_initialize_language): Ditto.
8724 * symfile.c (_initialize_symfile): Ditto.
8725 * top.c (_init_main): Ditto.
8726 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8727
6be8bc0c
EZ
87282002-03-27 Elena Zannoni <ezannoni@redhat.com>
8729
8730 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8731 vector registers handling.
8732 (skip_prologue): Handle new AltiVec instructions. Fill in new
8733 fields of frame data.
8734 (frame_get_saved_regs): Fill in information for AltiVec registers.
8735
12af6855
JB
87362002-03-27 Jim Blandy <jimb@redhat.com>
8737
8738 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8739 a function; leave this macro here to invoke that function.
8740 (symbol_init_mangled_name): Declaration for that function.
8741 * symtab.c (symbol_init_mangled_name): New function.
8742
dc672865
AC
87432002-03-27 Andrew Cagney <ac131313@redhat.com>
8744
8745 * valarith.c: Replace strerror with safe_strerror.
8746 * tracepoint.c: Ditto.
8747 * lin-lwp.c: Ditto.
8748 * go32-nat.c: Ditto.
8749 * inflow.c: Ditto.
8750 * gnu-nat.c: Ditto.
8751
d96429cd
AS
87522002-03-27 Andreas Schwab <schwab@suse.de>
8753
8754 * event-top.c (command_line_handler): Remove useless if.
8755
7e336ba1
AJ
87562002-03-27 Andreas Jaeger <aj@suse.de>
8757
8758 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8759 comment.
8760
de220d0f
ML
87612002-03-27 Michal Ludvig <mludvig@suse.cz>
8762
8763 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8764 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8765 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8766 (x86_64_linux_dr_get_status, supply_gregset),
8767 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8768 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8769 (x86_64_register_info_table): Add.
8770 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8771 (x86_64_register_raw_size, x86_64_register_virtual_type),
8772 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8773 general x86_64_register_info_table.
8774 (i386_gdbarch_init): gdbarch_register_bytes is now set
8775 dynamicaly during initialization.
8776 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8777 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8778
0e98d0a7
DJ
87792002-03-27 Daniel Jacobowitz <drow@mvista.com>
8780
8781 * gdbserver/server.c (main): Call target_signal_to_host_p
8782 and target_signal_to_host on signals received from the remote.
8783 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8784 target_signal_from_host on signals sent to the remote.
8785 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8786 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8787
3130066b
DJ
87882002-03-27 Daniel Jacobowitz <drow@mvista.com>
8789
8790 * signals/signals.c: Include "server.h" in gdbserver build.
8791 (target_signal_from_name): Don't use STREQ.
8792 (_initialize_signals): Likewise. Don't include function in
8793 gdbserver build.
8794
9aedf4f4
DJ
87952002-03-27 Daniel Jacobowitz <drow@mvista.com>
8796
8797 * signals.c: Moved to...
8798 * signals/signals.c: Here.
7e336ba1 8799 * Makefile (signals.o): Update.
9aedf4f4 8800
3fa41cdb
JL
88012002-03-26 Jeff Law (law@redhat.com)
8802
8803 * somread.c (som_symtab_read): Remove some commented out code and
8804 updated related comments. Do not set the minimal symbol table to
8805 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8806 in a dynamic executable.
8807 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8808 where we are unable to find the minimal symbol for the given
8809 PC value.
8810
ee677e8d
MS
88112002-03-25 Jeff Law (law@redhat.com)
8812
8813 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8814
e76e1718
ML
88152002-03-25 Michal Ludvig <mludvig@suse.cz>
8816
8817 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8818
18a642a1
AC
88192002-03-23 Andrew Cagney <ac131313@redhat.com>
8820
8821 * command.h: Update copyright.
8822 (struct cmd_list_element): Replace definition with opaque
8823 declaration.
8824 (enum cmd_types): Document that it will eventually be moved to
8825 cli/cli-decode.h
8826 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8827 (MALLOCED_REPLACEMENT): Delete macro.
8828 * Makefile.in (cli_decode_h): Add $(command_h).
8829 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8830 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8831 * completer.c: Include "cli/cli-decode.h".
8832 * maint.c: Include "cli/cli-decode.h".
8833 * cli/cli-decode.h: Include "command.h".
8834 (enum command_class): Delete.
8835 (enum cmd_types): Comment out.
8836 (enum cmd_auto_boolean): Delete.
8837 (enum var_types): Delete.
8838
b2875cc0
AC
88392002-03-23 Andrew Cagney <ac131313@redhat.com>
8840
8841 * cli/cli-decode.c: Include "gdb_assert.h".
8842 (add_set_or_show_cmd): New static function.
8843 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8844 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8845 all fields, such as func, from the set command.
8846
3b45974e
AC
88472002-03-23 Andrew Cagney <ac131313@redhat.com>
8848
8849 * MAINTAINERS (sh-elf): Change warning flag to -w.
8850
823ca731
AC
88512002-03-23 Andrew Cagney <cagney@redhat.com>
8852
8853 * defs.h (error): Add printf format attribute.
8854 * thread-db.c (thread_from_lwp): Fix error format string.
8855 * stack.c (parse_frame_specification): Ditto.
8856 * cli/cli-decode.c (undef_cmd_error): Ditto.
8857 * scm-lang.c (scm_lookup_name): Ditto.
8858 * tracepoint.c (trace_error): Ditto.
8859 * remote-utils.c (usage): Ditto.
8860 * remote.c (compare_sections_command): Ditto.
8861 Fix PR gdb/328.
8862
0e101458
AC
88632002-03-22 Andrew Cagney <ac131313@redhat.com>
8864
8865 * gdbtypes.c (append_composite_type_field): New function.
8866 (init_composite_type): New function.
8867 * gdbtypes.h (append_composite_type_field): Declare.
8868 (init_composite_type): Ditto.
8869
8e0662df
EZ
88702002-03-22 Elena Zannoni <ezannoni@redhat.com>
8871
8872 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8873 function.
8e0662df
EZ
8874 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8875 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8876 structure returning convention for SYSV ABI case, but not
8877 for GNU/Linux, FreeBSD, or NetBSD.
8878
3121eff0
DJ
88792002-03-22 Daniel Jacobowitz <drow@mvista.com>
8880
8881 * symtab.h (lookup_block_symbol): Add mangled_name argument
8882 to prototype.
8883
8884 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8885 with new mangled_name argument.
8886 * linespec.c (decode_line_1): Likewise.
8887 * valops (value_of_this): Likewise.
8888 * symtab.c (lookup_transparent_type): Likewise.
8889 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8890 (lookup_symbol): If we are given a mangled name, pass it down
8891 to lookup_symbol_aux.
8892 (lookup_block_symbol): If we are given a mangled name to check
8893 against, only return symbols which match it.
8894
349b409f
CF
88952002-03-22 Christopher Faylor <cgf@redhat.com>
8896
8897 * win32-nat.c (child_create_inferior): Check for proper shell to use
8898 here, in case the user changes it on the fly.
8899 (_initialize_inftarg): Remove shell path considerations.
8900
2a873819
EZ
89012002-03-21 Elena Zannoni <ezannoni@redhat.com>
8902
8903 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8904 for gdbarch_max_register_raw_size and max_register_virtual_size.
8905 Adjust copyright year.
8906
a1b9830c
DJ
89072002-03-21 Daniel Jacobowitz <drow@mvista.com>
8908
8909 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8910 in a function to cover the entire beginning of the function
8911 as well if it does not already.
8912
8b5790f2
TR
89132002-03-21 Tom Rix <trix@redhat.com>
8914
8915 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8916 (rs6000_ptrace64): Renamed from ptrace64.
8917
bdbe5747
MH
89182002-03-20 Martin M. Hunt <hunt@redhat.com>
8919
8920 * gdbserver/remote-utils.c (remote_open): Don't call
8921 getprotobyname, we're all using TCP here so just use
8922 IPPROTO_TCP.
7e336ba1 8923 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
8924
89252002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 8926
bdbe5747
MH
8927 * regcache.c (_initialize_regcache): No need to call
8928 build_regcache() at this time; it gets called whenever
8929 the gdbarch changes.
8930
7781cd62
DB
89312002-03-20 David O'Brien <obrien@FreeBSD.org>
8932
8933 * sparc-nat.c: Include sys/param.h where possible.
8934
f65ca430
DJ
89352002-03-20 Daniel Jacobowitz <drow@mvista.com>
8936
8937 Fix PR gdb/422.
8938 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8939 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8940 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8941 complex types.
8942 * stabsread.c (rs6000_builtin_type): Likewise.
8943 (read_sun_floating_type): Likewise.
8944
0c867556
PS
89452002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8946
8947 * stabsread.c (read_member_functions): Remove skip code for duplicate
8948 constructor/destructor methods. Use standard parsing for these
8949 methods and just do not chain them to the list of methods after
8950 parsing.
8951
12b9c64f
AO
89522002-03-19 Alexandre Oliva <aoliva@redhat.com>
8953
8954 * coffread.c: Remove redundant static declarations. Replace
8955 occurrences of `PTR' with `void *'.
8956 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8957 * top.h (quit_cover): Likewise.
8958 * defs.h (catch_errors): Likewise.
8959
349c5d5f
AC
89602002-03-18 Andrew Cagney <ac131313@redhat.com>
8961
8962 * defs.h (XMALLOC): Define.
8963 * gdb-events.sh (XMALLOC): Delete macro.
8964 * gdb-events.c, gdb-events.h: Regenerate.
8965 * gdbarch.sh (XMALLOC): Delete macro.
8966 * gdbarch.c: Regenerate.
8967 * serial.c (XMALLOC): Delete macro.
8968 * ui-file.c (XMALLOC): Ditto.
8969 * ser-unix.h (XMALLOC): Ditto.
8970 * sh-tdep.c (XMALLOC): Ditto.
8971 * ui-out.c (XMALLOC): Ditto.
8972 * utils.c (XMALLOC): Ditto.
8973 * i386-tdep.c (XMALLOC): Ditto.
8974 * gdb-events.c (XMALLOC): Ditto.
8975 * d10v-tdep.c (XMALLOC): Ditto.
8976 * cli-out.c (XMALLOC): Ditto.
8977
8978 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8979 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8980 * ui-file.c, ui-out.c: Ditto.
8981
7d0766f3
AC
89822002-03-18 Andrew Cagney <ac131313@redhat.com>
8983
8984 * command.h (struct cmd_list_element): Add field context.
8985 (set_cmd_context, get_cmd_context): Declare.
8986 * cli/cli-decode.h: Ditto.
8987 * cli/cli-decode.c (get_cmd_context): New function.
8988 (set_cmd_context): New function.
8989 (add_cmd): Initialize context.
8990 Part of fixing PR gdb/145 and PR gdb/146.
8991
5913bcb0
AC
89922002-03-17 Andrew Cagney <ac131313@redhat.com>
8993
1868c04e
AC
8994 * cli/cli-decode.c (cmd_type): New function.
8995 * command.h (cmd_type): Declare.
8996 * infrun.c (set_schedlock_func): Call function cmd_type.
8997 * kod.c (kod_set_os): Call cmd_type.
8998 * cris-tdep.c (cris_version_update): Use function cmd_type.
8999 (cris_mode_update, cris_abi_update): Ditto.
9000
5913bcb0
AC
9001 * command.h: (execute_cmd_post_hook): Declare.
9002 (execute_cmd_pre_hook): Declare.
9003 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9004 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9005 functions. Execute pre/post hook while ensuring that afterwords
9006 hook_in is cleared.
9007 * top.c (execute_command): Use execute_cmd_post_hook, and
9008 execute_cmd_pre_hook to execute pre/post commands.
9009 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9010 hook_stop_stub.
9011 (hook_stop_stub): Call execute_cmd_pre_hook.
9012
b51450c9
AC
90132002-03-17 Andrew Cagney <ac131313@redhat.com>
9014
9015 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9016 set'' and this leads to a core dump. Move xstrdup of
9017 operating_system to after check that it is not NULL.
9018
f66c9f11
AC
90192002-03-17 Andrew Cagney <ac131313@redhat.com>
9020
8e694ecf
AC
9021 * kod.c (kod_set_os): Remove unnecessary check that
9022 ``command->type'' is set_cmd.
9023
f66c9f11
AC
9024 * valprint.c (set_input_radix): Use input_radix.
9025 (set_output_radix): Use output_radix.
9026 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9027 isn't reverted.
9028
9d01611c
AC
90292002-03-16 Andrew Cagney <ac131313@redhat.com>
9030
9031 * value.h (struct value): Delete field ``substring_addr''. Change
9032 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
9033 force_core_addr_align and force_pointer_aligh.
9034
9035 * value.h (struct value): Fix typo in above change.
9d01611c 9036
4156bb53
PS
90372002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9038
9039 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9040 to fix internal_error from ``maintenance print architecture''.
9041
0e5e3ea6
PS
90422002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9043
9044 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9045 for gcc versions after gcc-2.8.1.
9046
9b013045
PS
90472002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9048
9049 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9050 for method resolution. Restore adjustment of ``this'' pointer after
9051 calling value_struct_elt, which was accidentally removed during the
9052 HP merge.
9053
376c9600
AC
90542002-03-15 Andrew Cagney <ac131313@redhat.com>
9055
9056 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9057 value_of_register.
9058 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9059 get_saved_register.
9060 * value.h (value_of_register): Update.
9061
a4db0f07
RH
90622002-03-14 Richard Henderson <rth@redhat.com>
9063
9064 * configure.in: Detect declaration for canonicalize_file_name.
9065 * utils.c (canonicalize_file_name): Declare, if needed.
9066 (gdb_realpath): Prefer realpath if available and usable.
9067 * config.in, configure: Rebuild.
9068
96383835
RH
90692002-03-14 Richard Henderson <rth@redhat.com>
9070
9071 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9072 a constant array bound.
9073
9074 * MAINTAINERS: Add myself to write-after-approval.
9075
75245b24
MS
90762002-03-14 Michael Snyder <msnyder@redhat.com>
9077
9078 * symfile.c (syms_from_objfile): Return immediately if no syms.
9079 (symbol_file_add): Return immediately if no syms.
9080 (find_sym_fns): Return immediately if no syms.
9081
e641a1ca
ML
90822002-03-13 Michal Ludvig <mludvig@suse.cz>
9083
9084 * gdbserver/remote-util.c (remote_open): Print remote-side's
9085 IP address when remote debugging over the network.
7e336ba1 9086
df08bfec
DB
90872002-03-12 David O'Brien <obrien@FreeBSD.org>
9088
9089 * config/sparc/fbsd.mh: Fix copyright.
9090 * config/sparc/fbsd.mt: Likewise.
9091
9a57864f
RE
90922002-03-11 Richard Earnshaw <rearnsha@arm.com>
9093
9094 * MAINTAINERS: Fix typo in name of gdb warnings option.
9095 (x86-64): Fix formating so that this can be parsed by awk.
9096
dd7bf85e
DJ
90972002-03-10 Daniel Jacobowitz <drow@mvista.com>
9098
9099 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9100 * defs.h: Include "gdb/signals.h".
9101 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9102
33a0a2ac
ML
91032002-03-10 Michal Ludvig <mludvig@suse.cz>
9104
9105 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 9106 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
9107 from x86-64-tdep.h
9108
dd824b04
DJ
91092002-03-10 Daniel Jacobowitz <drow@mvista.com>
9110 Don Howard <dhoward@redhat.com>
9111
9112 * mips-tdep.c (ST0_FR): Define.
9113 (mips2_fp_compat): New function, temporarily disabled.
9114 (mips_read_fp_register_single): New function.
9115 (mips_read_fp_register_double): New function.
9116 (mips_print_register): Use them.
9117 (do_fp_register_row): Likewise.
9118
6a41ff59
AC
91192002-03-09 Andrew Cagney <ac131313@redhat.com>
9120
9121 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9122 approval''.
9123
4ea09c10
PS
91242002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9125
9126 * stabsread.c (read_member_functions): Fix is_stub test for
9127 static member functions, improve comment.
9128
6ccc741d
RE
91292002-03-07 Richard Earnshaw <rearnsha@arm.com>
9130
9131 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9132 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9133 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9134 commands that set boolean values.
9135 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9136 (arm_rdi_resume): Always initialize PC.
9137 (arm_rdi_open): Don't use rslt as a boolean.
9138 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9139 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9140 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9141 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9142
438013df
AO
91432002-03-06 Alexandre Oliva <aoliva@redhat.com>
9144
9145 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9146 * configure: Rebuilt.
9147
70ed8774
SC
91482002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9149
9150 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9151 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9152
5ba2abeb
AC
91532002-03-06 Andrew Cagney <ac131313@redhat.com>
9154
9155 * cli/cli-decode.c (set_cmd_completer): New function.
9156 * command.h (set_cmd_completer): Declare.
9157 * cli/cli-decode.h (set_cmd_completer): Ditto.
9158
9159 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9160 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9161 * win32-nat.c (_initialize_inftarg): Ditto.
9162 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9163 * proc-api.c (_initialize_proc_api): Ditto.
9164 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9165 * source.c (_initialize_source): Ditto.
9166 * exec.c (_initialize_exec): Ditto.
9167 * solib.c (_initialize_solib): Ditto.
9168 * top.c (init_main): Ditto.
9169 * tracepoint.c (_initialize_tracepoint): Ditto.
9170 * symfile.c (_initialize_symfile): Ditto.
9171 * printcmd.c (_initialize_printcmd): Ditto.
9172 * infcmd.c (_initialize_infcmd): Ditto.
9173 * corefile.c (_initialize_core): Ditto.
9174
f779ca99
AC
91752002-03-05 Andrew Cagney <ac131313@redhat.com>
9176
9177 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9178
01a3934b
AC
91792002-03-05 Andrew Cagney <ac131313@redhat.com>
9180
9181 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9182
37057839
AC
91832002-03-05 Andrew Cagney <ac131313@redhat.com>
9184
9185 * NEWS: Update headings, 5.2 has branched.
9186
c6ecbae5
DJ
91872002-03-04 Daniel Jacobowitz <drow@mvista.com>
9188
9189 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9190 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9191 (register_addr, REGISTER_RAW_SIZE): Likewise.
9192 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9193 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9194
e9f30c21
ML
91952002-03-03 Michal Ludvig <mludvig@suse.cz>
9196
9197 * MAINTAINERS (x86-64): Add myself.
9198 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9199 changed value_ptr -> struct value *
9200
54394ac3
DB
92012002-03-01 David O'Brien <obrien@FreeBSD.org>
9202
9203 * configure.host (sparc64-*-freebsd): Add.
9204 * configure.tgt: Likewise.
9205 * config/sparc/fbsd.mh: New file.
9206 * config/sparc/fbsd.mt: Likewise.
9207 * config/sparc/nm-fbsd.h: Likewise.
9208 * config/sparc/tm-fbsd.h: Likewise.
9209
bfe95955
DJ
92102002-03-01 Daniel Jacobowitz <drow@mvista.com>
9211
9212 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9213 regformats/reg-s390x.dat.
9214
f33c6cbf
AC
92152002-03-01 Andrew Cagney <ac131313@redhat.com>
9216
9217 * utils.c: Add FIXME explaining true/false problem.
9218
5ecaa7dd
AC
92192002-02-28 Andrew Cagney <ac131313@redhat.com>
9220
9221 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9222
2a251cc2
MC
92232002-02-28 Michael Chastain <mec@shout.net>
9224
9225 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9226
6a8031a3 92272002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
9228
9229 * gdbserver/linux-s390-low.c: New file.
9230 * regformats/reg-s390.dat: New file.
9231 * regformats/reg-s390x.dat: New file.
9232 * gdbserver/configure.srv: Add S/390.
9233 * gdbserver/Makefile.in: Add S/390.
9234 * configure.tgt: Enable gdbserver for S/390.
9235
ac469903
EZ
92362002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9237
9238 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9239 first line of the doc string for "info dos", except at the end of
9240 the sentence, since the short help stops at the first period.
9241
985cb1a3
JM
92422002-02-28 Jason Merrill <jason@redhat.com>
9243
9244 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9245
c570663e
FF
92462002-02-27 Fred Fish <fnf@redhat.com>
9247
9248 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9249 comment (dumy -> dummy).
9250
43630227
PS
92512002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9252
9253 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9254
b84911e8
RB
92552002-02-27 Rodney Brown <rbrown64@csc.com.au>
9256
9257 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9258
58caa3dc
DJ
92592002-02-27 Daniel Jacobowitz <drow@mvista.com>
9260
9261 * gdbserver/acconfig.h: New file.
9262 * gdbserver/i387-fp.c: New file.
9263 * gdbserver/i387-fp.h: New file.
9264 * gdbserver/linux-x86-64.c: New file.
9265 * regformats/reg-x86-64.dat: New file.
9266 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9267 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9268 * gdbserver/configure.in: Add support for regsets.
9269 * gdbserver/config.in: Regenerate.
9270 * gdbserver/configure: Regenerate.
9271 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9272 * gdbserver/linux-low.h: New file.
9273 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9274 for regsets.
9275 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9276 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9277 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9278 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9279 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9280 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9281 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9282 "i387-fp.h". Add PTRACE_GETREGS and friends.
9283 * gdbserver/regcache.c (supply_register): New function.
9284 (supply_register_by_name): New function.
9285 (collect_register): New function.
9286 (collect_register_by_name): New function.
9287
93652174
DJ
92882002-02-27 Daniel Jacobowitz <drow@mvista.com>
9289
9290 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9291 (config.status): Add configure.srv dependency.
9292 (server_h): Add config.h dependency.
9293
a02e4a61
DJ
92942002-02-27 Daniel Jacobowitz <drow@mvista.com>
9295
9296 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9297 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9298 * gdbserver/configure.srv: Change i386-*-linux* to use
9299 reg-i386-linux.o.
9300
ce0eebec
AC
93012002-02-26 Andrew Cagney <ac131313@redhat.com>
9302
9303 * x86-64-tdep.c: Re-indent. Update copyright date.
9304
82dbc5f7
AC
93052002-02-26 Andrew Cagney <ac131313@redhat.com>
9306
9307 From Michal Ludvig <mludvig@suse.cz>:
9308 * x86-64-tdep.c (value.h): Delete.
9309 (gdb_assert.h): Include.
9310 (x86_64_register_convert_to_virtual,
9311 x86_64_register_convert_to_raw ): Add check which lets only
9312 floating-point values to be converted.
9313 (value_push): Delete.
9314 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9315 (i386_gdbarch_init): Number of register_bytes fixed.
9316
e4621584
AC
93172002-02-26 Andrew Cagney <ac131313@redhat.com>
9318
9319 * MAINTAINERS: Add x86-64 target.
9320
81a9a963
AC
93212002-02-26 Andrew Cagney <ac131313@redhat.com>
9322
9323 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9324 * osfsolib.c (solib_map_sections): Ditto.
9325 * irix5-nat.c (solib_map_sections): Ditto.
9326 * corelow.c (gdb_check_format): Ditto.
9327 * symfile.c (symfile_bfd_open): Ditto.
9328 * solib.c (solib_map_sections): Ditto.
9329 Fix PR gdb/354.
7e336ba1 9330
0f017ab9
AC
93312002-02-26 Andrew Cagney <ac131313@redhat.com>
9332
9333 * remote.c (_initialize_remote): By default, disable ``e'' and
9334 ``E'' step out-of-range packets.
9335
75738c29
AS
93362002-02-26 Andreas Schwab <schwab@suse.de>
9337
9338 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9339 m68k_linux_frame_saved_pc.
9340 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9341 in_sigtramp.
9342 (SIGCONTEXT_PC_OFFSET): Remove.
9343 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9344 m68k_linux_sigtramp_saved_pc): New functions.
9345 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9346 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9347 (UCONTEXT_PC_OFFSET): Define.
9348 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9349 non-RT and RT signal trampolines.
9350
7e8ed687
RE
93512002-02-26 Richard Earnshaw <rearnsha@arm.com>
9352
9353 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9354 (TARGET_NBPG, STACK_END_ADDR): Delete
9355 (VARIABLES_INSIDE_BLOCK): Delete.
9356
6972bc8b
AC
93572002-02-25 Andrew Cagney <ac131313@redhat.com>
9358
9359 * utils.c (perror_with_name): Make string parameter constant.
9360 (print_sys_errmsg): Ditto.
9361 (query): Ditto.
9362 * defs.h (perror_with_name): Update.
9363 (print_sys_errmsg): Update.
9364 (query): Update.
9365
aa32f823
DJ
93662002-02-25 Daniel Jacobowitz <drow@mvista.com>
9367
9368 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9369 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9370
19caaa45
PS
93712002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9372
9373 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9374 if it already matches the current architecture from the exec file.
9375 Include arch-utils.h for gdbarch_info_init prototype.
9376 * Makefile.in (rs6000-nat.o): Update dependencies.
9377
d951901f
EZ
93782002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9379
9380 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9381 list of exported variables.
9382
7ea81414
DJ
93832002-02-24 Daniel Jacobowitz <drow@mvista.com>
9384
9385 * gdbserver/configure.srv: New file.
9386 * gdbserver/configure.in: Use configure.srv instead
9387 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9388 from it.
9389 * gdbserver/configure: Regenerated.
9390 * gdbserver/terminal.h: New file.
9391 * gdbserver/Makefile.in: Update for configure changes. Remove
9392 more unneeded include paths.
9393
080fe24b
AC
93942002-02-24 Andrew Cagney <ac131313@redhat.com>
9395
9396 From wiz at danbala:
9397 * config/sparc/tm-sp64.h: Fix grammar and typos.
9398 Fix PR gdb/287.
9399
8605d56e
AC
94002002-02-24 Andrew Cagney <ac131313@redhat.com>
9401
9402 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
9403 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9404 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9405 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
9406 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9407 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9408 * s390-tdep.c: Ditto.
92362027
AC
9409 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9410 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9411 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9412 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9413 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9414 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9415 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9416 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9417 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9418 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9419 Fix PR gdb/378.
7e336ba1 9420
8ed32cc0
AC
94212002-02-23 Andrew Cagney <ac131313@redhat.com>
9422
a3007b6f
AC
9423 * lin-thread.c: Delete file.
9424 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9425 to gdb_proc_service.h.
9426 * configure: Re-generate.
9427
50a9e2f1
AC
9428 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9429 * serial.c (serial_open): Delete check for "ocd".
9430 Fix PR gdb/349.
9431
8b6e7932
AC
9432 * Makefile.in (linux-thread.o): Delete target.
9433 * linux-thread.c: Delete file.
9434
d155c46b
AC
9435 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9436 renamed SH files to be consistent.
9437
8ed32cc0
AC
9438 * symtab.c (sort_search_symbols): Use xfree.
9439
0e18d038
RE
94402002-02-23 Richard Earnshaw <rearnsha@arm.com>
9441
9442 * arm-linux-tdep.c (arm_linux_init_abi): Register
9443 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9444 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9445 definition with undef, since we don't want the sysvr4 definition.
9446 (SKIP_TRAMPOLINE_CODE): Likewise.
9447
27aac7ff
AC
94482002-02-23 Andrew Cagney <ac131313@redhat.com>
9449
9450 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9451
9452 * configure.in: (AC_CHECK_FUNCS) Added test for
9453 canonicalize_file_name Regenerated.
9454 * config.in, configure: Regenerated.
9455 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9456 defined use canonicalize_file_name.
7e336ba1 9457
65a6e0ee
MC
94582002-02-23 Michael Chastain <mec@shout.net>
9459
9460 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9461
47b95330
AC
94622002-02-23 Andrew Cagney <ac131313@redhat.com>
9463
9464 * README: Remove references to cygnus.com.
9465 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9466 dot com'' form. Remove references to cygnus.com and sourceware.
9467
696f451b
AC
94682002-02-23 Andrew Cagney <ac131313@redhat.com>
9469
9470 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9471 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9472 1003.1-2001 no longer allows "head -1".
9473 * gdb/Makefile.in (version.c): Likewise.
9474 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9475 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9476 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9477
bbaca940
AC
94782002-02-23 Andrew Cagney <ac131313@redhat.com>
9479
9480 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9481 * command.h (cmd_cfunc_eq): Declare.
9482 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9483
9484 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9485 ``struct cmd_list_element *''.
9486 * cli/cli-cmds.c (is_complete_command): Update. Use
9487 cmd_cfunc_eq.
9488 * top.c (execute_command): Pass the command to
9489 is_complete_command.
9490 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9491
b8b8b047
AC
94922002-02-23 Andrew Cagney <ac131313@redhat.com>
9493
9494 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9495 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9496 architecture defines.
9497 * s390-tdep.c (s390_gdbarch_init): Likewise.
9498
19d3fc80
RE
94992002-02-23 Richard Earnshaw <rearnsha@arm.com>
9500
9501 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9502 (arm_linux_push_arguments): Likewise.
9503 (arm_linux_init_abi): Register them. Also register linux-specific
9504 call_dummy_words.
9505 (find_minsym_and_objfile): Use strcmp, not STREQ.
9506 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9507 (arm_linux_call_dummy_words): Delete declaration.
9508 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9509 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9510 declarations.
9511 (LOWEST_PC): Delete.
9512
3ab13650
PS
95132002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9514
9515 * maint.c (print_section_info): Do not prepend `0x' to filepos
9516 output, it will be handled by local_hex_string_custom.
9517
19d3fc80 95182002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
9519
9520 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9521 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9522 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9523
d85a5daf
JB
95242002-02-22 Jim Blandy <jimb@redhat.com>
9525
9526 Indicate that the bcache functions don't change the strings
9527 they're passed.
9528 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9529 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9530
eeb25b8a
PM
95312002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9532
9533 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9534
6badb179
CF
95352002-02-21 Christopher Faylor <cgf@redhat.com>
9536
9537 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9538 find the complete path to a loaded DLL.
9539
e8717518
FF
95402002-02-21 Fred Fish <fnf@redhat.com>
9541
9542 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9543 that marks the end of the range of a function, enter a line number
9544 entry that has a line number of zero and a PC offset that matches
9545 the end of the function. This starts a range of PC's for which no
9546 line number information is known.
9547 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9548 PC's for which no line number info is found (line number is zero)
9549 then we didn't find any valid line information.
9550 * symtab.h: Document use of zero line number entry.
9551
9abe5450
EZ
95522002-02-21 Elena Zannoni <ezannoni@redhat.com>
9553
9554 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9555 (have_ptrace_getvrregs): Define for run time checks.
9556 (gdb_vrregset_t): New type for Altivec register handling.
9557 (fetch_register, store_register): Fetch/store altivec register
9558 when needed.
9559 (fetch_altivec_register, store_altivec_register): New functions.
9560 (supply_vrregset, fill_vrregset): New functions.
9561 (fetch_altivec_registers, store_altivec_registers): New functions.
9562 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9563 registers as well.
9564
aaa38bb5
AJ
95652002-02-21 Jiri Smid <smid@suse.cz>
9566
9567 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9568
b34db576
RE
95692002-02-21 Richard Earnshaw <rearnsha@arm.com>
9570
9571 * Makefile.in (armnbsd-nat.o): Update dependencies.
9572 * armnbsd-nat.c (supply_gregset): New function. Common code to
9573 supply the integer register set.
9574 (supply_fparegset): New function. Similar for FPA registers.
9575 (fetch_regs, fetch_fp_regs): Use them.
9576 (fetch_core_registers): Likewise.
9577 (fetch_elfcore_registers): New function.
9578 (arm_netbsd_elfcore_fns): New core-file type specification.
9579 (_initialize_arm_netbsd_nat): Register it.
9580
3e56fc4b
RE
95812002-02-21 Richard Earnshaw <rearnsha@arm.com>
9582
9583 * armnbsd-nat.c: Include gdbcore.h.
9584 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9585 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9586 'void' to declaration, to shut up ARI.
9587 (fetch_core_registers): Make static. Rewrite using supply_register.
9588 (arm_netbsd_core_fns): New core-file type specification.
9589 (_initialize_arm_netbsd_nat): New function.
9590
097f6b0b
CF
95912002-02-21 Christopher Faylor <cgf@redhat.com>
9592
9593 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9594 value.
9595
c914e0cc
CF
95962002-02-20 Christopher Faylor <cgf@redhat.com>
9597
9598 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9599 fails.
9600
385fa495
DJ
96012002-02-20 Daniel Jacobowitz <drow@mvista.com>
9602
9603 * jv-exp.y (parse_number): Change type of implicit longs
9604 to builtin_type_uint64.
9605
e5f1222d
DJ
96062002-02-20 Daniel Jacobowitz <drow@mvista.com>
9607
9608 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9609 to be an integer instead of a `union wait'.
9610
75c9abc6
DJ
96112002-02-20 Daniel Jacobowitz <drow@mvista.com>
9612
9613 * mips-linux-nat.c: Call the operating system GNU/Linux.
9614 * mips-linux-tdep.c: Likewise.
9615 * mips-tdep.c: Likewise.
9616
551792a5
DJ
96172002-02-20 Daniel Jacobowitz <drow@mvista.com>
9618
9619 Fix PR gdb/265.
9620 * jv-exp.y (parse_number): Handle 64-bit integers.
9621
ee6e2b82
DJ
96222002-02-20 Daniel Jacobowitz <drow@mvista.com>
9623
9624 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9625 AC_STDC_HEADERS to AC_HEADER_STDC.
9626 * gdbserver/configure: Regenerated.
9627
a48442a0
RE
96282002-02-20 Richard Earnshaw <rearnsha@arm.com>
9629
9630 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9631 is defined.
9632 * sparc-tdep.c (get_longjmp_target): Likewise.
9633
fe419ffc
RE
96342002-02-20 Richard Earnshaw <rearnsha@arm.com>
9635
9636 * News: Add news about ARM and Multi-arch. Mention the new target
9637 arm*-*-netbsd*.
9638
5832ed7e
JB
96392002-02-19 Jim Blandy <jimb@redhat.com>
9640
9641 * stabsread.c (error_type_complaint): Improve error message.
9642
84563040
DJ
96432002-02-19 Daniel Jacobowitz <drow@mvista.com>
9644
9645 * gdbserver/README: Update documentation.
9646 * gdbserver/configure.in: Update configury to match documentation.
9647 * gdbserver/Makefile.in: Likewise.
9648 * gdbserver/configure: Regenerated.
9649 * gdbserver/aclocal.m4: New file, generated by aclocal.
9650 * gdbserver/config.in: New file, generated by autoheader.
9651
375fd65b
RE
96522002-02-19 Richard Earnshaw <rearnsha@arm.com>
9653
9654 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9655 armnbsd-nat.c.
9656
08216dd7
RE
96572002-02-19 Richard Earnshaw <rearnsha@arm.com>
9658
9659 * arm-tdep.h (enum arm_float_model): New enum.
9660 (struct gdbarch_tdep): Add fp_model.
9661 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9662 up floating-point conversions until we know the floating-point model
9663 in use by the inferior. Don't complain about being unable to
9664 determine the ABI of the inferior when we don't have one.
9665 (arm_extract_return_value): Support different floating-point models.
9666 (arm_store_return_value): Likewise.
aaa38bb5 9667 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9668 ARM_FLOAT_SOFT.
9669 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9670
65d6d66a
PS
96712002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9672
9673 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9674 of ``current_gdbarch''.
9675
47221191
RE
96762002-02-19 Richard Earnshaw <rearnsha@arm.com>
9677
9678 * armnbsd-nat.c : ANSIfy all function declarations.
9679 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9680 (fetch_inferior_registers): Re-implement in terms of above.
9681 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9682 (store_inferior_registers): Re-implement in terms of above.
9683
fdf39c9a
RE
96842002-02-19 Richard Earnshaw <rearnsha@arm.com>
9685
aaa38bb5 9686 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9687 kernel.
9688 * arm-linux-tdep.c: Likewise.
9689 * config/arm/tm-linux.h: Likewise.
9690
93247f88
RE
96912002-02-19 Richard Earnshaw <rearnsha@arm.com>
9692
9693 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9694 * config/arm/nbsd.mt (TM_FILE): Delete.
9695 * config/arm/tm-nbsd.h: Delete.
9696
d7b486e7
RE
96972002-02-19 Richard Earnshaw <rearnsha@arm.com>
9698
9699 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9700 Initialize CALL_DUMMY_LENGTH.
9701
41d39a95
RE
97022002-02-19 Richard Earnshaw <rearnsha@arm.com>
9703
9704 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9705 function.
9706 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9707 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9708 defines one thing and that is incorrect for this port.
9709 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9710
e1195560
PM
97112002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9712
9713 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9714
c1748f97
PM
97152002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9716
9717 * win32-nat.c (display_selector): New function. Displays information
9718 about the information returned by GetThreadSelectorEntry API function.
9719 (display_selectors): New function. Displays the infomation of
9720 the selector given as argument, or of CS, DS ans FS selectors
9721 if no argument is given.
9722 ( _initialize_inftarg): Add "w32" as info prefix command.
9723 Add "info w32 selector" as command calling display_selectors.
9724
e41e6bbf
PM
97252002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9726
9727 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9728 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9729 if not defined.
9730
0d3a9f48
RE
97312002-02-18 Richard Earnshaw <rearnsha@arm.com>
9732
9733 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9734
3fb4b924
RE
97352002-02-18 Richard Earnshaw <rearnsha@arm.com>
9736
9737 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9738 (arm_fix_call_dummy): Call it.
9739 (arm_call_dummy_breakpoint_offset): Delete.
9740 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9741 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9742
7f55af32
AC
97432002-02-18 Andrew Cagney <ac131313@redhat.com>
9744
9745 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9746 Default to func_frame_chain_valid.
9747 * gdbarch.h, gdbarch.c: Re-generate.
9748 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9749
05f13b9c
EZ
97502002-02-18 Elena Zannoni <ezannoni@redhat.com>
9751
9752 * ppc-linux-nat.c: Update copyright.
9753 (fetch_register, store_register): Add tid parameter, don't compute
9754 tid here.
9755 (fetch_ppc_registers, store_ppc_registers): Add tid
9756 parameter. Pass it along to callees.
9757 (fetch_inferior_registers, store_inferior_registers): Compute tid
9758 here, and pass it to calleed functions.
9759 (fill_gregset, supply_fpregset): Clean up formatting.
9760
d7afb4c9
RE
97612002-02-18 Richard Earnshaw <rearnsha@arm.com>
9762
9763 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9764 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9765
9df628e0
RE
97662002-02-18 Richard Earnshaw <rearnsha@arm.com>
9767
9768 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9769 * gdbarch.c gdbarch.h: Regenerate.
9770 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9771 function.
9772 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9773 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9774 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9775
9776 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9777 * arm-tdep.c (arm_get_longjmp_target): New function.
9778 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9779 this to a positive value register arm_get_longjmp_target as the
9780 longjmp handler.
9781 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9782 (arm_linux_init_abi): Set up longjmp description in tdep.
9783 * armnbsd-nat.c (get_longjmp_target): Delete.
9784 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9785 description in tdep.
9786 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9787 (get_longjmp_target): Delete declaration.
9788 (GET_LONGJMP_TARGET): Delete.
9789 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9790 (GET_LONGJMP_TARGET): Delete.
9791
57bc8964
KB
97922002-02-17 Kevin Buettner <kevinb@redhat.com>
9793
9794 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9795 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9796 of ``current_gdbarch''.
9797
83d31a92
TT
97982002-02-17 Tom Tromey <tromey@redhat.com>
9799
9800 * cli/cli-cmds.c (compare_strings): New function.
9801 (complete_command): Only print each unique item once.
9802 * completer.h (complete_line): Declare.
9803 * completer.c (complete_line): New function.
9804 (line_completion_function): Use it.
9805
17ef5d92
AC
98062002-02-16 Andrew Cagney <ac131313@redhat.com>
9807
9808 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9809 * gdbarch.h, gdbarch.c: Re-generate.
9810
491b8946
DJ
98112002-02-16 Daniel Jacobowitz <drow@mvista.com>
9812
9813 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9814
98152002-02-16 Daniel Jacobowitz <drow@mvista.com>
9816
9817 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9818 * valops.c (value_arg_coerce): Don't take the address of a reference
9819 to convert an argument to a reference.
9820
dfe7f3ac
CF
98212002-02-15 Christopher Faylor <cgf@redhat.com>
9822
9823 * win32-nat.c (get_image_name): New function.
9824 (handle_load_dll): Use get_image_name function.
9825 (get_child_debug_event): Avoid registering debug events until possibly
9826 execed process is started.
9827 (child_create_inferior): Allow invocation via shell so that command
9828 line redirection, etc. works ok.
9829 (_initialize_inftarg): Add new command: "set shell" to control whether
9830 a shell is used to start a process.
9831
1d33e73a
DJ
98322002-02-15 Daniel Jacobowitz <drow@mvista.com>
9833
9834 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9835 instead of find_register_by_number.
9836 (cannot_store_register): Likewise.
9837
48cd0caa
PM
98382002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9839
aaa38bb5 9840 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9841 fprintf_unfiltered (gdb_stderr, ...).
9842
8656e7d8
DJ
98432002-02-15 Daniel Jacobowitz <drow@mvista.com>
9844
9845 * gdbserver/gdbserver.1: Document --attach.
9846
66e810cd
RE
98472002-02-15 Richard Earnshaw <rearnsha@arm.com>
9848
9849 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9850 descriptions.
9851 * arm-tdep.c (arm_default_arm_le_breakpoint)
9852 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9853 (arm_default_thumb_be_breakpoint): New. Initialize them from
9854 traditional breakpoint defines.
9855 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9856 (arm_gdbarch_init): Initialize new breakpoint variables.
9857 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9858 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9859 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9860 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9861 code out to ...
9862 (arm_netbsd_init_abi_common): ... here; new function.
9863 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9864 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9865 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9866 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9867
97e03143
RE
98682002-02-15 Richard Earnshaw <rearnsha@arm.com>
9869
9870 * arm-tdep.h (enum arm_abi): New enum.
9871 (struct gdbarch_tdep): New structure.
9872 (LOWEST_PC): Provide a default.
9873 (arm_gdbarch_register_os_abi): Declare new function.
9874 * arm-tdep.c (arm_abi_names): New array.
9875 (process_note_abi_tag_sections): New function.
9876 (get_elfosabi): New function.
9877 (arm_gdbarch_register_os_abi): New function.
9878 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9879 support for that ABI has been built in, then call the appropriate
9880 configuration routine. Use gdbarch_num_regs() to get the number
9881 of registers.
9882 (arm_dump_tdep): New function.
9883 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9884 place-holder functions.
9885 (_initialize_arm_tdep): Register them.
9886 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9887
9888 * armnbsd-tdep.c: New file.
9889 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9890 * config/arm/nbsd.mt (TDEPFILES): Add it.
9891 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9892
9893 * armnbsd-nat.c: Include regcache.h.
9894 * Makefile.in (armnbsd-nat.o): Update dependency list.
9895
9896 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9897
ad68be46
DJ
98982002-02-14 Daniel Jacobowitz <drow@mvista.com>
9899
9900 * gdbserver/Makefile.in: Fix typos in target rules.
9901
003d6d1d
DJ
99022002-02-14 Daniel Jacobowitz <drow@mvista.com>
9903
aaa38bb5 9904 Fix part of PR gdb/267.
003d6d1d
DJ
9905 * linespec.c (find_methods): Handle constructors specially for now.
9906
6b230f1b
CV
99072002-02-14 Corinna Vinschen <vinschen@redhat.com>
9908
9909 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9910 handling.
9911 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9912 standard_coerce_float_to_double().
9913
1ea98d12
CF
99142002-02-14 Christopher Faylor <cgf@redhat.com>
9915
9916 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9917 GDBINIT_FILENAME.
9918
dd47e6fd
EZ
99192002-02-14 Elena Zannoni <ezannoni@redhat.com>
9920
9921 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9922 find_variant_by_name, because it confuses the multiarch
9923 framework. Return NULL if there isn't an architecture with the
9924 user supplied name, instead of forcing a different one without
9925 recording the change with the multiarch machinery.
9926 (find_variant_by_name): Delete.
9927
d7e39b9e
PS
99282002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9929
9930 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9931 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9932
76e42a4f
MH
99332002-02-13 Martin M. Hunt <hunt@redhat.com>
9934
aaa38bb5 9935 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
9936 print_frame_info_listing_hook, set current_source_symtab.
9937
0a30fbc4
DJ
99382002-02-14 Daniel Jacobowitz <drow@mvista.com>
9939
9940 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9941 and remove unused $(INCLUDE_DIR).
9942 Add regcache.c to OBS.
9943 Add generated register protocol files to clean target.
9944 Update dependencies for new objects, obsolete old target code.
9945
9946 * gdbserver/linux-low.c: Remove all platform-specific code to
9947 new files. Remove various dead code. Update to use regcache
9948 functionality.
9949 * gdbserver/remote-utils.c (fromhex): Add return statement
9950 to quiet warning.
9951 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9952 constant.
9953 (input_interrupt): Add integer parameter to match prototype
9954 of a signal handler.
9955 (outreg): Use register_data ().
9956 (prepare_resume_reply): Use gdbserver_expedite_regs.
9957 * gdbserver/server.c (main): Dynamically allocate own_buf because
9958 PBUFSIZ is no longer constant. Use registers_to_string () and
9959 registers_from_string ().
9960 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9961 for error (), fatal (), and warning (). Update definition of
9962 PBUFSIZ to use regcache functionality. Add include guard.
9963 * gdbserver/utils.c (fatal): Add missing ``const''.
9964 (warning): New function.
9965
9966 * regformats/regdat.sh: Include "regcache.h" in generated files.
9967 Provide init_registers () function.
9968 * regformats/regdef.h: Add prototype for set_register_cache ().
9969 Add include guard.
9970
9971 * gdbserver/linux-arm-low.c: New file.
9972 * gdbserver/linux-i386-low.c: New file.
9973 * gdbserver/linux-ia64-low.c: New file.
9974 * gdbserver/linux-m68k-low.c: New file.
9975 * gdbserver/linux-mips-low.c: New file.
9976 * gdbserver/linux-ppc-low.c: New file.
9977 * gdbserver/linux-sh-low.c: New file.
9978
9979 * gdbserver/regcache.c: New file.
9980 * gdbserver/regcache.h: New file.
9981
9982 * gdbserver/low-linux.c: Removed obsolete file.
9983
4cc841d0
DJ
99842002-02-14 Daniel Jacobowitz <drow@mvista.com>
9985
9986 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9987 * config/i386/linux.mt: Likewise.
9988 * config/ia64/linux.mt: Likewise.
9989 * config/m68k/linux.mh: Likewise.
9990 * config/powerpc/linux.mh: Likewise.
9991 * config/mips/linux.mt: Likewise.
9992
9993 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9994
9995 * config/i386/i386lynx.mh: Mark gdbserver variables
9996 as (currently) obsolete for this target.
9997 * config/i386/nbsd.mt: Likewise.
9998 * config/i386/nbsdelf.mt: Likewise.
9999 * config/m32r/m32r.mt: Likewise.
10000 * config/m68k/m68klynx.mh: Likewise.
10001 * config/m68k/nbsd.mt: Likewise.
10002 * config/m68k/sun3os4.mh: Likewise.
10003 * config/mips/vr5000.mt: Likewise.
10004 * config/ns32k/nbsd.mt: Likewise.
10005 * config/pa/hppabsd.mh: Likewise.
10006 * config/pa/hppaosf.mh: Likewise.
10007 * config/powerpc/nbsd.mt: Likewise.
10008 * config/rs6000/rs6000lynx.mh: Likewise.
10009 * config/s390/s390.mt: Likewise.
10010 * config/s390/s390x.mt: Likewise.
10011 * config/sparc/sparclynx.mh: Likewise.
10012 * config/sparc/sun4os4.mh: Likewise.
10013 * config/i386/x86-64linux.mt: Likewise.
10014 * config/sparc/linux.mh: Likewise.
10015
a85f51e7
DJ
100162002-02-14 Daniel Jacobowitz <drow@mvista.com>
10017
10018 * configure.tgt: Configure gdbserver only for known working
10019 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10020 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10021 SUBDIRS if it is configured. Update comment for ${nativefile}.
10022 * configure: Regenerated.
10023
65554fef
MS
100242002-02-13 Michael Snyder <msnyder@redhat.com>
10025
670a52db
MS
10026 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10027
6dbdc4a3
MS
10028 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10029 (default_gcore_mach): Just return 0, work around a problem in bfd.
10030 (default_gcore_target): OK to return NULL if exec_bfd is null.
10031 (make_mem_sec): Use a cast, avoid a warning.
10032
10033 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 10034 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
10035 sizeof (host pointer) != sizeof (target pointer)).
10036 (procfs_make_note_section): Avoid overflow in psargs string.
10037
aaa38bb5 10038 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
10039 implementation return an error.
10040
100412002-02-13 Rodney Brown <rbrown64@csc.com.au>
10042
10043 * procfs.c (procfs_make_note_section): Provide a default definition
10044 (for alpha-dec-osf4.0f). Fix typos.
10045
1e4d76e7
EZ
100462002-02-13 Elena Zannoni <ezannoni@redhat.com>
10047
10048 * linux-proc.c: Add include of regcache.h.
10049 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10050
b6d1a1d5
AC
100512002-02-13 Andrew Cagney <ac131313@redhat.com>
10052
10053 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
10054 * memattr.c (create_mem_region): Disallow useless empty region.
10055 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 10056 non-overlapping.
b6d1a1d5 10057
6c6ea35e
MC
100582002-02-13 Michael Chastain <mec@shout.net>
10059
10060 * defs.h: Kill CONST_PTR.
10061 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10062 * c-lang.c (c_builtin_types): Likewise.
10063 * ch-lang.c (ch_builtin_types): Likewise.
10064 * f-lang.c (f_builtin_types): Likewise.
10065 * language.c (unknown_builtin_types): Likewise.
10066 * m2-lang.c (m2_builtin_types): Likewise.
10067 * p-lang.c (pascal_builtin_types): Likewise.
10068 * scm-lang.c (c_builtin_types): Likewise.
10069
3e0b0f48
KS
100702002-02-13 Keith Seitz <keiths@redhat.com>
10071
10072 * arm-tdep.h (arm_get_next_pc): Add declaration.
10073
67255d04
RE
100742002-02-13 Richard Earnshaw <rearnsha@arm.com>
10075
10076 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10077 with other related struct-returning functions.
10078 (arm_extract_struct_value_address): New function.
10079 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10080 initialize float_format, double_format and long_double_format as
10081 appropriate to the endianness of the target.
10082 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10083 (arm_use_struct_convention): Delete declaration.
10084 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10085
079777f6
KS
100862002-02-13 Keith Seitz <keiths@redhat.com>
10087
10088 * defs.h (core_addr_to_string_nz): New function.
10089
34588f23
MK
100902002-02-13 Mark Kettenis <kettenis@gnu.org>
10091
10092 Apply missing bits of 2002-01-15 patch.
10093 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10094 (fill_fpregset): Use i387_fill_fsave.
10095
49b563f9
KS
100962002-02-12 Keith Seitz <keiths@redhat.com>
10097
49b563f9
KS
10098 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10099 (core_addr_to_string_nz): New function.
10100
aeb98c60
RE
101012002-02-11 Richard Earnshaw <rearnsha@arm.com>
10102
10103 * arm-linux-nat.c: Really include arm-tdep.h.
10104 * config/arm/tm-linux.h (struct type, struct value): Declare.
10105
65554fef
MS
101062002-02-11 Michael Snyder <msnyder@redhat.com>
10107
10108 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10109 (gcore section): Ifdef for Solaris and Unixware only.
10110 (procfs_do_thread_registers): Unixware needs one lwpstatus
10111 per thread (not one prstatus or pstatus).
10112 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10113 not over all gdb threads. For unixware, call elfcore_write_pstatus
10114 once before iterating over threads.
10115
34e8f22d
RE
101162002-02-11 Richard Earnshaw <rearnsha@arm.com>
10117
10118 * arm-tdep.h: New file.
10119 * arm-tdep.c: Include arm-tdep.h.
10120 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10121 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10122 (arm_print_float_info, arm_register_type, convert_to_extended)
10123 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10124 (arm_extract_return_value, arm_register_name): Make static.
10125 (arm_software_single_step): Similarly. Fix types in declaration.
10126 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10127 (arm_store_return_value, arm_store_struct_return): New functions.
10128 (arm_gdbarch_init): Register the above functions. Also register
10129 call_dummy_start_offset, sizeof_call_dummy_words,
10130 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10131 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 10132 max_register_virtual_size, register_size. Set up
34e8f22d
RE
10133 prologue_cache.saved_regs here, rather than ...
10134 (_initialize_arm_tdep): ... here.
10135 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10136 declarations.
10137 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10138 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10139 (arm_print_float_info, arm_register_type, convert_to_extended)
10140 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10141 (arm_extract_return_value, arm_register_name): Delete declarations.
10142 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10143 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10144 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10145 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10146 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10147 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10148 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10149 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10150 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10151 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10152 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10153 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10154 interface.
10155 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10156 * remote-rdi.c remote-rdp.c: Likewise.
10157 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10158 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10159 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10160 definition.
10161
10162 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10163 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10164 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10165 from non-ARM_ prefixed definitions.
10166 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10167 all uses of above.
10168 * remote-rdi.c remote-rdp.c: Likewise.
10169 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10170
148754e5
RE
101712002-02-11 Richard Earnshaw <rearnsha@arm.com>
10172
10173 * arm-tdep.c (arm_frameless_function_invocation)
10174 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10175 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10176 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10177 (arm_pop_frame, arm_get_next_pc): Make static.
10178 (arm_gdbarch_init): Register above in gdbarch structure.
10179 (arm_read_fp): Renamed from arm_target_read_fp.
10180 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10181 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10182 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10183 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10184 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10185 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10186 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
10187 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10188 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10189 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10190 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 10191
434d2d4f
DJ
101922002-02-10 Daniel Jacobowitz <drow@mvista.com>
10193
10194 * symtab.c (compare_search_syms): New function.
10195 (sort_search_symbols): New function.
10196 (search_symbols): Sort symbols after searching rather than
10197 before.
10198
55241689
AC
101992002-02-10 Andrew Cagney <ac131313@redhat.com>
10200
10201 * NEWS: Linux -> GNU/Linux.
10202
028c194b
AC
102032002-02-10 Andrew Cagney <ac131313@redhat.com>
10204
10205 * gdbarch.sh: For for level one methods, disallow a definition
10206 when partially multi-arched. Add comments explaining rationale.
10207 * gdbarch.h: Re-generate.
10208
6acf50cd
AC
102092002-02-10 Andrew Cagney <ac131313@redhat.com>
10210
10211 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10212 multi-arch partial.
aaa38bb5 10213
50248794
AC
102142002-02-10 Andrew Cagney <ac131313@redhat.com>
10215
10216 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10217 field. Use diff -u.
10218 * gdbarch.c: Re-generate.
10219
c30e0066
AC
102202002-02-10 Andrew Cagney <ac131313@redhat.com>
10221
9b56c5f3 10222 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
10223 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10224 partial.
10225
6e6d6484
AC
102262002-02-10 Andrew Cagney <ac131313@redhat.com>
10227
10228 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10229 multi-arch partial.
10230 (PUSH_ARGUMENTS): Switch to using predefault.
10231 * gdbarch.c: Regenerate.
10232
c203844d
AC
102332002-02-10 Andrew Cagney <ac131313@redhat.com>
10234
10235 * valops.c (PUSH_ARGUMENTS): Delete definition.
10236 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10237 partial. Default to default_push_arguments.
10238 * gdbarch.h, gdbarch.c: Regenerate.
10239
b5a2688f
AC
102402002-02-09 Andrew Cagney <ac131313@redhat.com>
10241
10242 * defs.h (throw_exception): Rename return_to_top_level. Update
10243 comments.
10244 * utils.c (error_stream, internal_verror, quit): Ditto.
10245 * top.c (throw_exception, catcher): Ditto.
10246 * sparclet-rom.c (sparclet_load): Ditto.
10247 * remote.c (interrupt_query, minitelnet): Ditto.
10248 * remote-sds.c (interrupt_query): Ditto.
10249 * remote-mips.c (mips_error, mips_kill): Ditto.
10250 * ocd.c (interrupt_query): Ditto.
10251 * monitor.c (monitor_interrupt_query): Ditto.
10252 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10253 * target.h: Update comment.
aaa38bb5 10254
b5a2688f 10255 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 10256
2fa5c1e0
AC
102572002-02-09 Andrew Cagney <ac131313@redhat.com>
10258
10259 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10260 default_double_format.
10261 * gdbarch.h, gdbarch.c: Re-generate.
10262 * findvar.c (floatformat_unknown): Delete variable definition.
10263 * doublest.h (floatformat_unknown): Delete variable declaration.
10264
da966255
JB
102652002-02-09 Jim Blandy <jimb@redhat.com>
10266
10267 * stabsread.c (read_type): Add code to parse Sun's syntax for
10268 prototyped function types.
10269
123a4891
AC
102702002-02-09 Andrew Cagney <ac131313@redhat.com>
10271
10272 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10273 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10274
fb39c8f3
PS
102752002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10276
10277 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10278 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10279 now _initialize_xcoffsolib gets called again and overrides the
10280 commands from solib.c in a native configuration.
10281
0b87a11d
MK
102822002-02-09 Mark Kettenis <kettenis@gnu.org>
10283
10284 * doublest.c (store_typed_floating): Don't try to return a value.
10285 Fixes PR gdb/290.
10286
bdc2fc72
JB
102872002-02-08 Jim Blandy <jimb@redhat.com>
10288
10289 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10290 is prototyped and has no arguments, print its argument list as
10291 `(void)'.
10292
da69bbcf
CD
102932002-02-08 Chris Demetriou <cgd@broadcom.com>
10294
10295 * MAINTAINERS (write-after-approval): Add myself.
10296 (paper-trail): I've escaped!
aaa38bb5 10297
b69571f5
CF
102982002-02-08 Christopher Faylor <cgf@redhat.com>
10299
10300 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10301 changes.
10302 (_initialize_check_for_gdb_ini): Ditto.
10303
f6871398
MH
103042002-02-08 Martin M. Hunt <hunt@redhat.com>
10305
10306 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10307 xaprintf -> xasprintf.
10308
4e52d31c
PM
103092002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10310
10311 * win32-nat.c: Remove use of printf and sprintf functions.
10312
39bbf761
RE
103132002-02-08 Richard Earnshaw <rearnsha@arm.com>
10314
10315 * arm-tdep.c (arm_frame_chain_valid): Make static.
10316 (arm_push_arguments): Likewise.
10317 (arm_gdbarch_init): New function.
10318 (_initialize_arm_tdep): Call it.
10319 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10320 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10321 (FRAME_CHAIN_VALID): Delete.
10322 (arm_frame_chain_valid): Delete declaration.
10323 (PUSH_ARGUMENTS): Delete.
10324 (arm_push_arguments): Delete declaration.
10325 (CALL_DUMMY_P): Delete.
10326
9c9532c9
CV
103272002-02-08 Andrew Cagney <ac131313@redhat.com>
10328 Corinna Vinschen <vinschen@redhat.com>
10329
10330 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10331 on builtin float types.
10332
4e8f7a8b
DJ
103332002-02-08 Daniel Jacobowitz <drow@mvista.com>
10334
10335 * utils.c: Include <curses.h> before "bfd.h".
10336 * tui/tui-hooks.c: Likewise.
10337 * tui/tui.c: Likewise.
10338 * tui/tuiCommand.c: Likewise.
10339 * tui/tuiData.c: Likewise.
10340 * tui/tuiDataWin.c: Likewise.
10341 * tui/tuiDisassem.c: Likewise.
10342 * tui/tuiGeneralWin.c: Likewise.
10343 * tui/tuiIO.c: Likewise.
10344 * tui/tuiLayout.c: Likewise.
10345 * tui/tuiRegs.c: Likewise.
10346 * tui/tuiSource.c: Likewise.
10347 * tui/tuiSourceWin.c: Likewise.
10348 * tui/tuiStack.c: Likewise.
10349 * tui/tuiWin.c: Likewise.
10350
cd4bffcf
EZ
103512002-02-07 Elena Zannoni <ezannoni@redhat.com>
10352
10353 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10354 to include space for pseudoregs as well. Update loops accordingly.
10355 (sh_fp_frame_init_saved_regs): Ditto.
10356 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10357
26806ce2
AC
103582002-02-07 Andrew Cagney <ac131313@redhat.com>
10359
10360 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10361 Add Richard Earnshaw to Arm maintainers.
10362
97fdab62
AC
103632002-02-07 Andrew Cagney <ac131313@redhat.com>
10364
a6b98203
AC
10365 * defs.h (warning_begin): Delete declaration.
10366
97fdab62
AC
10367 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10368 Delete macro.
10369
78b29b40
MS
103702002-02-07 Michael Snyder <msnyder@redhat.com>
10371
aaa38bb5 10372 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
10373 Logic bug, remove misplaced else.
10374
d8849953
KD
103752002-02-07 Klee Dienes <klee@apple.com>
10376
10377 * fork-inferior.c (fork_inferior): Add '!' to the list of
10378 characters that need to be quoted when building a string for the
10379 shell. Quote '!' specifically with a backslash, since CSH chokes
10380 when trying to evaluate "str!str".
aaa38bb5 10381
095778a0
NC
103822002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10383
10384 * rdi-share/host.h: Only provide a typedef for bool if it is not
10385 defined.
10386
1900040c
MS
103872002-02-04 Michael Snyder <msnyder@redhat.com>
10388
10389 * breakpoint.h (enum bptype): Add new overlay event bp type.
10390 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 10391
1900040c
MS
10392 * breakpoint.c (create_internal_breakpoint): New function.
10393 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10394 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10395 (create_thread_event_breakpoint): Ditto.
10396 (create_solib_event_breakpoint): Ditto.
10397 (create_overlay_event_breakpoint): New function.
10398 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10399 (update_breakpoints_after_exec): Delete and re-initialize
10400 overlay event breakpoints after an exec. Add FIXME comment
10401 about longjmp breakpoint.
10402 (print_it_typical): Ignore overlay event breakpoints.
10403 (print_one_breakpoint): Ditto.
10404 (mention): Ditto.
10405 (bpstat_what): Do not stop for overlay event breakpoints.
10406 (delete_breakpoint): Don't delete overlay event breakpoints.
10407 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10408 (breakpoint_re_set): Re-create overlay event breakpoint.
10409
10410 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10411 (overlay_manual_command): Disable overlay breakpoints.
10412 (overlay_off_command): Disable overlay breakpoints.
10413
082fc60d
RE
104142002-02-06 Richard Earnshaw <rearnsha@arm.com>
10415
10416 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10417 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10418 to here from config/tm-arm.h.
10419 (coff_sym_is_thumb): Make static.
10420 (arm_elf_make_msymbol_special): New function.
10421 (arm_coff_make_msymbol_special): New function.
10422 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10423 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10424 (coff_sym_is_thumb): Delete declaration.
10425 (arm_elf_make_msymbol_special): Declare.
10426 (arm_coff_make_msymbol_special): Declare.
10427 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10428 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10429
039c5766
RE
104302002-02-06 Richard Earnshaw <rearnsha@arm.com>
10431
10432 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10433
104342002-02-06 Richard Earnshaw <rearnsha@arm.com>
10435
10436 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10437 * gdbarch.c gdbarch.h: Regenerate.
10438 * arch-utils.c (default_print_float_info): New function.
10439 * arch-utils.h (default_print_float_info): Prototype it.
10440 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10441 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10442 (PRINT_FLOAT_INFO): Document it.
10443
10444 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10445 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10446 (PRINT_FLOAT_INFO): Define.
10447
58fa08f0
PM
104482002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10449
aaa38bb5 10450 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10451 Add typecast to sprintf argument to suppress a warning.
10452
7393af7c
PM
104532002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10454
58fa08f0 10455 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10456 to allow easier handling of pass state.
10457 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10458 that gives exception name and address.
10459 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10460 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10461 exceptions added.
aaa38bb5
AJ
10462 (child_continue): Correctly report continue_status.
10463 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10464 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10465 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10466 the exception should be passed to debuggee or not.
10467
6af4589c
MS
104682002-02-05 Michael Snyder <msnyder@redhat.com>
10469
10470 * regcache.c (fetch_register): Call target_fetch_register
10471 only if we don't call FETCH_PSEUDO_REGISTER.
10472 (store_register): Call target_store_register only if we
10473 don't call STORE_PSEUDO_REGISTER.
10474
a2cf933a
EZ
104752002-02-05 Elena Zannoni <ezannoni@redhat.com>
10476
10477 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10478 ELF_MAKE_MSYMBOL_SPECIAL.
10479 * gdbarch.c, gdbarch.h: Regenerate.
10480 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10481 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10482 * elfread.c (elf_symtab_read): Compile use of
10483 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10484 multiarched.
10485 * coffread.c (coff_symtab_read): Ditto, for
10486 COFF_MAKE_MSYMBOL_SPECIAL.
10487
6bb7be43
JB
104882002-02-05 Jim Blandy <jimb@redhat.com>
10489
10490 * solib-svr4.c (svr4_truncate_ptr): New function.
10491 (svr4_relocate_section_addresses): Do the address arithmetic with
10492 the appropriate truncation for target addresses, even when
10493 CORE_ADDR is larger than a target address.
10494
e18651ec
DJ
104952002-02-05 Daniel Jacobowitz <drow@mvista.com>
10496
10497 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10498 to (int *).
10499
6b2725be
DJ
105002002-02-05 Daniel Jacobowitz <drow@mvista.com>
10501
10502 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10503 code.
10504
fca9e603
DJ
105052002-02-05 Daniel Jacobowitz <drow@mvista.com>
10506
10507 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10508
6c537a52
DJ
105092002-02-05 Daniel Jacobowitz <drow@mvista.com>
10510
10511 * gdbserver/linux-low.c: Remove unused include files.
10512
d844cde6
DJ
105132002-02-05 Daniel Jacobowitz <drow@mvista.com>
10514
10515 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10516 (read_inferior_memory): Use it.
10517 (write_inferior_memory): Likewise.
10518
d07c63e7
DJ
105192002-02-05 Daniel Jacobowitz <drow@mvista.com>
10520
10521 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10522 grubbing through sys_errlist.
10523
da6d8c04
DJ
105242002-02-05 Daniel Jacobowitz <drow@mvista.com>
10525
10526 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10527
5b421780
PM
105282002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10529 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10530
9f60d481
AC
105312002-02-04 Andrew Cagney <ac131313@redhat.com>
10532
10533 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10534 (do_sfunc, set_cmd_sfunc): New functions.
10535
10536 * command.h (struct cmd_list_element): Add field func.
10537 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10538 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10539 * cli/cli-decode.h: Ditto.
10540
10541 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10542 (help_all, help_cmd_list): Ditto.
10543 (find_cmd, complete_on_cmdlist): Ditto.
10544 * top.c (execute_command): Ditto.
10545
10546 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10547 function.sfunc.
10548
10549 * infcmd.c (notice_args_read): Fix function signature.
10550
10551 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10552 * cli/cli-decode.c (add_set_cmd): Ditto.
10553 * utils.c (initialize_utils): Ditto.
10554 * maint.c (_initialize_maint_cmds): Ditto.
10555 * infrun.c (_initialize_infrun): Ditto.
10556 * demangle.c (_initialize_demangler): Ditto.
10557 * remote.c (add_packet_config_cmd): Ditto.
10558 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10559 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10560 * proc-api.c (_initialize_proc_api): Ditto.
10561 * kod.c (_initialize_kod): Ditto.
10562 * valprint.c (_initialize_valprint): Ditto.
10563 * top.c (init_main): Ditto.
10564 * infcmd.c (_initialize_infcmd): Ditto.
10565 * corefile.c (_initialize_core): Ditto.
10566 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10567 * arch-utils.c (initialize_current_architecture): Ditto.
10568 (_initialize_gdbarch_utils): Ditto.
10569 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10570
10571 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10572 * wince.c (_initialize_inftarg): Ditto.
10573 * symfile.c (_initialize_symfile): Ditto.
10574 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10575 * language.c (_initialize_language): Ditto.
10576 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10577
f9ba0717
MS
105782002-02-04 Michael Snyder <msnyder@redhat.com>
10579
10580 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10581
0c74b2a7
DJ
105822002-02-04 Daniel Jacobowitz <drow@mvista.com>
10583
10584 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10585 Add rules for building the register data files.
10586
c638789f
DJ
105872002-02-04 Daniel Jacobowitz <drow@mvista.com>
10588
10589 * regformats/regdat.sh: Add braces to the definition of
10590 expedite_regs_${arch}.
10591
db253027
DJ
105922002-02-04 Daniel Jacobowitz <drow@mvista.com>
10593
10594 * regformats/regdef.h (struct reg): Add comment describing the
10595 requirements for offset and size fields.
10596
206be19c
AS
105972002-02-04 Andreas Schwab <schwab@suse.de>
10598
10599 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10600 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10601
181c1381
RE
106022002-02-04 Richard Earnshaw <rearnsha@arm.com>
10603
10604 * gdbarch.sh (copyright): Update years in generated header.
10605 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10606 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10607 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10608 * dbxread.c: Likewise.
10609 * dwarfread.c: Likewise.
10610 * elfread.c: Likewise.
10611 * somread.c: Likewise.
10612
10613 * arm-tdep.c (arm_smash_text_address): New function.
10614 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10615
fa4ba8da
PM
106162002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10617
10618 Add support for hardware watchpoints on win32 native.
aaa38bb5 10619 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10620 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10621 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10622 of debug registers.
10623 (debug_registers_changed): New variable. Reflects when debug registers
10624 are changed and need to be written to inferior.
aaa38bb5 10625 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10626 was set, used when new threads are created.
10627 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10628 i386-nat code.
10629 (thread_rec): Set dr array if id is the thread of current_event .
10630 (child_continue, child_resume): Change the debug registers for all
10631 threads if debug_registers_changed.
10632 (child_add_thread): Change the debug registers if debug_registers_used.
10633 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10634 Link nm.h to new nm-cygwin.h file.
10635 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10636 of hardware registers.
10637
a73c86fb
AC
106382002-02-03 Andrew Cagney <ac131313@redhat.com>
10639
10640 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10641 Restore behavour broken by 2002-01-20 Andrew Cagney
10642 <ac131313@redhat.com> IEEE_FLOAT removal.
10643
acf5ed49
DJ
106442002-02-03 Daniel Jacobowitz <drow@mvista.com>
10645
10646 * c-valprint.c (c_val_print): Pass a proper valaddr to
10647 cp_print_class_method.
10648 * valops.c (search_struct_method): If there is only one method
10649 and args is NULL, return that method.
10650
493d28d5
DJ
106512002-02-03 Daniel Jacobowitz <drow@mvista.com>
10652
10653 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10654 accessing tag_name directly.
10655
7495dfdb
DJ
106562002-02-03 Daniel Jacobowitz <drow@mvista.com>
10657
10658 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10659 of accessing tag_name directly.
10660
dd6bda65
DJ
106612002-02-03 Daniel Jacobowitz <drow@mvista.com>
10662
10663 PR gdb/280
10664 * gdbtypes.c (replace_type): New function.
10665 * gdbtypes.h (replace_type): Add prototype.
10666 * stabsread.c (read_type): Use replace_type.
10667
88fe217c
RE
106682002-02-03 Richard Earnshaw <rearnsha@arm.com>
10669
10670 * Makefile.in (memattr.o): Add missing dependencies rule.
10671
e5d66720
PS
106722002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10673
10674 * breakpoint.c (break_at_finish_command): Really export.
10675 (break_at_finish_at_depth_command): Ditto.
10676 (tbreak_at_finish_command): Ditto.
10677 * hppa-tdep.c: Include completer.h.
10678 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10679 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10680
fffee0be
AC
106812002-02-01 Andrew Cagney <ac131313@redhat.com>
10682
10683 * utils.c (do_write): New function.
10684 (error_stream): Rewrite combining the code from error_begin and
10685 verror.
10686 (verror): Rewrite using error_stream.
10687 (error_begin): Delete function.
10688
255e7dbf
AC
106892002-02-01 Andrew Cagney <ac131313@redhat.com>
10690
10691 * utils.c (error_begin): Make static.
10692 * defs.h (error_begin): Delete declaration.
10693
10694 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10695 (decode_line_1): Use cplusplus_error instead of error_begin,
10696 cplusplus_hint and return_to_top_level.
10697 * coffread.c (coff_symfile_read): Use error instead of error_begin
10698 and return_to_top_level.
10699 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10700
ddfe3c15
AC
107012002-02-01 Andrew Cagney <ac131313@redhat.com>
10702
10703 * language.h (type_error, range_error): Make string parameter
10704 constant.
10705 * language.c (warning_pre_print): Delete extern declaration.
10706 * dwarfread.c (warning_pre_print): Ditto.
10707 * language.c (type_error, range_error): Rewrite to use verror and
10708 vwarning instead of warning_begin.
10709
03ac34d5
MS
107102002-02-01 Michael Snyder <msnyder@redhat.com>
10711
261c4ca2
MS
10712 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10713 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10714
e00d1dc8
AC
107152002-02-01 Andrew Cagney <ac131313@redhat.com>
10716
10717 * command.h (NO_FUNCTION): Delete macro.
10718 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10719 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10720 * tracepoint.c (_initialize_tracepoint): Ditto.
10721 * cli/cli-decode.c (add_set_cmd): Ditto.
10722 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10723
76b79d6e
DJ
107242002-02-01 Daniel Jacobowitz <drow@mvista.com>
10725
10726 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10727 Update ``this'' pointer when calling virtual functions.
10728
799f9e91
MS
107292002-02-01 Michael Snyder <msnyder@redhat.com>
10730
c7bd442c 10731 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10732 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10733
3cf384d4
DJ
107342002-02-01 Daniel Jacobowitz <drow@mvista.com>
10735
10736 * regformats/reg-arm.dat: New file.
10737 * regformats/reg-i386.dat: New file.
10738 * regformats/reg-ia64.dat: New file.
10739 * regformats/reg-m68k.dat: New file.
10740 * regformats/reg-mips.dat: New file.
10741 * regformats/reg-ppc.dat: New file.
10742 * regformats/reg-sh.dat: New file.
10743 * regformats/regdef.h: New file.
10744 * regformats/regdat.sh: New file.
10745
0defa245
RE
107462002-02-01 Richard Earnshaw <reanrsha@arm.com>
10747
10748 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10749 (arm_frame_args_address, arm_frame_locals_address): New functions.
10750 (arm_frame_num_args): New function.
10751 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10752 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10753 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10754
405f26e6
MS
107552002-01-31 Michael Snyder <msnyder@redhat.com>
10756
502fd408
MS
10757 * breakpoint.c (break_at_finish_command): Export.
10758 (break_at_finish_at_depth_command): Export.
10759 (tbreak_at_finish_command): Export.
d6020d45 10760 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 10761 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 10762 "txbreak" commands, which are HPPA specific.
502fd408 10763
7d35e135
MS
10764 * printcmd.c (disassemble_command): Remove an ancient
10765 artifact of an old merge.
10766
aaa38bb5 10767 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10768 Define enum constant values for overlay mode.
10769 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10770 (overlay_is_mapped, overlay_auto_command,
10771 overlay_manual_command): Ditto.
d874f1e2 10772
aaa38bb5
AJ
10773 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10774 breakpoint_here_p, breakpoint_inserted_here_p,
10775 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10776 describe_other_breakpoints, check_duplicates, clear_command):
10777 Coding standard fixes.
10778
8add0441 10779 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10780 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10781 code: check bfd SEC_READONLY flag for section.
10782
e351066e
AC
107832002-01-31 Andrew Cagney <ac131313@redhat.com>
10784
7d35e135 10785 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10786
8a48e967
DJ
107872002-01-30 Daniel Jacobowitz <drow@mvista.com>
10788
10789 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10790 data symbols, since we search based on textlow and texthigh.
10791 (find_pc_sect_symtab): Likewise.
10792
f5a96129
AC
107932002-01-30 Andrew Cagney <ac131313@redhat.com>
10794
10795 * defs.h (vwarning): Declare.
f5a96129
AC
10796 * utils.c (vwarning): New function.
10797 (warning): Call vwarning.
10798 (warning_begin): Delete function.
10799
10800 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10801 the warning message.
10802 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10803 warning_begin.
10804
cefd4ef5
MS
108052002-01-30 Michael Snyder <msnyder@redhat.com>
10806
1a703748
MS
10807 * NEWS: Mention "set trust-readonly-sections" command.
10808 Mention generate-core-file command.
cefd4ef5 10809
3a11626d
MS
108102002-01-15 Michael Snyder <msnyder@redhat.com>
10811
10812 * target.c: New command, "set trust-readonly-sections on".
10813 (do_xfer_memory): Honor the suggestion to trust readonly sections
10814 by reading them from the object file instead of from the target.
10815 (initialize_targets): Register command "set trust-readonly-sections".
10816
d1c7e53b
AC
108172002-01-29 Andrew Cagney <ac131313@redhat.com>
10818
10819 * parse.c (target_map_name_to_register): Simplify, search regs and
10820 pseudo-regs using a single loop.
10821
e2c9a72c
AC
108222002-01-30 Andrew Cagney <ac131313@redhat.com>
10823
10824 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10825
69824b4e
MK
108262002-01-15 Rodney Brown <rbrown64@csc.com.au>
10827
10828 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10829 * config/i386/i386v42mp.mh: Add i387-nat.o .
10830 * i386v4-nat.c: Include i387-nat.h.
10831 (supply_fpregset): Use i387_supply_fsave.
10832 (fill_fpregset): Use i387_fill_fsave.
10833
6eb69eab
RE
108342002-01-30 Richard Earnshaw <rearnsha@arm.com>
10835
10836 * arm-tdep.c (arm_call_dummy_words): Define.
10837 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10838 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10839 (CALL_DUMMY_WORDS): Define.
10840 (arm_call_dummy_words): Declare.
10841 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10842 (arm_linux_call_dummy_words): Declare.
10843
9852326a
AS
108442002-01-30 Andreas Schwab <schwab@suse.de>
10845
10846 * m68klinux-nat.c: Fix last change to use regcache_collect
10847 instead of referencing registers[] directly.
10848
977a3030
AC
108492002-01-29 Andrew Cagney <ac131313@redhat.com>
10850
10851 * parse.c (target_map_name_to_register): Delete code wrapped in
10852 #ifdef REGISTER_NAME_ALIAS_HOOK.
10853
2076c72b
MS
108542002-01-28 Michael Snyder <msnyder@redhat.com>
10855
10856 * regcache.c (legacy_read_register_gen): Need to be able to
10857 read pseudo-register as well as real register.
10858 (legacy_write_register_gen): Ditto.
10859
8fcc723b
AC
108602002-01-28 Andrew Cagney <ac131313@redhat.com>
10861
10862 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10863 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10864 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10865 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10866 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10867 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10868 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10869 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10870 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10871 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10872 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10873 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10874 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10875 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10876 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10877 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10878 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10879 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10880 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10881 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10882
afe64c1a
AC
108832002-01-28 Andrew Cagney <ac131313@redhat.com>
10884
10885 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10886 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10887 (initialize_current_architecture): Update target_byte_order using
10888 information from BFD.
aaa38bb5 10889 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
10890 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10891
75bc7ddf
AC
108922002-01-28 Andrew Cagney <ac131313@redhat.com>
10893
10894 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10895 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10896
10897 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10898 #ifdef INVALID_FLOAT.
10899 * infcmd.c (do_registers_info): Ditto.
10900 * values.c (unpack_double): Ditto. Add comment.
10901
10902 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10903 already commented out.
10904
0280a90a
AS
109052002-01-26 Andreas Schwab <schwab@suse.de>
10906
10907 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10908 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10909 registers and add support for PTRACE_GETREGS.
10910
7072a954
AC
109112002-01-24 Andrew Cagney <ac131313@redhat.com>
10912
10913 GDB 5.1.1 released from 5.1 branch.
10914 * NEWS: Add 5.1.1 news.
10915 * README: Sync with 5.1 branch.
10916
86f902e0
FF
109172002-01-23 Fred Fish <fnf@redhat.com>
10918
10919 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10920 stabstring on initial malloc. Reallocing will copy it for us,
10921 if necessary.
10922
8af51c36
EZ
109232002-01-23 Elena Zannoni <ezannoni@redhat.com>
10924
aaa38bb5 10925 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
10926 (HFILES_NO_SRCDIR): Remove hpread.h.
10927 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10928 (hpread.o): Update dependencies.
10929 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10930
10931 * hp-psymtab-read.c: Remove file.
10932 * hp-symtab-read.c: Remove file.
10933 * hpread.h: Remove file.
10934
10935 * hpread.c: Merge all contents of hp-psymtab-read.c,
10936 hp-symtab-read.c and hpread.h into this file, as it was prior to
10937 January 1999.
10938
10939 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 10940 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
10941 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10942 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10943
dc5cfeb6
EZ
109442002-01-23 Elena Zannoni <ezannoni@redhat.com>
10945
10946 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10947 fill_gregset): Call gdbarch_tdep() just once, assign result to
10948 variable and use that, instead of calling the function several
10949 times.
10950
ea87b71b
AO
109512002-01-24 Alexandre Oliva <aoliva@redhat.com>
10952
10953 * configure.host: Accept sparcv9 as alias for sparc64.
10954 * configure.tgt: Likewise.
10955
13fc0c2f
KB
109562002-01-22 Kevin Buettner <kevinb@redhat.com>
10957
10958 * solib-aix5.c (build_so_list_from_mapfile)
10959 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10960 arguments is not reversed.
10961 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10962 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 10963
7bd872fe
EZ
109642002-01-22 Elena Zannoni <ezannoni@redhat.com>
10965
10966 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10967 modified version of obsolete sh_fetch_pseudo_register.
10968 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10969 (sh4_register_read): New function.
10970 (sh_pseudo_register_write): New function. Renamed and modified
10971 version of obsolete sh_store_pseudo_register.
10972 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10973 (sh4_register_write): New function.
10974 (sh_gdbarch_init): Remove setting of gdbarch function
10975 fetch_pseudo_register and store_pseudo_register. Remove setting of
10976 register_convert_to_raw, register_convert_to_virtual,
10977 register_convertible.
10978 (sh_sh4_register_convertible): Delete. No longer needed. All is
10979 taken care by architecture specific functions
10980 register_read/register_write.
10981 (sh_sh4_register_convert_to_virtual): Make static.
10982 (sh_sh4_register_convert_to_raw): Ditto.
10983
069e84fd
AC
109842002-01-22 Andrew Cagney <ac131313@redhat.com>
10985
10986 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10987 (floatformat_is_nan, floatformat_mantissa): Ditto.
10988
10989 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10990 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10991 builtin_type_ieee_double_little,
10992 builtin_type_ieee_double_littlebyte_bigword,
10993 builtin_type_m68881_ext, builtin_type_i960_ext,
10994 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10995 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10996 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10997 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10998
211a4f69
CV
109992002-01-22 Corinna Vinschen <vinschen@redhat.com>
11000
11001 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11002 parameter. Set frameless flag if it exists and depended of
11003 whether the scanned function is frameless or not.
11004 (xstormy16_skip_prologue): If function is frameless, return
11005 result of xstormy16_scan_prologue().
11006 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11007 call.
11008
f81353e4
EZ
110092002-01-21 Elena Zannoni <ezannoni@redhat.com>
11010
11011 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11012 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11013 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11014 sh_sh4_register_byte, sh_sh4_register_raw_size,
11015 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11016 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11017 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11018 sh_store_pseudo_register, sh_do_pseudo_register): Call
11019 gdbarch_tdep() just once, assign result to variable and use that,
11020 instead of calling the function several times.
11021
63c73a17
MK
110222002-01-20 Mark Kettenis <kettenis@gnu.org>
11023
11024 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11025 macros instead of LAST_FPU_CTRL_REGNUM.
11026 (store_register): Likewise.
11027
39ad761d
JB
110282002-01-21 Jim Blandy <jimb@redhat.com>
11029
11030 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11031 is up-to-date before running the program, not just when a program
11032 exits.
11033
3d74b771
FF
110342002-01-21 Fred Fish <fnf@redhat.com>
11035
11036 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11037 when we have found all instructions we are looking for.
11038
966fbf70
RE
110392002-01-21 Richard Earnshaw <rearnsha@arm.com>
11040
11041 * arm-tdep.c (arm_register_name): New function.
11042 (arm_registers_names): Make static.
11043 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11044 (arm_register_name): Declare.
11045 (REGISTER_NAME): Use it.
11046
c3b4394c
RE
110472002-01-21 Richard Earnshaw <rearnsha@arm.com>
11048 Kevin Buettner <kevinb@redhat.com>
11049
11050 Convert arm targets to new FRAME interface.
11051 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11052 (arm_frame_find_save_regs): Delete.
11053 (arm_frame_init_saved_regs): New.
11054 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11055 Allocate extra_info as required. Convert all uses of fsr.regs
11056 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11057 to use extra_info.
11058 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11059 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11060 (check_prologue_cache, save_prologue_cache): Likewise.
11061 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11062 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11063 (FRAME_FIND_SAVED_REGS): Delete.
11064 (arm_frame_find_saved_regs): Delete prototype.
11065 (arm_frame_init_saved_regs): New prototype.
11066 (FRAME_INIT_SAVED_REGS): Define.
11067
61d99182
AC
110682002-01-20 Andrew Cagney <ac131313@redhat.com>
11069
11070 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11071
6aaea291
AC
110722002-01-20 Andrew Cagney <ac131313@redhat.com>
11073
11074 From Jeff Law <law@redhat.com>:
11075 * infttrace.c: Include <sys/pstat.h>.
11076 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11077 exec file if the ttrace equivalent fails.
11078
15f698d2
AC
110792002-01-20 Andrew Cagney <ac131313@redhat.com>
11080
11081 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11082 (closeLogFile): Ditto.
11083
f86ddd7c
MC
110842002-01-20 Michael Chastain <mec@shout.net>
11085
11086 * top.c (print_gdb_version): Bump copyright year to 2002.
11087
904507ce
AC
110882002-01-20 Andrew Cagney <ac131313@redhat.com>
11089
11090 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11091 Zannoni and Eli Zaretskii.
11092
d7f0b9ce
DJ
110932002-01-20 Daniel Jacobowitz <drow@mvista.com>
11094
11095 * buildsym.c: Update copyright years.
11096 * c-typeprint.c: Likewise.
11097 * dwarf2read.c: Likewise.
11098 * f-typeprint.c: Likewise.
11099 * gdbtypes.c: Likewise.
11100 * gdbtypes.h: Likewise.
11101 * hp-symtab-read.c: Likewise.
11102 * hpread.c: Likewise.
11103 * mdebugread.c: Likewise.
11104 * p-typeprint.c: Likewise.
11105
3fd3d7d2
AC
111062002-01-20 Andrew Cagney <ac131313@redhat.com>
11107
11108 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11109 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11110 byte-order selectable.
11111 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11112 * arch-utils.c: Ditto.
11113 (set_endian): Ditto.
11114 (set_endian_from_file): Ditto.
11115 * gdbserver/low-sim.c (create_inferior): Ditto.
11116 * gdbarch.sh: Ditto.
11117 * gdbarch.h: Re-generate.
aaa38bb5
AJ
11118 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11119 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11120 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11121 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11122 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11123 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11124 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
11125 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11126 macro definition.
11127 * config/mips/tm-wince.h: Remove #undef of macro
11128 TARGET_BYTE_ORDER_SELECTABLE.
11129 * config/sh/tm-wince.h: Ditto.
11130
b02dede2
DJ
111312002-01-20 Daniel Jacobowitz <drow@mvista.com>
11132
11133 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11134 member function fields. Add accessor macro
11135 TYPE_FN_FIELD_ARTIFICIAL.
11136 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11137 * c-typeprint.c (c_type_print_base): Skip artificial member
11138 functions.
11139
c3643761
DJ
111402002-01-20 Daniel Jacobowitz <drow@mvista.com>
11141
11142 * f-typeprint.c: Delete unused function f_type_print_args.
11143 * p-typeprint.c: Delete unused function pascal_type_print_args.
11144
8176bb6d
DJ
111452002-01-20 Daniel Jacobowitz <drow@mvista.com>
11146
11147 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11148 comment. Add ``artificial'' to ``union field_location''.
11149
11150 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11151
11152 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11153 * mdebugread.c (parse_symbol): Likewise.
11154 * stabsread.c (define_symbol): Likewise.
11155 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11156 initializing TYPE_FIELD_BITPOS to n (obsolete).
11157 (hpread_doc_function_type): Likewise.
11158 * hpread.c (hpread_function_type): Likewise.
11159
7fd60527
AC
111602002-01-20 Andrew Cagney <ac131313@redhat.com>
11161
11162 * configure.in (host_makefile_frag): Only require a host makefile
11163 fragment when a native build.
11164 * configure: Re-generate.
11165
c2f05ac9
AC
111662002-01-20 Andrew Cagney <ac131313@redhat.com>
11167
11168 * doublest.h (floatformat_from_type): Declare.
11169 * doublest.c (floatformat_from_type): New function.
11170 (convert_typed_floating): Use.
11171
11172 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11173 call to function floatformat_from_type.
11174
11175 * gdbarch.sh (IEEE_FLOAT): Delete.
11176 * gdbarch.h, gdbarch.c: Re-generate.
11177 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11178 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11179 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11180 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11181 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11182 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11183 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11184 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11185 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11186 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11187 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
11188 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11189
11190 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11191 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11192 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11193 * sh-tdep.c (sh_gdbarch_init): Ditto.
11194 * mips-tdep.c (mips_gdbarch_init): Ditto.
11195 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11196 * cris-tdep.c (cris_gdbarch_init): Ditto.
11197
abf22e64
AJ
111982002-01-20 Jiri Smid <smid@suse.cz>
11199
11200 * configure.host, configure.tgt: Support x86-64.
11201 * NEWS: Note new target x86-64.
11202
b7c4cbf8
AJ
11203 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11204 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11205 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11206 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11207 x86-64-linux-nat.o): Fix dependencies.
11208
82600034
AC
112092002-01-19 Andrew Cagney <ac131313@redhat.com>
11210
11211 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11212 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11213 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11214 * config/sparc/xm-sun4os4.h: Delete file.
11215 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 11216
bbe5c628
AC
112172002-01-19 Andrew Cagney <ac131313@redhat.com>
11218
11219 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11220 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11221 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11222 * config/i386/i386lynx.mh (XM_FILE): Delete.
11223 * config/rs6000/xm-rs6000ly.h: Delete file.
11224 * config/sparc/xm-sparclynx.h: Delete file.
11225 * config/m68k/xm-m68klynx.h: Delete file.
11226 * config/i386/xm-i386lynx.h: Delete file.
11227 * config/xm-lynx.h: Delete file.
11228 * config/djgpp/fnchange.lst: Update.
11229
f8453e34
JT
112302002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11231
11232 * alpha-tdep.c (alpha_register_byte): New function.
11233 (alpha_register_raw_size): Ditto.
11234 (alpha_register_virtual_size): Ditto.
11235 (alpha_skip_prologue_internal): Renamed from
11236 alpha_skip_prologue.
11237 (alpha_skip_prologue): New version that calls
11238 alpha_skip_prologue_internal.
11239 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11240 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11241 second argument from alpha_skip_prologue.
11242 (REGISTER_BYTE): Use alpha_register_byte.
11243 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11244 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11245 (FRAMELESS_FUNCTION_INVOCATION): Use
11246 generic_frameless_function_invocation_not.
11247 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11248 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11249
52d9e613
AC
112502002-01-19 Andrew Cagney <ac131313@redhat.com>
11251
11252 * config/mips/xm-news-mips.h: Delete file.
11253 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11254
11255 * config/m88k/xm-m88k.h: Delete file.
11256 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11257 * config/m88k/xm-delta88v4.h: Ditto.
11258 * config/m88k/xm-delta88.h: Ditto.
11259
11260 * config/alpha/xm-fbsd.h: Delete file.
11261 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11262
11263 * config/sparc/xm-sparc.h: Delete file.
11264 * Makefile.in (xm-sun4os4.h): Delete dependency.
11265 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11266 * config/sparc/xm-sun4os4.h: Ditto.
11267 * config/sparc/xm-linux.h: Ditto.
11268
11269 * config/i386/xm-windows.h: Delete file.
11270
2d1b2124
AC
112712002-01-19 Andrew Cagney <ac131313@redhat.com>
11272
11273 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11274 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11275
ee1f65f0
JT
112762002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11277
11278 * alpha-tdep.c (alpha_call_dummy_words): New.
11279 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11280 (CALL_DUMMY_P): Define.
11281 (CALL_DUMMY_WORDS): Define.
11282 (SIZEOF_CALL_DUMMY_WORDS): Define.
11283
98081e55
PB
112842002-01-19 Per Bothner <per@bothner.com>
11285
11286 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11287 isn't NULL, which can happen with some gcj-3.x-produced code.
11288
0d056799
JT
112892002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11290
11291 * alpha-tdep.c (alpha_register_virtual_type): New function.
11292 (alpha_init_frame_pc_first): Ditto.
11293 (alpha_fix_call_dummy): Ditto.
11294 (alpha_store_struct_return): Ditto.
11295 (alpha_extract_struct_value_address): Ditto.
11296 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11297 alpha_register_virtual_type.
11298 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11299 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11300 alpha_extract_struct_value_address.
11301 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11302 (INIT_FRAME_PC): Use init_frame_pc_noop.
11303 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11304
4604bcad
MK
113052002-01-19 Mark Kettenis <kettenis@gnu.org>
11306
11307 * i386gnu-nat.c: Include "i386-tdep.h".
11308 (fetch_fpregs): Simplify code dealing with uninitialized floating
11309 point states such that it doesn't require FP7_REGNUM.
11310
140f9984
JT
113112002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11312
abf22e64
AJ
11313 * alpha-tdep.c (frame_extra_info): New.
11314 (alpha_find_saved_regs): Make static. Use
140f9984
JT
11315 frame->extra_info.
11316 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
11317 (alpha_frame_saved_pc): Use frame->extra_info.
11318 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11319 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
11320 (init_extra_frame_info): Rename to...
11321 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 11322 (alpha_print_extra_frame_info): New function.
140f9984
JT
11323 (alpha_frame_locals_address): Ditto.
11324 (alpha_frame_args_address): Ditto.
abf22e64 11325 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
11326 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11327 alpha_frame_args_address.
abf22e64 11328 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 11329 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
11330 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11331 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
11332 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11333 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11334
d734c450
JT
113352002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11336
11337 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11338 (alpha_cannot_fetch_register): Ditto.
11339 (alpha_cannot_store_register): Ditto.
11340 (alpha_register_convertible): Ditto.
11341 (alpha_use_struct_convention): Ditto.
11342 * config/alpha/tm-alpha.h: Update copyright years.
11343 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11344 (INNER_THAN): Use core_addr_lessthan.
11345 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11346 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11347 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11348 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11349 (FRAME_CHAIN): Remove unnecessary cast.
11350
b4ceaee6
AC
113512002-01-18 Andrew Cagney <ac131313@redhat.com>
11352
11353 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11354 obsolete.
11355
0a65a603
AC
113562002-01-18 Andrew Cagney <ac131313@redhat.com>
11357
11358 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11359 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11360 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11361 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11362 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11363 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11364 * x86-64-linux-nat.c: Ditto.
11365
636a6dfc
JT
113662002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11367
abf22e64 11368 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
11369 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11370 (REGISTER_NAME): Define.
11371
acceddb6
JT
113722002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11373
11374 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11375
ec32e4be
JT
113762002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11377
11378 * alpha-tdep.c: Update copyright years.
11379 (alpha_next_pc): New function.
11380 (alpha_software_single_step): Ditto.
11381 * config/alpha/tm-alpha.h: Add prototype for
11382 alpha_software_single_step.
11383
e771a871
JT
113842002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11385
11386 * alphabsd-nat.c: Update copyright years.
11387 (fill_gregset): Use regcache_collect.
11388 (fill_fpregset): Likewise.
11389 (fetch_inferior_registers): Only fetch integer registers
11390 if requested to do so.
11391 (store_inferior_registers): Only store integer registers
11392 if requested to do so.
11393
7708fa01
AC
113942002-01-17 Andrew Cagney <ac131313@redhat.com>
11395
11396 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11397 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11398 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11399 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11400 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11401 * config/arm/linux.mh (XDEPFILES): Delete.
11402 * config/arm/nbsd.mh (XDEPFILES): Delete.
11403 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11404 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11405 * config/i386/i386m3.mh (XDEPFILES): Delete.
11406 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11407 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11408 * config/i386/fbsd.mh (XDEPFILES): Delete.
11409 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11410 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11411 * config/i386/i386v4.mh (XDEPFILES): Delete.
11412 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11413 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11414 * config/i386/i386aix.mh (XDEPFILES): Delete.
11415 * config/i386/go32.mh (XDEPFILES): Delete.
11416 * config/i386/cygwin.mh (XDEPFILES): Delete.
11417 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11418 * config/i386/i386mach.mh (XDEPFILES): Delete.
11419 * config/i386/i386v32.mh (XDEPFILES): Delete.
11420 * config/i386/linux.mh (XDEPFILES): Delete.
11421 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11422 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11423 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11424 * config/i386/i386sco.mh (XDEPFILES): Delete.
11425 * config/i386/i386v.mh (XDEPFILES): Delete.
11426 * config/i386/nbsd.mh (XDEPFILES): Delete.
11427 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11428 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11429 * config/i386/symmetry.mh (XDEPFILES): Delete.
11430 * config/i386/obsd.mh (XDEPFILES): Delete.
11431 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11432 * config/ia64/linux.mh (XDEPFILES): Delete.
11433 * config/ia64/aix.mh (XDEPFILES): Delete.
11434 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11435 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11436 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11437 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11438 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11439 * config/m68k/linux.mh (XDEPFILES): Delete.
11440 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11441 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11442 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11443 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11444 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11445 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11446 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11447 * config/m88k/delta88.mh (XDEPFILES): Delete.
11448 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11449 * config/m88k/m88k.mh (XDEPFILES): Delete.
11450 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11451 * config/mips/linux.mh (XDEPFILES): Delete.
11452 * config/mips/irix6.mh (XDEPFILES): Delete.
11453 * config/mips/irix5.mh (XDEPFILES): Delete.
11454 * config/mips/irix4.mh (XDEPFILES): Delete.
11455 * config/mips/irix3.mh (XDEPFILES): Delete.
11456 * config/mips/decstation.mh (XDEPFILES): Delete.
11457 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11458 (NATDEPFILES): Move core-aout.o to here.
11459 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11460 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11461 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11462 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11463 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11464 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11465 * config/pa/hpux11.mh (XDEPFILES): Delete.
11466 * config/powerpc/aix.mh (XDEPFILES): Delete.
11467 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11468 * config/powerpc/linux.mh (XDEPFILES): Delete.
11469 * config/romp/rtbsd.mh: Rename XDEPFILES.
11470 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11471 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11472 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11473 * config/s390/s390.mh (XDEPFILES): Delete.
11474 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11475 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11476 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11477 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11478 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11479 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11480 * config/sparc/linux.mh (XDEPFILES): Delete.
11481 * config/vax/vaxult.mh (XDEPFILES): Delete.
11482 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11483 * Makefile.in (DEPFILES): Remove XDEPFILES.
11484
375fc983
AC
114852002-01-17 Andrew Cagney <ac131313@redhat.com>
11486
11487 * utils.c (internal_verror): Fix comments, default is yes not no.
11488 Update queries to match. Default to quit and dump core.
11489
8926118c
AC
114902002-01-17 Andrew Cagney <ac131313@redhat.com>
11491
11492 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11493 copyright.
11494 * defs.h, event-top.c, gdbcmd.h: Ditto.
11495 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11496 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11497 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11498 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11499 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11500 * mi/mi-main.c:Ditto.
11501
11502 * stack.c, symfile.c: Update copyright.
11503
45b7b345
DJ
115042002-01-17 Daniel Jacobowitz <drow@mvista.com>
11505
db728ff7
DJ
11506 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11507 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11508 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11509 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11510
db728ff7
DJ
115112002-01-17 Daniel Jacobowitz <drow@mvista.com>
11512
11513 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11514 * gdbserver/low-lynx.c (myattach): Likewise.
11515 * gdbserver/low-nbsd.c (myattach): Likewise.
11516 * gdbserver/low-sim.c (myattach): Likewise.
11517 * gdbserver/low-sparc.c (myattach): Likewise.
11518 * gdbserver/low-sun3.c (myattach): Likewise.
11519
11520 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11521
db728ff7 11522 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11523 (main): Handle "--attach".
11524
8de3c354
AC
115252002-01-16 Andrew Cagney <ac131313@redhat.com>
11526
11527 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11528 maintainer.
11529
b0129042
DJ
115302002-01-15 Daniel Jacobowitz <drow@mvista.com>
11531
11532 * c-typeprint.c (is_type_conversion_operator): Add additional
11533 check for non-conversion operators.
11534
ba8679fb 115352002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
11536
11537 * linux-proc.c: Add "info proc" command, a la procfs.c.
11538 (read_mapping): New function, abstract and re-use code.
11539 (linux_find_memory_regions): Use new func read_mapping.
11540 (linux_info_proc_cmd): New function, implement "info proc".
11541 (_initialize_linux_proc): Add new command "info proc".
11542
e4f9b4d5
MS
115432002-01-15 Michael Snyder <msnyder@redhat.com>
11544
11545 * symfile.c (generic_load): Use bfd_map_over_sections method
11546 instead of manipulating bfd structure members directly.
11547 (add_section_size_callback): New function, bfd sections callback
11548 used by generic_load.
11549 (load_sections_callback): New function, bfd sections callback
11550 used by generic_load.
11551
08cf96df
EZ
115522002-01-15 Elena Zannoni <ezannoni@redhat.com>
11553
abf22e64 11554 [Based on work by Jim Blandy]
08cf96df
EZ
11555 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11556 (builtin_type_vec128): Export.
11557 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11558 types.
11559 (builtin_type_vec128): New builtin type for 128 bit vector
11560 registers.
11561 (build_gdbtypes): Initialize builtin_type_v16qi and
11562 builtin_type_v8hi. Create the vec128 register builtin type
11563 structure.
11564 (build_builtin_type_vec128): New function.
abf22e64 11565 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11566 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11567 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11568 AltiVec register to new builtin type.
11569
d7242108
DJ
115702001-01-15 Daniel Jacobowitz <drow@mvista.com>
11571
11572 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11573 to make_cv_type.
11574
4ee3352d
AC
115752002-01-14 Andrew Cagney <ac131313@redhat.com>
11576
11577 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11578 CLEAN_UP_REGISTER_VALUE.
11579 * regcache.c (supply_register): Update only call.
11580
f015b2e7
AC
115812002-01-14 Andrew Cagney <ac131313@redhat.com>
11582
11583 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11584 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11585 a29k-*-vxworks* targets as obsolete.
11586
356ae49d
MS
115872002-01-14 Michael Snyder <msnyder@redhat.com>
11588
11589 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11590 until we can resolve portability issues.
11591 * gregset.h: Remove references to fpxregs.
11592 * gcore.c (gcore_command): Initialize note_sec to NULL.
11593
ade8f45e
AC
115942002-01-13 Andrew Cagney <ac131313@redhat.com>
11595
11596 * signals.c (target_signal_to_name): Rewrite. Only use
11597 signals[].name when in bounds and non-NULL.
abf22e64 11598
89c49e7a
AC
115992002-01-13 Andrew Cagney <ac131313@redhat.com>
11600
11601 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11602 * signals.c (target_signal_to_name): Verify that SIG is within the
11603 bounds of the signals array.
11604
4daa9f9f
AC
116052002-01-13 Andrew Cagney <ac131313@redhat.com>
11606
11607 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11608
ba4bbdcb
KS
116092002-01-13 Keith Seitz <keiths@redhat.com>
11610
11611 * stack.c (print_frame_info_base): Print the frame's pc
11612 only if when print_frame_info_listing_hook is not defined.
11613
575bbeb6
KS
116142002-01-13 Keith Seitz <keiths@redhat.com>
11615
11616 * varobj.c (varobj_set_value): Make sure that there were no
11617 errors evaluating the object before attempting to set its
11618 value.
11619 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11620 so this offset adjustment is no longer necessary.
11621 (create_child): Don't set the error flag if the child is
11622 a CPLUS_FAKE_CHILD.
11623 (value_of_child): If value_fetch_lazy fails, return NULL
11624 so that callers will be notified that an error occurred.
11625 (c_value_of_variable): Delay check of variable's validity
11626 until later. We actually want all structs and unions to have
11627 the value "{...}".
11628 Do not return "???" for variables which could not be evaluated.
11629 This error condition must be returned to the caller so that it
11630 can get the error condition from gdb.
11631 (cplus_name_of_child): Adjust index for vptr before figuring
11632 out the name of the child.
11633 (cplus_value_of_child): If a child's (real) parent is not valid,
11634 don't even bother trying to give a value for it. Just return
11635 an error. Change all instances in this function.
11636 (cplus_type_of_child): If our parent is one of the "fake"
11637 parents, we need to get at the type of the real parent, and
11638 derive the child's true type using this information.
11639
b76898ab
AC
116402002-01-13 Andrew Cagney <ac131313@redhat.com>
11641
11642 From 2002-01-09 John Marshall <johnm@falch.net>:
11643 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11644 sources.redhat.com, and tweak some related URLs which had
11645 suffered from linkrot.
11646
b6649e88
AC
116472002-01-13 Andrew Cagney <ac131313@redhat.com>
11648
11649 From Jeff law:
11650 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11651 structures passed in registers.
11652
82cc5033
EZ
116532002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11654
11655 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11656 white space which prevented compilation. Reported by DSK
11657 <dsk@student.unsw.edu.au>.
11658
ba5f2f8a
MS
116592002-01-11 Michael Snyder <msnyder@redhat.com>
11660
fbd35540
MS
11661 * symfile.c (build_section_addr_info_from_section_tab):
11662 Use bfd access method instead of manipulating bfd directly.
11663 (syms_from_objfile): Ditto.
11664 (simple_overlay_update_1): Ditto.
11665 (simple_overlay_update): Ditto.
11666 (generic_load): Ditto.
11667 (overlay_unmapped_address): FIXME comment, bfd access methods.
11668 (sections_overlap): FIXME comment, bfd access methods.
11669 (pc_in_mapped_range): FIXME comment, bfd access methods.
11670 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11671 (section_is_mapped): FIXME comment, bfd access methods.
11672 (section_is_overlay): FIXME comment, bfd access methods.
11673
ba5f2f8a
MS
11674 * symfile.c (generic_load): Whitespace and long line cleanups.
11675 Remove duplicate variable, change several local variables to
11676 more appropriate data types.
11677 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11678
17df2af6
AC
116792002-01-12 Andrew Cagney <ac131313@redhat.com>
11680
11681 From Peter Schauer:
11682 * language.c (longest_local_hex_string_custom): Use phex_nz to
11683 convert NUM to a hex string.
11684
ec920329
EZ
116852002-01-12 Elena Zannoni <ezannoni@redhat.com>
11686
11687 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11688 the function.
538a76d6 11689 Update Copyright year.
ec920329 11690
3abd2e01
AC
116912002-01-12 Andrew Cagney <ac131313@redhat.com>
11692
11693 * language.c (longest_raw_hex_string): Delete unused function.
11694
b21b22e0
PS
116952002-01-11 Petr Sorfa <petrs@caldera.com>
11696
11697 * MAINTAINERS (write-after-approval): Add myself.
11698 * dwarf2read.c (read_tag_string_type): Handling of
11699 DW_AT_byte_size.
11700 (read_tag_string_type): FORTRAN fix to prevent propagation of
11701 first string size.
11702 (set_cu_language): Handling of DW_LANG_Fortran95
11703
747fe712
RE
117042002-01-11 Richard Earnshaw <rearnsha@arm.com>
11705
11706 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11707 GETPID(inferior_ptid).
11708 (store_inferior_registers): Likewise.
11709
f1bea926
JM
117102002-01-10 Jason Merrill <jason@redhat.com>
11711
11712 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11713 Fix DW_OP_minus.
11714
ae940673
AC
117152002-01-10 Andrew Cagney <ac131313@redhat.com>
11716
11717 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11718 and bfd/elf32-sh-nbsd.c.
11719
00546b04
MS
117202002-01-10 Michael Snyder <msnyder@redhat.com>
11721
352ed7b4
MS
11722 * NEWS: Mention --pid and corefile/proc-id behavior change.
11723
c18be923
MS
11724 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11725 * gcore.c: Include cli/cli-decode.h instead of command.h.
11726
00546b04
MS
11727 * main.c (captured_main): Add new command line option "--pid".
11728 If the second command line argument (following the symbol-file)
11729 begins with a digit, try to attach to it before trying to open
11730 it as a corefile.
11731 (print_gdb_help): Document the "--pid" argument.
11732
db60ec62
EZ
117332002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11734
11735 * completer.c (command_completer): New function.
11736
11737 * completer.h <command_completer>: Add prototype.
11738
11739 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11740 completer for the "help" command.
11741
39c22d1a
JM
117422002-01-09 Jason Merrill <jason@redhat.com>
11743
11744 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11745
c564377f
MS
117462002-01-09 Michael Snyder <msnyder@redhat.com>
11747
975aec09
MS
11748 * i386-linux-nat.c (fill_fpxregset): Make global.
11749 (store_fpxregset): Ditto.
11750
db4a10fa
MS
11751 * gregset.h (gdb_fpxregset_t): Define.
11752 (supply_fpxregset): Prototype.
11753 (fill_fpxregset): Prototype.
11754
c564377f
MS
11755 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11756
c3d45d70
RE
117572002-01-09 Richard Earnshaw <rearnsha@arm.com>
11758
11759 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11760 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11761 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11762
fcc87af1
AC
117632002-01-09 Andrew Cagney <ac131313@redhat.com>
11764
11765 * MAINTAINERS: Update target maintainer rules so that any
11766 Maintainer can approve a tested patch for a maintenance-only
11767 target.
11768
dd96c05b
RE
117692002-01-09 Richard Earnshaw <rearnsha@arm.com>
11770
d4297db9 11771 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11772
d4297db9 11773 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11774 IN_SIGTRAMP.
11775
145fdc6e
MS
117762002-01-08 Michael Snyder <msnyder@redhat.com>
11777
11778 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11779 real name of the executable, rather than the /proc name.
11780
be4d1333
MS
117812002-01-03 Michael Snyder <msnyder@redhat.com>
11782
11783 Implement a "generate-core-file" command in gdb, save target state.
11784 * gcore.c: New file. Implement new command 'generate-core-file'.
11785 Save a corefile image of the current state of the inferior.
11786 * linux-proc.c: Add linux-specific code for saving corefiles.
11787 * target.h (struct target_ops): Add new target vectors for saving
11788 corefiles; to_find_memory_regions and to_make_corefile_notes.
11789 (target_find_memory_regions): New macro.
11790 (target_make_corefile_notes): New macro.
11791 * target.c (update_current_target): Inherit new target methods.
11792 (dummy_find_memory_regions): New place-holder method.
11793 (dummy_make_corefile_notes): New place-holder method.
11794 (init_dummy_target): Initialize new dummy target vectors.
11795 * exec.c (exec_set_find_memory_regions): New function.
11796 Allow the exec_ops vector for memory regions to be taken over.
11797 (exec_make_note_section): New function, target vector method.
11798 * defs.h (exec_set_find_memory_regions): Export prototype.
11799 * procfs.c (proc_find_memory_regions): New function, corefile method.
11800 (procfs_make_note_section): New function, corefile method.
11801 (init_procfs_ops): Set new target vector pointers.
11802 (find_memory_regions_callback): New function.
11803 (procfs_do_thread_registers): New function.
11804 (procfs_corefile_thread_callback): New function.
11805 * sol-thread.c (sol_find_memory_regions): New function.
11806 (sol_make_note_section): New function.
11807 (init_sol_thread_ops): Initialize new target vectors.
11808 * inftarg.c (inftarg_set_find_memory_regions): New function.
11809 Allow to_find_memory_regions vector to be taken over.
11810 (inftarg_set_make_corefile_notes): New function.
11811 Allow to_make_corefile_notes vector to be taken over.
11812 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11813 interface layer if not target_has_execution (may be a corefile).
11814 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11815 * config/sparc/sun4sol2.mh: Ditto.
11816 * config/alpha/alpha-linux.mh: Ditto.
11817 * config/arm/linux.mh: Ditto.
11818 * config/i386/x86-64linux.mh: Ditto.
11819 * config/ia64/linux.mh: Ditto.
11820 * config/m68k/linux.mh: Ditto.
11821 * config/mips/linux.mh: Ditto.
11822 * config/powerpc/linux.mh: Ditto.
11823 * config/sparc/linux.mh: Ditto.
11824
c6b92abd
MS
118252002-01-07 Michael Snyder <msnyder@redhat.com>
11826
11827 * arm-linux-nat.c: Remove references to regcache.c internal data
11828 (registers[] and register_valid[]).
11829
4b09dc8c
MS
118302002-01-07 Michael Snyder <msnyder@redhat.com>
11831
abf22e64
AJ
11832 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11833 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11834 symbol file and shlibs.
11835 * Makefile.in: Add rule for linux-proc.o.
11836 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11837 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11838 * config/arm/linux.mh: Ditto.
11839 * config/i386/linux.mh: Ditto.
11840 * config/i386/x86-64linux.mh: Ditto.
11841 * config/ia64/linux.mh: Ditto.
11842 * config/m68k/linux.mh: Ditto.
11843 * config/mips/linux.mh: Ditto.
11844 * config/powerpc/linux.mh: Ditto.
11845 * config/sparc/linux.mh: Ditto.
11846
c25b74ac
PM
118472002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11848
11849 * win32-nat.c: Add i386-tdep.h dependency.
11850
94cd915f
MS
118512002-01-07 Michael Snyder <msnyder@redhat.com>
11852
c7cccb76
MS
11853 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11854 instead of bfd_get_arch_size. Don't bail out just because
11855 there's no exec_bfd.
abf22e64 11856
34c0bd93
MS
11857 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11858 * p-valprint.c (pascal_object_print_value): Ditto.
11859 * somread.c (som_symtab_read): Ditto.
11860 * symfile.c (simple_free_overlay_region_table): Ditto.
11861 * valops.c (value_assign): Ditto.
11862
21c1c920
MS
11863 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11864 use tilde_expand and strerror for opening save-tracepoints file.
11865
5bbd998e
MS
11866 * thread-db.c (thread_db_new_objfile): Indendation fix.
11867
94cd915f
MS
11868 * infptrace.c (GDB_MAX_ALLOCA): New define.
11869 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11870 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11871 can be overridden with whatever value is appropriate to the host).
11872 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11873 alloca to allocate potentially large buffer.
11874 * rs6000-nat.c (child_xfer_memory): Ditto.
11875 * symm-nat.c (child_xfer_memory): Ditto.
11876 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11877
494e8a93
JSC
118782002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11879
11880 From Nick Clifton <nickc@redhat.com>
11881 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11882
d0e1d48e
MS
118832002-01-07 Michael Snyder <msnyder@redhat.com>
11884
abf22e64 11885 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
11886 Don't use exec_bfd if it's NULL.
11887
290b2c7a
MK
118882002-01-06 Mark Kettenis <kettenis@gnu.org>
11889
abf22e64 11890 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 11891
aef21287
AC
118922002-01-06 Andrew Cagney <ac131313@redhat.com>
11893
11894 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11895 * gnu-nat.c: Ditto.
11896
30efa627
AC
118972002-01-06 Andrew Cagney <ac131313@redhat.com>
11898
11899 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11900 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11901 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11902 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11903 z8k-coff have not been multi-arched. Update z8k-coff build
11904 status.
11905
9b4ff276
AC
119062002-01-06 Andrew Cagney <ac131313@redhat.com>
11907
11908 * MAINTAINERS: Mark a29k target as obsolete.
11909 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11910 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11911 comments.
11912 * NEWS: Note that a29k targets are obsolete.
11913 * a29k-tdep.c: Mark as obsolete.
11914 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11915 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11916 a29k-*-vxworks* targets as obsolete.
11917 * remote-adapt.c: Obsolete.
11918 * remote-eb.c: Obsolete.
11919 * remote-mm.c: Obsolete.
11920 * remote-udi.c: Obsolete.
11921 * config/a29k/a29k-udi.mt: Obsolete.
11922 * config/a29k/a29k.mt: Obsolete.
11923 * config/a29k/tm-a29k.h: Obsolete.
11924 * config/a29k/tm-vx29k.h: Obsolete.
11925 * config/a29k/vx29k.mt: Obsolete.
11926
a9011d31
AC
119272002-01-05 Andrew Cagney <ac131313@redhat.com>
11928
11929 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11930 with BFD_ENDIAN_BIG.
11931
9299404e
AC
119322002-01-05 Andrew Cagney <ac131313@redhat.com>
11933
11934 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11935 * configure, config.in: Re-generate.
11936 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11937 * defs.h: Do not include <endian.h>.
11938
7e89e357
JT
119392002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11940
11941 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11942 * config.in: Regenerate.
11943 * configure.in: Update copyright years.
11944 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11945 * configure: Regenerate.
11946 * i386bsd-nat.c: Update copyright years.
11947 (fill_gregset): Use regcache_collect.
11948 (fetch_inferior_registers): Only fetch integer registers
11949 if requested to do so. Add support for XMM registers
11950 using PT_GETXMMREGS.
11951 (store_inferior_registers): Only store integer registers
11952 if requested to do so. Add support for XMM registers
11953 using PT_SETXMMREGS.
11954 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11955 (store_inferior_registers): Remove.
11956 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11957 (fetch_elfcore_registers): New function.
11958 (i386nbsd_elfcore_fns): New.
11959 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11960 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11961 i386bsd-nat.o.
11962 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11963 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11964 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11965 * config/i386/tm-nbsd.h: Update copyright years.
11966 (HAVE_SSE_REGS): Define.
11967 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11968 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11969 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11970 (SIGCONTEXT_PC_OFFSET): Remove.
11971 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11972
a752853e
AC
119732002-01-05 Andrew Cagney <ac131313@redhat.com>
11974
11975 * configure.tgt: Remove powerpc-*-macos* target.
11976 * config/m68k/xm-mpw.h: Delete file.
11977 * config/xm-mpw.h: Delete file.
11978 * ser-mac.c: Delete file.
11979 * mpw-make.sed: Delete file.
11980 * mpw-config.in: Delete file.
11981 * mac-xdep.c: Delete file.
11982 * mac-gdb.r: Delete file.
11983 * mac-defs.h: Delete file.
11984 * mac-nat.c: Delete file.
11985 * config/powerpc/macos.mh: Delete file.
11986 * config/powerpc/macos.mt: Delete file.
11987 * config/powerpc/nm-macos.h: Delete file.
11988 * config/powerpc/tm-macos.h: Delete file.
11989 * source.c (openp, open_source_file): Remove obsolete code.
11990 * top.c (gdb_readline): Ditto.
11991 * utils.c (query): Ditto.
11992 * event-top.c (display_gdb_prompt): Ditto.
11993 * Makefile.in (ser-mac.o): Delete obsolete target.
11994 * NEWS: Update.
11995
d7449b42
AC
119962002-01-04 Andrew Cagney <ac131313@redhat.com>
11997
11998 * defs.h (BIG_ENDIAN): Delete macro definition.
11999 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12000 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12001 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12002 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12003 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12004 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12005 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12006 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12007 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12008 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12009 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12010 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12011 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12012 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12013 * gdbarch.c: Re-generate.
12014
356374e8
DJ
120152002-01-04 Daniel Jacobowitz <drow@mvista.com>
12016
12017 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12018 for core files.
12019
a2b8f8f8
JT
120202002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12021
12022 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12023
12466af9
AC
120242002-01-04 Andrew Cagney <ac131313@redhat.com>
12025
12026 * value.h (value_ptr): Delete typedef.
12027
3549ab40
JT
120282002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12029
12030 * i386nbsd-nat.c: Update copyright years.
12031 Include i386-tdep.h.
12032
fedbd091
EZ
120332002-01-04 Elena Zannoni <ezannoni@redhat.com>
12034
12035 * stabsread.c: Update copyright years.
12036
12037 From Debashis Mahata <debashis.mahata@wipro.com>:
12038 (read_struct_fields): Deal with Sun C compiler erroneous stab
12039 output for structs and unions.
fec8b34f 12040 Fix PR gdb/269.
fedbd091 12041
eb43544b
DJ
120422002-01-04 Daniel Jacobowitz <drow@mvista.com>
12043
12044 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12045 prototype.
12046
1514d34e
DJ
120472002-01-04 Daniel Jacobowitz <drow@mvista.com>
12048
12049 * cp-abi.c: Fix whitespace.
12050 (baseclass_offset): New wrapper function.
12051 * cp-abi.h (baseclass_offset): Add prototype.
12052 (struct cp_abi_ops): Add baseclass_offset pointer.
12053
12054 * valops.c (vb_match): Move to...
12055 * gnu-v2-abi.c (vb_match): here.
12056 * valops.c (baseclass_offset): Move to...
12057 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12058
12059 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12060
12061 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12062 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12063 * hpacc-abi.c (init_hpacc_ops): Likewise.
12064
7f8c9282
DJ
120652002-01-04 Daniel Jacobowitz <drow@mvista.com>
12066
12067 * valops.c (find_overload_match): Accept obj as a
12068 reference parameter. Update it before returning.
12069 * value.h (find_overload_match): Update prototype.
12070 * eval.c (evaluate_subexp_standard): Pass object to
12071 find_overload_match by reference.
12072
f23631e4
AC
120732002-01-03 Andrew Cagney <ac131313@redhat.com>
12074
12075 * valarith.c: Replace value_ptr with struct value pointer. Remove
12076 register attribute from value declarations.
12077 * valops.c: Ditto.
12078 * value.h: Ditto.
12079 * scm-lang.c (scm_lookup_name): Ditto.
12080
79e10fab 120812002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 12082
79e10fab
AC
12083 Abstract the functionality of iterating over mapped memory
12084 regions into a general purpose iterator function.
abf22e64 12085 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
12086 iterator for memory sections.
12087 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12088 (solib_mappings_callback): New function, callback for above.
12089 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12090 (info_mappings_callback): New function, callback for above.
12091
12092 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12093
c5ad026a
MK
120942002-01-01 Mark Kettenis <kettenis@gnu.org>
12095
d2a7c97a
MK
12096 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12097 * i386-tdep.c: Include "elf-bfd.h".
12098 (process_note_abi_tag_sections): New function.
12099 (i386_gdbarch_init): Add code to recognize various OS/ABI
12100 combinations.
12101
c5ad026a
MK
12102 * maint.c (_initialize_maint_cmds): Add missing \ in
12103 string-literal.
12104
a1a5b71e 12105For older changes see ChangeLog-2001
c906108c
SS
12106\f
12107Local Variables:
12108mode: change-log
12109left-margin: 8
12110fill-column: 74
12111version-control: never
12112End:
This page took 0.850674 seconds and 4 git commands to generate.