2002-11-05 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
87647bb0
AC
12002-11-05 Andrew Cagney <ac131313@redhat.com>
2
3 * sparc-tdep.c (sparc_print_register_hook): Make static.
4 (sparc_print_registers_info): New function.
5 (sparc_do_registers_info): New function.
6 (sparclet_print_registers_info): New function.
7 (sparclet_do_registers_info): New function.
8 (do_sparc_print_registers_info): New function.
9 (sparc_print_registers): New static function, clone of infcmd.c's
10 default_print_registers_info.
11 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
12 (sparclet_do_registers_info): Declare.
13 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
14 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
15 Re-define.
16 (sparc_do_registers_info): Declare.
17 (PRINT_REGISTER_HOOK): Delete macro.
18 (sparc_print_register_hook): Delete declaration.
19
8155455b
DC
202002-11-05 David Carlton <carlton@math.stanford.edu>
21
22 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
23 functions.
24 (lookup_symbol_aux_local): New function.
25 (lookup_symbol_aux_symtabs): New function.
26 (lookup_symbol_aux_psymtabs): New function.
27
29924310
DC
282002-11-05 David Carlton <carlton@math.stanford.edu>
29
30 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
31 previous values of 'objfile' and 'block'.
32
cc303028
PM
332002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
34
35 * values.c (value_change_enclosing_type): Set
36 enclosing_type field correctly also for the case where
37 more memory needs to be allocated.
38
1d70089a
MK
392002-11-03 Mark Kettenis <kettenis@gnu.org>
40
f16a25ae
MK
41 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
42 of puts_filtered.
43
1d70089a
MK
44 * i387-tdep.c (i387_print_float_info): Replace calls to
45 register_read and deprecated_read_register_gen with calls to
46 frame_register_read, and make the necessary adjustments to the
47 surrounding code.
48
7e20f3fb
AC
492002-11-02 Andrew Cagney <ac131313@redhat.com>
50
51 * gdbarch.sh (register_reggroup_p): Allow default value.
52 * gdbarch.h, gdbarch.c: Regenerate.
53
192dbe33
AC
542002-11-02 Andrew Cagney <ac131313@redhat.com>
55
56 * regcache.h: Add coment indicating replacements for deprecated
57 functions.
58
b59ff9d5
AC
592002-11-02 Andrew Cagney <cagney@redhat.com>
60
61 * reggroups.h, reggroups.c: New files.
62 * regcache.c: Include "reggroups.h".
63 (enum regcache_dump_what): Add `regcache_dump_groups'.
64 (regcache_dump): Contract size of the "Type" column. When
65 specified, dump the register's groups.
66 (maintenance_print_register_groups): New function.
67 (_initialize_regcache): Add command `maint print register-groups'.
68 * Makefile.in (COMMON_OBS): Add reggroups.o
69 (SFILES): Add reggroups.c.
70 (reggroups_h): Define.
71 (regcache.o, gdbarch.o): Update dependencies.
72 (reggroups.o): Specify dependencies.
73 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
74 Add opaque declaration for `struct reggroup' in generated .h file.
75 Include "reggroups.h" in generated .c file.
76 gdbarch.h, gdbarch.c: Re-generate.
77
4caf0990
AC
782002-11-02 Andrew Cagney <cagney@redhat.com>
79
80 * regcache.h (deprecated_read_register_gen): Rename
81 read_register_gen.
82 (deprecated_write_register_gen): Rename write_register_gen.
83 * i387-tdep.c: Update.
84 * x86-64-linux-nat.c: Update
85 * wince.c: Update.
86 * thread-db.c: Update.
87 * win32-nat.c: Update.
88 * mips-tdep.c: Update.
89 * d10v-tdep.c: Update.
90 * cris-tdep.c: Update.
91 * remote-sim.c: Update.
92 * remote-rdi.c: Update.
93 * remote-rdp.c: Update.
94 * frame.c: Update.
95 * target.c: Update.
96 * blockframe.c: Update.
97 * x86-64-tdep.c: Update.
98 * xstormy16-tdep.c: Update.
99 * sh-tdep.c: Update.
100 * s390-tdep.c: Update.
101 * rs6000-tdep.c: Update.
102 * sparc-tdep.c: Update.
103 * i386-tdep.c: Update.
104 * dwarf2cfi.c: Update.
105 * regcache.c: Update.
106
7a7adcdf
JB
1072002-11-01 Joel Brobecker <brobecker@gnat.com>
108
109 New interix-specific files:
110 * config/i386/nm-interix.h: New file.
111 * config/i386/interix.mh: New file.
112 * config/i386/interix.mt: New file.
113 * i386-interix-nat.c: New file.
114 * i386-interix-tdep.c: New file.
115
bdcdd535
AC
1162002-11-01 Andrew Cagney <cagney@redhat.com>
117
118 * frame.h (deprecated_generic_get_saved_register): Rename
119 generic_get_saved_register.
120 * blockframe.c (deprecated_generic_get_saved_register): Update.
121 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
122 (xstormy16_frame_saved_register): Update.
123 * sh-tdep.c (sh_gdbarch_init): Update.
124 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
125 * ia64-tdep.c (ia64_get_saved_register): Update.
126 * cris-tdep.c (cris_gdbarch_init): Update.
127 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
128 * arm-tdep.c (arm_gdbarch_init): Update.
129
2a4b7c45
DJ
1302002-10-31 Daniel Jacobowitz <drow@mvista.com>
131
132 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
133
ef17e74b
DJ
1342002-10-31 Daniel Jacobowitz <drow@mvista.com>
135
136 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
137 trampolines in sigaction.
138
4904ba5b
AC
1392002-10-31 Andrew Cagney <cagney@redhat.com>
140
141 * h8300-tdep.c: Include "gdb_assert.h".
142 (h8300_print_register): Add gdbarch, file and frame parameters.
143 Use frame_read_unsigned_register to read the register's value.
144 Use fprintf_filtered to display output.
145 (h8300_print_registers_info): Replace h8300_do_registers_info.
146 (h8300_gdbarch_init): Set print_registers_info.
147
f908a0eb
AC
1482002-10-31 Andrew Cagney <cagney@redhat.com>
149
150 * frame.c (frame_read_unsigned_register): New function.
151 (frame_read_signed_register): New function.
152 * frame.h (frame_read_unsigned_register): Declare.
153 (frame_read_signed_register): Declare.
154
c5646e11
AC
1552002-10-31 Andrew Cagney <cagney@redhat.com>
156
157 * h8500-tdep.c (h8500_print_registers_info): New static function,
158 clone of infcmd.c's default_print_registers_info.
159 (h8500_do_registers_info): New funtion.
160 (h8500_print_register_hook): Rename print_register_hook, make
161 static.
162
163 * config/h8500/tm-h8500.h: Update copyright.
164 (DEPRECATED_DO_REGISTERS_INFO): Define.
165 (h8500_do_registers_info: Declare.
166 (PRINT_REGISTER_HOOK): Delete macro.
167 (print_register_hook): Delete function.
168
0bdd672b
AC
1692002-10-31 Andrew Cagney <cagney@redhat.com>
170
171 * z8k-tdep.c (z8k_print_register_hook): Make static.
172 (z8k_print_registers_info): New static function, clone of
173 infcmd.c's default_print_registers_info.
174 (z8k_do_registers_info): New function. Wrap
175 z8k_print_registers_info.
176 * config/z8k/tm-z8k.h: Update copyright.
177 (PRINT_REGISTER_HOOK): Delete macro.
178 (z8k_print_register_hook): Delete declaration.
179 (DEPRECATED_DO_REGISTERS_INFO): Define.
180 (z8k_do_registers_info): Declare.
181
bf9c25dc
JB
1822002-10-30 Joel Brobecker <brobecker@gnat.com>
183
184 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
185 as this is already provided by value.h, and was actually causing
186 a compilation error because of a conflict in parameter type
187 declaration due to a missing const keyword.
188 (low_text_segment_addres): Fix a compilation warning.
189
2c665b51
DJ
1902002-10-29 Daniel Jacobowitz <drow@mvista.com>
191
192 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
193 registers without a name.
194 (mips_linux_cannot_store_register): Don't store registers without
195 a name.
196
e70ea697
DC
1972002-10-28 David Carlton <carlton@math.stanford.edu>
198
199 * symtab.c (find_addr_symbol): Delete. (It was already commented
200 out.)
201 * symtab.h: Delete prototype for find_addr_symbol.
202
903ad3a6
AC
2032002-10-26 Andrew Cagney <cagney@redhat.com>
204
205 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
206 DO_REGISTERS_INFO.
207 gdbarch.h, gdbarch.c: Re-generate.
208 * infcmd.c (default_print_registers_info): Update reference.
209 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
210 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
211 * sh-tdep.c (sh_gdbarch_init): Ditto.
212 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
213 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
214
ab91194c
MK
2152002-10-26 Mark Kettenis <kettenis@gnu.org>
216
e3033f15
MK
217 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
218 cfi_init_extra_frame_info.
219 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
220 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
221
b83b026c
MK
222 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
223 target where necessary. Add more comments and remove the ones
224 that don't provide any useful information.
225
267bf4bb
MK
226 * i386-tdep.c (i386_frame_saved_pc): Replace call to
227 deprecated_read_register_dummy with
228 frame_unwind_unsigned_register.
229
751f1375
MK
230 * i386-tdep.c (i386_extract_struct_value_address): Use
231 regcache_raw_read_unsigned instead of
232 regcache_cooked_read_unsigned since we know that the register
233 we're reading isn't a pseudo register. Rename variable 'val' into
234 the more descriptive 'addr'.
235
26abbdc4
MK
236 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
237 (x86_64_push_return_address): Add comment.
238 (x86_64_pop_frame): Make static.
239 (examine_argument): Clarify comment.
240 (x86_64_skip_prologue): Make prolog_expact variable static.
241
9f1549cc
MK
242 * dwarf2cfi.c: Fix some formatting problems.
243 (context_cpy, read_encoded_pointer): Clarify comments.
244
ab91194c
MK
245 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
246 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
247 i386 target back into x86_64_gdbarch_init. Add some comments and
248 remove meaningless ones.
249
72367fb4
AC
2502002-10-25 Andrew Cagney <cagney@redhat.com>
251
252 * complaints.h (struct deprecated_complaint): Rename `struct
253 complaint'.
254 * complaints.c (complain): Update.
255 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
256 incorrect comment indicating that "symfile.h" was being included
257 for the `struct complaint' definition.
258 * remote-vx.c: Update.
259 * objc-lang.c: Update.
260 * xcoffread.c: Update.
261 * hpread.c: Update.
262 * mdebugread.c: Update.
263 * stabsread.c: Update.
264 * dwarf2read.c: Update.
265 * dwarfread.c: Update.
266 * elfread.c: Update.
267 * coffread.c: Update.
268 * stabsread.h: Update.
269 * dbxread.c: Update.
270 * buildsym.c: Update.
271 * gdbtypes.c: Update.
272 * macrotab.c: Update.
273
1f2baacc
MK
2742002-10-25 Mark Kettenis <kettenis@gnu.org>
275
0c1a73d6
MK
276 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
277 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
278 (x86_64_init_abi): ...new function.
279
6aee4d54 280 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
281 * i386v-nat.c: Include "i386-tdep.h".
282
8f9cbe01
AC
2832002-10-25 Andrew Cagney <cagney@redhat.com>
284
5f11f355
AC
285 * gdbtypes.c (address_space_name_to_int): Update.
286 (address_space_int_to_name): Update.
287 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
288 multi-arch predicate.
289 (address_class_name_to_type_flags): Ditto.
290 * gdbarch.h, gdbarch.c: Re-generate.
291
8f9cbe01
AC
292 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
293
e8d96a5d
MH
2942002-10-24 Martin M. Hunt <hunt@redhat.com>
295
296 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
297
fe39c653
EZ
2982002-10-24 Elena Zannoni <ezannoni@redhat.com>
299
300 * symtab.h (INIT_SAL): Delete macro.
301 (init_sal): Export.
302 * symtab.c (init_sal): New function.
303
304 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
305 to init_sal function call.
306 (find_sal_from_funcs_and_line): Ditto.
307 (all_sals_for_line): Ditto.
308 * breakpoint.c (create_internal_breakpoint): Ditto.
309 (create_fork_vfork_event_catchpoint): Ditto.
310 (create_exec_event_catchpoint): Ditto.
311 (parse_breakpoint_sals): Ditto.
312 (watch_command_1): Ditto.
313 (handle_gnu_4_16_catch_command): Ditto.
314 (clear_command): Ditto.
315 * hppa-tdep.c (child_enable_exception_callback): Ditto.
316 * infcmd.c (run_stack_dummy): Ditto.
317 * infrun.c (process_event_stop_test): Ditto.
318 (check_sigtramp2): Ditto.
319 (step_over_function): Ditto.
320 * linespec.c (decode_line_2): Ditto.
321 (decode_line_1): Ditto.
322 * source.c (line_info): Ditto.
323 * symtab.c (find_pc_sect_line): Ditto.
324
baed091b
ML
3252002-10-24 Michal Ludvig <mludvig@suse.cz>
326
327 * dwarf2cfi.c (struct context)
328 (struct context_reg): Moved to dwarf2cfi.h
329 (context_alloc, frame_state_alloc, context_cpy):
330 Made extern instead of static, removed prototypes.
331 * dwarf2cfi.h (struct context)
332 (struct context_reg): New, moved from dwarf2cfi.c
333 (context_alloc, frame_state_alloc, context_cpy):
334 New prototypes.
335 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
336 Changed from static to extern.
337 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
338 (LINUX_SIGCONTEXT_FP_OFFSET)
339 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
340 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
341 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
342 * x86-64-tdep.c (x86_64_gdbarch_init): Several
343 set_gdbarch_*() calls now use x86-64 specific functions
344 instead of DWARF2 CFI ones.
345 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
346 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
347 (x86_64_init_extra_frame_info): New prototypes.
348
c38da1af
DC
3492002-10-23 David Carlton <carlton@math.stanford.edu>
350
351 * linespec.c: #include "parser-defs.h".
352 Delete prototype for find_template_name_end.
353 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
354
fb9b6b35
JJ
3552002-10-23 Jeff Johnston <jjohnstn@redhat.com>
356
357 * NEWS: add recent mi fixes.
358 * varobj.c (struct varobj): Add new "updated" flag.
359 (new_variable): Default "updated" flag to 0.
360 (varobj_set_value): Set "updated" flag to 1 if value
361 changes.
362 (varobj_update): Check varobj "updated" flag before
363 comparing old and refreshed values. Fix for
364 PR gdb/702.
365
8da065d5
DC
3662002-10-23 David Carlton <carlton@math.stanford.edu>
367
368 * parse.c (parse_exp_1): Use BLOCK_START.
369 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
370 SYMBOL_BLOCK_VALUE.
371 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
372
87f2f08c
DC
3732002-10-23 David Carlton <carlton@math.stanford.edu>
374
375 * symtab.c: Delete cplusplus_hint.
376 Delete prototype for find_template_name_end.
377
88cda038
EZ
3782002-10-23 Elena Zannoni <ezannoni@redhat.com>
379
380 * symtab.h: Update comment.
381
2625d86c
MS
3822002-10-23 Michael Snyder <msnyder@redhat.com>
383
384 * printcmd.c (address_info): Restore quotes in output.
385 * valops.c (value_of_local): Restore quotes in error message.
386
9cc0d196
EZ
3872002-10-23 Elena Zannoni <ezannoni@redhat.com>
388
389 * symtab.c (symbol_demangled_name): New function.
390 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
391 turning most of it into a function.
392 (symbol_demangled_name): Export.
393
19de93d0
MS
3942002-10-23 Michael Snyder <msnyder@redhat.com>
395
396 * valops.c (value_of_local): Restore quotes in error message.
397
89aad1f9
EZ
3982002-10-23 Elena Zannoni <ezannoni@redhat.com>
399
400 * symtab.c (symbol_init_language_specific): New function.
401 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
402 turning most of it into a function.
403 (symbol_init_language_specific): Export.
404
d9fa45fe
DC
4052002-10-23 David Carlton <carlton@math.stanford.edu>
406
407 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
408 (dwarf_attr_name): Ditto.
409 (dwarf_type_encoding_name): Ditto.
410 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
411 (process_die): Handle DW_TAG_namespace,
412 DW_TAG_imported_declaration, DW_TAG_imported_module.
413 (read_namespace): New function.
414
1045b512
JB
4152002-10-22 Joel Brobecker <brobecker@gnat.com>
416
417 * configure.in: Define NEW_PROC_API on Interix too.
418 * configure: Regenerate.
419
4202002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
421
422 * configure: Regenerate using the proper version of autoconf.
423
3987b9d4
EZ
4242002-10-21 Elena Zannoni <ezannoni@redhat.com>
425
426 * findvar.c (read_var_value): Temporarily disable TLS code, until
427 complete TLS support is added.
428
9d774e44
EZ
4292002-10-21 Jim Blandy <jimb@redhat.com>
430 Elena Zannoni <ezannoni@redhat.com>
431
432 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
433 for thread local storage locations.
434 (struct symbol): Add objfile field.
435 (SYMBOL_OBJFILE): Define.
436 * dwarf2read.c (is_thread_local): New static variable.
437 (new_symbol): If variable is in thread local fill in address class
438 and objfile appropriately.
439 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
440 stack operation.
441 * printcmd.c (address_info): Print the information for thread
442 local storage variable.
443 * findvar.c (read_var_value): In case of thread local variable,
444 defer to the target vector code to compute address.
445
bc4a16ae
EZ
4462002-10-21 Elena Zannoni <ezannoni@redhat.com>
447
448 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
449 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
450
407caf07
EZ
4512002-10-21 Elena Zannoni <ezannoni@redhat.com>
452
453 * symtab.h (address_class): Rename
454 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
455 * hpread.c (hpread_process_one_debug_symbol): Ditto.
456 * printcmd.c (address_info): Ditto.
457 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
458
005328e3
MK
4592002-10-20 Mark Kettenis <kettenis@gnu.org>
460
afdb036a
MK
461 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
462 DBREG_DRX macro to acces debug registers.
463
ca02e098
MK
464 * Makefile.in (i386obsd-tdep.o): New target.
465
03cc47f7
MK
466 * solib-sunos.c: Include "bcache.h" and "regcache.h".
467 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
468
005328e3
MK
469 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
470 * config/i386/obsd.mt: New file.
471 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
472 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
473 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
474 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
475 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
476 * i386obsd-tdep.c: New file.
477
9c96f9f2
AF
4782002-10-19 Adam Fedor <fedor@gnu.org>
479
480 * objc-exp.y (name_not_typename): Fix invalid comment.
481
ce1ed485
MK
4822002-10-20 Mark Kettenis <kettenis@gnu.org>
483
484 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
485 to allocate partial syms and macro byte caches.
486
1efc7aaa
DC
4872002-10-18 David Carlton <carlton@math.stanford.edu>
488
489 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
490
7e1d63ec
AF
4912002-10-18 Adam Fedor <fedor@gnu.org>
492
493 * stabsread.c (find_name_end): New function.
494 (define_symbol): Use it.
495
6e8d29a9
DJ
4962002-10-18 Daniel Jacobowitz <drow@mvista.com>
497
498 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
499 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
500 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
501 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
502
1efc7aaa 5032002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
504
505 * symfile.h: Add opaque declaration for struct obstack.
506 Declare obsavestring to take a const char *.
507 * symfile.c (obsavestring): Make first argument a const char *.
508
1aeae86e
AF
5092002-10-16 Adam Fedor <fedor@gnu.org>
510
511 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
512 names when matching breakpoints in current file.
513
8b2dbe47
KB
5142002-10-16 Kevin Buettner <kevinb@redhat.com>
515
516 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
517 (read_tag_pointer_type): Add address class support.
518 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
519 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
520 New methods.
521 * gdbarch.h, gdbarch.c: Regenerate.
522 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
523 (make_type_with_address_space, recursive_type_dump): Add address
524 class support.
525 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
526 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
527 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
528
74451869
KD
5292002-10-16 Klee Dienes <kdienes@apple.com>
530
531 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
532 to get the last character of a char[] buffer, not
533 name[sizeof(vptr_name)-1].
534
ff4cb3e8
AF
5352002-10-14 Adam Fedor <fedor@gnu.org>
536
537 * symtab.h: New objc_specific struct.
538 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
539 (SYMBOL_DEMANGLED_NAME): Likewise.
540
da2cf7e0
AF
5412002-10-14 Adam Fedor <fedor@gnu.org>
542
543 * symfile.c (init_filename_language_table): Add ObjC file extension.
544
4a351cef
AF
5452002-10-14 Adam Fedor <fedor@gnu.org>
546
547 * utils.c (puts_filtered_tabular): New function.
548 (fprintf_symbol_filtered): Get ObjC demangled name.
549 * defs.h (puts_filtered_tabular): Declared.
550
9750e763
KB
5512002-10-14 Kevin Buettner <kevinb@redhat.com>
552
553 * c-lang.h (c_type_print_varspec_prefix): Delete.
554 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
555 ``need_post_space'' parameter. Adjust all callers.
556
eee771c1
DJ
5572002-10-14 Daniel Jacobowitz <drow@mvista.com>
558
559 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
560 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
561 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
562 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
563
46c82446
AF
5642002-10-13 Adam Fedor <fedor@gnu.org>
565
566 * source.c (print_source_lines): Update comments.
567
d069f99d
AF
5682002-10-13 Adam Fedor <fedor@gnu.org>
569
570 * valops.c (value_of_local): New function.
571 (value_of_this): Use it.
572 * value.h (value_of_local): Declared.
573
53c551b7
AF
5742002-10-13 Adam Fedor <fedor@gnu.org>
575
576 * parse.c: (length_of_subexp, prefixify_subexp): Handle
577 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
578
eb392fbf
AF
5792002-10-12 Adam Fedor <fedor@gnu.org>
580
581 * language.c (binop_result_type): Add language_objc to case.
582 (integral_type): Likewise.
583 (character_type): Likewise.
584 (string_type): Likewise.
585 (boolean_type): Likewise.
586 (structured_type): Likewise.
587 (binop_type_check): Likewise.
588
e2b23ee9
AF
5892002-10-11 Adam Fedor <fedor@gnu.org>
590
591 * printcmd.c (address_info): Print 'self' for ObjC.
592
b01ab485
AF
5932002-10-11 Adam Fedor <fedor@gnu.org>
594
595 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
596 OP_SELF.
597
806e6073
AF
5982002-10-11 Adam Fedor <fedor@gnu.org>
599
600 * language.h (CAST_IS_CONVERSION): Add language_objc.
601
50f85cdf
AF
6022002-10-11 Adam Fedor <fedor@gnu.org>
603
604 * defs.h (enum language): Add language_objc.
605
0d540cdf
KD
6062002-10-11 Klee Dienes <kdienes@apple.com>
607
69266111 608 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
609 * gdbcore.h (read_memory_typed_address): Add prototype.
610 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
611 to read a value destined for a CORE_ADDR, not read_memory_integer.
612 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
613 (f77_get_dynamic_lowerbound): Ditto.
614
d5dc7960
MH
6152002-10-11 Martin M. Hunt <hunt@redhat.com>
616
617 * utils.c (string_to_core_addr): After turning string into
618 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
619 which will do necessary sign-extension, etc.
620
8343f86c
DJ
6212002-10-11 Daniel Jacobowitz <drow@mvista.com>
622
623 * c-exp.y (THIS): Delete token and grammar rule.
624 (yylex): Don't return THIS.
625 * cp-valprint.c (vtbl_ptr_name_old): Delete.
626 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
627 * demangle.c (cplus_markers): Update comment. Put '$'
628 first. Remove CPLUS_MARKER.
629 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
630 * jv-exp.y (THIS): Delete token and grammar rule.
631 (yylex): Don't return THIS.
632 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
633 * objc-exp.y (THIS): Delete token and grammar rule.
634 (yylex): Don't return THIS.
635 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
636 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
637 (read_member_functions): Likewise for opname.
638 (read_tilde_fields): Use is_cplus_marker.
639
640 * defs.h (CPLUS_MARKER): Don't define.
641 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
642 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
643 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
644 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
645 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
646
647 * config/i386/tm-i386v4.h: Delete file.
648 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
649 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
650 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
651 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
652 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
653 * config/i386/i386sco5.mt (TM_FILE): Likewise.
654 * config/i386/i386v4.mt (TM_FILE): Likewise.
655 * config/i386/ncr3000.mt (TM_FILE): Likewise.
656
967c0d83
MM
6572002-10-10 Marko Mlinar <markom@opencores.org>
658
659 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
660 accidentially not commited 2002-10-09
661 * gdbarch.h, gdbarch.c: Re-generate.
662
f74fa174
MM
6632002-10-09 Marko Mlinar <markom@opencores.org>
664
665 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
666 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
667 * gdbarch.h, gdbarch.c: Re-generate.
668
57349743
JB
6692002-10-08 Petr Sorfa <petrs@caldera.com>
670
671 Revised and re-submitted by John Wolfe <jlw@caldera.com>
672
673 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
674 so we can work on more than one compilation unit at a time. This
675 helps prepare GDB to handle inter-CU die references.
676 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
677 the code to be defined before struct comp_unit_head.
678 (comp_unit_head): Added new members - offset, cu_head,
679 begin_die, next and dwarf2_abbrevs.
680 (dwarf2_abbrevs): Removed single static var; now member of
681 struct comp_unit_head.
682 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
683 members.
684 (psymtab_to_symtab_1): Changed to work with the new
685 struct comp_unit_head.
686 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
687 constructs the dwarf2_abbrevs[] inside the cu_header.
688 (dwarf2_empty_abbrev_table): Now expects a ptr to a
689 dwarf2_abbrev table to clean up.
690 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
691 handling of dwarf2_abbrevs inside the cu_header.
692 (read_partial_die): Now supports the call to the new
693 dwarf2_lookup_abbrev.
694 (read_full_die): Now supports the call to the new
695 dwarf2_lookup_abbrev.
696
4092aadb
CF
6972002-10-06 Christopher Faylor <cgf@redhat.com>
698
699 * Makefile.in (install-gdbtk): Add missing continuation backslash to
700 insure that shell variables, such as "transformed_name" are propagated
701 to later shell statements in rule.
702
af0b2512
MK
7032002-10-06 Mark Kettenis <kettenis@gnu.org>
704
705 * config/i386/nm-i386sco.h: Add protection against
706 multiple-inclusion. Include "i386/nm-i386v.h".
707 (REGISTER_U_ADDR): Remove define.
708 (i386_register_u_addr): Remove prototype.
709
d6020d45
MS
7102002-10-04 Michael Snyder <msnyder@redhat.com>
711
712 * m32r-stub.c (handle_exception): Make sure exception is "trap"
713 before treating it as a single-step event.
714
7248f48e
AF
7152002-10-03 Adam Fedor <fedor@gnu.org>
716
717 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
718 (objc_demangle): Remove assignment in if statements, Replace
719 free with xfree.
720 (add_msglist): Likewise.
721 (end_msglist): Likewise.
722 (complare_selectors): Likewise.
723 (selectors_info): Likewise.
724 (compare_classes): Likewise.
725 (classes_info): Likewise.
726 (print_object_command): Likewise.
727 (find_objc_msgcall_submethod): Replace PTR with void *.
728 * objc-lang.h: Remove check for __STDC__.
729
52c6a6ac
JJ
7302002-10-03 Jeff Johnston <jjohnstn@redhat.com>
731
732 * ui-out.h (ui_out_field_fmt_int): New prototype.
733 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
734 of field width and alignment.
735 * stack.c (print_frame_info_base): When printing frame level, use
736 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
737 PR gdb/192
738
7e3cec17
JJ
7392002-10-03 Jeff Johnston <jjohnstn@redhat.com>
740
741 * MAINTAINERS: Add self to Write After Approval list.
742
a58dd373
EZ
7432002-10-02 Elena Zannoni <ezannoni@redhat.com>
744
745 * infcmd.c (interrupt_target_command_wrapper): Delete.
746 (interrupt_target_command): Make non static.
747 (nofp_registers_info): Make static.
748 * stack.c (return_command_wrapper): Delete.
749 (return_command): Make non static.
750
cee6ddeb
EZ
7512002-10-02 Elena Zannoni <ezannoni@redhat.com>
752
753 * event-top.c (gdb_setup_readline): New function. Code moved from
754 _initialize_event_loop().
755 (_initialize_event_loop): Call gdb_setup_readline().
756
c4ed33b9
AC
7572002-10-02 Andrew Cagney <ac131313@redhat.com>
758
759 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
760 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
761 * gdbarch.h, gdbarch.c: Re-generate.
762
cef4f5dd
DJ
7632002-10-02 Daniel Jacobowitz <drow@mvista.com>
764
765 Fix PR gdb/778
766 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
767 before recursing.
768 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
769 of fill_in_vptr_fieldno.
770
36dc181b 7712002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 772
36dc181b
EZ
773 * inferior.h (registers_info, stepi_command, nexti_command,
774 continue_command, interrupt_target_command): Export from infcmd.c.
775 * frame.h (args_info, selected_frame_level_changed_hook,
776 return_command): Export from stack.c.
777 * v850ice.c (stepi_command, nexti_command, continue_command): use
778 prototypes from inferior.h.
779 * tracepoint.c (registers_info, args_info, locals_info): Use
780 prototypes from frame.h and inferior.h.
781 * Makefile.in (mi-main.o): Add dependency on frame.h.
782
6f99cb26
AC
7832002-10-02 Andrew Cagney <ac131313@redhat.com>
784
da3eff49
AC
785 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
786 value in register 3 adjusted by ppc_gp0_regnum.
787
6f99cb26
AC
788 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
789
da615bee
MM
7902002-10-02 Marko Mlinar <markom@opencores.org>
791
792 * MAINTAINERS: Add myself to the Write After Approval list.
793
d154bee2
AO
7942002-10-01 Alexandre Oliva <aoliva@redhat.com>
795
62a49b2c
AO
796 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
797 of the section for the N64 ABI, fixed.
798
d154bee2
AO
799 * config/mips/tm-irix6.h: Include solib.h.
800
ed348acc
EZ
8012002-10-01 Elena Zannoni <ezannoni@redhat.com>
802
803 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
804 GNU operators.
805
da0f9dcd
AC
8062002-10-01 Andrew Cagney <ac131313@redhat.com>
807
808 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
809 and that "mi0" syntax has been removed.
810
bdf64bac
DC
8112002-09-30 David Carlton <carlton@math.stanford.edu>
812
813 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
814 * ppc-sysv-tdep.c: #include "gdb_string.h".
815 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
816 pacify GCC.
817
54c2a1e6
AC
8182002-10-01 Andrew Cagney <ac131313@redhat.com>
819
820 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
821 "vrsave"'s register number.
822
cedea778
AC
8232002-09-30 Andrew Cagney <ac131313@redhat.com>
824
825 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
826 use frame_unwind_signed_register to obtain the PC.
827 (mips_frame_chain): Handle a generic dummy frame.
828 (mips_init_extra_frame_info): When a generic dummy frame, don't
829 re-compute the frame base.
830 (mips_pop_frame): Handle generic dummy frames.
831 (mips_gdbarch_init): When generic dummy frames, set
832 use_generic_dummy_frames, push_dummy_frame to
833 generic_push_dummy_frame, pc_in_call_dummy to
834 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
835 generic_save_dummy_frame_tos.
836
68315eb8
AC
8372002-09-30 Andrew Cagney <ac131313@redhat.com>
838
839 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
840 against TOP when TOP was explictly set.
841 (generic_push_dummy_frame): Set TOP to zero.
842
3b8630c3
EZ
8432002-09-30 Elena Zannoni <ezannoni@redhat.com>
844
845 * event-loop.c (start_event_loop): Rename variable 'result' to
846 'gdb_result', to avoid conflicts with upcoming intepreters changes.
847
28ee05e9
KS
8482002-09-30 Keith Seitz <keiths@redhat.com>
849
850 * gdb-events.sh (selected_thread_changed): New event.
851 * gdb-events.c: Regenerated.
852 * gdb-events.h: Regenerated.
853
6eecb1c8
HPN
8542002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
855
856 * MAINTAINERS: Add self to Write After Approval list.
857
92df71f0
FN
8582002-09-30 Fernando Nasser <fnasser@redhat.com>
859
3b8630c3
EZ
860 * disasm.c: New file.
861 * disasm.h: New file.
92df71f0
FN
862 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
863 (compare_lines): Ditto.
864 (dump_insns): Ditto.
3b8630c3
EZ
865 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
866 argument.
92df71f0 867 (do_assembly_only): Ditto.
3b8630c3
EZ
868 (do_disassembly): Renamed to gdb_disassembly and moved to
869 disasm.c. Sdded uiout argument.
870 * Makefile.in: Add new files. Reorder SFILES list. Update
871 dependencies. Include libgdb.a later in the insight executable.
92df71f0 872
0c22854d
AC
8732002-09-29 Andrew Cagney <ac131313@redhat.com>
874
875 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
876 bfd/elf64-alpha-fbsd.c.
877
e67f2023
AC
8782002-09-29 Andrew Cagney <ac131313@redhat.com>
879
880 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
881 i386gnu-tdep.c.
882
89396210
AC
8832002-09-29 Andrew Cagney <ac131313@redhat.com>
884
885 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
886 __FUNCTION__.
887 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
888 function name.
889 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
890 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
891 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
892 (S_msg_sig_post_reply): Ditto.
893
7079c36c
CV
8942002-09-28 Corinna Vinschen <vinschen@redhat.com>
895
89396210
AC
896 * sh-tdep.c (sh_use_struct_convention): Use definition according
897 to ABI.
7079c36c
CV
898 (sh_push_arguments): Store in register with correct endianess.
899 (sh_default_store_return_value): Ditto.
900 (sh_gdbarch_init): Set sizeof long double to 8.
901
975ac915
MK
9022002-09-27 Mark Kettenis <kettenis@gnu.org>
903
904 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
905 Fix some whitespace problems.
906
9bbe19fb
DC
9072002-09-27 David Carlton <carlton@math.stanford.edu>
908
909 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
910 (mcore-tdep.o): Ditto.
911 (ns32k-tdep.o): Ditto.
912 (ns32knbsd-tdep.o): Ditto.
913 (sh3-rom.o): Ditto.
914 (vax-tdep.o): Ditto.
915 * cris-tdep.c: #include "gdb_string.h"
916 * mcore-tdep.c: Ditto.
917 * ns32k-tdep.c: Ditto.
918 * ns32knbsd-tdep.c: Ditto.
919 * sh3-rom.c: Ditto.
920 * vax-tdep.c: Ditto.
921
43b2fdc7
DC
9222002-09-27 David Carlton <carlton@math.stanford.edu>
923
924 * config/djgpp/fnchange.lst: Add entries for
925 gdb/testsuite/gdb.c++/m-static files.
926
e8cfbbd9
JW
9272002-09-27 Jim Wilson <wilson@redhat.com>
928
929 * MAINTAINERS: Add myself to the Write After Approval list.
930
43b2fdc7 9312002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
932
933 * mips-tdep.c (find_proc_desc): Initialize startaddr.
934
935
9f3b7f07
AC
9362002-09-26 Andrew Cagney <ac131313@redhat.com>
937
938 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
939 frame.
940
11269d7e
AC
9412002-09-26 Andrew Cagney <ac131313@redhat.com>
942
943 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
944 (rs6000_struct_return_address): Delete variable.
945 (rs6000_store_struct_return): Update.
946 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
947 deprecated_extract_struct_value_address.
948 (rs6000_frame_align): New function.
949 (rs6000_gdbarch_init): Set frame_align.
950
f15ab4a7
AC
9512002-09-26 Andrew Cagney <ac131313@redhat.com>
952
953 From Grace Sainsbury <graces@redhat.com>:
954 * Makefile.in (gdbtk-main.o): New target.
955 (gdb.o): New target.
956 (main_h): Define.
957 (main.o): Update dependencies.
958 (gdb$(EXEEXT)): Add gdb.o.
959 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
960 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
961 (SUBDIR_GDBTK_CLEAN): Set.
962 (install-gdbtk): Install the insight binary.
963 (uninstall-gdbtk): New target.
964 (all-gdbtk, clean-gdbtk): New rule.
965 * top.c (use_windows): Default to zero.
966 * main.c: Include "main.h".
967 (main): Delete.
968 (struct captured_main_args): Delete.
969 (gdb_main): New function.
970 * main.h: New file.
971 * gdb.c: New File.
972
e36180d7
AC
9732002-09-25 Andrew Cagney <cagney@redhat.com>
974
975 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
976 (frame_map_regnum_to_name): New function.
977 (frame_map_name_to_regnum): New function.
978 * frame.h (frame_map_name_to_regnum): Declare.
979 (frame_map_regnum_to_name): Declare.
980 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
981 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
982 * parse.c: Do not include "builtin-regs.h".
983 (target_map_name_to_register): Delete function.
984 (write_dollar_variable): Use frame_map_name_to_regnum.
985 * parser-defs.h (target_map_name_to_register): Delete declaration.
986 * expprint.c: Include "frame.h".
987 (print_subexp): Use frame_map_regnum_to_name.
988 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
989 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
990
8b69000d
AC
9912002-09-25 Andrew Cagney <ac131313@redhat.com>
992
993 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
994 wasn't saved, and the next innermost frame is a dummy, return the
995 dummy frame's link register.
996
046ca86a
JB
9972002-09-24 Jim Blandy <jimb@redhat.com>
998
999 Fix from Paul Breed:
1000 * main.c (captured_main): Add a `break' after the case for 'b'.
1001
94b66fa7
KS
10022002-09-24 Keith Seitz <keiths@redhat.com>
1003
1004 * varobj.c (c_type_of_child): Use get_target_type instead
1005 of TYPE_TARGET_TYPE.
1006
c214a6fd
FN
10072002-09-22 Fernando Nasser <fnasser@redhat.com>
1008
53cb0458
FN
1009 * source.c (get_current_or_default_source_symtab_and_line): Remove
1010 function.
1011 (set_default_source_symtab_and_line): New function. Attempts to
1012 determine a source file to list lines from if one is not currently
1013 defined.
1014 (get_current_source_symtab_and_line): Initialize sal.pc and
1015 sal.end fields.
1016 (set_current_source_symtab_and_line): Mark argument as const.
1017 * source.h: Update declarations and comments.
1018 * linespec.c (decode_line_1): Replace call to removed routine above.
1019 * stack.c (print_frame_info_base): Ditto.
1020 * cli/cli-cmds.c (edit_command): Ditto.
1021 (list_command): Ditto.
1022
10232002-09-22 Fernando Nasser <fnasser@redhat.com>
1024
d6020d45 1025 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 1026 sal.pc and sal.end fields.
c214a6fd
FN
1027 (get_current_or_default_source_symtab_and_line): Ditto.
1028 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1029 so we do not cause a new source symtab to be searched for (reverting an
1030 unintentional change from the 2002-09-20 patch).
1031 * scm-lang.c (scm_unpac): Ditto.
1032
cc3b68a5
AC
10332002-09-21 Andrew Cagney <cagney@redhat.com>
1034
1035 * complaints.c (symfile_explanations): Remove new-line from
1036 ``isolated_message''.
1037 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1038 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1039
5835abe7
NC
10402002-09-20 Nick Clifton <nickc@redhat.com>
1041
1042 * NEWS: Announce that V850EA ISA is no longer supported.
1043 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1044
a15ef5f5
DC
10452002-09-20 David Carlton <carlton@math.stanford.edu>
1046
06ba1b39
DC
1047 * Makefile.in (c-lang.o): Correct dependencies.
1048 (utils.o): Gather dependencies.
1049 (charset.o): Move.
a15ef5f5
DC
1050 * c-lang.c: #include "gdb_string.h"
1051
87885426
FN
10522002-09-20 Fernando Nasser <fnasser@redhat.com>
1053
1054 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
1055 * cli/cli-cmds.c (list_command): New function. Implements the new
1056 cli edit command.
1057 (_init_cli_cmds): Add new command definition.
1058 * gdb.1: Document edit command.
1059 * doc/gdb.texinfo: Document edit command.
1060
10612002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
1062
1063 * source.c: Make global variables current_source_symtab and
1064 current_source_line static.
1065 (list_command): Moved to cli/cli-cmds.c.
1066 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1067 (get_first_line_listed): New accessor function.
1068 (get_lines_to_list): New accessor function.
1069 (get_current_source_symtab_and_line): New function. Retrieves the
1070 position in the source code that we consider current.
1071 (get_current_or_default_source_symtab_and_line): New function.
1072 Like the above but attempts to determine a default position if one
1073 is not currently defined.
1074 (set_current_source_symtab_and_line): New function. Sets the source
1075 code position considered current and returns the previously set one.
1076 (clear_current_source_symtab_and_line): Reset stored information about
1077 a current source line.
1078 (_initialize_source): Remove registration for the "list" command and
1079 its alias.
1080 * source.h: Add declarations for the new functions above.
1081 * symtab.h: Remove declarations for the global variables mentioned
1082 above.
1083 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1084 obtain current source line.
1085 * linespec.c (decode_line_1): Ditto.
1086 * macroscope.c (default_macro_scope): Ditto.
1087 * scm-lang.c (scm_unpac): Ditto.
1088 * stack.c (print_frame_info_base): Ditto.
1089 * symfile.c (clear_symtab_users): Ditto.
1090 * symtab.c (decode_line_spec): Ditto.
1091 * cli/cli-cmds.c (list_command): Moved here from source.c.
1092 (ambiguous_line_spec): Moved here from source.c.
1093 (_init_cli_cmds): Add definition for "list" and its alias.
1094 * Makefile.in: Update dependencies.
1095
ddd216ea
CV
10962002-09-20 Corinna Vinschen <vinschen@redhat.com>
1097
1098 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1099 with what gcc thinks is correct.
1100
6d305052
CV
11012002-09-20 Corinna Vinschen <vinschen@redhat.com>
1102
1103 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1104 multiple register push instruction.
1105
234b45d4
KB
11062002-09-19 Jim Blandy <jimb@redhat.com>
1107
1108 Add support for distinct host and target character sets.
1109 * charset.c, charset.h: New files.
1110 * c-exp.y: #include "charset.h".
1111 (yylex): Convert character and string literals to the target
1112 character set, before returning them as the semantic value of the
1113 token.
1114 * c-lang.c: #include "charset.h".
1115 (c_emit_char): Use charset-specific methods to recognize
1116 characters with backslash escape forms, to decide which characters
1117 to print literally and which to print using numeric escape
1118 sequences, and to convert target characters to host characters
1119 before printing.
1120 * utils.c: #include "charset.h".
1121 (no_control_char_error): New function.
1122 (parse_escape): Use charset-specific methods to recognize
1123 backslash escapes, parse `control character' notation, and convert
1124 characters from the host character set to the target character set.
1125 * configure.in: Set the default host character set.
1126 Check where to find iconv, and what its argument types might be.
1127 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1128 * Makefile.in (SFILES): List charset.c.
1129 (COMMON_OBS): List charset.o.
1130 (charset.o): New rule.
1131 (charset_h): New header dependency variable.
1132 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1133 (LIBICONV): New variable, set by configure.
1134 (CLIBS): Include $(LIBICONV) here.
1135 * aclocal.m4, config.in, configure: Regenerated.
1136
525d6a61
JB
11372002-09-19 Joel Brobecker <brobecker@gnat.com>
1138
1139 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1140 bison 1.35 warning.
1141
3ed93867
RE
11422002-09-19 Richard Earnshaw <rearnsha@arm.com>
1143
1144 * gdb_mbuild.sh: New file.
1145
437666f8
AC
11462002-09-19 Andrew Cagney <ac131313@redhat.com>
1147
1148 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1149
389e51db
AC
11502002-09-18 Andrew Cagney <ac131313@redhat.com>
1151
1152 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1153 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1154 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1155 valops.c, value.h: Revert previous change.
1156
3b4efeaa
MS
11572002-09-18 Michael Snyder <msnyder@redhat.com>
1158
1159 Preliminary support for Objective-C:
1160 * defs.h (language_objc): New enum value.
1161 (puts_filtered_tabular): Declaration only, exported from utils.c.
1162 (skip_quoted): Delete, declared in completer.h.
1163 * c-exp.y: Include completer.h.
1164 * p-exp.y: Ditto.
1165 * jv-exp.y: Ditto.
1166 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
1167 New operator enum values.
1168 * language.h (CAST_IS_CONVERSION): Test for language_objc.
1169 * language.c (binop_result_type): Handle language_objc case.
1170 (integral_type, character_type, string_type, boolean_type,
1171 structured_type, binop_type_check): Ditto.
1172 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1173 (struct objc_specific): Add to general_symbol_info.
1174 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1175 (SYMBOL_DEMANGLED_NAME): Handle objc case.
1176 * parser-defs.h (struct objc_class_str): New struct type.
1177 (start_msglist, end_msglist, add_msglist): Declaration only,
1178 exported from objc-lang.c.
1179 * value.h (value_of_local, value_nsstring,
1180 call_function_by_hand_expecting_type): Exported from valops.c.
1181 * valops.c (find_function_addr): Export.
1182 (call_function_by_hand_expecting_type): New function.
1183 (value_of_local): New function.
1184 * symfile.c (init_filename_language_table): Add ".m" extension
1185 for Objective-C.
1186 * utils.c (puts_filtered_tabular): New function.
1187 (fprintf_symbol_filtered): Add objc demangling support (disabled).
1188 (set/show demangle): Extend help-string to refer to ObjC.
1189 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1190 * stabsread.c (symbol_reference_defined): Objective-C symbols
1191 may contain colons: make allowances when scanning stabs strings
1192 for colons.
1193 (objc_find_colon): New function.
1194 * printcmd.c (address_info): If language == objc then print
1195 "self" instead of "this".
1196 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1197 OP_NSSTRING, and OP_SELF.
1198 (prefixify_subexp): Ditto.
1199 * source.c (print_source_lines): Mention objc in comment.
1200 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1201 method names.
1202
b9caf505
AC
12032002-09-18 Andrew Cagney <ac131313@redhat.com>
1204
1205 * complaints.h: Update copyright.
1206 (struct complaints): Declare.
1207 (struct complaint): Make `message' constant.
1208 (internal_complaint): Declare.
1209 (complaint): Declare.
1210 (complaint_root): Delete declaration.
1211 (symfile_complaints): Delete declaration.
1212 (struct complaints): Add opaque declaration.
1213 (clear_complaints): Add a complaints parameter.
1214 * complaints.c: Update copyright.
1215 (enum complaint_series): Define.
1216 (complaint_root): Delete.
1217 (struct complaints): Define.
1218 (complaint_sentinel, symfile_complaint_book): New variables.
1219 (symfile_explanations, symfile_complaints): New variables.
1220 New variables.
1221 (get_complaints): New function.
1222 (vcomplaint): New function.
1223 (complaint): New function.
1224 (internal_complaint): New function.
1225 (complain): Call vcomplain with symfile_complaint.
1226 (clear_complaints): Rewrite.
1227 (_initialize_complaints): Use add_setshow_command.
1228 * Makefile.in (complaints.o): Update dependencies.
1229 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1230 to call to clear_complaints.
1231 (new_symfile_objfile, reread_symbols): Ditto.
1232 (oldsyms_complaint): Delete.
1233 (empty_symtab_complaint, unknown_option_complaint): Delete.
1234 (free_named_symtabs): Use complaint instead of complain.
1235
d2e6263c
MS
12362002-09-18 Michael Snyder <msnyder@redhat.com>
1237
5fb2031a
AC
1238 Contributed by Apple Computer, Inc. Merged with current sources
1239 by Adam Fedor <fedor@doc.com> [cagney].
1240
d2e6263c
MS
1241 * objc-lang.c: First clean-up round: comments, indentation.
1242 * objc-lang.h: Ditto.
1243 * objc-lang.y: Ditto.
1244
dec43320
AC
12452002-09-18 Andrew Cagney <ac131313@redhat.com>
1246
1247 * maint.c (maintenance_internal_error): Print the parameter as the
1248 error message.
1249 (maintenance_internal_warning): New function.
1250 (_initialize_maint_cmds): Add command `maint internal-warning'.
1251
1252 * defs.h (internal_warning, internal_vwarning): Declare.
1253 * utils.c (struct internal_problem): Define.
1254 (internal_vproblem): New function.
1255 (internal_warning): New function.
1256 (internal_vwarning): New function.
1257 (internal_warning_problem, internal_error_problem): New variables.
1258 (internal_verror): Just call internal_vproblem.
1259
b81654f1
MS
12602002-09-18 Michael Snyder <msnyder@redhat.com>
1261
1262 * objc-lang.c: New file, support for Objective-C.
1263 Preliminary check-in, not yet integrated into gdb.
1264 * objc-lang.h: New file.
1265 * objc-exp.y: New file.
1266
0542c381
AC
12672002-09-18 Andrew Cagney <ac131313@redhat.com>
1268
7bda5e4a
AC
1269 * infrun.c (signal_stop_update): Convert definition to ISO C.
1270 (signal_print_update): Ditto.
1271 (signal_pass_update): Ditto.
1272 * inflow.c (terminal_save_ours): Ditto.
1273
5247b418
AC
1274 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1275 comments.
1276
fc60962c
AC
1277 * config/djgpp/fnchange.lst: Handle name clashes between
1278 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1279 bfd/coff-tic80.c.
1280
0542c381
AC
1281 * i386-linux-tdep.h: Fix tipo.
1282
5b924b9b
AF
12832002-09-18 Adam Fedor <fedor@gnu.org>
1284
1285 * MAINTAINERS: Add myself to the Write After Approval list.
1286
5afc051b
JB
12872002-09-18 Jim Blandy <jimb@redhat.com>
1288
1289 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1290 texthigh and textlow to reader-specific structs caused
1291 objfile_relocate to miss them. This is fixable, but the work that
1292 the change was supposed to prepare GDB for never got done anyway.
1293
eb944380
DC
12942002-09-18 David Carlton <carlton@math.stanford.edu>
1295
1296 * MAINTAINERS: Alphabetize Write After Approval list.
1297
948e66d9
DJ
12982002-09-18 Daniel Jacobowitz <drow@mvista.com>
1299
1300 Fix PR gdb/709
1301 * values.c (value_static_field): Call read_var_value.
1302
dc604539
AC
13032002-09-18 Andrew Cagney <ac131313@redhat.com>
1304
1305 * valops.c (hand_function_call): Align the initial stack pointer
1306 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1307 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1308 return value.
1309 * mips-tdep.c (mips_frame_align): New function.
1310 (mips_gdbarch_init): Set frame_align.
1311 * gdbarch.sh (FRAME_ALIGN): New method.
1312 * gdbarch.h, gdbarch.c: Re-generate.
1313
cb7e422f
ML
13142002-09-18 Michal Ludvig <mludvig@suse.cz>
1315
1316 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1317 registers.
1318
a094c6fb
AC
13192002-09-17 Andrew Cagney <ac131313@redhat.com>
1320
1321 * NEWS: Mention that MIPS $fp behavior changed.
1322 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1323 reference to FP_REGNUM.
1324 (mipsnbsd_cannot_store_register): Ditto.
1325 * mips-linux-nat.c: Update copyright.
1326 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1327 (mips_linux_cannot_store_register): Ditto.
1328 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1329 * config/mips/tm-mips.h: Update copyright.
1330 (FP_REGNUM): Delete macro.
1331 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1332 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1333 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1334 (mips_r3041_reg_names, mips_r3051_reg_names)
1335 (mips_r3081_reg_names): Replace "fp" with "".
1336 Fix PR gdb/480.
1337
45cf40d1
TR
13382002-09-17 Theodore A. Roth <troth@verinet.com>
1339
1340 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1341 generic_read_register_dummy() (PR gdb/703).
1342 (avr_push_return_address): #if 0 out unused vars.
1343 (avr_gdbarch_init): Enable use of avr_push_return_address().
1344
c7e701b5
MS
13452002-09-17 Michael Snyder <msnyder@redhat.com>
1346
d76ba2a5 1347 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
1348 RTE will take care of it.
1349
20bcf01c
AC
13502002-09-17 Andrew Cagney <ac131313@redhat.com>
1351
1352 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1353 invalid, return SP_REGNUM.
1354
009a9971 13552002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
1356
1357 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1358 point registers without sign extension.
1359
135c175f
AC
13602002-09-17 Andrew Cagney <cagney@redhat.com>
1361
1362 * blockframe.c (deprecated_read_register_dummy): Rename
1363 generic_read_register_dummy.
1364 * frame.c (frame_unwind_signed_register): New function.
1365 (frame_unwind_unsigned_register): New function.
1366 * frame.h (frame_unwind_signed_register): Declare.
1367 (frame_unwind_unsigned_register): Declare.
1368 (deprecated_read_register_dummy): Rename
1369 generic_read_register_dummy.
1370
1371 * h8300-tdep.c (h8300_frame_chain): Update.
1372 (h8300_frame_saved_pc): Update.
1373 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1374 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1375 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1376 (s390_frame_chain): Update.
1377 * v850-tdep.c (v850_find_callers_reg): Update.
1378 (v850_frame_saved_pc): Update.
1379 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1380 (m32r_find_callers_reg): Update.
1381 (m32r_frame_saved_pc): Update.
1382 * sh-tdep.c (sh_find_callers_reg): Update.
1383 (sh64_get_saved_pr): Update.
1384 (sh_init_extra_frame_info): Update.
1385 (sh_init_extra_frame_info): Update.
1386 (sh64_init_extra_frame_info): Update.
1387 (sh64_init_extra_frame_info): Update.
1388 * mcore-tdep.c (mcore_find_callers_reg): Update.
1389 (mcore_frame_saved_pc): Update.
1390 (mcore_init_extra_frame_info): Update.
1391 * i386-tdep.c (i386_frame_saved_pc): Update.
1392 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1393 (ia64_init_extra_frame_info): Update.
1394 (ia64_init_extra_frame_info): Update.
1395 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1396 * cris-tdep.c (cris_init_extra_frame_info): Update.
1397 * avr-tdep.c (avr_frame_chain): Update.
1398 (avr_init_extra_frame_info): Update.
1399 (avr_frame_saved_pc): Update.
1400 * arm-tdep.c (arm_find_callers_reg): Update.
1401 (arm_init_extra_frame_info): Update.
1402 (arm_frame_saved_pc): Update.
1403
a741e514
TT
14042002-09-17 Tom Tromey <tromey@redhat.com>
1405
1406 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1407 is "'".
1408
d1a8e808
CV
14092002-09-17 Corinna Vinschen <vinschen@redhat.com>
1410
1411 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1412 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1413 NEXT_PROLOGUE_INSN.
1414 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1415 NEXT_PROLOGUE_INSN.
1416
d9025a18
JB
14172002-09-16 Joel Brobecker <brobecker@gnat.com>
1418
1419 * osfsolib.c: Remove file, replaced by solib-osf.c.
1420 * Makefile.in: Remove compilation rules for osfsolib.c.
1421
1b2ef1b6
DC
14222002-09-16 David Carlton <carlton@math.stanford.edu>
1423
1424 * cp-valprint.c (cp_print_class_method): Correct args to
1425 check_stub_method_group.
1426
928e48af
CV
14272002-09-16 Corinna Vinschen <vinschen@redhat.com>
1428
1429 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1430 `set architecture'. Unify naming convention of functions.
1431 (h8300_skip_prologue): Improve prologue analysis.
1432 (h8300_push_arguments): Rewritten to more closely match GCC's
1433 bizarre argument-passing behavior, along with the comment describing
1434 said behavior.
1435 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1436 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1437 sim, remote-e7000.c, remote-hms.c and remote.c
1438
5e3397bb
MK
14392002-09-15 Mark Kettenis <kettenis@gnu.org>
1440
1441 * i386-tdep.c (gdb_print_insn_i386): Removed.
1442 (i386_print_insn): New function.
1443 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1444 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1445 tm_print_insn_info.
1446
f710f4fc
MK
14472002-09-14 Mark Kettenis <kettenis@gnu.org>
1448
1449 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1450 zero.
1451
db54fef4
CV
14522002-09-14 Corinna Vinschen <vinschen@redhat.com>
1453
1454 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1455 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1456 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1457
2becadee
CF
14582002-09-13 Christopher Faylor <cgf@redhat.com>
1459
1460 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1461
de17c821
DJ
14622002-09-13 Daniel Jacobowitz <drow@mvista.com>
1463
1464 * gdbtypes.c (check_stub_method): Make static.
1465 (check_stub_method_group): New function.
1466 * gdbtypes.h: Update prototypes.
1467 * cp-support.c: New file.
1468 * cp-support.h: New file.
1469
1470 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1471 (update_method_name_from_physname): New function.
1472 (read_member_functions): Correct method names for operators
1473 and v3 constructors/destructors. Separate v2 constructors and
1474 destructors.
1475 * Makefile.in (stabsread.o): Update dependencies.
1476 (SFILES): Add cp-support.c.
1477 (COMMON_OBS): Add cp-support.o.
1478 (cp_support_h, cp-support.o): Add.
1479
1480 * cp-valprint.c (cp_print_class_method): Call
1481 check_stub_method_group instead of check_stub_method. Remove
1482 extraneous QUITs.
1483 * p-valprint.c (pascal_object_print_class_method): Likewise.
1484 * valops.c (search_struct_method): Likewise.
1485 (find_method_list, value_struct_elt_for_reference): Likewise.
1486
e76cff22
AC
14872002-09-13 Andrew Cagney <cagney@redhat.com>
1488
1489 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1490 * gdbarch.h, gdbarch.c: Regenerate.
1491
905abb3f
AC
14922002-09-13 Andrew Cagney <ac131313@redhat.com>
1493
1494 * frame.c (find_saved_register): Delete function.
1495 * frame.h (find_saved_register): Delete declaration.
1496 Fix PR gdb/631.
1497
64159455
AC
1498Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1499
1500 * mips-tdep.c (read_next_frame_reg): Re-hack using
1501 frame_register_unwind.
1502
795e1e11
AC
1503Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1504
1505 * mips-tdep.c (mips_get_saved_register): Re-hack using
1506 frame_register_unwind.
1507
5720643c
JB
15082002-09-12 Joel Brobecker <brobecker@gnat.com>
1509
1510 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1511 vector. Will be useful for Interix.
1512 * gdbarch.h, gdbarch.c: Regenerate.
1513
1514 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1515 name of the malloc function by NAME_OF_MALLOC.
1516
3bada2a2
JB
15172002-09-12 Joel Brobecker <brobecker@gnat.com>
1518
1519 * value.h (find_function_in_inferior): Add const keyword to
1520 one of the parameters. Allows us to invoke this function with
1521 a const char *.
1522 * valops.c (find_function_in_inferior): Likewise.
1523
3db26b01
JB
15242002-09-12 Joel Brobecker <brobecker@gnat.com>
1525
1526 * exec.c (xfer_memory): Fix compilation warning with old versions
1527 of GCC.
1528 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1529
17c5ed2c
DC
15302002-09-12 David Carlton <carlton@math.stanford.edu>
1531
1532 * symtab.h: Run through gdb_indent.h.
1533 Add 2002 to Copyright year list.
1534
ecd1107e
AM
15352002-09-12 Alan Modra <amodra@bigpond.net.au>
1536
1537 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1538 mach constants.
1539 * MAINTAINERS: Add myself to write after approval list.
1540
e64f66d1
JB
15412002-09-11 J. Brobecker <brobecker@gnat.com>
1542
1543 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1544
f9395794
JB
15452002-09-11 J. Brobecker <brobecker@gnat.com>
1546
1547 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1548 Interix.
1549
1a303dec
MS
15502002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1551
1552 * procfs.c (do_detach): Clear current signal, not just fault.
1553 Corrects problem with breakpoint trap signal leaking to detached
1554 process on Tru64.
1555
c0219d42
MS
15562002-09-10 Michael Snyder <msnyder@redhat.com>
1557
1558 * buildsym.c (finish_block): Protect against null pointer.
1559
9d84ac84
AC
15602002-09-10 Andrew Cagney <cagney@redhat.com>
1561
1562 * infcmd.c (default_print_registers_info): Send all output to
1563 ``file'' instead of ``gdb_stdout''.
1564
77d8f2b4
MS
15652002-09-10 Michael Snyder <msnyder@redhat.com>
1566
1567 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1568 LONGEST, and use signed register read (addresses are sign-
1569 extended for mips).
1570
99656a61
SC
15712002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1572
1573 * event-loop.c (gdb_do_one_event): Make public.
1574 * event-loop.h (gdb_do_one_event): Declare.
1575
da12f4d8
JL
15762002-09-10 Jeff Law <law@redhat.com>
1577
1578 * infttrace.c (child_resume): Simplify and rework to avoid
1579 TT_PROC_CONTINUE.
1580
d0aee0c4
FF
15812002-09-09 Fred Fish <fnf@intrinsity.com>
1582
1583 * printcmd.c (print_scalar_formatted): "len" is the number of
1584 target bytes, NOT the number of target bits.
1585
7cb3ec5e
EZ
15862002-09-09 Elena Zannoni <ezannoni@redhat.com>
1587
1588 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1589 * top.c (init_main): Set rl_terminal_name.
1590
4dc81987
AS
15912002-09-08 Aidan Skinner <aidan@velvet.net>
1592
1593 * ada-lang.c (ada_array_bound, ada_type_match,
1594 _initialize_ada_language): Fix K&R definitions.
1595 * ada-tasks.c (get_current_task): Fix K&R definitions.
1596 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1597
842330b4
CF
15982002-09-07 Christopher Faylor <cgf@redhat.com>
1599
1600 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1601 Add XP.
1602
43156d82
MK
16032002-09-06 Mark Kettenis <kettenis@gnu.org>
1604
66da5fd8
MK
1605 * i386-tdep.c (i386_register_virtual_type,
1606 i386_register_convertible, i386_register_convert_to_virtual,
1607 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1608 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1609 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1610 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1611 Don't set push_arguments twice.
1612
4b218c18
MK
1613 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1614 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1615 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1616 sigtramp_end to NULL.
1617 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1618 defines.
1619 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1620
4cc314d5
MK
1621 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1622 whitespace.
1623
43156d82
MK
1624 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1625 * gdbarch.h, gdbarch.c: Re-generate.
1626 * blockframe.c (find_pc_sect_partial_function): Convert to use
1627 SIGTRAMP_START_P predicate.
1628
6672060b
MS
16292002-09-05 Michael Snyder <msnyder@redhat.com>
1630
a90c3637
MS
1631 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1632 generic_dummy_frame method and old method. Also distinguish
1633 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 1634 (arm_extract_return_value): Use new regcache method.
a90c3637 1635
6672060b
MS
1636 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1637 adjustment that doesn't conform to the ABI.
1638 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1639 saved regcache, not from current regcache.
1640
299ffc64
AC
16412002-09-05 Andrew Cagney <ac131313@redhat.com>
1642
1643 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1644 * README: Update.
1645
a3a2ee65
JT
16462002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1647
1648 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1649 if arm_apcs_32 is false.
1650
2bc7eea9
AC
16512002-09-04 Andrew Cagney <ac131313@redhat.com>
1652
1653 GDB 5.3 branch created.
1654
8a55a7c5
TR
16552002-09-03 Theodore A. Roth <troth@verinet.com>
1656
1657 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1658 generic_unwind_get_saved_register.
1659
e26fb1d7
DC
16602002-09-03 David Carlton <carlton@math.stanford.edu>
1661
1662 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1663 argument (PR gdb/653). Update call to smash_to_method_type.
1664 (read_structure_scope): Update call to dwarf2_add_member_fn.
1665
30d52491
ML
16662002-09-03 Michal Ludvig <mludvig@suse.cz>
1667
1668 * x86-64-linux-tdep.c: Include gdb_string.h
1669 * x86-64-linux-nat.c: Ditto.
1670
06891d83
JT
16712002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1672
1673 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1674 when YYDEBUG is set to 1.
1675 * c-exp.y: Likewise.
1676 * f-exp.y: Likewise.
1677 * jv-exp.y: Likewise.
1678 * m2-exp.y: Likewise.
1679 * p-exp.y: Likewise.
1680
7d400e77
JT
16812002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1682
1683 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1684 dependency list.
1685 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1686 solib_svr4_fetch_link_map_offsets to
1687 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1688 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1689 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1690 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1691 solib-svr4.o, and solib-legacy.o.
1692 * config/i386/tm-nbsd.h: Include solib.h.
1693
704a27c4
JT
16942002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1695
1696 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1697 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1698 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1699 comment noting that this needs its own target configuration.
1700 * config/i386/nbsd.mt: New file.
1701 * config/i386/nbsdaout.mt: Remove.
1702 * config/i386/nbsdelf.mt: Ditto.
1703 * config/i386/tm-nbsdaout.h: Ditto.
1704
d66198e1
JT
17052002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1706
1707 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1708 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1709 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1710 tdep->sigtramp_end.
1711 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1712 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1713 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1714
3cac699e
JT
17152002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1716
1717 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1718 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1719 * i386-tdep.h (i386bsd_init_abi): New prototype.
1720 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1721 function declaration.
1722 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1723 for NetBSD-a.out or NetBSD-ELF.
1724 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1725 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1726 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1727 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1728 and nbsd-tdep.h.
1729 (i386nbsd_pc_in_sigtramp): New function.
1730 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1731 i386nbsd_pc_in_sigtramp.
1732 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1733 and i386nbsdelf_init_abi OS ABI handlers.
1734 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1735 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1736
7010ca0a
MK
17372002-09-02 Mark Kettenis <kettenis@gnu.org>
1738
1739 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1740 registers if the target really has them.
1741
6dd93b72
JT
17422002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1743
1744 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1745 than nbsd-tdep.h.
1746
2ca8ae21
JT
17472002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1748
1749 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1750 list.
1751 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1752 (alphanbsd_skip_sigtramp_frame): New functions.
1753 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1754 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1755 to alphanbsd_sigcontext_addr.
1756
3d9b49b0
JT
17572002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1758
1759 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1760 list.
1761 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1762 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1763 nbsd_pc_in_sigtramp.
1764 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1765 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1766 * nbsd-tdep.c: Include gdb_string.h.
1767 (nbsd_pc_in_sigtramp): New function.
1768 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1769 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1770 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1771 ppcnbsd_pc_in_sigtramp.
1772 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1773 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1774 shnbsd_pc_in_sigtramp.
1775 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1776 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1777 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1778
c860120c
PM
17792002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1780
1781 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1782 watchpoints to NULL.
1783 (insert_breakpoints): set val field of watchpoints if NULL.
1784
1785
c7612d53
JB
17862002-08-29 Jim Blandy <jimb@redhat.com>
1787
1788 * symtab.c (lookup_symbol_aux): In the cases where we find a
1789 minimal symbol of an appropriate name and use its address to
1790 select a symtab to read and search, use `name' (as passed to us)
1791 as the demangled name when searching the symtab's global and
1792 static blocks, not the minsym's name.
1793
66609862
KS
17942002-08-29 Keith Seitz <keiths@redhat.com>
1795
1796 * stack.c (print_frame_info_base): Always set current_source_symtab
1797 and current_source_line.
1798
151fefe2
JB
17992002-08-29 Donn Terry <donnte@microsoft.com>
1800
1801 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1802
bfb3754e
KS
18032002-08-28 Keith Seitz <keiths@redhat.com>
1804
1805 * stack.c (select_frame): Add FIXME concerning selected-frame
1806 events.
1807 (select_frame_command): Send selected-frame-level-changed
1808 event notification, but only if the level actually changed.
1809 (up_silently_base): Add selected-frame-level-changed event
1810 notification.
1811 (down_silently_base): Likewise.
1812
e822a2a0
AC
18132002-08-28 Andrew Cagney <ac131313@redhat.com>
1814
1815 * Makefile.in: Update dependencies for all gdb/*.c files.
1816
309367d4
TT
18172002-08-27 Tom Tromey <tromey@redhat.com>
1818
1819 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1820 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1821 Update dependencies.
1822 * i387-tdep.c: Include gdb_string.h.
1823 * osabi.c: Likewise.
1824 * i386-linux-nat.c: Likewise.
1825 * lin-lwp.c: Likewise.
1826 * ax-gdb.c: Likewise.
1827 * signals/signals.c: Likewise.
1828 * jv-valprint.c: Likewise.
1829 * p-lang.c: Likewise.
1830 * c-valprint.c: Likewise.
1831 * cp-abi.c: Likewise.
1832
e1507482
EZ
18332002-08-27 Elena Zannoni <ezannoni@redhat.com>
1834
1835 * cli/cli-script.h (copy_command_lines): Export.
1836 * breakpoint.c: Include cli/cli-script.h.
1837 * Makefile.in (breakpoint.o): Update dependencies.
1838
c6510018
MS
18392002-08-26 Michael Snyder <msnyder@redhat.com>
1840
1841 * breakpoint.c (insert_breakpoints): Protect all references
1842 to 'process_warning'. Shorten long lines.
1843
c2b8ed2c
MS
18442002-08-26 Joel Brobecker <brobecker@gnat.com>
1845
1846 * cli/cli-script.c (copy_command_lines): New function.
1847 * defs.h (copy_command_lines): Export.
1848 * testsuite/gdb.base/commands.exp: New tests for commands
1849 attached to a temporary breakpoint, and for commands that
1850 delete the breakpoint they are attached to.
1851
18522002-08-26 Michael Snyder <msnyder@redhat.com>
1853
1854 * breakpoint.c (bpstat_stop_status): Instead of copying the
1855 pointer to the breakpoint commands struct, make a new copy
1856 of the struct and point to that.
1857 (bpstat_clear): Free the commands struct.
1858 (bpstat_clear_actions): Free the commands struct.
1859 (bpstat_do_actions): Free the command actions. Also execute
1860 the local cleanups, instead of deleting them.
1861 (delete_breakpoint): Leave the commands field of the bpstat
1862 chain alone -- it will be freed later.
1863
64b84175
KB
18642002-08-26 Kevin Buettner <kevinb@redhat.com>
1865
1866 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1867 deleted in 2002-08-20 commit. This function is still used by
1868 ppc-linux-nat.c.
1869
55970da6
KS
18702002-08-26 Keith Seitz <keiths@redhat.com>
1871
1872 * gdb-events.sh: Add selected-frame-level-changed event.
1873 * gdb-events.c: Regenerated.
1874 * gdb-events.h: Regenerated.
1875
a790ad35
SC
18762002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1877
1878 Fix PR gdb/393:
1879 * inflow.c (terminal_save_ours): New function to save terminal
1880 settings.
1881 * inferior.h (terminal_save_ours): Declare.
1882 * target.c (debug_to_terminal_save_ours): New function.
1883 (cleanup_target): Defaults to_terminal_save_ours.
1884 (update_current_target): Inherit to_terminal_save_ours.
1885 (setup_target_debug): Set to_terminal_save_ours.
1886 * target.h (target_terminal_save_ours): New to save terminal settings.
1887 (target_ops): New member to_terminal_save_ours.
1888 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1889 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1890 * inftarg.c (init_child_ops): Likewise.
1891 * m3-nat.c (init_m3_ops): Likewise.
1892 * procfs.c (init_procfs_ops): Likewise.
1893 * wince.c (init_child_ops): Likewise.
1894 * win32-nat.c (init_child_ops): Likewise.
1895 * sol-thread.c (init_sol_thread_ops): Likewise.
1896
c00dcbe9
MK
18972002-08-26 Mark Kettenis <kettenis@gnu.org>
1898
3d7f4f49
MK
1899 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1900 use regcache_* functions.
1901 (i386_gdbarch_init): Set store_return_value instead of
1902 deprecated_store_return_value.
1903
c00dcbe9
MK
1904 * regcache.c (regcache_raw_write_signed,
1905 regcache_raw_write_unsigned): New functions.
1906 * regcache.h (regcache_raw_write_signed,
1907 regcache_raw_write_unsigned): New prototypes.
1908
0e0d15ca
AC
19092002-08-25 Andrew Cagney <ac131313@redhat.com>
1910
1911 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1912 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1913 source file dependencies. Cleanup corresponding generator rules.
1914
d3b22ed5
AC
19152002-08-25 Andrew Cagney <ac131313@redhat.com>
1916
1917 * regcache.h (register_offset_hack): Declare.
1918 (regcache_cooked_read_using_offset_hack): Declare.
1919 (regcache_cooked_write_using_offset_hack): Declare.
1920
1921 * regcache.c (register_offset_hack): New function.
1922 (regcache_cooked_read_using_offset_hack): New function.
1923 (regcache_cooked_write_using_offset_hack): New function.
1924 (regcache_dump): Check that the registers, according to their
1925 offset, are packed hard against each other.
1926 (cooked_xfer_using_offset_hack): New function.
1927
bb425013
AC
19282002-08-25 Andrew Cagney <ac131313@redhat.com>
1929
1930 * regcache.c (struct regcache_descr): Add field register_type.
1931 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1932 in as a parameter
1933 (init_regcache_descr): Initialize register_type. Pass the descr
1934 to init_legacy_regcache_descr. Use register_type instead of
1935 REGISTER_VIRTUAL_TYPE.
1936 (register_type): New function.
1937 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1938 * regcache.h (register_type): Declare.
1939
d0403e00
AC
19402002-08-25 Andrew Cagney <ac131313@redhat.com>
1941
1942 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1943 instead of deprecated_store_return_value. Fix fallout from
1944 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1945
0ed04cce
AC
19462002-08-25 Andrew Cagney <ac131313@redhat.com>
1947
1948 * regcache.c (max_register_size): New function.
1949 (init_legacy_regcache_descr): Ensure that max_register_size is
1950 large enough for REGISTER_VIRTUAL_SIZE.
1951 * regcache.h (max_register_size): Declare.
1952
46d79c04
AC
19532002-08-24 Andrew Cagney <ac131313@redhat.com>
1954
1955 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1956 store_return_value.
1957 (e500_extract_return_value): Change type of valbuf pointer to
1958 void.
1959
853c7bd0
MK
19602002-08-24 Mark Kettenis <kettenis@gnu.org>
1961
cd87e769
MK
1962 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1963 workaround.
1964
853c7bd0
MK
1965 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1966 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1967 long long) to prevent compiler warning on 64-bit systems.
1968
ebba8386
AC
19692002-08-23 Andrew Cagney <cagney@redhat.com>
1970
1971 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1972 (DEPRECATED_STORE_RETURN_VALUE): New method.
1973 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1974 * gdbarch.h, gdbarch.c: Re-generate.
1975
1976 * values.c (set_return_value): Pass current_regcache to
1977 STORE_RETURN_VALUE.
1978 * arch-utils.h (legacy_store_return_value): Declare.
1979 * arch-utils.c (legacy_store_return_value): New function.
1980 (legacy_extract_return_value): Update parameters.
1981
1982 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1983 STORE_RETURN_VALUE.
1984 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1985 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1986 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1987 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1988 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1989 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1990 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1991 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1992 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1993 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1994
1995 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1996 * i386-tdep.c (i386_extract_return_value): Update.
1997 * arch-utils.c (legacy_extract_return_value): Update.
1998 * frv-tdep.c (frv_gdbarch_init): Update.
1999 * cris-tdep.c (cris_gdbarch_init): Update.
2000 * d10v-tdep.c (d10v_gdbarch_init): Update.
2001 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2002 * m68k-tdep.c (m68k_gdbarch_init): Update.
2003 * mcore-tdep.c (mcore_gdbarch_init): Update.
2004 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2005 * s390-tdep.c (s390_gdbarch_init): Update.
2006 * sparc-tdep.c (sparc_gdbarch_init): Update.
2007 * sh-tdep.c (sh_gdbarch_init): Update.
2008 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2009 * v850-tdep.c (v850_gdbarch_init): Update.
2010 * avr-tdep.c (avr_gdbarch_init): Update.
2011 * ia64-tdep.c (ia64_gdbarch_init): Update.
2012 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2013 * vax-tdep.c (vax_gdbarch_init): Update.
2014 * alpha-tdep.c (alpha_gdbarch_init): Update.
2015 * arm-tdep.c (arm_gdbarch_init): Update.
2016 * mips-tdep.c (mips_gdbarch_init): Update.
2017 * i386-tdep.c (i386_gdbarch_init): Update.
2018
5bd8c6d0
AC
20192002-08-23 Andrew Cagney <ac131313@redhat.com>
2020
2021 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2022 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2023
e73e1724
MK
20242002-08-24 Mark Kettenis <kettenis@gnu.org>
2025
2026 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
2027 problems.
2028
3e6564e1
JB
20292002-08-23 Joel Brobecker <brobecker@gnat.com>
2030
2031 * infrun.c (handle_inferior_event): Move a comment outside of a
2032 function call, in order to avoid indent reformatting this part
2033 of the code in an unreadable way.
2034
81d0cc19
GS
20352002-08-23 Grace Sainsbury <graces@redhat.com>
2036
2037 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2038 when breakpoints fail. Move general breakpoint error messages to
2039 insert_breakpoints.
2040 * breakpoint.c (insert_breakpoints): Change warnings when
2041 breakpoints are nto inserted to specify the type. Remove call to
2042 memory_error when hardware breakpoints can't be inserted. Remove
2043 multiple calls to warning so all messages are sent to the user at
2044 once.
2045 (delete_breakpoints): Make insert error messsages more explicit.
2046
17574093
DJ
20472002-08-23 Daniel Jacobowitz <drow@mvista.com>
2048
2049 * ChangeLog: Move gdbserver entries after GDB 5.2 to
2050 gdbserver/ChangeLog.
2051
8acc2935
MK
20522002-08-23 Mark Kettenis <kettenis@gnu.org>
2053
dfe01d39
MK
2054 * i386-tdep.c: Include "objfiles.h".
2055 (i386_svr4_init_abi): Set in_solib_call_trampoline and
2056 skip_trampoline_code.
2057 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2058 (CPLUS_MARKER): Define to '.'.
2059
8acc2935
MK
2060 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2061 member.
2062 (linux_corefile_thread_callback): Increase args->num_notes.
2063 (linux_make_note_section): Initialize thread_args.num_notes, and
2064 use it to determine whether notes for any threads were created.
2065
151fefe2 20662002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
2067
2068 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2069 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2070 and PCUNKILL.
2071 (write_with_trace): Conditionalize out the switch branch handling
2072 PCSHOLD if the corresponding macro is not defined. Likewise for
2073 PRSABORT and PRSTOP.
2074 This change will be needed by the Interix port.
2075
e1507482
EZ
20762002-08-22 Elena Zannoni <ezannoni@redhat.com>
2077
2078 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2079 write_register wherever possible instead of manipulating the
2080 register bytes directly.
2081 Assign VALUE_CONTENTS to a variable and use that.
2082 The GPR numbers are now dependent on the architecture.
2083
96ff0de4
EZ
20842002-08-22 Elena Zannoni <ezannoni@redhat.com>
2085
2086 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2087 ev_offset fields.
2088 (skip_prologue): Add support for BookE/e500 instructions.
2089 (e500_extract_return_value): New function.
2090 (frame_get_saved_regs): Add support for saving ev registers and
2091 pseudo gpr's.
2092 (e500_store_return_value): New function.
2093 (rs6000_gdbarch_init): Move up default intializations of
2094 deprecated_extract_return_value and store_return_value. Overwrite
2095 init of store_return_value with e500 specific version.
2096 Set extract_return_value for e500.
2097
fbefca5b
EZ
20982002-08-22 Elena Zannoni <ezannoni@redhat.com>
2099
2100 * blockframe.c (generic_call_dummy_register_unwind): Use
2101 regcache_cooked_read to catch cases in which the variable is
2102 stored in a pseudo register.
2103
4d210288
AC
21042002-08-22 Andrew Cagney <cagney@redhat.com>
2105
2106 * NEWS: Mention that the i960 has been made obsolete.
2107 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2108 i960-tdep.c
2109 (remote-nrom.o): Obsolete target.
2110 (remote-nindy.o, i960-tdep.o): Ditto.
2111 * remote-nrom.c: Make file obsolete.
2112 * remote-nindy.c, remote-vx960.c: Ditto.
2113 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2114 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2115 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2116 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2117 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2118 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2119 i960-*-vxworks* obsolete.
2120 * MAINTAINERS: Note that the i960 is obsolete.
2121
6c0c456d
CV
21222002-08-21 Corinna Vinschen <vinschen@redhat.com
2123
2124 * aix-thread.c (aix_thread_detach): Disable thread debugging on
2125 detach to allow reinitialization.
2126
9f9d12b3
AC
21272002-08-22 Andrew Cagney <ac131313@redhat.com>
2128
2129 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2130 attempt).
2131
ebeb39fe
JB
21322002-08-22 Jim Blandy <jimb@redhat.com>
2133
2134 * coffread.c (coff_symfile_read): Don't try to read the line
2135 number table from disk if the image file doesn't have a symbol
2136 table; we'll never actually look at the info anyway, and Windows
2137 ships DLL's with bogus file offsets for the line number data.
2138
5bf1c677
EZ
21392002-08-21 Elena Zannoni <ezannoni@redhat.com>
2140
2141 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2142 an e500 executable.
2143
71b8ef93
MS
21442002-08-21 Michael Snyder <msnyder@redhat.com>
2145
2146 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2147 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
2148 (DEFAULT_MIPS_TYPE): Delete unused macro.
2149 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2150 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 2151
d174216d
JB
21522002-08-21 Jim Blandy <jimb@redhat.com>
2153
2154 * valops.c (value_cast): Simplify and correct logic for doing a
2155 static cast from a pointer to a base class to a pointer to a
2156 derived class.
2157
0ab7a791
AC
21582002-08-21 Andrew Cagney <ac131313@redhat.com>
2159
2160 * infcmd.c (default_print_registers_info): Replace
2161 do_registers_info.
2162 (registers_info): Use gdbarch_print_registers_info instead of
2163 DO_REGISTERS_INFO.
2164 * inferior.h (default_print_registers_info): Replace
2165 do_registers_info.
2166 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2167 (DO_REGISTERS_INFO): Change to a predicate function.
2168 * gdbarch.h, gdbarch.c: Regenerate.
2169
e23792cc
KS
21702002-08-21 Keith Seitz <keiths@redhat.com>
2171
2172 * gdb-events.sh: Add target-changed event.
2173 * gdb-events.c: Regenerated.
2174 * gdb-events.c: Regenerated.
2175 * valops.c (value_assign): Add target-changed event notification
2176 to inlval_register, lval_memory, and lval_reg_frame_relative.
2177
9fb14e79
JB
21782002-08-21 Joel Brobecker <brobecker@gnat.com>
2179
2180 * NEWS: Add an entry regarding the improvement of the next/step
2181 operation on Alpha Tru64 multi-processor machines.
2182
6d39a69f
AC
21832002-08-21 Andrew Cagney <ac131313@redhat.com>
2184
72acd513
AC
2185 * Makefile.in: Update dependencies for mi/ cli/ and tui/
2186 directores.
342af04b 2187 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
2188 * Makefile.in (install-gdbtk): Move to install section.
2189 (rdi-share/libangsd.a): Move to end of file.
2190
fa5f27c7
AC
21912002-08-19 Andrew Cagney <ac131313@redhat.com>
2192
2193 * frame.c (frame_register_unwind): When a register, set addrp to
2194 the register's byte.
2195
5a89d8aa
MS
21962002-08-20 Michael Snyder <msnyder@redhat.com>
2197
2198 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2199 used locally, so move them from the target machine header to here.
2200 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2201 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2202 Make static.
2203 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2204
822e978b
AC
22052002-08-20 Andrew Cagney <cagney@redhat.com>
2206
2207 * NEWS: Mention that the Apollo line was made obsolete.
2208 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2209 m68*-hp-hpux* obsolete.
2210 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2211 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2212 * buildsym.c (make_blockvector): Make static.
2213 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2214 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2215 (ALLDEPFILES): Remove dstread.c.
2216 (dstread.o): Obsolete make rule.
2217 * dstread.c: Makefile obsolete.
2218 * dst.h: Ditto.
2219 * config/m68k/hp300hpux.mt: Ditto.
2220 * config/m68k/hp300hpux.mh: Ditto.
2221 * config/m68k/hp300bsd.mt: Ditto.
2222 * config/m68k/hp300bsd.mh: Ditto.
2223 * config/m68k/apollo68b.mt: Ditto.
2224 * config/m68k/apollo68v.mh: Ditto.
2225 * config/m68k/apollo68b.mh: Ditto.
2226
e41b17f0
MS
22272002-08-20 Michael Snyder <msnyder@redhat.com>
2228
2229 * mips-tdep.c (mips_in_return_stub): Make static.
2230 (mips_gdbarch_init): Set in_solib_return_trampoline.
2231 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2232
d50355b6
MS
22332002-08-20 Michael Snyder <msnyder@redhat.com>
2234
2235 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2236 * gdbarch.c, gdbarch.h: Regenerate.
2237 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2238 Add.
2239 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2240
757a7cc6
MS
22412002-08-20 Michael Snyder <msnyder@redhat.com>
2242
2243 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2244 (mips_gdbarch_init): Set skip_trampoline_code,
2245 in_solib_call_trampoline.
2246 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2247 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2248
c8001721
EZ
22492002-08-20 Elena Zannoni <ezannoni@redhat.com>
2250
2251 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2252
2253 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2254 vector type for ev registers.
2255 (e500_pseudo_register_read): New function.
2256 (e500_pseudo_register_write): New function.
2257 (e500_dwarf2_reg_to_regnum): New function.
2258 (PPC_UISA_NOFP_SPRS): New macro.
2259 (PPC_EV_REGS): New macro.
2260 (PPC_GPRS_PSEUDO_REGS): New macro.
2261 (registers_e500): New register set for e500.
2262 (variants): Add e500 variant.
2263 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2264 before setting architectural dependent variations. Initialize ev
2265 registers numbers. Add case for e500 architecture. Set the
2266 number of pseudo registers.
2267
64366f1c
EZ
22682002-08-20 Elena Zannoni <ezannoni@redhat.com>
2269
2270 * rs6000-tdep.c: Clean up comments.
2271
7e78f0ca
AC
22722002-08-20 Andrew Cagney <cagney@redhat.com>
2273
2274 * h8300-tdep.c: Re-indent file.
2275
697f7479
JB
22762002-08-20 Jim Blandy <jimb@redhat.com>
2277
2278 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2279 default for this.
697f7479 2280
e86ae29f
KS
22812002-08-20 Keith Seitz <keiths@redhat.com>
2282
2283 * breakpoints.c (watch_command_1): Use internal breakpoint
2284 when setting a watchpoint_scope breakpoint.
2285
216b504f
EZ
22862002-08-20 Elena Zannoni <ezannoni@redhat.com>
2287
2288 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2289 (build_builtin_type_vec64i): Ditto.
2290 (build_builtin_type_vec128): Ditto.
2291 (build_builtin_type_vec128i): Ditto.
2292
f7ab6ec6
MS
22932002-08-19 Michael Snyder <msnyder@redhat.com>
2294
2295 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2296 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2297 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2298 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2299 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2300 CALL_DUMMY_ADDRESS): Delete.
2301 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2302 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2303 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2304 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2305 push_return_address.
2306 (mips_register_raw_size, mips_eabi_use_struct_convention,
2307 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2308 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2309 mips_init_extra_frame_info, mips_eabi_push_arguments,
2310 mips_n32n64_push_arguments, mips_push_return_address,
2311 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2312 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2313
b5d1566e
MS
23142002-08-19 Michael Snyder <msnyder@redhat.com>
2315
2316 * mips-tdep.c (mips_frame_num_args): New function.
2317 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2318 frame_saved_pc, frame_args_address, frame_locals_address,
2319 frame_num_args, and frame_args_skip.
2320 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2321 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2322 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2323 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2324
2f1488ce
MS
23252002-08-20 Michael Snyder <msnyder@redhat.com>
2326
2327 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2328 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2329 * mips-tdep.c (mips_store_struct_return): New function.
2330 (mips_extract_struct_value_address): New function.
2331 (mips_gdbarch_init): Set store_struct_return and
2332 extract_struct_value_address.
2333
41ff2da1
DC
23342002-08-20 David Carlton <carlton@math.stanford.edu>
2335
2336 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2337 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2338 (read_file_scope): Check that line_header is nonzero before
2339 decoding macro information.
2340
e5451d58
MK
23412002-08-20 Mark Kettenis <kettenis@gnu.org>
2342
2343 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2344 flag the general-purpose registers as floating-point on targets
2345 that don't support the floating-point registers.
2346
4a6daafa
EZ
23472002-08-20 Elena Zannoni <ezannoni@redhat.com>
2348
2349 * rs6000-tdep.c (altivec_register_p): Delete.
2350 (rs6000_do_altivec_registers): Delete.
2351 (rs6000_altivec_registers_info): Delete.
2352 (rs6000_do_registers_info): Delete.
2353 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2354 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2355
ab4327e0
EZ
23562002-08-20 Elena Zannoni <ezannoni@redhat.com>
2357
2358 * infcmd.c (do_registers_info): Print vector registers in hex
2359 format only.
2360 (print_vector_info): Check that printing registers
2361 makes sense.
2362 (print_float_info): Ditto.
2363
cb1d2653
AC
23642002-08-20 Andrew Cagney <ac131313@redhat.com>
2365
2366 * mips-tdep.c (mips_gdbarch_init): Update.
2367 (mips_o32_extract_return_value): Rewrite.
2368 (mips_o32_store_return_value): Rewrite.
2369 (mips_o32_xfer_return_value): New function.
2370 (mips_xfer_register): Tweak debug print message. Allow for
2371 buf_offset when dumping the value transfered.
2372
dfc3d9b2
AC
23732002-08-20 Andrew Cagney <ac131313@redhat.com>
2374
2375 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2376 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2377 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2378 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2379 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2380
7807aa61
MS
23812002-08-14 Michael Snyder <msnyder@redhat.com>
2382
2383 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2384
489461e2
EZ
23852002-08-19 Elena Zannoni <ezannoni@redhat.com>
2386
2387 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2388 register.
2389 (P): New macro to define a register as a pseudo register.
2390 (R, R4, R8, R16, FR32, R64, R0): Updated.
2391 (struct variant): Add new fields for number of pseudo registers
2392 and number of total registers.
2393 (tot_num_registers): New macro replacing....
2394 (num_registers): ...deleted macro.
2395 (num_registers): New function.
2396 (num_pseudo_registers): New function.
2397 (variants): Update all variants to intialize new fields correctly.
2398 Postpone initialization of number of pseudo regs and real regs.
2399 (init_variants): New function.
2400 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2401 registers offsets.
2402
fcaffe4c
DC
24032002-08-19 David Carlton <carlton@math.stanford.edu>
2404
2c2738a0
DC
2405 * valops.c (search_struct_field): Change error message to treat
2406 return value of 0 from value_static_field as meaning that field is
2407 optimized out.
2408 (value_struct_elt_for_reference): Ditto.
2409 * values.c (value_static_field): Treat an unresolved location the
2410 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
2411 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2412 enclosed. Fix PR gdb/574.
fcaffe4c
DC
2413 * MAINTAINERS: Add self to Write After Approval list.
2414
88658117
AC
24152002-08-19 Andrew Cagney <ac131313@redhat.com>
2416
2417 * mips-tdep.c (mips_xfer_register): New function.
2418 (mips_n32n64_extract_return_value): Rewrite.
2419 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2420 instead of deprecated_extract_return_value.
2421
21283beb
EZ
24222002-08-19 Elena Zannoni <ezannoni@redhat.com>
2423
2424 * rs6000-tdep.c (TDEP): Delete macro.
2425 (branch_dest): Replace use of TDEP macro with its body.
2426 (rs6000_pop_frame): Ditto.
2427 (rs6000_push_arguments): Ditto.
2428 (rs6000_skip_trampoline_code): Ditto.
2429 (rs6000_frame_saved_pc): Ditto.
2430 (rs6000_frame_chain): Ditto.
2431 (rs6000_register_name): Ditto.
2432 (rs6000_register_byte): Ditto.
2433 (rs6000_register_raw_size): Ditto.
2434 (rs6000_register_virtual_type): Ditto.
2435 (rs6000_register_convertible): Ditto.
2436 (rs6000_convert_from_func_ptr_addr): Ditto.
2437
bf072999
DJ
24382002-08-19 Daniel Jacobowitz <drow@mvista.com>
2439
2440 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2441 conditionally.
2442 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2443 MIPS_LINUX_JB_ELEMENT_SIZE.
2444 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2445 for MAX_REGISTER_RAW_SIZE arrays.
2446 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2447 MIPS_LINUX_JB_ELEMENT_SIZE.
2448
9b949a49
PM
24492002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2450
2451 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2452
6d3e79c6
AS
24532002-08-19 Aidan Skinner <aidan@velvet.net>
2454
2455 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2456 ada-valprint.c ada-tasks.c.
2457 (YYFILES): Add ada-exp.y.
2458 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2459 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2460 (ada-exp.tab.o): New target.
2461
06c0b04e
AC
24622002-08-18 Andrew Cagney <ac131313@redhat.com>
2463
2464 * regcache.c (regcache_xfer_part): New function.
2465 (regcache_raw_read_part): New function.
2466 (regcache_raw_write_part): New function.
2467 (regcache_cooked_read_part): New function.
2468 (regcache_cooked_write_part): New function.
2469 * regcache.h (regcache_raw_read_part): Declare.
2470 (regcache_raw_write_part): Declare.
2471 (regcache_cooked_read_part): Declare.
2472 (regcache_cooked_write_part): Declare.
2473
92d1e331
DJ
24742002-08-18 Daniel Jacobowitz <drow@mvista.com>
2475
2476 * remote.c (remote_open_1): Add async_p.
2477 (remote_async_open_1): Delete.
2478 (open_remote_target): Delete.
2479 (remote_open, extended_remote_open): Update calls to remote_open_1.
2480 (remote_async_open, extended_remote_async_open): Call
2481 remote_open_1 instead of remote_async_open_1.
2482
247055de
MK
24832002-08-19 Mark Kettenis <kettenis@gnu.org>
2484
2485 * blockframe.c: Fix a few coding standard violations.
2486
641eda39
MK
24872002-08-19 Mark Kettenis <kettenis@gnu.org>
2488
0b717710
MK
2489 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2490 here from ...
2491 * config/i386/tm-i386sco5.h: ... here. File removed.
2492 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2493
26d28e12 2494 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
2495 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2496 (TM_FILE): Set to tm-i386.h.
2497 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2498 * config/i386/tm-i386v.h: Remove file.
2499 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2500 instead of "i386/tm-i386v.h".
2501 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2502 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2503 "i386/tm-i386v.h".
2504 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2505 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2506 "i386/tm-i386.h".
2507
d4e0bab4
MK
25082002-08-18 Mark Kettenis <kettenis@gnu.org>
2509
2510 * config/i386/nm-i386v.h: Add protection against
2511 multiple-inclusion.
2512 (i386_register_u_addr): Remove prototype.
2513 (register_u_addr): New prototype.
2514 (REGISTER_U_ADDR): Redefine accordingly.
2515 * i386v-nat.c: Improve several comments.
2516 (i386_register_u_addr): Change signature and rename to
2517 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2518 ubase variable.
2519
46cac009
AC
25202002-08-18 Andrew Cagney <ac131313@redhat.com>
2521
2522 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2523 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2524 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2525 deprecated_extract_return_value.
2526 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2527 rename mips_o32o64_push_arguments.
2528 (mips_gdbarch_init): Update.
2529 (mips_extract_return_value): Delete.
2530 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2531 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2532 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2533 (mips_n32n64_extract_return_value): Clone
2534 mips_extract_return_value.
2535 (mips_store_return_value): Delete.
2536 (mips_o32_store_return_value): Clone mips_store_return_value.
2537 (mips_o64_store_return_value): Clone mips_store_return_value.
2538 (mips_eabi_store_return_value): Clone mips_store_return_value.
2539 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2540
d2e4a39e
AS
25412002-08-18 Aidan Skinner <aidan@velvet.net>
2542
0c30c098
AS
2543 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2544 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2545
25462002-08-18 Aidan Skinner <aidan@velvet.net>
2547
2548 * ada-lang.c: Run through gdb_indent.sh.
2549 * ada-lang.h: Run through gdb_indent.sh.
2550 * ada-tasks.c: Run through gdb_indent.sh.
2551 * ada-typeprint.c: Run through gdb_indent.sh.
2552 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 2553
01fc4e33
AC
25542002-08-18 Andrew Cagney <ac131313@redhat.com>
2555
2556 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2557 ABI.
2558
d8ee244c
MK
25592002-08-18 Mark Kettenis <kettenis@gnu.org>
2560
c38d8261
MK
2561 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2562
222db64c
MK
2563 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2564 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2565
c2848c82
MK
2566 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2567 write_register_gen instead of write_register_bytes.
2568
d8ee244c
MK
2569 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2570 i[3456]-*-osf1mk* configurations have been made obsolete.
2571 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2572 i[3456]86-*-osf1mk* hosts obsolete.
2573 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2574 targets obsolete.
2575 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2576 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2577 config/i386/i386m3.mt, config/i386/nm-m3.h,
2578 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2579 config/i386/i386mk.mh, config/i386/i386mk.mt,
2580 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2581 obsolete.
2582 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2583 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2584 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2585
61d8d407
AC
25862002-08-18 Andrew Cagney <ac131313@redhat.com>
2587
2588 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2589 (hppa_value_returned_from_stack): Declare.
2590 (hppa_extract_return_value): Declare.
2591 * config/pa/hppa.mt: New file.
2592 * configure.tgt: Recognize hppa*-*-*.
2593 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2594
0c52bd59
MK
25952002-08-18 Mark Kettenis <kettenis@gnu.org>
2596
2597 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2598 comment.
2599
b5686e99
MK
26002002-08-17 Mark Kettenis <kettenis@gnu.org>
2601
2602 * top.c (gdb_rl_operate_and_get_next): Make sure
2603 operate-and-get-next functions correctly even when the history
2604 list is completely filled.
2605
c1bab85b
AC
26062002-08-18 Andrew Cagney <ac131313@redhat.com>
2607
2608 * MAINTAINERS (Target Instruction Set Architectures): Rename
2609 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2610 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2611 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2612 already listed under Host/Native.
2613
2614 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2615 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2616 mips*-*-*.
2617
32089c7c
AC
26182002-08-17 Andrew Cagney <ac131313@redhat.com>
2619
2620 * config/ia64/ia64.mt: New file.
2621 * config/alpha/alpha.mt: New file.
2622 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2623 ia64-linux-gnu. Mention that ia64-elf is broken.
2624 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2625
b4671f85
MK
26262002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2627
2628 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2629 generic_func_frame_valid instead of func_frame_valid.
2630
c8edd8b4
JB
26312002-08-16 Joel Brobecker <brobecker@gnat.com>
2632
2633 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2634 procfs appears to be broken when debugging on multi-processor
2635 machines. So enable software single stepping in order to avoid
2636 using the procfs interface to do next/step operations, using
2637 internal breakpoints instead.
2638
2639 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2640 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2641 make this pc address equal to the value it would have if the
2642 system stepping capability was used. Also set a new flag used
2643 to ensure that we don't readjust the PC one more time later.
2644
2645 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2646 address by DECR_PC_AFTER_BREAK when software single step is
2647 in use for this architecture, as this has already been taken
2648 care of in handle_inferior_event().
2649
238617f6
JB
26502002-08-16 Joel Brobecker <brobecker@gnat.com>
2651
2652 * infrun.c (handle_inferior_event): Minor reformatting, to make
2653 a rather long condition expression easier to read.
2654
541a7aac
AC
26552002-08-16 Andrew Cagney <ac131313@redhat.com>
2656
2657 * Makefile.in (gdbtk.o): Move to end of file.
2658 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2659 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2660 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2661 (gdbtk-wrapper.o, gdbres.o): Ditto.
2662
f92d4a7b
AC
26632002-08-16 Andrew Cagney <ac131313@redhat.com>
2664
2665 * Makefile.in (copying.o): Separate out compile rule.
2666 (hpux-thread.o, procfs.o, signals.o): Ditto.
2667 (v850ice.o, z8k-tdep.o): Ditto.
2668 (tui-file.o): Move to TUI section.
2669 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2670 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2671
1cce71eb
JB
26722002-08-16 Joel Brobecker <brobecker@gnat.com>
2673
2674 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2675 skip_trampoline_code, for better namespace-proofing.
2676
2677 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2678
0851f23d
JB
26792002-08-16 Joel Brobecker <brobecker@gnat.com>
2680
2681 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2682
f8d40ec8
JB
26832002-08-16 Joel Brobecker <brobecker@gnat.com>
2684
2685 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2686 signal, check whether we hit a breakpoint before checking for a
2687 single step breakpoint. Otherwise, GDB fails to notice that a
2688 breakpoint has been hit when stepping onto a breakpoint.
2689
63d022e0
KS
26902002-08-16 Keith Seitz <keiths@redhat.com>
2691
2692 * gdb-events.sh (clear_gdb_event_hooks): New function.
2693 * gdb-events.c: Regenerate.
2694 * gdb-events.h: Regenerate.
2695
6e31adb3
AC
26962002-08-16 Andrew Cagney <ac131313@redhat.com>
2697
2698 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2699 not_a_sw_breakpoint.
2700 * breakpoint.h (bpstat_stop_status): Add parameter names.
2701
c8189ed1
GS
27022002-08-16 Grace Sainsbury <graces@redhat.com>
2703
2704 * remote.c (remote_insert_hw_breakpoint)
2705 (remote_remove_hw_breakpoint): Fix calculation of length field
2706 for Z-packet.
2707
d05285fa
MS
27082002-08-15 Michael Snyder <msnyder@redhat.com>
2709
466d7106
MS
2710 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2711 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2712 (supply_fpregset): Ditto.
2713
d05285fa
MS
2714 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2715 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2716 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 2717 (TARGET_READ_SP): Delete.
bf1f5b4c 2718 (DO_REGISTERS_INFO): Delete.
102182a9
MS
2719 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2720 Delete.
2721 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2722 from macros to functions.
bf1f5b4c 2723
d05285fa
MS
2724 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2725 (mips_register_convertible, mips_register_convert_to_virtual,
2726 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
2727 (mips_read_sp): New function.
2728 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
2729 (mips_do_registers_info): Make static.
2730 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
2731 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2732 (mips_register_convert_from_type, mips_register_convert_to_type):
2733 New functions.
2734 (mips_gdbarch_init): Set up function_start_offset,
2735 register_virtual_size, pc_in_sigtramp.
d05285fa 2736
e76f1f2e
AC
27372002-08-15 Andrew Cagney <ac131313@redhat.com>
2738
2739 * infcmd.c (vector_info): New function.
2740 (_initialize_infcmd): Add command "info vector".
2741 (print_vector_info): New function.
2742
2743 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2744 * gdbarch.h, gdbarch.c: Regenerate.
2745
4782dc19
AC
27462002-08-15 Andrew Cagney <ac131313@redhat.com>
2747
2748 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2749 ``print_all''. Only print vector registers when ``print_all''.
2750
23e3a7ac
AC
27512002-08-15 Andrew Cagney <ac131313@redhat.com>
2752
8e186fd6
AC
2753 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2754 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2755
23e3a7ac
AC
2756 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2757 Add `args' parameter.
2758 * gdbarch.h, gdbarch.c: Regenerate.
2759
2760 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2761
2762 * infcmd.c (float_info): Call print_float_info.
2763 (print_float_info): New function. By default, print the
2764 floating-point registers.
2765
2766 * arch-utils.h (default_print_float_info): Delete declaration.
2767 * arch-utils.c (default_print_float_info): Delete function.
2768
e0ca2bb9
MK
27692002-08-16 Mark Kettenis <kettenis@gnu.org>
2770
3f733acc
MK
2771 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2772 out define.
2773
7d8d2918
MK
2774 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2775 FRAME.
2776
1c7cc583
MK
2777 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2778 * configure.host: Make i[3456]86-*-aix host obsolete.
2779 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2780 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2781 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2782 config/i386/xm-i386aix.h: Make files obsolete.
2783 * i386aix-nat.c: Make file obsolete.
2784 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2785 (i386aix-nat.o): Make target obsolete.
2786
e0ca2bb9
MK
2787 * config/i386/nm-gnu.h: Removed.
2788 * config/i386/nm-i386gnu.h: New file.
2789 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2790 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2791 Moved here from ...
2792 * config/i386/tm-i386gnu.h: ... here. Removed.
2793 * config/i386/xm-i386gnu.h: Removed.
2794 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2795 (NAT_FILE): Set to nm-i386gnu.h.
2796 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2797 * i386-tdep.c: New file.
2798 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2799 (i386gnu-tdep.o): Specify dependencies.
2800
16057ec7 28012002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 2802
6b99ee2e
MK
2803 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2804 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2805 Adjust a few comments to reflect reality a bit closer.
2806 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2807 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2808 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2809 target_insert_watchpoint, target_remove_watchpoint):
2810 Move defines to ...
2811 * config/i386/nm-i386sco5.h: ... here.
2812 (kernel_u_size): Add prototype. Improve a few comments and add
2813 protection against multiple inclusion.
2814
d9a6f65c
MK
2815 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2816 out define.
2817
047eff6a
MK
2818 * uw-thread.c (SP_ARG0): Define if not already defined.
2819 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2820
dcdb1290
MK
2821 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2822
5d2d0b2a
MK
2823 * config/i386/tm-i386.h: Don't include "regcache.h".
2824
61113f8b
MK
2825 * i387-tdep.h (i387_print_float_info): New prototype.
2826 * i387-tdep.c (print_i387_value, print_i387_ext,
2827 print_i387_status_word, print_i387_control_word): Add `struct
2828 ui_file *' argument and use it for output.
2829 (i387_print_float_info): Renamed from i387_float_info. Add
2830 `struct gdbarch *' and `struct ui_file *' arguments and use the
2831 latter for output.
2832 * i386-tdep.c: Include "i387-tdep.h".
2833 (i386_gdbarch_init): Set print_float_info.
2834 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2835 (FLOAT_INFO): Remove define.
2836
46e0f506
MS
28372002-08-13 Michael Snyder <msnyder@redhat.com>
2838
2839 * mips-tdep.c (mips_push_arguments): Rename to
2840 mips_eabi_push_arguments, and tune for EABI.
2841 (MIPS_REGS_HAVE_HOME_P): Delete.
2842 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2843 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2844 Delete references to mips_regs_have_home_p.
2845
409268de
KS
28462002-08-14 Keith Seitz <keiths@redhat.com>
2847
2848 * Makefile.in (install-gdbtk): Create insight plugin directory.
2849 Install plugins.tcl file.
2850
ffc6a242
KS
28512002-08-14 Keith Seitz <keiths@redhat.com>
2852
2853 * configure.in: Move SUBDIRS to near top of the file so that
2854 --enable options may add things to it.
2855 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2856 * configure: Regenerate.
2857
ebafbe83
MS
28582002-08-13 Michael Snyder <msnyder@redhat.com>
2859
2860 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2861 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2862 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2863
32f6f25d
AC
28642002-08-13 Andrew Cagney <ac131313@redhat.com>
2865
2866 * vax-tdep.c (vax_get_saved_register): Delete function.
2867 (vax_gdbarch_init): Update.
2868 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2869 (ns32k_gdbarch_init): Update.
2870 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2871 (alpha_gdbarch_init): Update.
2872
53826de9
AC
28732002-08-13 Andrew Cagney <cagney@redhat.com>
2874
2875 * regcache.c (init_regcache_descr): Overallocate the
2876 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2877 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2878 nr_raw_registers.
2879 (set_register_cached): Add range checking assertions. Use
2880 current_regcache.
2881
16057ec7 28822002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
2883
2884 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2885 numbers for MMX registers.
2886
7b4c2dce
AC
28872002-08-13 Andrew Cagney <cagney@redhat.com>
2888
2889 * i386-tdep.c (i386_gdbarch_init): Use
2890 generic_unwind_get_saved_register.
2891
1e03ad20
KB
28922002-08-13 Kevin Buettner <kevinb@redhat.com>
2893
2894 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2895 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2896 target vector.
2897 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2898 Delete. Add comment regarding this now-deleted target method.
2899
548bcbec
SC
29002002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2901
2902 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2903 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2904 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2905 real PC and the page number (if it's within the memory bank window).
2906 (m68hc11_pseudo_register_write): Likewise when saving.
2907 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2908 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2909 (m68hc11_register_raw_size): And use 32-bit for it.
2910 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2911 16K memory bank is used by the prog; also use the virtual pc.
2912
7df11f59
SC
29132002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2914
2915 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2916 (m68hc11_gdbarch_init): Install it in gdbarch.
2917 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2918 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2919 (MSYMBOL_SIZE): New for documentation.
2920 (insn_return_kind): Enum to specify how a function returns.
2921 (frame_extra_info): Cleanup and record the return mode.
2922 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2923 register in address computation.
2924 (m68hc11_get_return_insn): New to obtain the return instruction used
2925 by the function.
2926 (m68hc11_frame_init_saved_regs): Take into account the return
2927 instruction used by the function for far and interrupt functions.
2928 (m68hc11_init_extra_frame_info): Take into account page register.
2929 (m68hc11_frame_args_address): Adjust according to the return mode.
2930 (show_regs): Print page register only when it's used.
2931
5706502a
SC
29322002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2933
2934 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2935 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2936 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2937 registers.
2938 (m68hc11_register_raw_size): Likewise.
2939
28fc6740
AC
29402002-08-13 Andrew Cagney <cagney@redhat.com>
2941
2942 * i386-tdep.c (i386_register_name): Handle mmx registers.
2943 (mmx_regnum_p): New function.
2944 (i386_mmx_names): New array.
2945 (mmx_num_regs): New variable.
2946 (i386_pseudo_register_read): New function.
2947 (i386_pseudo_register_write): New function.
2948 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2949
2950 * regcache.c (regcache_raw_read_unsigned): New function.
2951 (regcache_raw_read_signed): New function.
2952 * regcache.h (regcache_raw_read_unsigned): Declare.
2953 (regcache_raw_read_signed): Declare.
2954
a378f419
AC
29552002-08-13 Andrew Cagney <cagney@redhat.com>
2956
2957 * regcache.c (regcache_raw_read_as_address): Delete function.
2958 (regcache_cooked_read_signed): New function.
2959 (regcache_cooked_read_unsigned): New function.
2960 * regcache.h (regcache_cooked_read_signed): Declare.
2961 (regcache_cooked_read_unsigned): Declare.
2962 (regcache_raw_read_as_address): Delete declaration.
2963
2964 * blockframe.c (generic_read_register_dummy): Use
2965 regcache_cooked_read_unsigned.
2966 * i386-tdep.c (i386_extract_struct_value_address): Use
2967 regcache_cooked_read_unsigned.
2968
81967506
SC
29692002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2970
2971 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2972 double sizes according to ELF ABI flags.
2973 (gdbarch_tdep): Record elf_flags.
2974
ffe1f3ee
SC
29752002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2976
2977 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2978 (m6812_prolog): They can appear in 68HC12 function prologue.
2979 (m68hc11_frame_chain): Cleanup.
2980
98216c5d
AC
29812002-08-12 Andrew Cagney <cagney@redhat.com>
2982
2983 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2984 declarations.
2985 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2986 (i386_linux_register_raw_size): Delete function.
2987 (i386_linux_init_abi): Update.
2988 * i386-tdep.c (i386_register_raw_size): Delete function.
2989 (i386_register_byte): Delete function.
2990 (i386_gdbarch_init): Update.
2991 (i386_register_size): Delete array.
2992 (i386_register_offset): Delete array.
2993
2994 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2995 (REGISTER_RAW_SIZE): Delete macro.
2996 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2997 (REGISTER_BYTE): Delete macro.
2998
3b19021e
AS
29992002-08-11 Aidan Skinner <aidan@velvet.net>
3000
3001 * ada-lang.c (ada_lookup_partial_symbol)
3002 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3003 prototype names so that grep ^func works properly.
3004
3005 * ada-lang.c (ada_array_element_type)
3006 (ada_lookup_partial_symbol): Fix typos in parameter list.
3007
3008 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3009 Fix prototype names so that grep ^func works properly.
3010
b063e7a2
AC
30112002-08-10 Andrew Cagney <cagney@redhat.com>
3012 Elena Zannoni <ezannoni@redhat.com>
3013 Martin M. Hunt <hunt@redhat.com>
3014
3015 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3016 (build_builtin_type_vec128i): Set the vector bit.
3017 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3018 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3019 (build_builtin_type_vec64): New function.
3020 (build_builtin_type_vec64i): New function.
3021 (build_gdbtypes): Initialize builtin_type_vec64 and
3022 builtin_type_vec64i.
3023
a7e3c2ad
AC
30242002-08-09 Andrew Cagney <cagney@redhat.com>
3025
3026 * regcache.c (regcache_dump): Compare the register offset
3027 with REGISTER_BYTE.
3028 * arch-utils.c (generic_register_byte): New function.
3029 * arch-utils.h (generic_register_byte): Declare.
3030 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3031 * gdbarch.h, gdbarch.c: Regenerate.
3032
af030b9a
AC
30332002-08-09 Andrew Cagney <cagney@redhat.com>
3034
3035 * regcache.c: Include "gdbcmd.h"
3036 (_initialize_regcache): Add commands "maintenance print
3037 registers", "maintenance print raw-registers" and "maintenance
3038 print cooked-registers".
3039 (enum regcache_dump_what): Define.
3040 (dump_endian_bytes): New function.
3041 (regcache_dump): New function.
3042 (regcache_print): New function.
3043 (maintenance_print_registers): New function.
3044 (maintenance_print_raw_registers): New function.
3045 (maintenance_print_cooked_registers): New function.
3046 * Makefile.in (regcache.o): Update dependencies.
3047
cb3d25d1
MS
30482002-08-09 Michael Snyder <msnyder@redhat.com>
3049
3050 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3051 (mips_push_arguments): Correct some comments. Use paddr_nz
3052 for printing addresses in debug output. Replace static
3053 allocation using MAX_REGISTER_RAW_SIZE with alloca.
3054 (mips_n32n64_push_arguments): New function, cloned from
3055 mips_push_arguments and tuned for the n32/n64 ABI.
3056 (mips_push_register): Buffer needs dynamic allocation.
3057 (mips_print_register): Ditto.
3058 (do_gp_register_row): Ditto.
3059 (mips_store_return_value): Ditto.
3060 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3061
2163ab9d
DH
30622002-08-09 Don Howard <dhoward@redhat.com>
3063
3064 * memattr.c (mem_info_command): Print special case of upper bound
3065 as max CORE_ADDR + 1.
3066
b78bcb18
MS
30672002-08-08 Michael Snyder <msnyder@redhat.com>
3068
3069 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
3070 returns structs by ref if they're too big to fit in two registers.
3071
ffabd70d
KB
30722002-08-09 Kevin Buettner <kevinb@redhat.com>
3073
3074 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3075 saved regs value.
3076 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3077 mips_find_saved_regs().
3078 (mips_pop_frame): Likewise.
3079
fbcdb4a3
KB
30802002-08-09 Kevin Buettner <kevinb@redhat.com>
3081
3082 * blockframe.c (frame_saved_regs_register_unwind): Revise
3083 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3084 frames are in use.
3085
3c3bea1c
GS
30862002-08-09 Grace Sainsbury <graces@redhat.com>
3087
3088 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3089 T-packets; the 'a' is not taken as a register number.
3090 (remote_check_watch_resources, remote_stopped_by_watchpoint)
3091 (remote_stopped_data_address): New functions; add to target
3092 vector.
3093 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3094 prototypes to match other implementations of this
3095 function. replace integer argument with pointer -- the length
3096 field in the Z-packet is the length of what is pointed to or 1 if
3097 pointer is null. Add to target vector.
3098 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3099 target vector.
3100
3101 From Mark Salter:
3102 * remote.c (remote_wait): Add support to extract optional
3103 watchpoint information from T-packet. Ignore unrecognized
3104 optional info in T-packet.
3105 (remote_async_wait): Ditto.
3106
5d1d95de
CV
31072002-08-09 Corinna Vinschen <vinschen@redhat.com>
3108
3109 * cli/cli-dump.c: Change fopen modes to use binary open modes
3110 as defined in include/fopen-bin.h throughout.
3111
c86b5b38
MS
31122002-08-08 Michael Snyder <msnyder@redhat.com>
3113
3114 * mips-tdep.c: Minor whitespace and indentation clean-ups.
3115
b30590dc
KB
31162002-08-08 Kevin Buettner <kevinb@redhat.com>
3117
3118 * doublest.c (store_floating): Avoid floatformat_from_doublest()
3119 assertion failure by returning early after a warning.
3120
498868ed
KB
31212002-08-08 Kevin Buettner <kevinb@redhat.com>
3122
3123 * mips-tdep.c (mips_find_saved_regs): Make static.
3124 (mips_frame_init_saved_regs): New function.
3125 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3126 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3127 (mips_find_saved_regs): Delete declaration.
3128
b2dd6311
GS
31292002-08-08 Grace Sainsbury <graces@redhat.com>
3130
3c3bea1c
GS
3131 * remote.c (remote_wait, remote_async_wait): Change
3132 thread_num from int to ULONGEST.
3133 (unpack_varlen_hex): Change result parameter from
3134 int * to ULONGEST *.
b2dd6311 3135
ea47855f
AC
31362002-08-08 Andrew Cagney <ac131313@redhat.com>
3137
3138 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3139 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3140 powerpc*-*-*.
3141 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3142
69db8bae
AC
31432002-08-08 Andrew Cagney <cagney@redhat.com>
3144
3145 * gcore.c (override_derive_stack_segment): Delete variable.
3146 (preempt_derive_stack_segment): Delete function.
3147 (derive_stack_segment): Delete function.
3148 (default_derive_stack_segment): Renamed to derive_stack_segment.
3149 (override_derive_heap_segment): Delete variable.
3150 (preempt_derive_heap_segment): Delete function.
3151 (derive_heap_segment): Delete function.
3152 (default_derive_heap_segment): Rename to derive_heap_segment.
3153
cb811fe7
MS
31542002-08-06 Michael Snyder <msnyder@redhat.com>
3155
3156 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3157 * mips-tdep.c (mips_EABI_use_struct_convention,
3158 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3159 New functions. (mips_use_struct_convention): Delete.
3160 (mips_gdbarch_init): set use_gdbarch_convention.
3161
8b389c40
MS
31622002-08-06 Michael Snyder <msnyder@redhat.com>
3163
3164 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3165 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
3166 mips_o32_reg_struct_has_addr): New functions.
3167 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3168
5c27f28a
AC
31692002-08-07 Andrew Cagney <ac131313@redhat.com>
3170
3171 * regcache.c (pseudo_register): Delete function.
3172 (fetch_register): Delete function.
3173 (store_register): Delete function.
3174 (regcache_raw_read, legacy_read_register_gen): Use
3175 target_fetch_registers instead of fetch_register.
3176 (legacy_write_register_gen, regcache_raw_write): Use
3177 target_store_register instead of store_register.
3178 (write_register_bytes): Ditto.
3179
3180 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3181 (STORE_PSEUDO_REGISTER): Delete.
3182 * gdbarch.h, gdbarch.c: Regenerate.
3183
5b331675
CV
31842002-08-06 Corinna Vinschen <vinschen@redhat.com>
3185
3186 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3187 write dump file binary.
3188
6acdf5c7
MS
31892002-08-05 Michael Snyder <msnyder@redhat.com>
3190
3191 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
3192 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
3193 (mips_gdbarch_init): Set N32 target to be mips64.
3194
b2f01c35
KB
31952002-08-06 Kevin Buettner <kevinb@redhat.com>
3196
3197 * frame.c (find_saved_register): Break out of loop once saved
3198 register address is found. Don't mention sparc in loop comment
3199 anymore.
3200
63db5580
KB
32012002-08-06 Kevin Buettner <kevinb@redhat.com>
3202
3203 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3204 mips_default_saved_regsize to 8.
3205
5e34e75e
AC
32062002-08-06 Andrew Cagney <ac131313@redhat.com>
3207
3208 * gcore.c: Do not include <sys/procfs.h>.
3209 * Makefile.in (gcore.o): Update dependencies.
3210
eb4c54a2
AC
32112002-08-06 Andrew Cagney <cagney@redhat.com>
3212
3213 * configure.tgt: Make arc-*-* obsolete.
3214 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3215 * MAINTAINERS: Make arc-elf obsolete.
3216 * arc-tdep.c: Make file obsolete.
3217 * config/arc/arc.mt: Ditto.
3218 * config/arc/tm-arc.h: Ditto.
3219
ced15480
TR
32202002-08-05 Theodore A. Roth <troth@verinet.com>
3221
c1bab85b 3222 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 3223
b4743822
AC
32242002-08-05 Andrew Cagney <ac131313@redhat.com>
3225
3226 * mcore-tdep.c (mcore_gdbarch_init): Use
3227 generic_unwind_get_saved_register instead of
3228 generic_get_saved_register.
3229 * v850-tdep.c (v850_gdbarch_init): Ditto.
3230 * frv-tdep.c (frv_gdbarch_init): Ditto.
3231 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3232 * s390-tdep.c (s390_gdbarch_init): Ditto.
3233 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3234 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3235 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3236
3956d554
JB
32372002-08-05 Joel Brobecker <brobecker@gnat.com>
3238
3239 * objfiles.h: Add missing #include "symfile.h"
3240
3241 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3242
8249c0d6
AC
32432002-08-04 Andrew Cagney <ac131313@redhat.com>
3244
3245 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3246 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3247 of FIELD_BITSIZE.
3248
b9d14705
DJ
32492002-08-04 Daniel Jacobowitz <drow@mvista.com>
3250
3251 * NEWS: Cleanup and nitpick.
3252
dd73b9bb
AC
32532002-08-03 Andrew Cagney <ac131313@redhat.com>
3254
3255 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3256
043a27f8
AC
32572002-08-03 Andrew Cagney <ac131313@redhat.com>
3258
3259 * Makefile.in (gdbtk-bp.o): Update dependencies.
3260 (gdbtk-register.o): Ditto.
3261 (gdbtk-varobj.o): Ditto.
3262
46ce284d
AC
32632002-08-03 Andrew Cagney <cagney@redhat.com>
3264
3265 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3266 m68hc11_fetch_pseudo_register.
3267 (m68hc11_pseudo_register_write): Replace
3268 m68hc11_store_pseudo_register.
3269 (m68hc11_gdbarch_init): Update.
3270
b66d6d2e
AC
3271Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3272
3273 * gdbarch.sh: Include "gdb_string.h".
3274 * gdbarch.c: Regenerate.
3275
3276 * regcache.c: Include "gdb_string.h".
3277 * ax-general.c: Ditto.
3278 * varobj.c: Ditto.
3279 * std-regs.c: Ditto.
3280 * fbsd-proc.c: Ditto.
3281 * thread.c: Ditto.
3282
3283 * Makefile.in (regcache.o): Update dependencies.
3284 (thread.o, gdbarch.o): Ditto.
3285 (ax-general.o, gdbarch.o): Ditto.
3286 (varobj.o, std-regs.o): Ditto.
3287 (fbsd-proc.o): Specify dependencies.
3288
29e1842b
AC
32892002-08-02 Andrew Cagney <cagney@redhat.com>
3290
3291 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3292 regnum.
3293 (regcache_cooked_write): Ditto.
3294
68365089
AC
32952002-08-02 Andrew Cagney <ac131313@redhat.com>
3296
3297 * regcache.c (regcache_cooked_read): New function.
3298 (regcache_cooked_write): New function.
3299 (read_register_gen): Rewrite using regcache_cooked_read.
3300 (write_register_gen): Rewrite using regcache_cooked_write.
3301
3302 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3303 Declare.
3304
d8124050
AC
33052002-08-02 Andrew Cagney <cagney@redhat.com>
3306
3307 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3308 Replace the architecture methods register_read and register_write.
3309 * gdbarch.h, gdbarch.c: Regenerate.
3310 * regcache.c (init_regcache_descr): Update.
3311 (read_register_gen): Update.
3312 (write_register_gen): Update.
3313 (supply_register): Update comment.
3314
3315 * sh-tdep.c (sh_gdbarch_init): Update.
3316 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3317 `regcache' and `gdbarch' parameters. Make `buffer' a void
3318 pointer. Update code.
3319 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3320 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3321 void pointer. Update code.
3322 (sh64_register_write): Delete.
3323 (sh4_register_read): Delete.
3324 (sh64_register_read): Delete.
3325 (sh4_register_write): Delete.
3326 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3327 void pointer, `to' parameter a void pointer.
3328 (sh_sh64_register_convert_to_raw): Ditto.
3329
a6425924
KB
33302002-08-01 Kevin Buettner <kevinb@redhat.com>
3331
3332 * mips-tdep.c (mips_register_virtual_type): Use architecture
3333 invariant return values.
3334
ff5922b5
AC
33352002-08-01 Andrew Cagney <cagney@redhat.com>
3336
3337 * linux-proc.c: Include "gdb_string.h".
3338 * Makefile.in (linux-proc.o): Update dependency list.
3339
32a6503c
KB
33402002-08-01 Kevin Buettner <kevinb@redhat.com>
3341
3342 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3343 comment.
3344
ccaa32c7
GS
33452002-08-01 Grace Sainsbury <graces@redhat.com>
3346
3347 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3348 to_insert_watchpoint, to_remove_watchpoint,
3349 to_stopped_by_watchpoint, to_stopped_data_address,
3350 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3351 target vecctor. Define their corresponding macros so they call
3352 them.
3353
3354 * target.c: Add default and debug versions of for
3355 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3356 to_insert_watchpoint, to_remove_watchpoint,
3357 to_stopped_by_watchpoint, to_stopped_data_address,
3358 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3359
78fde5f8
KB
33602002-08-01 Kevin Buettner <kevinb@redhat.com>
3361
3362 * mips-tdep.c (mips_register_virtual_type): New function.
3363 (mips_gdbarch_init): Register mips_register_virtual_type()
3364 with gdbarch machinery.
3365 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3366 this file instead of tm-bigmips.h.
3367 (MIPS_REGSIZE): Delete this macro.
3368 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3369 multiarch version in mips-tdep.c will be found.
3370
db034ac5
AC
33712002-08-01 Andrew Cagney <cagney@redhat.com>
3372
3373 * NEWS: Menion that CHILL has been made obsolete.
3374
3375 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
3376 * stabsread.c (read_range_type): Ditto.
3377 * gdbtypes.h: Ditto.
3378 * language.c (binop_type_check): Ditto.
3379 (binop_result_type): Ditto.
3380 (integral_type): Ditto.
3381 (character_type): Ditto.
3382 (string_type): Ditto.
3383 (boolean_type): Ditto.
3384 (structured_type): Ditto.
3385 (lang_bool_type): Ditto.
3386 (binop_type_check): Ditto.
3387 * language.h (_LANG_chill): Ditto.
3388 * dwarfread.c (set_cu_language): Ditto.
3389 * dwarfread.c (CHILL_PRODUCER): Ditto.
3390 * dwarfread.c (handle_producer): Ditto.
3391 * expression.h (enum exp_opcode): Ditto.
3392 * eval.c: Ditto for comments.
3393 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3394 * expprint.c (print_subexp): Ditto.
3395 (print_subexp): Ditto.
3396 * valops.c (value_cast): Ditto.
3397 (search_struct_field): Ditto.
3398 * value.h (COERCE_VARYING_ARRAY): Ditto.
3399 * symfile.c (init_filename_language_table): Ditto.
3400 (add_psymbol_with_dem_name_to_list): Ditto.
3401 * valarith.c (value_binop): Ditto.
3402 (value_neg): Ditto.
3403 * valops.c (value_slice): Ditto.
3404 * symtab.h (union language_specific): Ditto.
3405 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3406 (SYMBOL_DEMANGLED_NAME): Ditto.
3407 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3408 * defs.h (enum language): Ditto.
3409 * symtab.c (got_symtab): Ditto.
3410 * utils.c (fprintf_symbol_filtered): Ditto.
3411
3412 * ch-typeprint.c: Make file obsolete.
3413 * ch-valprint.c: Make file obsolete.
3414 * ch-lang.h: Make file obsolete.
3415 * ch-exp.c: Make file obsolete.
3416 * ch-lang.c: Make file obsolete.
3417
3418 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3419 CHILL_LIB.
3420 (TARGET_FLAGS_TO_PASS): Ditto.
3421 (CHILLFLAGS): Obsolete.
3422 (CHILL): Obsolete.
3423 (CHILL_FOR_TARGET): Obsolete.
3424 (CHILL_LIB): Obsolete.
3425 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3426 ch-valprint.c.
3427 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3428 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3429 ch-lang.o.
3430 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3431 targets.
3432
8aaf0b47
JB
34332002-07-31 Joel Brobecker <brobecker@gnat.com>
3434
3435 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3436 This does not change anything at the moment, but will be helpful
3437 later when full Ada support is integrated.
3438
f3a7b3a5
KB
34392002-07-31 Kevin Buettner <kevinb@redhat.com>
3440
3441 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3442 help message.
3443
fb850278
KB
34442002-07-31 Kevin Buettner <kevinb@redhat.com>
3445
3446 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3447 and save it in a local variable. Use variable in later test.
3448
e3bddbfa
KB
34492002-07-31 Kevin Buettner <kevinb@redhat.com>
3450
3451 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3452 test. (Thanks to Daniel Jacobowitz.)
3453
28d169de
KB
34542002-07-31 Kevin Buettner <kevinb@redhat.com>
3455
3456 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3457 (mips_abi_strings): Add "n64".
3458 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3459
7fe7e44e
KB
34602002-07-31 Kevin Buettner <kevinb@redhat.com>
3461
3462 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3463 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3464
c6caf090
KB
34652002-07-31 Kevin Buettner <kevinb@redhat.com>
3466
3467 * utils.c (host_pointer_to_address, address_to_host_pointer):
3468 Use gdb_assert() instead of explicit call to internal_error().
3469
c41669e0
KB
34702002-07-30 Kevin Buettner <kevinb@redhat.com>
3471
3472 * Makefile.in (rs6000-nat.o): Update dependencies.
3473
3474 From Nicholas Duffek:
3475 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3476 (aix-thread.o): New rule.
3477 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3478 * config/powerpc/aix432.mh: New file.
3479
2fda4977
DJ
34802002-07-30 Daniel Jacobowitz <drow@mvista.com>
3481
3482 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3483 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3484 (fetch_core_registers, ppc_linux_supply_gregset)
3485 (ppc_linux_supply_fpregset): New functions.
3486 (ppc_linux_regset_core_fns): New.
3487 (_initialize_ppc_linux_tdep): Call add_core_fns.
3488 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3489 and ppc_linux_supply_gregset.
3490 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3491 (supply_fpregset): Call ppc_linux_supply_fpregset.
3492 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3493 corelow.o.
3494 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3495
729051e6
DJ
34962002-07-30 Daniel Jacobowitz <drow@mvista.com>
3497
3498 * symtab.c (lookup_symbol): Demangle before lowercasing.
3499
5f8a3188
AC
35002002-07-30 Andrew Cagney <ac131313@redhat.com>
3501
3502 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3503 declaration.
3504 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3505 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3506 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3507 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3508 "gdb_string.h".
3509 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3510 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3511 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3512 (avr-tdep.o, mon960-rom.o): Ditto.
3513 (aout_stabs_gnu_h): Define.
3514 (symtab_h): Remove $(gdb_obstack_h).
3515
67f07146
JB
35162002-07-30 Jim Blandy <jimb@redhat.com>
3517
3518 Patch from David Carlton <carlton@math.stanford.edu>:
3519 * gdbinit.in: Move the `dir' commands that add GDB's own source
3520 directory to the search path to the end, so that the `gdb' source
3521 directory will be searched first.
3522
04ea0df1
AC
35232002-07-29 Andrew Cagney <ac131313@redhat.com>
3524
3525 * gdb_obstack.h: New file.
3526 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3527 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3528 * objfiles.h: Include "gdb_obstack.h".
3529 * Makefile.in (gdb_obstack_h): Define.
3530 (symtab_h): Add $(gdb_obstack_h).
3531 (objfiles_h): Add $(gdb_obstack_h).
3532
3533 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3534 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3535 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3536 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3537 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3538 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3539 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3540 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3541
3542 * Makefile.in (bcache.o): Update dependencies.
3543 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3544 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3545 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3546 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3547 (stabsread.o, symfile.o, symmisc.o): Ditto.
3548 (symtab.o, typeprint.o, macroexp.o): Ditto.
3549 (macrotab.o, mdebugread.o): Ditto.
3550 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3551 (coff_ecoff_h, aout_aout64_h): Define.
3552 (aout_stabs_gnu_h, libaout_h): Define.
3553
d138e37a
AC
35542002-07-29 Andrew Cagney <cagney@redhat.com>
3555
3556 * regcache.c (struct regcache_descr): Rename nr_registers to
3557 nr_cooked_registers. Revise comments describing the structure
3558 member fields.
3559 (init_regcache_descr): Update.
3560 (init_legacy_regcache_descr): Update.
3561 (read_register_gen, write_register_gen): When a cooked register in
3562 the raw register range, directly access the value from the raw
3563 register cache.
3564
460e6ec3
AC
35652002-07-29 Andrew Cagney <ac131313@redhat.com>
3566
3567 * z8k-tdep.c: Do not include "obstack.h".
3568 * h8300-tdep.c, h8500-tdep.c: Ditto.
3569 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3570 * valprint.c, v850-tdep.c: Ditto.
3571 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3572 * mn10200-tdep.c: Ditto.
3573
3574 * Makefile.in (z8k-tdep.o): Update dependencies.
3575 (m68hc11-tdep.o, valprint.o): Ditto.
3576 (v850-tdep.o, d10v-tdep.o): Ditto.
3577 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3578 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3579 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3580 (sh_opc_h, gdb_sim_sh_h): Define.
3581 (elf_sh_h, elf_bfd_h): Define.
3582 (opcode_m68hc11_h): Define.
3583 (OPCODES_SRC, OPCODES_DIR): define.
3584 (OPCODES): Use $(OPCODES_DIR).
3585 (gdb_sim_d10v_h): Rename sim_d10v_h.
3586 (gdb_sim_arm_h): Rename sim_arm_h.
3587
790c9cf0
KB
35882002-07-26 Kevin Buettner <kevinb@redhat.com>
3589
3590 * utils.c (host_pointer_to_address, address_to_host_pointer):
3591 Change internal_error() message to indicate function responsible
3592 for the error.
3593
9647fa49
KB
35942002-07-26 Kevin Buettner <kevinb@redhat.com>
3595
3596 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3597 calls to local_hex_string_custom().
3598
dabbe2c0
KB
35992002-07-26 Kevin Buettner <kevinb@redhat.com>
3600
3601 * irix5-nat.c: Move IRIX shared library support from here...
3602 * solib-irix.c: ...to here. Revised substantially to work with
3603 generic solib framework.
3604
b96d0a4e
KB
3605 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3606 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3607 * mips-irix-tdep.c: New file.
3608
313fb2f6
KB
3609 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3610 (mips-irix-tdep.o, solib-irix.o): New rules.
3611 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3612 solib-irix.o.
3613 * config/mips/irix6.mt (TDEPFILES): Likewise.
3614 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3615
ab2eaf26
KB
36162002-07-26 Kevin Buettner <kevinb@redhat.com>
3617
177e4768 3618 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
3619 disabled (via ``#if 0'') includes.
3620
7244546a
KB
36212002-07-26 Kevin Buettner <kevinb@redhat.com>
3622
3623 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3624 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3625 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3626 Add support for the fpscr register.
3627 * rs6000-nat.c (regmap, fetch_inferior_registers)
3628 (store_inferior_registers, fetch_core_registers): Likewise.
3629
dd7be90a
KB
36302002-07-26 Kevin Buettner <kevinb@redhat.com>
3631
3632 * rs6000-nat.c (language.h): Include.
3633 (special_regs): Delete this array.
3634 (regmap): New function.
3635 (fetch_register, store_register): Use regmap() to map gdb
3636 register numbers to ptrace register numbers. Also, use
3637 outputs from regmap() to make decisions regarding type of
3638 ptrace() call to make. In particular, don't compare against
3639 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3640 (fetch_inferior_registers, store_inferior_registers): Where
3641 possible, obtain register numbers from tdep struct. Don't
3642 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3643 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3644 (LAST_UISA_SP_REGNUM): Delete.
3645
11bf77db
KB
36462002-07-25 Kevin Buettner <kevinb@redhat.com>
3647
3648 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
3649 (fetch_registers, store_register, fetch_core_registers): Don't
3650 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
3651 regcache_collect() as appropriate.
3652 (find_toc_address): Format hex address with local_hex_string().
3653
06afebeb
AC
36542002-07-25 Andrew Cagney <ac131313@redhat.com>
3655
3656 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3657 bfd/elf32-frv.c.
3658
8c554d79
TT
36592002-07-24 Tom Tromey <tromey@redhat.com>
3660
3661 * jv-exp.y: Marked all strings with _().
3662 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3663 internal_error.
3664 (MethodInvocation, CastExpression, parse_number, yyerror,
3665 java_type_from_name, push_expression_name, yylex): Typo fixes.
3666
e4c242d9
DJ
36672002-07-24 Daniel Jacobowitz <drow@mvista.com>
3668
3669 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3670 (tee_file_flush, tee_file_write, tee_file_fputs)
3671 (tee_file_isatty): New.
3672 * ui-file.h (tee_file_new): Add prototype.
3673
ebf56fd3
AS
36742002-07-24 Aidan Skinner <aidan@velvet.net>
3675
3676 * ada-lang.c: Change k&r style function definitions to prototyped
3677 form.
3678 * ada-typeprint.c: Change k&r style function definitions to prototyped
3679 form.
3680 * ada-valprint.c: Change k&r style function definitions to prototyped
3681 form.
3682
7fb623f7
AC
36832002-07-24 Andrew Cagney <cagney@redhat.com>
3684
3685 * README: Remove reference to remote-bug.
3686 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3687 remote-bug.c.
3688 (m88k-nat.o): Delete rule.
3689 (m88k-tdep.o): Delete rule.
3690 (remote-bug.o): Delete rule.
3691 * MAINTAINERS: Mark as obsolete.
3692 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3693 * m88k-tdep.c: Make file obsolete.
3694 * config/m88k/m88k.mh: Ditto.
3695 * config/m88k/delta88v4.mh: Ditto.
3696 * config/m88k/delta88v4.mt: Ditto.
3697 * config/m88k/delta88.mt: Ditto.
3698 * config/m88k/delta88.mh: Ditto.
3699 * remote-bug.c: Ditto.
3700 * config/m88k/tm-delta88.h: Ditto.
3701 * config/m88k/nm-delta88v4.h: Ditto.
3702 * config/m88k/xm-delta88.h: Ditto.
3703 * config/m88k/xm-dgux.h: Ditto.
3704 * config/m88k/tm-m88k.h: Ditto.
3705 * config/m88k/nm-m88k.h: Ditto.
3706 * config/m88k/tm-delta88v4.h: Ditto.
3707 * m88k-nat.c: Ditto.
3708 * cxux-nat.c: Ditto.
3709 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3710 and m88*-*-* obsolete.
3711 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3712 m88*-*-* obsolete.
3713
37611a2b
AC
37142002-07-24 Andrew Cagney <cagney@redhat.com>
3715
3716 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3717 constant. Same for local pointer variables.
3718 (extract_signed_integer): Ditto.
3719 * defs.h (extract_unsigned_integer): Update.
3720 (extract_signed_integer): Update.
3721
1aaa5f99
AC
37222002-07-24 Andrew Cagney <cagney@redhat.com>
3723
3724 * regcache.c (regcache_raw_write): Change buf parameter to a
3725 constant void pointer.
3726 (regcache_raw_read): Change buf parameter to a void pointer.
3727 (legacy_write_register_gen): Change myaddr parameter a constant
3728 void pointer.
3729 (supply_register): Change val parameter to a const void pointer.
3730 * regcache.h (regcache_raw_write): Update declaration.
3731 (regcache_raw_read): Update declaration.
3732 (supply_register): Update declaration.
3733
b4f5539f
TT
37342002-07-24 Tom Tromey <tromey@redhat.com>
3735
3736 * defs.h (gdb_readline_wrapper): Declare.
3737 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3738 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3739 * top.c (gdb_readline_wrapper): New function.
3740 (command_line_input): Use it.
3741
0818c12a
AC
37422002-07-24 Andrew Cagney <cagney@redhat.com>
3743
3744 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3745 regcache_read and regcache_write.
3746 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3747 * regcache.c: Update.
3748 * sh-tdep.c (sh64_push_arguments): Update comment.
3749 (sh_pseudo_register_read): Update.
3750 (sh_pseudo_register_write): Update.
3751 (sh4_register_read): Update.
3752 (sh4_register_write): Update.
3753 (sh64_pseudo_register_read): Update.
3754 (sh64_pseudo_register_write): Update.
3755 (sh64_register_read): Update.
3756 (sh64_register_write): Update.
3757 * i386-tdep.c (i386_extract_return_value): Update.
3758 (i386_extract_struct_value_address): Update.
3759 (i386_extract_return_value): Update.
3760 * blockframe.c (generic_read_register_dummy): Update.
3761 (generic_call_dummy_register_unwind): Update
3762 * infrun.c (write_inferior_status_register): Update.
3763
f7321c06
JB
37642002-07-23 Jim Blandy <jimb@redhat.com>
3765
3766 * parser-defs.h (expression_context_pc): Make this extern.
3767 (Thanks to Michael Snyder.)
3768
2037aebb
AC
37692002-07-23 Andrew Cagney <ac131313@redhat.com>
3770
3771 GDB 5.2.1 released from 5.2 branch.
3772 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3773 * README: Update to mention 5.2.1.
3774
66504d44
MS
37752002-07-23 Mark Salter <msalter@redhat.com>
3776
3777 * remote.c (remote_read_bytes): Fix check for error.
3778
27bae383
KB
37792002-07-22 Kevin Buettner <kevinb@redhat.com>
3780
3781 * aix-thread.c (language.h): Include.
3782 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3783 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3784 Print newlines at end of debug messages.
3785 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3786 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3787
37882002-07-22 Kevin Buettner <kevinb@redhat.com>
3789
3790 * aix-thread.c (ppc-tdep.h): Include.
3791 (special_register_p): New function.
3792 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3793 (store_regs_user_thread): Use register number information from
3794 gdbarch_tdep struct instead of hardcoded offsets relative to
3795 FIRST_UISA_SP_REGNUM.
3796 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3797 special_register_p() instead of using FPLAST_REGNUM and
3798 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3799 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3800 will be MQ's register number.
3801
38022002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
3803
3804 * aix-thread.c (ops): Rename to aix_thread_ops.
3805 (base_ops): Rename to base_target.
3806 (ops_attach): Rename to aix_thread_attach.
3807 (ops_detach): Rename to aix_thread_detach.
3808 (ops_resume): Rename to aix_thread_detach.
3809 (ops_wait): Rename to aix_thread_wait.
3810 (ops_kill): Rename to aix_thread_kill.
3811 (init_ops): Rename to init_aix_thread_ops.
3812 (ops_fetch_register): Rename to aix_thread_fetch_register.
3813 (ops_store_register): Rename to aix_thread_store_register.
3814 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3815 (ops_thread_alive): Rename to aix_thread_thread_alive.
3816 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3817 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3818 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3819 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3820 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3821 (store_regs_lib): Rename to store_regs_user_thread.
3822 (store_regs_kern): Rename to store_regs_kernel_thread.
3823
27bae383 38242002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3825
3826 * aix-thread.c (ops_prepare_to_store): Eliminate.
3827 (init_ops): Don't initialize ops.prepare_to_store.
3828 (store_regs_kern): Pre-fetch register buffers from child,
3829 because some registers may not be in the cache. Copy
3830 regs from register cache only if they are cached.
3831 (store_regs_lib): Copy regs from register cache only
3832 if they are cached.
3833 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3834 fill_gprs64): Ditto.
3835
61c5da0b
KB
38362002-07-22 Kevin Buettner <kevinb@redhat.com>
3837
3838 * aix-thread.c (gdb_assert.h): Include.
3839 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3840 register sizes (from register cache) match size of buffer holding
3841 register data.
3842 (fill_sprs32): Change parameter types to match those in the ptrace()
3843 buffer.
3844 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3845 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3846
38472002-07-22 Michael Snyder <msnyder@redhat.com>
3848
3849 * aix-thread.c (supply_sprs64): Cosmetic change.
3850 (supply_sprs32): Cosmetic change.
3851 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3852 (fill_sprs64): Use regcache_collect instead of read_register.
3853 (store_regs_lib): Use regcache_collect instead of
3854 read_register. Use fill_sprs32 instead of fill_sprs64,
3855 if debugging a 32-bit architecture.
3856 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3857 out of the register cache, instead of passing a pointer into
3858 the register cache directly to ptrace. Use regcache_collect
3859 insteaad of read_register.
3860 (ops_prepare_to_store): Use target_read_registers instead
3861 of read_register_bytes.
3862
36479eb1
AS
38632002-07-20 Aidan Skinner <aidan@velvet.net>
3864
3865 * MAINTAINERS: Add self under write after approval.
3866
80ae6ee2
AS
38672002-07-20 Aidan Skinner <aidan@velvet.net>
3868
3869 * ada-tasks.c: Change k&r style function definitions to prototyped
3870 form.
3871
8a8ab2b9
AC
38722002-07-19 Andrew Cagney <ac131313@redhat.com>
3873
3874 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3875 * x86-64-tdep.c: Include "objfiles.h".
3876 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3877 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3878
fb16b900
ML
38792002-07-17 Michal Ludvig <michal@suse.cz>
3880
3881 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3882 (update_context): Initialise cfa variable.
3883
0fe7bf7b
MS
38842002-07-17 Michael Snyder <msnyder@redhat.com>
3885
3886 * aix-thread.c: Shorten some long lines.
3887 Bring comments into line with code spec.
3888
488f131b
JB
38892002-07-18 Joel Brobecker <brobecker@gnat.com>
3890
3891 * infrun.c: Re-indent using gdb_indent.sh.
3892
46c415d2
JB
38932002-07-18 Joel Brobecker <brobecker@gnat.com>
3894
3895 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3896 Leave the indentation temporarily untouched, to minimize the diffs.
3897
cdecafbe
EZ
38982002-07-18 Elena Zannoni <ezannoni@redhat.com>
3899
3900 * stabsread.c: Make os9k sections of the code obsolete,
3901 for real this time.
3902 * stabsread.h: Make os9k sections of the code obsolete.
3903
7b6aa020
ML
39042002-07-18 Michal Ludvig <mludvig@suse.cz>
3905
09ec9b38
ML
3906 * linux-low.c (regsets_store_inferior_registers): Add free()
3907 at the end of a loop to prevent memory leak.
3908 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3909 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3910 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3911 line a comment.
4894ac5d 3912 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3913
233282cd
JB
39142002-07-17 Jim Blandy <jimb@redhat.com>
3915
3916 * macrocmd.c (info_macro_command): Remove newline from error
3917 message.
3918
7b6aa020 39192002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3920
3921 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3922 (sh_gdbarch_init): Use it for sh-dsp.
3923
f7ef9339
KB
39242002-07-16 Kevin Buettner <kevinb@redhat.com>
3925
3926 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3927 64-bit DWARF2 format.
3928
8dd72958
JB
39292002-07-16 Joel Brobecker <brobecker@gnat.com>
3930
3931 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3932 <sys/proc.h> when not available.
3933
a99a9e1b
AC
39342002-07-16 Andrew Cagney <ac131313@redhat.com>
3935
3936 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3937 * stabsread.c: Make os9k sections of the code obsolete.
3938 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3939 * config/i386/i386os9k.mt: Make file obsolete.
3940 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3941 (COMMON_OBS): Remove os9kread.o
3942 (SFILES): Remove os9kread.c.
3943 (os9kread.o, remote-os9k.o): Make target obsolete.
3944 * remote-os9k.c: Make file obsolete.
3945 * os9kread.c: Make file obsolete.
3946 * Makefile.in
3947
7a3085c1
AC
39482002-07-16 Andrew Cagney <ac131313@redhat.com>
3949
3950 * NEWS: Mention that the FR30 has been made obsolete.
3951 * fr30-tdep.c: Make file obsolete.
3952 * config/fr30/tm-fr30.h: Ditto.
3953 * config/fr30/fr30.mt: Ditto.
3954 * configure.tgt: Make fr30-*-elf obsolete.
3955 * MAINTAINERS: Make fr30-elf obsolete.
3956
28a93f5a
PM
39572002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3958
3959 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3960 found is not inside a section.
3961
be006b8b
KB
39622002-07-15 Kevin Buettner <kevinb@redhat.com>
3963
3964 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3965 strerror().
3966 (pdc_realloc): Use xrealloc() instead of realloc().
3967
14fa3751
KB
39682002-07-15 Kevin Buettner <kevinb@redhat.com>
3969
3970 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3971 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3972 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3973 macros.
3974
42cc437f
KB
39752002-07-15 Kevin Buettner <kevinb@redhat.com>
3976
3977 * aix-thread.c (ptrace_check): Eliminate goto.
3978 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3979 problem.
3980
8e2c28d4
KB
39812002-07-15 Kevin Buettner <kevinb@redhat.com>
3982
3983 * aix-thread.c (gdbcmd.h): Include.
3984 (DEBUG, DBG, DBG2, dbg): Eliminate.
3985 (debug_aix_thread): New static global.
3986 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3987 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3988 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3989 invocations to DBG and DBG2 macros to test against
3990 ``debug_aix_thread'' and call fprintf_unfiltered().
3991 (_initialize_aix_thread): Add new command "set debug aix-thread".
3992
30413464
AC
39932002-07-15 Andrew Cagney <ac131313@redhat.com>
3994
3995 From Gerhard Tonn <TON@de.ibm.com>:
3996 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3997 instead of supply_register.
3998
7c43edc1
AC
39992002-07-15 Andrew Cagney <ac131313@redhat.com>
4000
4001 * dwarf2cfi.c: Include "gdb_assert.h".
4002 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4003 non-NULL.
4004 (update_context): Do not use __func__. Add missing ``break''.
4005 (update_context): Do not use __func__.
4006
9364a0ef
EZ
40072002-07-15 Elena Zannoni <ezannoni@redhat.com>
4008
4009 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4010 and its setting. Set gdbarch instruction printing functions
4011 directly. For non-rs6000 case use new function
4012 gdb_print_insn_powerpc.
4013 (gdb_print_insn_powerpc): New function.
4014
3fbeef0b
AC
40152002-07-13 Andrew Cagney <ac131313@redhat.com>
4016
92eb23c5 4017 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
4018 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4019 * configure.tgt: Mark d30v-*-* as obsolete.
4020 * d30v-tdep.c: Mark file as obsolete.
4021 * config/d30v/d30v.mt: Ditto.
4022 * config/d30v/tm-d30v.h: Ditto.
4023
aacb1f0a
AS
40242002-07-13 Aidan Skinner <aidan@velvet.net>
4025
4026 * ada-tasks.c (add_task_entry): replace calls to
4027 malloc() with xmalloc
4028 * ada-tasks.c (init_task_list): replace calls to free with xfree()
4029
4030 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4031 ada_finish_decode_line_1, all_sals_for_line
4032 ada_breakpoint_rewrite): replace calls to free() with xfree()
4033
c11d79f2
KB
40342002-07-12 Kevin Buettner <kevinb@redhat.com>
4035
4036 From Nicholas Duffek (with minor changes by Martin Hunt,
4037 Louis Hamilton, and Kevin Buettner):
4038 * aix-thread.c: New file.
4039
8e19ed76
PS
40402002-07-12 Petr Sorfa <petrs@caldera.com>
4041
4042 * dwarf2read.c (dwarf2_invalid_attrib_class): New
4043 complaint for invalid attribute class or form.
4044 (read_func_scope): DW_AT_frame_base
4045 better handling of DW_AT_block*.
4046 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4047 better handling of DW_AT_block*.
4048 (read_common_block): DW_AT_location
4049 better handling of DW_AT_block*.
4050 (read_partial_die): DW_AT_location better handling
4051 of DW_AT_block*.
4052 (new_symbol): DW_AT_external better handling of
4053 DW_AT_block*. Proper initialization of variable
4054 "addr".
4055 (attr_form_is_block): New function that returns true
4056 if the attribute's form is of DW_FORM_block*.
4057
295401f7
DJ
40582002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4059
4060 * valops.c (find_method_list): Remove comment about
4061 removed STATIC_MEMFUNCP argument.
4062 (value_find_oload_method_list): Likewise.
4063
e42dc924
KB
40642002-07-12 Kevin Buettner <kevinb@redhat.com>
4065
4066 From Nicholas Duffek:
4067 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4068 target_new_objfile_hook.
4069
6904b546
KB
40702002-07-12 Kevin Buettner <kevinb@redhat.com>
4071
4072 From Nicholas Duffek:
4073 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4074 csect.
4075
53fe9346
AC
40762002-07-12 Andrew Cagney <cagney@redhat.com>
4077
4078 * MAINTAINERS: Mention --enable-sim-build-warnings.
4079 (m68hc11-elf): Disable sim build warnings.
4080 (m32r-elf): Mark as broken obsolete candidate.
4081 (x86_64-linux-gnu): Mark as buildable with -Werror.
4082 (arm-elf): Change -w to ``,'' which enables warnings but not
4083 -Werror.
4084
af5f3db6
AC
40852002-07-12 Andrew Cagney <ac131313@redhat.com>
4086
4087 * bcache.h: Update copyright.
4088 (struct bstring, struct bcache): Move definition to "bcache.c".
4089 Replaced by opaque declaration.
4090 (bcache_xfree): Replace free_bcache.
4091 (bcache_xmalloc, bcache_memory_used): Declare.
4092
4093 * bcache.c: Update copyright.
4094 (struct bstring, struct bcache): Moved to here from "bcache.h".
4095 Update comments.
4096 (bcache_xmalloc, bcache_memory_used): New functions.
4097 (bcache_xfree): Replace function free_bcache.
4098
4099 * Makefile.in (objfiles.o): Add $(bcache_h).
4100 (objfiles_h): Remove $(bcache_h).
4101 (symfile.o): Add $(bcache_h).
4102
4103 * symmisc.c: Update copyright.
4104 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4105 (print_objfile_statistics): Use bcache_memory_used.
4106
4107 * symfile.c: Include "bcache.h".
4108 (reread_symbols): Use bcache_xfree.
4109 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4110 (add_psymbol_to_list): Pass psymbol_cache by value.
4111 (add_psymbol_with_dem_name_to_list): Ditto.
4112
4113 * objfiles.h: Update copyright.
4114 (struct bcache): Declare opaque. Do not include "bcache.h".
4115 (struct objfile): Change psymbol_cache and macro_cache to ``struct
4116 bcache'' pointers.
4117 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4118
4119 * objfiles.c: Include "bcache.h". Update copyright.
4120 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4121 macro_cache.
4122 (free_objfile): Use bcache_xfree.
4123
444199e7
GS
41242002-07-11 Grace Sainsbury <graces@redhat.com>
4125
4126 * monitor.c (monitor_fetch_register): Make name a constant.
4127 (monitor_store_register): Same.
4128
261397f8
DJ
41292002-07-11 Daniel Jacobowitz <drow@mvista.com>
4130
4131 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4132 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4133 (finish_block) For non-function blocks, hash the symbol table. For
4134 function blocks, mark the symbol table as unhashed.
4135 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4136 (msymbol_hash_iw): Likewise.
4137 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4138 value.
4139 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4140 (lookup_minimal_symbol): Likewise for both.
4141 * symtab.h (struct block): Add `hashtable' flag. Comment the
4142 hashtable.
4143 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4144 (ALL_BLOCK_SYMBOLS): Update.
4145 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4146 (struct symbol): Add `hash_next' pointer.
4147 * symtab.c (lookup_block_symbol): Search using the hash table when
4148 possible.
4149 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4150 (search_symbols, find_addr_symbol): Likewise.
4151
4152 * dstread.c (process_dst_block): Clear hashtable bit for new block.
4153 (read_dst_symtab): Likewise.
4154 * jv-lang.c (get_java_class_symtab): Likewise.
4155 * mdebugread.c: Include "gdb_assert.h".
4156 (shrink_block): Assert that the block being modified is not hashed.
4157 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4158 * symmisc.c (free_symtab_block): Walk the hash table when freeing
4159 symbols.
4160 (dump_symtab): Recognize hashed blocks.
4161 * printcmd.c (print_frame_args): Assert that function blocks do not
4162 have hashed symbol tables.
4163 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4164 (fill_in_ada_prototype, debug_print_block): Likewise.
4165 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
4166
6f0eaa01
CV
41672002-07-11 Corinna Vinschen <vinschen@redhat.com>
4168
4169 * stack.c (print_frame): Use result of frame_address_in_block()
4170 instead of fi->pc when evaluating symbols.
4171 (backtrace_command_1): Ditto.
4172
a208b0cb
AC
41732002-07-11 Andrew Cagney <cagney@redhat.com>
4174
4175 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4176 Make static.
4177
4178 * arm-tdep.c (arm_register_name): Make return type constant.
4179
a6b6b089
AC
41802002-07-10 Andrew Cagney <ac131313@redhat.com>
4181
5ae5f592
AC
4182 * win32-nat.c (has_detach_ability): Convert to strict ISO C
4183 prototype.
4184 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4185 * s390-tdep.c (s390_fp_regnum): Ditto.
4186 (s390_read_fp): Ditto.
4187 (s390_pop_frame): Ditto.
4188 (_initialize_s390_tdep): Ditto.
4189 * remote.c (get_remote_state): Ditto.
4190 * procfs.c (mappingflags): Ditto.
4191 * memattr.c (_initialize_mem): Ditto.
4192 * mcore-tdep.c (mcore_pop_frame): Ditto.
4193 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4194 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4195 * language.c (set_case_str): Ditto.
4196 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4197 * frv-tdep.c (new_variant): Ditto.
4198 (frv_stopped_data_address): Ditto.
4199 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4200 (context_alloc): Ditto.
4201 (frame_state_alloc): Ditto.
4202 (unwind_tmp_obstack_init): Ditto.
4203 (unwind_tmp_obstack_free): Ditto.
4204 (cfi_read_fp): Ditto.
4205 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4206 (cris_pop_frame): Ditto.
4207 * c-lang.c (scanning_macro_expansion): Ditto.
4208 (finished_macro_expansion): Ditto.
4209 (c_preprocess_and_parse): Ditto.
4210 * gdbarch.sh: Ditto.
4211 * gdbarch.h, gdbarch.c: Regenerate.
4212 * config/mn10200/tm-mn10200.h: Adjust indentation.
4213 * target.c: Adjust indentation.
4214 * symtab.h: Adjust indentation.
4215 * stabsread.h: Adjust indentation.
4216 * remote-es.c: Adjust indentation.
4217 * os9kread.c: Adjust indentation.
4218
42192002-07-10 Andrew Cagney <ac131313@redhat.com>
4220
a6b6b089
AC
4221 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4222 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4223
a1789893
GS
42242002-07-10 Grace Sainsbury <graces@redhat.com>
4225
4226 * NEWS: Mention m68k, mcore multi-arching.
4227 * MAINTAINERS: Change status of m68k, mcore to reflect
4228 multi-arching.
4229
02f0d45d
DJ
42302002-07-10 Daniel Jacobowitz <drow@mvista.com>
4231
4232 * valops.c (find_overload_match): Free oload_syms.
4233
f15f768e
JB
42342002-07-09 Joel Brobecker <brobecker@gnat.com>
4235
4236 Define HAVE_SYS_PROC_H if sys/proc.h exists
4237 * configure.in: Add check for sys/proc.h
4238 * config.in: Regenerate.
4239 * configure: Regenerate.
4240
902a7139
GS
42412002-07-09 Grace Sainsbury <graces@redhat.com>
4242
4243 * config/m68k/tm-m68k.h: Remove macros wrapped in
4244 #if !GDB_MULTI_ARCH.
4245
a534e424
AC
42462002-07-08 Andrew Cagney <ac131313@redhat.com>
4247
4248 * config.in, configure: Regenerate.
4249
9b94f7bf
MK
42502002-07-08 Mark Kettenis <kettenis@gnu.org>
4251
4252 * dwarf2cfi.c: Include "gcore.h".
4253 (execute_stack_op): Fix implementation of the
4254 DW_OP_deref and DW_OP_deref_size operators by letting do their
4255 lookup in the target.
4256
1d34db41
MK
42572002-07-07 Mark Kettenis <kettenis@gnu.org>
4258
4259 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4260 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4261 tdep->sc_sp_offset.
4262
79d5b63a
DJ
42632002-07-05 Daniel Jacobowitz <drow@mvista.com>
4264
4265 Fix PR gdb/595, gdb/602
4266 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4267 Don't call value_cast, just read the vtable pointer; update comments
4268 to match.
4269
3bb912e8
GS
42702002-07-05 Grace Sainsbury <graces@redhat.com>
4271
4272 * config/mcore/tm-mcore.h: Remove file.
4273 * config/mcore/mcore.mt: Remove definition of TM_FILE
4274 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4275
ca39387d
MK
42762002-07-05 Mark Kettenis <kettenis@gnu.org>
4277
4278 * i386bsd-tdep.c: Include "gdb_string.h".
4279
efdc1108
GS
42802002-07-04 Grace Sainsbury <graces@redhat.com>
4281
4282 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4283 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4284 mcore-tdep.
4285 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4286 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4287 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4288 (RETVAL_REGNUM): Move macros from tm-mcore.h
4289 (mcore_reg_struct_has_addr): New function.
4290 (mcore_gdbarch_init): Added initializations for the macros removed
4291 from tm-mcore.h.
4292
bb21884d
MK
42932002-07-04 Mark Kettenis <kettenis@gnu.org>
4294
4295 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4296 traditonal string branding within the ELF header.
4297
228c6d41
DJ
42982002-07-04 Daniel Jacobowitz <drow@mvista.com>
4299
4300 * symtab.c (remove_params): New function.
4301 (make_symbol_overload_list): Use it instead of cplus_demangle.
4302 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4303
2404952e
MK
43042002-07-04 Mark Kettenis <kettenis@gnu.org>
4305
e5e4acad
MK
4306 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4307
baadce09
MK
4308 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4309 New variables.
4310 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4311 and tdep->sigtramp_end.
4312 * i386obsd-nat.c: New file.
4313 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4314
2404952e
MK
4315 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4316 Don't call get_current_frame().
4317
9b4f1ba7
PM
43182002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4319
4320 * i386-nat.c (child_post_startup_inferior): New function
4321 calling i386_cleanup_dregs if
4322 I386_USE_GENERIC_WATCHPOINTS is defined.
4323 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4324 conditional to acknowledge that i386-nat.c has its
4325 own child_post_startup_inferior function.
4326
c0d1d883
MK
43272002-07-04 Mark Kettenis <kettenis@gnu.org>
4328
00f8375e
MK
4329 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4330 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4331 instead of MAX_REGISTER_RAW_SIZE.
4332 (i386_extract_return_value, i386_extract_struct_value_address):
4333 Convert to use regcache.
4334 (i386_gdbarch_init): Set max_register_raw_size and
4335 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4336 Set extract_return_value and extract_struct_value_address instead
4337 of their deprecated variants.
4338
c0d1d883
MK
4339 Convert i386 target to generic dummy frames.
4340 * i386-tdep.c: Include "symfile.h".
4341 (i386_frameless_signal_p): Consider a function to be frameless if
4342 the pc points at the first instruction of the function.
4343 (i386_frame_chain): Handle (generic) call dummies.
4344 (i386_frame_saved_pc): Likewise.
4345 (i386_frame_init_saved_regs): Remove code dealing with call
4346 dummies on the stack.
4347 (i386_push_dummy_frame): Removed.
4348 (i386_call_dummy_words): Removed.
4349 (i386_fix_call_dummy): Removed.
4350 (i386_push_return_address): New function.
4351 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4352 parameter, and don't call get_current_frame.
4353 (i386_pop_frame): New function.
4354 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4355 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4356 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4357 call_dummy_length to 0, set call_dummy_words to NULL, set
4358 sizeof_call_dummy_words to 0, set fix_call_dummy to
4359 generic_fix_call_dummy, set pc_in_call_dummy to
4360 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4361 generic_push_dummy_frame, set push_return_address to
4362 i386_push_return_address and set frame_chain_valid to
4363 generic_file_frame_chain_valid.
4364
049ee0e4
AC
43652002-07-03 Andrew Cagney <ac131313@redhat.com>
4366
4367 * gdbarch.sh (struct regcache): Add opaque declaration.
4368 (EXTRACT_RETURN_VALUE): New architecture method.
4369 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4370 * gdbarch.h, gdbarch.c: Regenerate.
4371 * arch-utils.c (legacy_extract_return_value): New function.
4372 * arch-utils.h (legacy_extract_return_value): Declare.
4373 * values.c (value_being_returned): Re-enable code handling
4374 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4375 deprecated_grub_regcache_for_registers call to block handling
4376 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4377 (EXTRACT_RETURN_VALUE): Do not define.
4378
4e0d9804
GS
43792002-07-03 Grace Sainsbury <graces@redhat.com>
4380
4381 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4382 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4383 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4384 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4385 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4386 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4387 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4388 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4389 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4390 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4391 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4392 argument so the function fits the prototype in the architecture
4393 vector.
4394 (mcore_pop_frame): Remove argument so the function fits the
4395 prototype. Use get_current_frame instead of the argument.
4396 (mcore_push_arguments): Change type of struct_return so the
4397 function can be used in the architecture vector.
4398 (mcore_store_struct_return): Add.
4399 (mcore_frame_init_saved_regs): Add.
4400 (mcore_gdbarch_init): Add function calls to replace the macros
4401 removed from tm-mcore.h
4402
36160dc4
AC
44032002-07-03 Andrew Cagney <ac131313@redhat.com>
4404
4405 * infcmd.c (print_return_value): Remove compatibility code calling
4406 deprecated_grub_regcache_for_registers.
4407
4408 * values.c: Include "regcache.h".
4409 (value_being_returned): Update. Use
4410 deprecated_grub_regcache_for_registers to extract the register
4411 buffer address.
4412 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4413 ``struct regcache''.
4414 * Makefile.in (values.o): Add dependency on $(regcache_h).
4415
4416 * inferior.h (run_stack_dummy): Change type of second parameter to
4417 a ``struct regcache''.
4418 * valops.c (hand_function_call): Change type of retbuf to ``struct
4419 regcache''. Allocate using regcache_xmalloc, clean using
4420 make_cleanup_regcache_xfree.
4421 * infcmd.c (run_stack_dummy): Update. Use
4422 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4423
4424 * regcache.c (do_regcache_xfree): New function.
4425 (make_cleanup_regcache_xfree): New function.
4426 * regcache.h (make_cleanup_regcache_xfree): Declare.
4427
e64d9b3d
MH
44282002-07-03 Martin M. Hunt <hunt@redhat.com>
4429
4dd79c29
MH
4430 * event-top.c (command_line_handler): Don't read past
4431 beginning of buffer.
e64d9b3d 4432
4dd79c29
MH
44332002-07-03 Martin M. Hunt <hunt@redhat.com>
4434
e64d9b3d
MH
4435 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4436 struct frame_id.
4437 (varobj_create): Store frame_id for root.
4438 (varobj_gen_name): Use xasprintf.
4439 (varobj_update): Save and restore frame using get_frame_id() and
4440 frame_find_by_id().
4441 (create_child): Use xasprintf.
4442 (new_root_variable): Initialize frame_id.
4443 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4444 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4445 to prevent memory leak.
4446
26e6c56a
AC
44472002-07-03 Andrew Cagney <ac131313@redhat.com>
4448
4449 * valops.c (hand_function_call): Move declaration of retbuf to
4450 start of function, allocate using malloc, add a cleanup but before
4451 the inf_status cleanup, cleanup the buffer. Rename local variable
4452 old_chain to inf_status_cleanup.
4453
f436dd25
MH
44542002-07-03 Martin M. Hunt <hunt@redhat.com>
4455
4456 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4457
4458 * cli/cli-decode.c (cmd_func_p): New function.
4459 (cmd_func): New function.
4460
4461 * command.h: Add cmd_func() and cmd_func_p().
4462
4cfe2084
GS
44632002-07-03 Grace Sainsbury <graces@redhat.com>
4464
4465 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4466 (REGISTER_SIZE): Remove.
4467 (MAX_REGISTER_RAW_SIZE): Remove.
4468 (REGISTER_VIRTUAL_TYPE): Remove.
4469 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4470 (REGISTER_NAME): Remove.
4471 (USE_GENERIC_DUMMY_FRAMES): Remove.
4472 (CALL_DUMMY): Remove.
4473 (CALL_DUMMY_START_OFFSET): Remove.
4474 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4475 (CALL_DUMMY_LOCATION): Remove.
4476 (FIX_CALL_DUMMY): Remove.
4477 (CALL_DUMMY_ADDRESS): Remove.
4478 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4479 (SAVE_DUMMY_FRAME_TOS): Remove.
4480 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4481 (mcore_register_virtual_type): New function.
4482 (mcore_register_byte): New function.
4483 (mcore_register_size): New function.
4484 (mcore_register_name): New function.
4485 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4486 macros removed from tm-mcore.h.
4487 (mcore_dump_tdep): Add.
4488 (_initialize_mcore_tdep): Add gdbarch_register call.
4489
4fd667e9
MK
44902002-07-03 Mark Kettenis <kettenis@gnu.org>
4491
4492 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4493 frameless_look_for_prologue, such that we actually call this
4494 function.
4495
42f99ac2
JB
44962002-07-02 Joel Brobecker <brobecker@gnat.com>
4497
4498 * frame.h (frame_address_in_block): New function.
4499
4500 * blockframe.c (frame_address_in_block): New function extracted
4501 from get_frame_block().
4502 (get_frame_block): Use frame_address_in_block().
4503 (block_innermost_frame): Use frame_address_in_block() to match
4504 the frame pc address against the block boundaries rather than
4505 the frame pc directly. This prevents a failure when a frame pc
4506 is actually a return-address pointing immediately after the end
4507 of the given block.
4508
103a1597 45092002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
4510
4511 * MAINTAINERS: Add self under write after approval.
4512
45132002-07-02 Grace Sainsbury <graces@redhat.com>
4514
103a1597
GS
4515 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4516 used in architecture vector. The default is
4517 m68k_local_breakpoint_from_pc.
4518 (m68k_local_breakpoint_from_pc): Add.
4519 (enum): Add register numbers from tm-m68k.h.
4520 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4521 vector.
4522 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4523 GDB_MULTI_ARCH_PARTIAL.
4524 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4525 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4526 m68k-tdep.c.
4527 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4528 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4529 to enum in m68k-tdep.c
4530
7a5a0534
JB
45312002-07-02 Joel Brobecker <brobecker@gnat.com>
4532
4533 * solib-osf.c (open_map): Compute the list of shared libraries
4534 loaded by the inferior, rather than the list of libraries loaded
4535 by GDB itself. Otherwise, GDB ends up reading the symbols from
4536 the wrong shared libraries...
4537
6f558d74
MK
45382002-07-02 Mark Kettenis <kettenis@gnu.org>
4539
b7d15bf7
MK
4540 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4541 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4542 macros.
4543 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4544 Remove functions.
4545 (FRAMELESS_SIGNAL): Remove function.
4546 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4547 i386_linux_saved_pc_after_call): Removed.
4548 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4549 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4550 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4551
6bff26de
MK
4552 * i386-tdep.c (i386_frameless_signal_p): New function.
4553 (i386_frame_chain): Deal with frameless signals.
4554 (i386_sigtramp_saved_sp): New function.
4555 (i386_frame_saved_pc): Deal with frameless signals.
4556 (i386_saved_pc_after_call): Make sure the correct value is
4557 returned just after entry into a sigtramp.
4558 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4559 i386fbsd4_sc_sp_offset): New variables.
4560 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4561 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4562 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4563 similiar to what we already did for sc_pc_offset.
4564 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4565 tdep->sc_sp_offset.
4566
6f558d74
MK
4567 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4568
145564b7
ML
45692002-07-02 Michal Ludvig <mludvig@suse.cz>
4570
4571 * config/i386/tm-x86-64linux.h: New.
4572 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4573 definitions.
4574 * config/i386/nm-x86-64.h: Rename to ...
4575 * config/i386/nm-x86-64linux.h: ... this one.
4576 * config/i386/x86-64linux.mh: Reflect the above change.
4577
3a1e71e3
MK
45782002-07-01 Mark Kettenis <kettenis@gnu.org>
4579
21d0e8a4
MK
4580 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4581 with sigcontext_addr. Add sc_sp_offset.
4582 (i386bsd_sigtramp_saved_pc): Remove prototype.
4583 (i386bsd_sicontext_addr): Add prototype.
4584 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4585 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4586 (i386_svr4_sigtramp_saved_pc): Removed.
4587 (i386_svr4_sigcontext_addr): New function.
4588 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4589 Initialize tdep->sigcontext_addr instead. Initialize
4590 tdep->sc_pc_offset and tdep->sc_sp_offset.
4591 (i386_gdbarch_init): Likewise.
4592 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4593 any more.
4594 (i386bsd_sigtramp_saved_pc): Remove function.
4595 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4596 Initialize tdep->sigcontext_addr instead. Initialize
4597 tdep->sc_pc_offset.
4598 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4599 of tdep->sigtramp_saved_pc.
4600 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4601 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4602 instead.
4603
3a1e71e3
MK
4604 * i386-tdep.c (i386_frameless_function_invocation,
4605 i386_frame_num_args, i386_frame_init_saved_regs,
4606 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4607 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4608 i386_extract_return_value, i386_store_return_value,
4609 i386_extract_struct_value_address, i386_register_virtual_type,
4610 i386_register_convertible, i386_register_convert_to_virtual,
4611 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4612 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4613 static.
4614
52e9098c
MK
46152002-07-01 Mark Kettenis <kettenis@gnu.org>
4616
77b13a25
MK
4617 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4618
52e9098c
MK
4619 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4620 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4621 this macro. Include "value.h".
4622
1b372fff
AS
46232002-06-30 Aidan Skinner <aidan@velvet.net>
4624
4625 * ada-exp.tab.c: remove as it's a generated file
4626 * ada-lex.c: remove as it's a generated file
4627
9c5045b5
MK
46282002-06-30 Mark Kettenis <kettenis@gnu.org>
4629
4a93c5bb
MK
4630 * config/i386/tm-i386.h (struct frame_info, struct
4631 frame_saved_regs, struct value, struct type): Remove forward
4632 declarations.
4633
322d4fe0
MK
4634 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4635 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4636 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4637 (FILL_FPXREGSET): Define.
4638
fdd8263d
MK
4639 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4640
482e577b
MK
4641 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4642 i[3456]86-*-netbsd* case.
4643 * config/i386/tm-obsd.h: Removed.
4644 * config/i386/obsd.mt: Removed.
4645 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4646 core-aout.o.
4647 (MH_CFLAGS): Add -DYYDEBUG=0.
4648
6916549a
MK
4649 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4650 i386nbsd_sc_pc_offset on OpenBSD too.
4651
9c5045b5
MK
4652 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4653 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4654 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4655 define.
4656 * i386bsd-tdep.c: Include "arch-utils.h".
4657 (i386bsd_aout_in_solib_call_trampoline): New function.
4658 (i386bsd_init_abi): Set in_solib_call_trampoline to
4659 i386bsd_aout_in_solib_call_trampoline.
4660 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4661 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4662
aa84d1bb
AC
46632002-06-28 Andrew Cagney <ac131313@redhat.com>
4664
4665 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4666 (struct obstack, struct bcache): Add opaque declarations.
4667 * Makefile.in (macrotab_h): Update
4668
b4d83933
AC
46692002-06-28 Andrew Cagney <ac131313@redhat.com>
4670
4671 * blockframe.c (generic_find_dummy_frame): Change return type to
4672 ``struct regcache''.
4673 (struct dummy_frame): Replace field ``registers'' with regcache, a
4674 struct regcache object.
4675 (generic_find_dummy_frame): Update.
4676 (generic_push_dummy_frame): Update. Use regcache_xfree,
4677 regcache_xmalloc and regcache_cpy.
4678 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4679 regcache_xfree.
4680 (deprecated_generic_find_dummy_frame): Update.
4681 (generic_read_register_dummy): Update. Use
4682 regcache_read_as_address.
4683 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4684 (generic_get_saved_register): Update. Use regcache_read.
4685
08c0b5bc
AC
46862002-06-28 Andrew Cagney <ac131313@redhat.com>
4687
4688 * Makefile.in (objfiles_h): Add $(bcache_h).
4689 * objfiles.h: Include "bcache.h".
4690
4691 * Makefile.in (symtab_h): Remove $(bcache_h).
4692 * symtab.h: Do not include "bcache.h".
4693
1f89801a
AC
46942002-06-28 Andrew Cagney <ac131313@redhat.com>
4695
4696 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4697 generic_func_frame_chain_valid.
4698
b9644b58
DB
46992002-06-28 David O'Brien <obrien@FreeBSD.org>
4700
4701 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4702 * config/i386/tm-fbsd.h: Likewise.
4703
dd486634
AC
47042002-06-28 Andrew Cagney <ac131313@redhat.com>
4705
4706 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4707 generic_unwind_get_saved_register.
4708
0b434a00
AC
47092002-06-27 Andrew Cagney <ac131313@redhat.com>
4710
4711 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4712 * regcache.c (supply_register): Add missing argument to
4713 register_buffer call.
4714
f30e5a77
AC
47152002-06-27 Andrew Cagney <ac131313@redhat.com>
4716
4717 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4718 Solaris /bin/grep does not not like it. From Peter Schauer.
4719
9f064c95
TT
47202002-06-26 Tom Tromey <tromey@redhat.com>
4721
4722 * command.h (add_setshow_cmd): Declare.
4723 (add_setshow_cmd_full): Declare.
4724 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4725 returns void. Use add_setshow_cmd_full.
4726 (add_setshow_cmd_full): New function.
4727 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4728 (add_setshow_boolean_cmd): Likewise.
4729
099c7589
JT
47302002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4731
4732 * config/vax/tm-vax.h: Protect from multiple inclusion.
4733 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4734 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4735 * config/vax/tm-vaxbsd.h: ...here. New file.
4736 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4737
1d049c5e
JT
47382002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4739
4740 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4741 (BELIEVE_PCC_PROMOTION): Remove.
4742 (AP_REGNUM): Move to...
4743 * config/vax/nm-vax.h: ...here.
4744 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4745 (vax_breakpoint_from_pc): New function.
4746 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4747 and gdbarch_believe_pcc_promotion.
4748
4791e091
JT
47492002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4750
4751 * Makefile.in (vax_tdep_h): Define.
4752 (vax-tdep.o): Use $(vax_tdep_h).
4753 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4754 (vax_dump_tdep): New function.
4755 (_initialize_vax_tdep): Register vax_dump_tdep.
4756 * vax-tdep.h: Include osabi.h.
4757 (struct gdbarch_tdep): New.
4758
da130f98
AC
47592002-06-26 Andrew Cagney <cagney@redhat.com>
4760
4761 * frame.h (deprecated_generic_find_dummy_frame): Rename
4762 generic_find_dummy_frame.
4763 * blockframe.c (generic_find_dummy_frame): Make static.
4764 (deprecated_generic_find_dummy_frame): New function.
4765 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4766 generic_find_dummy_frame with deprecated_find_dummy_frame.
4767 (sh64_nofp_frame_init_saved_regs): Ditto.
4768 (sh_fp_frame_init_saved_regs): Ditto.
4769 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4770 (s390_frame_chain): Ditto.
4771 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4772
6300c360
GS
47732002-06-26 Grace Sainsbury <graces@redhat.com>
4774
4775 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4776 gdbarch vector are at the top.
4777 (NUM_REGS): Remove.
4778 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4779 (FRAME_ARGS_ADDRESS): Remove.
4780 (FRAME_LOCALS_ADDRESS): Remove.
4781 (FRAME_NUM_ARGS): Remove.
4782 (FRAME_ARGS_SKIP): Remove.
4783 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4784 (m68k_gdbarch_init): Add gdbarch initializations for macros
4785 undefined in tm-m68k.h
4786
1c617db8
GS
47872002-06-26 Grace Sainsbury <graces@redhat.com>
4788
4789 * monitor.h: Add the function regname to monitor_ops
4790 structure. This way NUM_REGS does not have to be a constant.
4791 * monitor.c (monitor_fetch_register): Added support for regname
4792 function. The function is called if the array regnames is NULL.
4793 (monitor_store_register): Same.
da130f98
AC
4794 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4795 regnames array.
1c617db8
GS
4796 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4797 cpu32bug_cmds.regname to point to new function.
4798 * abug-rom.c (abug_regname): Same as above.
4799 (init_abug_cmds): Same.
4800 * dbug-rom.c (dbug_regname): Same as above.
4801 (init_dbug_cmds): Same.
4802 * remote-est.c (est_regname): Same.
4803 (init_est_cmds): Same.
4804 * rom68k-rom.c (rom68k_regname): Same.
4805 (init_rom68k_cmds): Same.
4806
ea9365bb
TT
48072002-06-25 Tom Tromey <tromey@redhat.com>
4808
4809 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4810
72cec141
AC
48112002-06-25 Andrew Cagney <cagney@redhat.com>
4812
4813 * infrun.c (stop_registers): Change variable's type to ``struct
4814 regcache'''.
4815 (xmalloc_inferior_status): Delete function.
4816 (free_inferior_status): Delete function.
4817 (normal_stop): Use regcache_cpy.
4818 (struct inferior_status): Change type of fields ``stop_registers''
4819 and ``registers'' to ``struct regcache''.
4820 (write_inferior_status_register): Use regcache_write.
4821 (save_inferior_status): Instead of calling
4822 xmalloc_inferior_status, allocate the inf_status buffer directly.
4823 Use regcache_dup_no_passthrough and regcache_dup to save the
4824 buffers.
4825 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4826 Replace the stop_registers regcache instead of overriding it. Use
4827 regcache_xfree. Instead of calling free_inferior_status, xfree
4828 the buffer directly.
4829 (discard_inferior_status): Use regcache_xfree. Instead of calling
4830 free_inferior_status, xfree the buffer directly.
4831 (build_infrun): Use regcache_xmalloc.
4832 (_initialize_infrun): Delete redundant call to build_infrun.
4833
4834 * Makefile.in (infcmd.o): Add $(regcache_h).
4835
4836 * infcmd.c: Include "regcache.h".
4837 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4838 obtain the address of `stop_registers' register buffer.
4839 (print_return_value): Ditto.
4840
4841 * inferior.h (struct regcache): Add opaque declaration.
4842 (stop_registers): Change variable's declared type to ``struct
4843 regcache''.
4844
defc6f8c
TT
48452002-06-24 Tom Tromey <tromey@redhat.com>
4846
c0e624e7
TT
4847 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4848 * target.c (initialize_targets): Fixed typo in
4849 trust-readonly-sections `show' documentation.
4850
defc6f8c
TT
4851 * main.c: Marked all strings with _().
4852
2b236d82
DH
48532002-06-24 Don Howard <dhoward@redhat.com>
4854
4855 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4856 that means max CORE_ADDR+1.
4857 (lookup_mem_region): Ditto.
4858 (mem_info_command): Ditto.
4859
942dc0e9
GS
48602002-06-24 Grace Sainsbury <graces@redhat.com>
4861
4862 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4863 (REGISTER_BYTES_OK): Remove.
4864 (REGISTER_BYTES): Remove.
4865 (STORE_STRUCT_RETURN): Remove.
4866 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4867 (STORE_RETURN_VALUE): Remove.
4868 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4869 (FRAME_CHAIN): Remove.
4870 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4871 (FRAME_SAVED_PC): Remove.
4872 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4873 (m68k_store_struct_return): Add.
4874 (m68k_deprecated_extract_return_value): Add.
4875 (m68k_deprecated_extract_struct_value_address): Add.
4876 (m68k_store_return_value): Add.
4877 (m68k_frame_chain): Add.
4878 (m68k_frameless_function_invocation): Add.
4879 (m68k_frame_saved_pc): Add.
4880 (m68k_gdbarch_init): added set_gdbarch calls for new
4881 functions and deleted macros.
4882
03c30d4d
TT
48832002-06-23 Tom Tromey <tromey@redhat.com>
4884
4885 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4886 (ALLDEPFILES): Likewise.
4887 (udiheaders): Removed.
4888 (udip2soc.o): Likewise.
4889 (udi2go32.o): Likewise.
4890 (udr.o): Likewise.
4891 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4892
37e71372
AC
48932002-06-22 Andrew Cagney <ac131313@redhat.com>
4894
06a6ac57
AC
4895 * infrun.c (_initialize_infrun): Delete unnecessary call to
4896 build_infrun.
4897
37e71372
AC
4898 * regcache.h: Update comments describing the regcache_cpy family
4899 of functions.
4900 (regcache_save, regcache_restore): Delete declaration.
4901 (regcache_save_no_passthrough): Delete declaration.
4902 (regcache_restore_no_passthrough): Delete declaration.
4903 * regcache.c (regcache_save): Delete function.
4904 (regcache_save_no_passthrough): Delete function.
4905 (regcache_restore): Delete function.
4906 (regcache_restore_no_passthrough): Delete function.
4907
78f6d055
AC
49082002-06-21 Andrew Cagney <ac131313@redhat.com>
4909
4910 * config/m68k/tm-m68k.h: Fix typo.
4911 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4912 (m68k_frame_init_saved_regs): Declare.
4913
78b119cb
JB
49142002-06-21 Jim Blandy <jimb@redhat.com>
4915
4916 Remove some vestiges of Harris 88k support.
4917 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4918 register numbering quirk.
4919 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4920 odd symbols occurring in Harris 88k ELF targets.
4921
0fbb3da7
TT
49222002-06-21 Tom Tromey <tromey@redhat.com>
4923
4924 * gdb_locale.h: New file.
4925 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4926 (defs_h): Added gdb_locale.h.
4927 * configure, config.in: Rebuilt.
4928 * configure.in (PACKAGE): Define.
4929 * defs.h: Include gdb_locale.h.
4930 * main.c (captured_main): Call setlocale, bindtextdomain,
4931 textdomain.
4932
456f8b9d
DB
49332002-06-21 Dave Brolley <brolley@redhat.com>
4934
4935 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4936 * config/frv/frv.mt: New file.
4937 * config/frv/tm-frv.h: New file.
4938 * configure.tgt: Support frv-*-*.
4939 * Makefile.in (frv-tdep.o): New target.
4940 * frv-tdep.c: New file.
4941 * NEWS: Mention frv.
4942
cdd463f9
DB
49432002-06-21 Dave Brolley <brolley@redhat.com>
4944
4945 * MAINTAINERS: Add self to "Write After Approval" list.
4946
5d3ed2e3
GS
49472002-06-21 Grace Sainsbury <graces@redhat.com>
4948
4949 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4950 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4951 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4952 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4953 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4954
4955 * m68k-tdep.c: Include arch-utils.h
4956 (m68k_register_raw_size): Add.
4957 (m68k_register_virtual_size): Add.
4958 (m68k_register_virtual_type): Add.
4959 (m68k_register_name): Add.
4960 (m68k_stack_align): Add.
4961 (m68k_register_byte): Add.
4962 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4963 tm-m68k.h.
4964
7f8e7424
GS
49652002-06-21 Grace Sainsbury <graces@redhat.com>
4966
a2c6a6d5 4967 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4968 m68k_find_saved_regs.
4969 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4970 references to it with frame->saved_regs.
7f8e7424
GS
4971 (m68k_gdbarch_init): Added function calls to initialize the
4972 gdbarch structure.
a2c6a6d5
GS
4973 (m68k_fix_call_dummy): Add.
4974 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4975 (CALL_DUMMY): Remove.
4976 (CALL_DUMMY_LENGTH): Remove.
4977 (CALL_DUMMY_START_OFFSET): Remove.
4978 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4979 (FIX_CALL_DUMMY): Remove.
4980 (PUSH_DUMMY_FRAME): Remove.
4981 (POP_FRAME): Remove.
7f8e7424 4982
f461f5cf
PM
49832002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4984
4985 * parse.c (parse_fprintf): New function used to avoid calls to
4986 fprintf in bison parser generated debug code.
4987 * parser-defs.h: Declaration of new parse_fprintf function.
4988 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4989 Set YYDEBUG to 1 by default.
4990 Set YYFPRINTF as parse_fprintf.
4991
7f0c12ed
ML
49922002-06-21 Michal Ludvig <mludvig@suse.cz>
4993
4994 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4995 encoding anymore.
4996 (pointer_encoding, enum ptr_encoding): New.
4997 (execute_cfa_program): Take care about pointer encoding.
4998 (dwarf2_build_frame_info): Only call parse_frame_info for
4999 .debug_frame and .eh_frame.
5000 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5001 fixed augmentation handling, added relative addressing,
5002 ignore duplicate FDEs. Added comments.
19d833a2 5003 * dwarf2cfi.c: Reindented.
7f0c12ed 5004
87c4a039
EZ
50052002-06-20 Elena Zannoni <ezannoni@redhat.com>
5006
5007 * event-top.c (command_handler): Don't use space_at_cmd_start
5008 unless there is sbrk() on the host. Assign time and space data
5009 to union fields of the appropriate length.
5010
1cf877ad
ML
50112002-06-20 Michal Ludvig <mludvig@suse.cz>
5012
5013 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
5014 x86_64_register_name. Return type changed to 'const char *'.
5015 (x86_64_register_name2nr): Rename to x86_64_register_number.
5016 (x86_64_gdbarch_init): Update to reflect the change.
5017 * x86-64-tdep.h: Ditto.
5018 * x86-64-linux-nat.c (x86_64_fxsave_offset)
5019 (supply_fpregset): Ditto.
5020
3fadccb3
AC
50212002-06-19 Andrew Cagney <cagney@redhat.com>
5022
5023 * regcache.h: Update copyright.
5024 (struct regcache, struct gdbarch): Add opaque declarations.
5025 (current_regcache): Declare global variable.
5026 (regcache_read, regcache_write): Add gdbarch parameter.
5027 (regcache_save, regcache_save_no_passthrough)
5028 (regcache_restore, regcache_restore_no_passthrough)
5029 (regcache_dup, regcache_dup_no_passthrough)
5030 (regcache_cpy, regcache_cpy_no_passthrough)
5031 (deprecated_grub_regcache_for_registers)
5032 (deprecated_grub_regcache_for_register_valid)
5033 (regcache_valid_p): Add function declarations.
5034
5035 * regcache.c: Update copyright.
5036 (regcache_descr_handle): New global variable.
5037 (struct regcache_descr): Define.
5038 (init_legacy_regcache_descr, init_regcache_descr): New functions.
5039 (regcache_descr, xfree_regcache_descr): New functions.
5040 (struct regcache): Define.
5041 (regcache_xmalloc, regcache_xfree): New functions.
5042 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5043 (regcache_dup, regcache_dup_no_passthrough): New functions.
5044 (regcache_valid_p, regcache_read_as_address): New functions.
5045 (deprecated_grub_regcache_for_registers): New function.
5046 (deprecated_grub_regcache_for_register_valid): New function.
5047 (current_regcache): New global variable.
5048 (register_buffer): Add regcache parameter. Update calls.
5049 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
5050 (read_register_gen, write_register_gen): Update register_buffer
5051 call. Test for legacy_p instead of gdbarch_register_read_p or
5052 gdbarch_register_write_p.
5053 (regcache_collect): Update register_buffer call.
5054 (build_regcache): Rewrite. Use deprecated grub functions.
5055 (regcache_save, regcache_save_no_passthrough): New functions.
5056 (regcache_restore, regcache_restore_no_passthrough): New
5057 functions.
5058 (_initialize_regcache): Create the regcache_data_handle. Swap
5059 current_regcache global variable.
5060
5061 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5062 parameter to regcache_read and regcache_write calls.
5063 (sh4_register_read): Ditto.
5064 (sh64_pseudo_register_read): Ditto.
5065 (sh64_register_read): Ditto.
5066 (sh_pseudo_register_write): Ditto.
5067 (sh4_register_write): Ditto.
5068 (sh64_pseudo_register_write): Ditto.
5069 (sh64_register_write): Ditto.
5070
5071 * defs.h (XCALLOC): Define.
5072
152d9db6
GS
50732002-06-19 Grace Sainsbury <graces@redhat.com>
5074
5075 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5076 * m68k-tdep.c (m68k_gdbarch_init): Added.
5077 (m68k_dump_tdep): Added.
5078
170911c7
DJ
50792002-06-19 Daniel Jacobowitz <drow@mvista.com>
5080
5081 * ada-lang.c (fill_in_ada_prototype): Update comment.
5082
2e4ebe70
DJ
50832002-06-19 Daniel Jacobowitz <drow@mvista.com>
5084
5085 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5086 MIPS_ABI_LAST.
5087 (mips_abi_string, mips_abi_strings): New.
5088 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5089 (mips_gdbarch_init): Set tdep->found_abi. Don't set
5090 tdep->mips_abi_string. Honor mips_abi_string. Default to
5091 O32 if no ABI is found.
5092 (mips_dump_tdep): Use mips_abi_strings.
5093 (mips_abi_update): New function.
5094 (_initialize_mips_tdep): Initialize mips_abi_string. Add
5095 ``set mips abi'' and ``show mips abi''. Check the size of
5096 mips_abi_strings.
5097
16775908
AC
50982002-06-19 Andrew Cagney <cagney@redhat.com>
5099
5100 * i386-linux-tdep.c (i386_linux_register_name): Make return type
5101 constant.
5102
5051bfa4 51032002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 5104
5051bfa4
JB
5105 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
5106 current frame using only the first stack size adjustment. All
5107 subsequent size adjustments are not considered to be part of
5108 the "static" part of the current frame.
5109 Compute the address of the saved registers relative to the
5110 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5111 in use in this frame.
5112
56468235
DH
51132002-06-18 Don Howard <dhoward@redhat.com>
5114
5115 * valops.c (value_ind): Use value_at_lazy() when dereferencing
5116 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
5117 suggesting this solution.
5118
0b624158
AC
51192002-06-18 Andrew Cagney <ac131313@redhat.com>
5120
5121 * config/romp/xm-rtbsd.h: Delete file.
5122 * config/romp/rtbsd.mh: Delete file.
5123
221ea385
KS
51242002-06-18 Keith Seitz <keiths@redhat.com>
5125
5126 * breakpoint.c (condition_command): Post breakpoint_modify
5127 when a condition is added to an existing breakpoint.
5128 (commands_command): Likewise for commands.
5129 (set_ignore_count): Likewise for ignore counts.
5130 If no tty, do not simply return, still need to send event
5131 notification.
5132 (ignore_command): Only print a newline if the command came
5133 from a tty.
5134 Don't call breakpoints_changed, since this is now properly
5135 handled by set_ignore_count.
5136
5402eed1
AC
51372002-06-18 Andrew Cagney <cagney@redhat.com>
5138
5139 * MAINTAINERS: Note that cris-elf target can be compiled with
5140 -Werror.
5141 * cris-tdep.c (cris_register_name): Make return type constant.
5142 (cris_breakpoint_from_pc): Ditto.
5143
cc22880b
ML
51442002-06-18 Michal Ludvig <mludvig@suse.cz>
5145
5146 * frame.h (struct frame_info): Change type of context to
5147 'struct context'.
5148
fa88f677
AC
51492002-06-17 Andrew Cagney <cagney@redhat.com>
5150
5151 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5152 pointer.
5153 * gdbarch.h, gdbarch.c: Regenerate.
5154 * config/mips/tm-mips.h (mips_register_name): Update.
5155 * i386-tdep.h (i386_register_name): Update.
5156 * mips-tdep.c (mips_register_name): Update
5157 * alpha-tdep.c (alpha_register_name): Update.
5158 * arch-utils.c (legacy_register_name): Update.
5159 * arch-utils.h (legacy_register_name): Update.
5160 * avr-tdep.c (avr_register_name): Update.
5161 * ia64-tdep.c (ia64_register_name): Update.
5162 * i386-tdep.c (i386_register_name): Update.
5163 * sparc-tdep.c (sparc32_register_name): Update.
5164 (sparc64_register_name): Update.
5165 (sparclite_register_name): Update.
5166 (sparclet_register_name): Update.
5167 * sh-tdep.c (sh_generic_register_name): Update.
5168 (sh_sh_register_name): Update.
5169 (sh_sh3_register_name): Update.
5170 (sh_sh3e_register_name): Update.
5171 (sh_sh_dsp_register_name): Update.
5172 (sh_sh3_dsp_register_name): Update.
5173 (sh_sh4_register_name): Update.
5174 (sh_sh64_register_name): Update.
5175 * s390-tdep.c (s390_register_name): Update.
5176 * rs6000-tdep.c (rs6000_register_name): Update.
5177 * ns32k-tdep.c (ns32k_register_name_32082): Update.
5178 (ns32k_register_name_32382): Update.
5179 * d10v-tdep.c (d10v_ts2_register_name): Update.
5180 (d10v_ts3_register_name): Update.
5181 * xstormy16-tdep.c (xstormy16_register_name): Update.
5182 * vax-tdep.c (vax_register_name): Update.
5183 * v850-tdep.c (v850_register_name): Update.
5184 * m68hc11-tdep.c (m68hc11_register_name): Update.
5185 * mn10300-tdep.c (mn10300_generic_register_name): Update.
5186 (am33_register_name): Update.
5187
ea1e7ef6
GS
51882002-06-17 Grace Sainsbury <graces@redhat.com>
5189
5190 * m68k-tdep.c: Reindented.
5191
9b02dd1b
AC
51922002-06-17 Andrew Cagney <ac131313@redhat.com>
5193
5194 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5195 list of predefined types.
5196
8758dec1
MK
51972002-06-16 Mark Kettenis <kettenis@gnu.org>
5198
b6197528
MK
5199 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5200 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5201 REGISTER_CONVERT_TO_RAW): Remove defines.
5202 (i386_register_virtual_type, i386_register_convertible,
5203 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5204 Remove prototypes.
5205 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5206 macros mentioned above.
5207
82b47e62
MK
5208 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5209 (i386lynx_saved_pc_after_call): Remove prototype.
5210 * i386ly-tdep.c: Include "i386-tdep.h".
5211 (i386lynx_saved_pc_after_call): Make static. Use
5212 read_memory_nobpt instead of read_memory. Use
5213 read_memory_unsigned_integer instead of read_memory_integer.
5214 (i386lynx_init_abi): New function.
5215 (i386lynx_coff_osabi_sniffer): New function.
5216 (_initialize_i386bsd_tdep): New function.
5217
8758dec1
MK
5218 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5219 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5220 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5221 (i386_fix_call_dummy): Remove prototype.
5222 * i386-tdep.c (i386_call_dummy_words): New variable.
5223 (i386_gdbarch_init): Adjust for removal of the
5224 macros mentioned above.
5225
e9e68a56
AC
52262002-06-15 Andrew Cagney <ac131313@redhat.com>
5227
5228 * command.h (add_setshow_auto_boolean_cmd): Replace
5229 add_set_auto_boolean_cmd.
5230 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5231 add_set_auto_boolean_cmd.
5232 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5233 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5234 mask-address'' command.
5235 (show_mask_address): Add cmd parameter.
5236 * remote.c (add_packet_config_cmd): Update. Change type of
5237 set_func and show_func to cmd_sfunc_ftype.
5238 (_initialize_remote): Update `set remote Z-packet'
5239 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5240 (show_remote_protocol_e_packet_cmd): Ditto.
5241 (show_remote_protocol_E_packet_cmd): Ditto.
5242 (show_remote_protocol_P_packet_cmd): Ditto.
5243 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5244 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5245 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5246 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5247 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5248 (show_remote_protocol_Z_packet_cmd): Ditto.
5249 (show_remote_protocol_binary_download_cmd): Ditto.
5250 (show_remote_cmd): Pass NULL to all of above.
5251
fc08ec52
MK
52522002-06-15 Mark Kettenis <kettenis@gnu.org>
5253
5254 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5255 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5256 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5257 POP_FRAME): Remove defines.
5258 (i386_push_arguments, i386_store_struct_return,
5259 i386_extract_return_value, i386_store_return_value,
5260 i386_extract_struct_value_address, i386_push_dummy_frame,
5261 i386_pop_frame): Renove prototypes.
5262 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5263 macros mentioned above.
5264
e707bbc2
AC
52652002-06-15 Andrew Cagney <ac131313@redhat.com>
5266
5267 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5268 add_set_boolean_cmd.
5269 (add_setshow_cmd): New function.
5270 * command.h (add_setshow_boolean_cmd): Replace
5271 add_set_boolean_cmd.
5272 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5273 and ``set rdiromatzero''.
5274 * maint.c (_initialize_maint_cmds): Update commented out code.
5275 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5276 * target.c (initialize_targets): Update `set
5277 trust-readonly-sections'.
5278 * remote.c (_initialize_remote): Update `set remotebreak'.
5279
42fdc8df
MK
52802002-06-15 Mark Kettenis <kettenis@gnu.org>
5281
93924b6b
MK
5282 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5283 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5284 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5285 fit into multi-arch framework.
5286 (i386_breakpoint_from_pc): New function.
5287 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5288 above.
5289
42fdc8df
MK
5290 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5291 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5292 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5293 (i386_frameless_function_invocation, i386_frame_num_args,
5294 i386_frame_init_saved_regs): Remove prototypes.
5295 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5296 macros mentioned above.
5297
9773a94b
AC
52982002-06-15 Andrew Cagney <ac131313@redhat.com>
5299
5300 * cli/cli-decode.c (set_cmd_cfunc): Update.
5301 (set_cmd_sfunc): Update.
5302 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5303 (set_cmd_sfunc, set_cmd_cfunc): Update.
5304 * cli/cli-decode.h: Update.
5305
6e157172
MK
53062002-06-15 Mark Kettenis <kettenis@gnu.org>
5307
5308 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5309 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5310
7f19b9a2
AC
53112002-06-15 Andrew Cagney <ac131313@redhat.com>
5312
5313 * defs.h (auto_boolean): Declare enum.
5314 * command.h (cmd_auto_boolean): Delete enum.
5315 * mips-tdep.c (mask_address_var): Update.
5316 (mips_mask_address_p): Update.
5317 (show_mask_address): Update.
5318 * remote.c (struct packet_config): Update.
5319 (update_packet_config): Update.
5320 (show_packet_config_cmd): Update.
5321 (packet_ok): Update.
5322 (add_packet_config_cmd): Update.
5323 (_initialize_remote):
5324 * command.h: Update.
5325 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5326 (do_setshow_command): Update.
5327 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5328 * cli/cli-decode.h: Update.
5329
1cf88de5
MK
53302002-06-15 Mark Kettenis <kettenis@gnu.org>
5331
22ba8cf2
MK
5332 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5333 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5334 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5335 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5336 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5337 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5338
762c5349
MK
5339 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5340 list of DJGPP COFF targets.
5341
091198bb
MK
5342 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5343 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5344 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5345 (FP0_REGNUM): Remove define.
5346 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5347 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5348 (i386_register_virtual_size): Remove protoype.
5349 * i386-tdep.c (i386_register_virtual_size): Removed.
5350 (i386_extract_return_value, i386_store_return_value): Use
5351 FP0_REGNUM instead of NUM_FREGS to determine whether the
5352 floating-point registers are available.
5353 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5354 Adjust for removal of macros mentioned above.
5355
53562002-06-15 Mark Kettenis <kettenis@gnu.org>
5357
fcc9bf01
MK
5358 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5359 comments.
5360 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5361 Remove prototypes.
5362 (supply_gregset, fill_gregset): Remove use of register keyword and
5363 remove declaration for regmap. Use I386_NUM_GREGS instead of
5364 NUM_REGS and NUM_FREGS.
5365 (FPREGSET_FSAVE_OFFSET): Remove.
5366 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5367 NUM_FREGS to determine whether the floating-point registers are
5368 available.
5369
65e78234
MK
5370 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5371 gnu_store_registers): Replace usage of NUM_GREGS with
5372 I386_NUM_GREGS.
5373
98df6387
MK
5374 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5375 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5376 usage of NUM_GREGS with I386_NUM_GREGS.
5377
099a9414
MK
5378 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5379
57976e88
MK
5380 * i386bsd-nat.c: Include "i386-tdep.h".
5381 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5382 I386_NUM_GREGS.
5383
b335f4a6
MK
5384 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5385 and associated comment. They no longer make any sense, since we
5386 don't use this file anymore on Linux.
5387
1cf88de5
MK
5388 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5389 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5390 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5391 elements in these arrays.
5392 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5393 MAX_NUM_REGS.
5394
daa66587
MK
53952002-06-15 Mark Kettenis <kettenis@gnu.org>
5396
5397 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5398 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5399
26e9b323
AC
54002002-06-14 Andrew Cagney <cagney@redhat.com>
5401
5402 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5403 EXTRACT_RETURN_VALUE.
5404 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5405 EXTRACT_STRUCT_VALUE_ADDRESS.
5406 * gdbarch.h, gdbarch.c: Regenerate.
5407
5408 * values.c (value_being_returned): Handle
5409 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5410 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5411
5412 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5413 * arm-tdep.c (arm_gdbarch_init): Update.
5414 * avr-tdep.c (avr_gdbarch_init): Update.
5415 * cris-tdep.c (cris_gdbarch_init): Update.
5416 * d10v-tdep.c (d10v_gdbarch_init): Update.
5417 * ia64-tdep.c (ia64_gdbarch_init): Update.
5418 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5419 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5420 * s390-tdep.c (s390_gdbarch_init): Update.
5421 * sh-tdep.c (sh_gdbarch_init): Update.
5422 * s390-tdep.c (s390_gdbarch_init): Update.
5423 * sparc-tdep.c (sparc_gdbarch_init): Update.
5424 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5425 * v850-tdep.c (v850_gdbarch_init): Update.
5426 * vax-tdep.c (vax_gdbarch_init): Update.
5427 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5428 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5429
5430 * config/arc/tm-arc.h: Update.
5431 * config/d30v/tm-d30v.h: Update.
5432 * config/fr30/tm-fr30.h: Update.
5433 * config/h8300/tm-h8300.h: Update.
5434 * config/h8500/tm-h8500.h: Update.
5435 * config/i386/tm-i386.h: Update.
5436 * config/i386/tm-ptx.h: Update.
5437 * config/i386/tm-symmetry.h: Update.
5438 * config/i960/tm-i960.h: Update.
5439 * config/m32r/tm-m32r.h: Update.
5440 * config/m68k/tm-delta68.h: Update.
5441 * config/m68k/tm-linux.h: Update.
5442 * config/m68k/tm-m68k.h: Update.
5443 * config/m88k/tm-m88k.h: Update.
5444 * config/mcore/tm-mcore.h: Update.
5445 * config/mips/tm-mips.h: Update.
5446 * config/mn10200/tm-mn10200.h: Update.
5447 * config/pa/tm-hppa.h: Update.
5448 * config/pa/tm-hppa64.h: Update.
5449 * config/sparc/tm-sp64.h: Update.
5450 * config/sparc/tm-sparc.h: Update.
5451 * config/sparc/tm-sparclet.h: Update.
5452 * config/z8k/tm-z8k.h: Update.
5453
5179e78f
AC
54542002-06-14 Andrew Cagney <cagney@redhat.com>
5455
5456 * Makefile.in (i386_linux_tdep_h): Define.
5457 (i386_tdep_h, i387_tdep_h): Define.
5458 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5459 $(i386_tdep_h) and $(i387_tdep_h).
5460 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5461
8201327c
MK
54622002-06-14 Mark Kettenis <kettenis@gnu.org>
5463
edf393ac
MK
5464 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5465 Already covered by the default.
5466
896fb97d
MK
5467 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5468 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5469 (i386_gdbarch_init): Initialize long_double_format and long_double
5470 bit.
5471
8201327c
MK
5472 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5473 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5474 Move these to ...
5475 * config/i386/i386sol2.mh: ... here.
5476 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5477 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5478 (SIGCONTEXT_PC_OFFSET): Remove define.
5479 (IN_SIGTRAMP): Remove define.
5480 * i386-sol2-tdep.c: New file.
5481
5482 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5483 * config/i386/tm-i386nw.h: Removed.
5484
5485 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5486 USE_STRUCT_CONVENTION): Remove defines.
5487 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5488 (get_longjmp_target): Remove prototype.
5489 (IN_SIGTRAMP): Remove define.
5490 (i386bsd_in_sigtramp): Remove prototype.
5491 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5492 function. Update comment accordingly
5493 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5494 (FRAME_SAVED_PC): Remove define.
5495 (i386bsd_frame_saved_pc): Remove prototype.
5496 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5497 GET_LONGJMP_TARGET): Remove defines.
5498 (get_longjmp_target): Remove prototype.
5499 (IN_SIGTRAMP): Remove define.
5500 (i386bsd_in_sigtramp): Remove prototype.
5501 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5502 function. Update comment accordingly
5503 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5504 (FRAME_SAVED_PC): Remove define.
5505 (i386bsd_frame_saved_pc): Remove prototype.
5506 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5507 Remove prototype.
5508 (USE_STRUCT_CONVENTION): Remove prototype.
5509 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5510 declaration.
5511 (_initialize_i386bsd_nat): Revise logic to determine some
5512 constants at compile time when compiling a native GDB. Warn if
5513 things don't match up with what we expect.
5514 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5515 Remove variables.
5516 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5517 to use date stored in `struct gdbarch_tdep'.
5518 (i386bsd_sigcontext_offset): Remove varaible.
5519 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5520 stored in `struct gdbarch_tdep'.
5521 (i386bsd_frame_saved_pc): Make static.
5522 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5523 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5524 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5525 i386fbsd4_sc_pc_offset): New variables.
5526 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5527 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5528 functions.
5529 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5530 functions.
5531 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5532 Modify the value of i386fbsd_sigtramp_start and
5533 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5534 i386fbsd_sigtramp_end.
5535 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5536 function.
5537
5538 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5539 define to i386-linux-tdep.h.
5540 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5541 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5542 defines.
5543 (i386_linux_register_name, i386_linux_register_byte,
5544 i386_linux_register_raw_size): Remove prototypes.
5545 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5546 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5547 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5548 TARGET_WRITE_PC): Remove defines.
5549 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5550 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5551 i386_linux_write_pc): Remove prototypes.
5552 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5553 (get_longjmp_target): Remove prototype.
5554 * i386-linux-tdep.h: New file.
5555 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5556 * i386-linux-tdep.c: Include "i386-tdep.h" and
5557 "i386-linux-tdep.h".
5558 (i386_linux_register_name, i386_linux_register_byte,
5559 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5560 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5561 Make static.
5562 (i386_linux_init_abi): New function.
5563 (_initialize_i386_linux_tdep): New function.
5564
5565 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5566 (i386_saved_pc_after_call): Remove prototype.
5567 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5568 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5569 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5570 (i386_register_name, i386_stab_reg_to_regnum,
5571 i386_dwarf_reg_to_regnum): Remove prototypes.
5572 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5573 SIZEOF_SSE_REGS): Remove defines.
5574 (REGISTER_BYTES): Remove define.
5575 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5576 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5577 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5578 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5579 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5580 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5581 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5582 (get_longjmp_target): Remove prototype.
5583 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5584 (sigtramp_saved_pc): Remove define.
5585 (i386v4_sigtramp_saved_pc): Remove prototype.
5586 * config/i386/tm-go32.h (FRAME_CHAIN,
5587 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5588 (i386go32_frame_saved_pc): Remove prototype.
5589 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5590 (get_longjmp_target): Remove prototype.
5591 * i386-tdep.h: Include "osabi.h".
5592 (enum i386_abi): Removed.
5593 (enum struct_return): New enum.
5594 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5595 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5596 sc_pc_offset members.
5597 (i386_gdbarch_register_os_abi): Remove prototype.
5598 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5599 I386_SSE_NUM_REGS): New defines.
5600 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5601 I386_SSE_SIZEOF_REGS): New defines.
5602 (i386_register_name, i386_register_byte, i386_register_raw_size):
5603 New prototypes.
5604 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5605 (i386bsd_sigtramp_saved_pc): New prototype.
5606 * i386-tdep.c: Don't include "elf-bfd.h".
5607 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5608 i386_frame_chain, i386_saved_pc_after_call): Make static.
5609 (i386_frame_saved_pc): Rewrite to call architecture dependent
5610 function to deal with signal handlers. Make static.
5611 (i386go32_frame_saved_pc): Removed.
5612 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5613 Removed.
5614 (i386_get_longjmp_target): New function.
5615 (default_struct_convention, pcc_struct_convention,
5616 reg_struct_convention, valid_conventions, struct_convention): New
5617 variables.
5618 (i386_use_struct_convention): New function.
5619 (i386v4_sigtramp_saved_pc): Renamed to
5620 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5621 (i386_pc_in_sigtramp): New function.
5622 (i386_abi_names): Removed.
5623 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5624 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5625 Removed.
5626 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5627 i386_gdbarch_register_os_abi): Removed.
5628 (struct i386_abi_handler): Removed.
5629 (i386_abi_handler_list): Removed.
5630 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5631 functions.
5632 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5633 i386_nw_init_abi): New functions.
5634 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5635 Use set_gdbarch_xxx() calls instead of relying on macros for a
5636 number of calls.
5637 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5638 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5639 Register the various architecture variants defined in this file.
5640
ad2f7632
DJ
56412002-06-14 Daniel Jacobowitz <drow@mvista.com>
5642
5643 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5644 (struct main_type): Remove arg_types member. Update comments for
5645 struct field.
5646 (TYPE_ARG_TYPES): Remove.
5647 (TYPE_FN_FIELD_ARGS): Update.
5648 (smash_to_method_type): Update prototype.
5649
5650 * c-typeprint.c (cp_type_print_method_args): Take method type
5651 instead of argument list. Use new argument layout. Simplify.
5652 (c_type_print_args): Use new argument layout. Simplify.
5653 (c_type_print_base): Update call to cp_type_print_method_args.
5654 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5655 argument; use die->type instead. Update call to
5656 smash_to_method_type.
5657 (read_structure_scope): Update call to dwarf2_add_member_fn.
5658 * gdbtypes.c (allocate_stub_method): Update comment.
5659 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5660 Use new argument layout.
5661 (check_stub_method): Use new argument layout. Don't count
5662 void as an argument.
5663 (print_arg_types): Update comments. Use new argument layout.
5664 (recursive_dump_type): Don't print arg_types member.
5665 * hpread.c (hpread_read_struct_type): Use new argument layout.
5666 (fixup_class_method_type): Likewise.
5667 (hpread_type_lookup): Likewise.
5668 * stabsread.c (read_type): Update calls to read_args and
5669 smash_to_method_type.
5670 (read_args): Use new argument layout. Simplify.
5671 * valops.c (typecmp): Use new argument layout. Update parameters
5672 and comments. Simplify.
5673 (hand_function_call): Use new argument layout.
5674 (search_struct_method): Update call to typecmp.
5675 (find_overload_match): Use new argument layout.
5676
6da02953
DJ
56772002-06-13 Daniel Jacobowitz <drow@mvista.com>
5678
5679 * NEWS: Mention multithreaded debug support for gdbserver.
5680
519b2366
DJ
56812002-06-13 Daniel Jacobowitz <drow@mvista.com>
5682
5683 * MAINTAINERS: Mention NEWS.
5684
6c0d6680
DJ
56852002-06-13 Daniel Jacobowitz <drow@mvista.com>
5686
5687 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5688 (struct mips_objfile_private, compare_pdr_entries): New.
5689 (non_heuristic_proc_desc): Read the ".pdr" section if it
5690 is present.
5691
6529d2dd
AC
56922002-06-12 Andrew Cagney <ac131313@redhat.com>
5693
5694 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5695 (arm_debug): New static variable.
5696 (_initialize_arm_tdep): Add ``set debug arm'' command.
5697
26216b98
AC
56982002-06-12 Andrew Cagney <ac131313@redhat.com>
5699
5700 * Makefile.in (sim_arm_h): Define.
5701 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5702 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5703 (arm_register_sim_regno): New function, map an internal REGNUM
5704 onto a simulator register number.
5705 (arm_gdbarch_init): Set register_sim_regno.
5706
814b3ba0
AH
57072002-06-09 Aldy Hernandez <aldyh@redhat.com>
5708
5709 * MAINTAINERS: Add self.
5710
475b0867
JB
57112002-06-11 Jim Blandy <jimb@redhat.com>
5712
919d772c
JB
5713 * source.c (source_info): Mention whether the symtab has
5714 information about preprocessor macros.
5715
475b0867
JB
5716 Call the command `info macro', not `show macro'.
5717 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5718 Fix error message.
5719 (_initialize_macrocmd): Register `info_macro_command' in
5720 `infolist', not `showlist'.
5721
9e364162
DJ
57222002-06-11 Daniel Jacobowitz <drow@mvista.com>
5723
5724 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5725 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5726 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5727 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5728 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5729 unconditionally.
5730 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5731 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5732 (_initialize_mips_tdep): Remove dead code.
5733 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5734 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5735 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5736 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5737 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5738 MIPS_LAST_FP_ARG_REGNUM): Remove.
5739
23aa4c72
ML
57402002-06-11 Michal Ludvig <mludvig@suse.cz>
5741
5742 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5743 (unwind_tmp_obstack_free, parse_frame_info)
5744 (update_context, cfi_read_fp, cfi_write_fp)
5745 (cfi_frame_chain, cfi_init_extra_frame_info)
5746 (cfi_virtual_frame_pointer): Use the above function.
264d1763 5747 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 5748
70eb15a4
CV
57492002-06-11 Corinna Vinschen <vinschen@redhat.com>
5750
5751 * v850-tdep.c (v850_type_is_scalar): New function.
5752 (v850_use_struct_convention): Match current gcc implementation
5753 as close as possible.
5754 (v850_push_arguments): Fix stack_offset handling. Don't write
5755 struct_addr into register. This is done by v850_store_struct_return.
5756 (v850_extract_return_value): Care for structs.
5757 (v850_store_return_value): Ditto.
5758 (v850_store_struct_return): Actually write address.
5759
482a4d06
ML
57602002-06-11 Michal Ludvig <mludvig@suse.cz>
5761
5762 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5763 without debug information too.
5764
d855c300
AC
57652002-06-10 Andrew Cagney <ac131313@redhat.com>
5766
5767 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5768 Make multi-arch pure.
5769 * gdbarch.h, gdbarch.c: Re-generate.
5770 * arm-tdep.c (arm_print_float_info): Update.
5771 * arch-utils.h (default_print_float_info): Update.
5772 * arch-utils.c (default_print_float_info): Update.
5773 * infcmd.c (float_info): Update call.
5774
dd12a101
AC
57752002-06-10 Andrew Cagney <ac131313@redhat.com>
5776
5777 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5778 the front of the initialize list.
5779
101dcfbe
AC
57802002-06-10 Andrew Cagney <ac131313@redhat.com>
5781
5782 * infrun.c (struct inferior_status): Replace fields
5783 selected_frame_address and selected_level with field
5784 selected_frame_id.
5785 (save_inferior_status): Update. Use get_frame_id.
5786 (struct restore_selected_frame_args): Delete.
5787 (restore_selected_frame): Update. Use frame_find_by_id.
5788 (restore_inferior_status): Update.
5789
5790 * breakpoint.h (struct breakpoint): Change type of
5791 watchpoint_frame to frame_id.
5792 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5793 call to get_current_frame.
5794 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5795 get_current_frame.
5796 (watchpoint_check): Use frame_find_by_id.
5797
5798 * frame.h (record_selected_frame): Delete declaration.
5799 * stack.c (record_selected_frame): Delete function.
5800
5801 * frame.h (struct frame_id): Define.
5802 (get_frame_id): Declare.
5803 (frame_find_by_id): Declare.
5804 * frame.c (frame_find_by_id): New function.
5805 (get_frame_id): New function.
5806
304270b6
AV
58072002-06-10 Andrey Volkov <avolkov@transas.com>
5808
5809 * ser-e7kpc.c: Fix duplicated define and call of
5810 _initialize_ser_e7000pc
5811
2f2cf184
DJ
58122002-06-09 Daniel Jacobowitz <drow@mvista.com>
5813
5814 * signals/signals.c (target_signal_from_host): Fix #ifdef
5815 SIGRTMIN case.
5816 (do_target_signal_to_host): Likewise.
5817
caaa3122
DJ
58182002-06-09 Daniel Jacobowitz <drow@mvista.com>
5819
5820 * mips-tdep.c (mips_find_abi_section): New function.
5821 (mips_gdbarch_init): Call it.
5822
6ac5df3a
MK
58232002-06-09 Mark Kettenis <kettenis@gnu.org>
5824
5825 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5826 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5827 after Andrew's 2002-06-08 gdbarch change.
5828
82ea117a
MK
58292002-06-09 Mark Kettenis <kettenis@gnu.org>
5830
5831 * i386-linux-nat.c (suppy_gregset): Don't supply
5832 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5833 register cache.
5834 (fill_gregset): Don't fetch it under the same circumstances.
5835
3c25f8c7
AC
58362002-06-09 Andrew Cagney <cagney@redhat.com>
5837
5838 * Makefile.in (callback_h): Define.
5839 (remote_sim_h): Update path to remote-sim.h.
5840 (remote-rdp.o): Add $(callback_h).
5841 (remote-sim.o): Use $(callback_h).
5842 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5843 * remote-rdp.c: Include "gdb/callback.h".
5844
1029b7fa
MK
58452002-06-09 Mark Kettenis <kettenis@gnu.org>
5846
5847 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5848 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5849
616675d3
AC
58502002-06-08 Andrew Cagney <ac131313@redhat.com>
5851
a3efda28
AC
5852 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5853 * rdi-share/serpardr.c: Ditto.
5854 * rdi-share/unixcomm.c: Ditto.
5855 * rdi-share/serdrv.c: Ditto.
5856 * rdi-share/hostchan.h: Ditto.
5857 * rdi-share/hostchan.c: Ditto.
5858 * rdi-share/host.h: Ditto.
5859 * rdi-share/devsw.c: Ditto.
5860
c5f10366
AC
5861 * objfiles.h: Change type of obj_private to void pointer.
5862 * pa64solib.c: Update copyright. Don't include "assert.h", use
5863 strcmp instead of STREQ, use LONGEST, do not use PTR
5864 * somsolib.c: Ditto.
5865
616675d3
AC
5866 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5867 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5868 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5869
e4b415d9
AC
58702002-06-08 Andrew Cagney <ac131313@redhat.com>
5871
5872 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5873 (default_get_saved_register): Delete function.
5874 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5875 generic_unwind_get_saved_register.
5876 * gdbarch.h, gdbarch.c: Re-generate.
5877
ca0d0b52
AC
58782002-06-08 Andrew Cagney <ac131313@redhat.com>
5879
5880 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5881 generic_func_frame_chain_valid.
5882 * gdbarch.h, gdbarch.c: Re-generate.
5883 * blockframe.c (generic_func_frame_chain_valid): Only check
5884 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5885 passing FP to PC_IN_CALL_DUMMY.
5886 Fix PR gdb/360.
5887
76860b5f
AC
58882002-06-08 Andrew Cagney <ac131313@redhat.com>
5889
5890 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5891 (register_gdbarch_data): Initialize init_p.
5892 (gdbarch_data): Initialize data pointer using the init function.
5893 (init_gdbarch_data): Delete function.
5894 (gdbarch_update_p): Update.
5895 (initialize_non_multiarch): Update.
5896 (struct gdbarch): Add field initialized_p.
5897 * gdbarch.h, gdbarch.c: Re-generate.
5898
8dda9770
ML
58992002-06-07 Michal Ludvig <mludvig@suse.cz>
5900
5901 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5902 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5903 better do the things actually here.
5904 * x86-64-tdep.c (x86_64_register_name2nr): New.
5905 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5906 (x86_64_gdbarch_init): Respect the above change.
5907 * x86-64-tdep.h (x86_64_register_name2nr)
5908 (x86_64_register_nr2name): Add prototypes.
5909 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5910
3d79a47c
MS
59112002-06-06 Michael Snyder <msnyder@redhat.com>
5912
7bd91a28
MS
5913 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5914 Delete extra braces and re-indent.
5915 (d10v_store_return_value): Char return values
3d79a47c
MS
5916 must be shifted over by one byte in R0.
5917 (d10v_extract_return_value): Delete extra braces, re-indent.
5918
095a4c96
EZ
59192002-06-06 Elena Zannoni <ezannoni@redhat.com>
5920
5921 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5922 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5923 (d10v_integer_to_address): Rewrite.
5924 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5925 the d10v specific functions which take care of converting to the
5926 correct space.
5927
e8a77ca4
EZ
59282002-06-06 Elena Zannoni <ezannoni@redhat.com>
5929
5930 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5931 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5932
4f2e4a4f
AC
59332002-06-02 Andrew Cagney <ac131313@redhat.com>
5934
5935 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5936 includes.
5937 * config/tm-linux.h: Ditto.
5938 * config/alpha/tm-alphalinux.h: Ditto.
5939 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5940 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5941 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5942 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5943 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5944 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5945 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5946 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5947 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5948 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5949 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5950 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5951 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5952 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5953 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5954 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5955 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5956 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5957 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5958 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5959 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5960 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5961 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5962 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5963 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5964 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5965 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5966 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5967 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5968 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5969 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5970 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5971 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5972 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5973 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5974 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5975 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5976
ae2ab2ce
AS
59772002-05-04 Aidan Skinner <aidan@velvet.net>
5978
5979 * ada-exp.tab.c: New file
5980 * ada-exp.y: New file
5981 * ada-lang.c: New file
5982 * ada-lang.h: New file
5983 * ada-lex.c: New file
5984 * ada-lex.l: New file
5985 * ada-tasks.c: New file
5986 * ada-typeprint.c: New file
5987 * ada-valprint.c: New file
5988
0ddd0135
JT
59892002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5990
5991 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5992 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5993
750fbacc
JT
59942002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5995
5996 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5997 insetead of ppc-linux-tdep.o.
5998 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5999 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6000
df94e18a
AC
60012002-06-02 Andrew Cagney <ac131313@redhat.com>
6002
6003 2002-05-07 Christian Groessler <chris@groessler.org>
6004 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6005 bit register contents for little endian hosts.
6006
1a38ab75
AC
60072002-06-01 Andrew Cagney <ac131313@redhat.com>
6008
6009 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6010 any maintainer.
6011
8b1632ac
AC
60122002-06-01 Andrew Cagney <ac131313@redhat.com>
6013
6014 * gdbarch.h: Regenerate.
6015
627054c8
AC
60162002-06-01 Andrew Cagney <ac131313@redhat.com>
6017
6018 * MAINTAINERS: Add everyone to write-after-approval list.
6019
4f460812
AC
60202002-06-01 Andrew Cagney <ac131313@redhat.com>
6021
6022 * stack.c (frame_info): Use frame_register_unwind instead of
6023 saved_regs. Mention when the SP is on the stack or in a register.
6024
6025 * frame.h (frame_register_unwind_ftype): Define. Document.
6026 (struct frame_info): Add field register_unwind and
6027 register_unwind_cache.
6028 (frame_register_unwind): Declare.
6029 (generic_unwind_get_saved_register): Declare.
6030
6031 * frame.c (frame_register_unwind): New function.
6032 (generic_unwind_get_saved_register): New function.
6033
6034 * blockframe.c (generic_call_dummy_register_unwind): New function.
6035 (frame_saved_regs_register_unwind): New function.
6036 (set_unwind_by_pc): New function.
6037 (create_new_frame): New function.
6038 (get_prev_frame): New function.
6039
de888f76
AC
60402002-05-30 Andrew Cagney <ac131313@redhat.com>
6041
6042 * a29k-share/: Delete directory.
6043 * remote-vx29k.c: Delete file.
6044
2f2c3626
JT
60452002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6046
6047 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6048 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6049
9ce5c36a
JT
60502002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6051
6052 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6053 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6054 (sparc64nbsd-nat.o)
6055 (sparcnbsd-nat.o)
6056 (sparcnbsd-tdep.o): New dependency lists.
6057 * NEWS: Note new UltraSPARC NetBSD native configuration.
6058 * configure.host (sparc64-*-netbsd*): New host.
6059 * configure.tgt (sparc-*-netbsdelf*)
6060 (sparc-*-netbsd*): Set gdb_target to nbsd.
6061 (sparc64-*-netbsd*): New target.
6062 * sparc64nbsd-nat.c: New file.
6063 * sparcnbsd-nat.c: New file.
6064 * sparcnbsd-tdep.c: New file.
6065 * sparcnbsd-tdep.h: New file.
6066 * config/sparc/nbsd.mt: New file.
6067 * config/sparc/nbsd64.mh: New file.
6068 * config/sparc/nbsd64.mt: New file.
6069 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6070 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6071 (HOST_IPC): Remove.
6072 * config/sparc/nbsdaout.mt: Remove.
6073 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6074 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6075 (HOST_IPC): Remove.
6076 * config/sparc/nbsdelf.mt: Remove.
6077 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
6078 sparc-nat.c compatiblity defines.
6079 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
6080 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6081 * config/sparc/tm-nbsd64.h: New file.
6082 * config/sparc/tm-nbsdaout.h: Remove.
6083 * config/sparc/xm-nbsd.h: Remove.
6084
ef3cf062
JT
60852002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6086
6087 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6088 * sparc-tdep.c: Include osabi.h.
6089 (gdbarch_tdep): Add osabi member.
6090 (_initialize_sparc_tdep): Use gdbarch_register.
6091 (sparc_gdbarch_init): Use generic OS ABI framework.
6092 (sparc_dump_tdep): New function.
6093
ee8ff470
KB
60942002-05-30 Kevin Buettner <kevinb@redhat.com>
6095
6096 * corefile.c (do_captured_read_memory_integer): Return non-zero
6097 result.
6098 (safe_read_memory_integer): Copy result of memory read when
6099 status is non-zero. Also, add comments.
6100
7b112f9c
JT
61012002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
6102
6103 * Makefile.in (ppc_tdep_h): Define.
6104 (ppc-linux-nat.o)
6105 (ppc-linux-tdep.o)
6106 (rs6000-tdep.o): Use $(ppc_tdep_h).
6107 (ppc-sysv-tdep.o)
6108 (ppcnbsd-nat.o)
6109 (ppcnbsd-tdep.o): New dependency lists.
6110 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
6111 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6112 (ppc_linux_init_abi): New functions.
7b112f9c
JT
6113 (ppc_sysv_abi_broken_use_struct_convention)
6114 (ppc_sysv_abi_use_struct_convention)
6115 (ppc_sysv_abi_push_arguments): Move to...
6116 * ppc-sysv-tdep.c: ...here.
6117 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6118 * rs6000-tdep.c (process_note_abi_tag_sections)
6119 (get_elfosabi): Remove.
6120 (rs6000_gdbarch_init): Use generic OS ABI framework.
6121 (rs6000_dump_tdep): New function.
6122 (_initialize_rs6000_tdep): Use gdbarch_register.
6123 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6124 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6125 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6126 of ppc-linux-tdep.o.
6127 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6128 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6129 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6130 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6131 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6132 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6133
480dd42a
JB
61342002-05-29 Jim Blandy <jimb@redhat.com>
6135
6136 * macroscope.c (default_macro_scope): Put `void' in empty argument
6137 list.
6138
4182591f
AC
61392002-05-29 Andrew Cagney <ac131313@redhat.com>
6140
6141 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6142 * arch-utils.c: Include "sim-regno.h".
6143 * gdbarch.sh: Don't include "sim-regno.h".
6144 * gdbarch.h, gdbarch.c: Regenerate.
6145 * sim-regno.h (legacy_register_sim_regno): Move declaration from
6146 here.
6147 * arch-utils.h (legacy_register_sim_regno): To here.
6148 * remote-sim.c (legacy_register_sim_regno): Move function from
6149 here.
6150 * arch-utils.c (legacy_register_sim_regno): To here.
6151
8238d0bf
AC
61522002-05-28 Andrew Cagney <ac131313@redhat.com>
6153
6154 * sim-regno.h: New file.
6155 * Makefile.in (sim_regno_h): Define.
6156 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6157 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6158 (legacy_register_sim_regno): New function.
6159 (one2one_register_sim_regno): New function.
6160 (gdbsim_fetch_register): Rewrite.
6161 (gdbsim_store_register): Only store a register when
6162 REGISTER_SIM_REGNO is valid.
6163 * d10v-tdep.c: Include "sim-regno.h".
6164 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6165 (d10v_ts3_register_sim_regno): Ditto.
6166 * gdbarch.sh: Include "sim-regno.h".
6167 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6168 * gdbarch.h, gdbarch.c: Regenerate.
6169 * arch-utils.h (default_register_sim_regno): Delete declaration.
6170 * arch-utils.c (default_register_sim_regno): Delete function.
6171
485721b1
JT
61722002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6173
6174 * ppcnbsd-nat.c: Rewrite.
6175 * ppcnbsd-tdep.c: New file.
6176 * ppcnbsd-tdep.h: New file.
6177 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6178 solib.o, and solib-svr4.o.
6179 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6180 nbsd-tdep.o, and corelow.o.
6181
697f244d
AC
61822002-05-28 Andrew Cagney <ac131313@redhat.com>
6183
6184 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6185 `tr' and `sed'. Mention that `broken' targets are not expected to
6186 build.
6187
f08caad1 61882002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
6189
6190 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6191 Let PC point right after the prologue before looking up symbols.
6192
3139facc
MH
61932002-05-27 Martin M. Hunt <hunt@redhat.com>
6194
6195 * i386-tdep.c (i386_register_virtual_type): Return
6196 builtin_type_vec128i for SSE registers.
6197
6198 * gdbtypes.h (builtin_type_vec128i): Declare.
6199
6200 * gdbtypes.c (build_builtin_type_vec128i): New function.
6201 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6202 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6203 (build_gdbtypes): Initialize new builtin vector types.
6204 (_initialize_gdbtypes): Register new vector types with gdbarch.
6205
6e3ba3b8
JT
62062002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6207
6208 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6209 since it has been multi-arch'd.
6210 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6211 Move Alpha and VAX multi-arch news entries to same section
6212 as other multi-arch news.
6213
93d5585d
JT
62142002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6215
6216 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6217 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6218 static. Rename some register numbers to put them in ns32k-tdep
6219 private namespace.
6220 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6221 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6222 functions.
6223 (_initialize_ns32k_tdep): Use gdbarch_register.
6224 * ns32k-tdep.h: New file.
6225 * ns32knbsd-tdep.c: New file.
6226 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6227 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6228 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6229 REGISTER_BYTES, REGISTER_BYTE): Remove.
6230 * config/ns32k/tm-ns32k.h: New file.
6231 * config/ns32k/tm-umax.h: Remove.
6232
efb2c70e
JT
62332002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6234
6235 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6236 ns32k_store_struct_return, ns32k_extract_return_value,
6237 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6238 functions.
6239 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6240 ns32k_saved_pc_after_call.
6241 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6242 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6243 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6244 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6245 ns32k_extract_struct_value_address.
6246
7bcc927b
JT
62472002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6248
6249 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6250 ns32k_fix_call_dummy): New.
6251 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6252 ns32k_call_dummy_words.
6253 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6254 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6255 CALL_DUMMY_NARGS): Remove.
6256 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6257
78f9d765
JT
62582002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6259
6260 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6261 ns32k_frame_saved_pc, ns32k_frame_args_address,
6262 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6263 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6264 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6265 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6266 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6267 (BREAKPOINT): Remove..
6268 (FRAME_CHAIN): Define as ns32k_frame_chain.
6269 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6270 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6271 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6272 (FRAME_FIND_SAVED_REGS): Remove.
6273 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6274 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6275 (POP_FRAME): Define as ns32k_pop_frame.
6276
f2c762e0
JT
62772002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6278
6279 * ns32k-tdep.c (ns32k_register_byte_32082,
6280 ns32k_register_byte_32382, ns32k_register_raw_size,
6281 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6282 functions.
6283 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6284 ns32k_register_byte_32382.
6285 * config/ns32k/tm-umax.h: Update copyright years.
6286 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6287 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6288 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6289 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6290 (ns32k_get_enter_addr): Fix prototype.
6291
af137673
JT
62922002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6293
6294 * ns32k-tdep.c: Update copyright years.
6295 (ns32k_register_name_32082): New function.
6296 (ns32k_register_name_32382): Ditto.
6297 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6298 (REGISTER_NAME): Define as ns32k_register_name_32382.
6299 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6300 (REGISTER_NAME): Define as ns32k_register_name_32082.
6301
a8bc7b56
JB
63022002-05-24 Jim Blandy <jimb@redhat.com>
6303
6304 * dwarf2read.c (free_line_header): Use xfree, not free.
6305
83a45910
JT
63062002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6307
6308 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6309 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6310
0db71247
AC
63112002-05-23 Andrew Cagney <ac131313@redhat.com>
6312
6313 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6314
b9e5e4dd
AC
63152002-05-23 Andrew Cagney <ac131313@redhat.com>
6316
6317 From Ross Alexander at NEC Europe:
6318 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6319
de530e84
MS
63202002-05-23 Michael Snyder <msnyder@redhat.com>
6321
6322 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6323 for input, rather than parse_and_eval_address.
6324
b91b96f4
AC
63252002-05-23 Andrew Cagney <ac131313@redhat.com>
6326
6327 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6328 * Makefile.in (sim_d10v_h): Update definition.
6329
8b279e7a
AC
63302002-05-24 Andrew Cagney <cagney@redhat.com>
6331
6332 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6333 change `2002-05-22 Michael Snyder' below.
6334 (d10v_push_arguments): Ditto.
6335 (d10v_extract_return_value): Ditto.
6336
0a3d0425
JB
63372002-05-23 Jim Blandy <jimb@redhat.com>
6338
6339 * macrotab.c (check_for_redefinition): Don't complain if the new
6340 definition is the same as the previous one. Take more arguments
6341 to allow the comparison.
6342 (macro_define_object, macro_define_function): Pass more arguments
6343 to check_for_redefinition.
6344
78eac43e
MS
63452002-05-22 Michael Snyder <msnyder@redhat.com>
6346
6347 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6348 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6349 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6350 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6351 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6352 Add a temp variable to save a call (and a memory read).
6353 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6354 if possible (so that PC_IN_CALL_DUMMY will work).
6355
9bc1edb8
CV
63562002-05-22 Corinna Vinschen <vinschen@redhat.com>
6357
6358 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6359
005ef3d2
ML
63602002-05-22 Michal Ludvig <mludvig@suse.cz>
6361
6362 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6363 fde->cie_ptr.
6364 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6365 (dwarf2_build_frame_info): Add offset to fde->initial_location
6366 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
6367 (execute_stack_op): Change type of 'result' from ULONGEST to
6368 CORE_ADDR.
005ef3d2 6369
fcf4f891
JT
63702002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6371
6372 * config/alpha/tm-nbsd.h: Include solib.h.
6373
cfef91e4
JT
63742002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6375
6376 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6377 assumptions about the host's byte order.
6378
9964235a
JT
63792002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6380
6381 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6382 to dependency list.
6383 * alphanbsd-tdep.c: Include solib-svr4.h.
6384 * shnbsd-tdep.c: Ditto.
6385
9eeef8ef
JT
63862002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6387
6388 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6389 nbsd-tdep.h to dependency list.
6390 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6391 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6392 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6393 nbsdaout.mh and nbsdelf.mh consistently.
6394 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6395 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6396 nbsdaout.mt and nbsdelf.mh consistently.
6397 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6398 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6399 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6400 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6401 a.out shared library stuff from here...
6402 * config/nm-nbsdaout.h: ...to here.
6403 * config/tm-nbsd.h: Remove.
6404 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6405 * config/arm/nbsd.mh: Remove.
6406 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6407 nbsd-tdep.o.
6408 * config/arm/nbsdaout.mh: New file.
6409 * config/arm/nbsdelf.mh: New file.
6410 * config/arm/nm-nbsdaout.h: New file.
6411 * config/i386/nbsd.mh: Remove.
6412 * config/i386/nbsd.mt: Remove.
6413 * config/i386/nbsdaout.mh: New file.
6414 * config/i386/nbsdaout.mt: New file.
6415 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6416 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6417 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6418 i386_register_u_addr): Remove.
6419 * config/i386/nm-nbsdaout.h: New file.
6420 * config/i386/nm-nbsdelf.h: Remove.
6421 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6422 (USE_STRUCT_CONVENTION): Remove.
6423 * config/i386/tm-nbsdaout.h: New file.
6424 * config/i386/tm-nbsdelf.h: Remove.
6425 * config/m68k/nbsd.mh: Remove.
6426 * config/m68k/nbsd.mt: Remove.
6427 * config/m68k/nbsdaout.mh: New file.
6428 * config/m68k/nbsdaout.mt: New file.
6429 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6430 * config/m68k/nm-nbsdaout.h: New file.
6431 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6432 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6433 * config/ns32k/nbsd.mh: Remove.
6434 * config/ns32k/nbsd.mt: Remove.
6435 * config/ns32k/nbsdaout.mh: New file.
6436 * config/ns32k/nbsdaout.mt: New file.
6437 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6438 * config/ns32k/nm-nbsdaout.h: New file.
6439 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6440 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6441 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6442 (SVR4_SHARED_LIBS): Remove.
6443 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6444 * config/sparc/nbsd.mh: Remove.
6445 * config/sparc/nbsd.mt: Remove.
6446 * config/sparc/nbsdaout.mh: New file.
6447 * config/sparc/nbsdaout.mt: New file.
6448 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6449 * config/sparc/nbsdelf.mt: New file.
6450 * config/sparc/nm-nbsdaout.h: New file.
6451 * config/sparc/nm-nbsdelf.h: Remove.
6452 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6453 * config/sparc/tm-nbsdaout.h: New file.
6454
257ce470
JT
64552002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6456
6457 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6458 mipsnbsd-tdep.c
6459 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6460
76a6d5fe
JT
64612002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6462
6463 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6464 shnbsd-nat.c.
6465 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6466
45888261
JT
64672002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6468
6469 * NEWS: Note new MIPS NetBSD native configuration.
6470 * configure.host (mips*-*-netbsd*): New host.
6471 * configure.tgt (mips*-*-netbsd*): New target.
6472 * mipsnbsd-nat.c: New file.
6473 * mipsnbsd-tdep.c: New file.
6474 * mipsnbsd-tdep.h: New file.
6475 * config/mips/nbsd.mh: New file.
6476 * config/mips/nbsd.mt: New file.
6477 * config/mips/nm-nbsd.h: New file.
6478 * config/mips/tm-nbsd.h: New file.
6479
70f80edf
JT
64802002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6481
6482 * Makefile.in (SFILES): Add osabi.c.
6483 (COMMON_OBS): Add osabi.o.
6484 (osabi.o): New dependency list.
6485 * osabi.c: New file.
6486 * osabi.h: New file.
6487 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6488
6489 * Makefile.in (alpha_tdep_h): Define and use instead of
6490 alpha-tdep.h.
6491 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6492 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6493 Remove.
6494 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6495 * alpha-tdep.h: Include osabi.h.
6496 (alpha_abi): Remove.
6497 (gdbarch_tdep): Use generic OS ABI framework.
6498 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6499 gdbarch_register_osabi.
6500 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6501 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6502 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6503
6504 * Makefile.in (sh_tdep_h): Add osabi.h.
6505 * sh-tdep.h (sh_osabi): Remove.
6506 (gdbarch_tdep): Use generic OS ABI framework.
6507 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6508 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6509 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6510 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6511
6512 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6513 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6514 gdbarch_register_osabi.
6515 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6516 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6517 (get_elfosabi): Rename to...
6518 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6519 ABI framework support routines.
6520 (arm_gdbarch_init): Use generic OS ABI framework.
6521 (arm_dump_tdep): Likewise.
6522 (_initialize_arm_tdep): Likewise.
6523 * arm-tdep.h: Include osabi.h.
6524 (arm_abi): Remove.
6525 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6526 osabi member.
6527 (arm_gdbarch_register_os_abi): Remove prototype.
6528 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6529 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6530
6531 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6532 * mips-tdep.c: Include osabi.h.
6533 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6534 OS ABI framework.
6535
d194345b
KH
65362002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6537
6538 * h8300-tdep.c: Fix formatting.
6539
70c6b0d1
EZ
65402002-05-20 Elena Zannoni <ezannoni@redhat.com>
6541
6542 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6543 printing vector registers.
6544
165b8e33
AC
65452002-05-19 Andrew Cagney <ac131313@redhat.com>
6546
6547 From Fernando Nasser:
6548 * remote.c (remote_async_open_1): Re-throw the exception when the
6549 connection fails.
6550 (remote_cisco_open): Ditto.
6551 (remote_open_1): Ditto.
6552
36918e70
AC
65532002-05-19 Andrew Cagney <ac131313@redhat.com>
6554
6555 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6556 (remote_start_remote): Add uiout parameter. Pass through to
6557 remote_start_remote_dummy.
6558 (remote_open_1): Use catch_exception instead of catch_errors.
6559 (remote_async_open_1): Ditto.
6560 (remote_cisco_open): Ditto.
6561
ae44c0c4
AC
65622002-05-19 Andrew Cagney <ac131313@redhat.com>
6563
6564 * remote.c (remote_start_remote): Replace PTR with void pointer.
6565 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6566 static.
6567
8efe637d
AC
65682002-05-18 Andrew Cagney <ac131313@redhat.com>
6569
6570 * gdb_indent.sh: Allow the script to be run in the sim directory.
6571
2f1b5984
MK
65722002-05-18 Mark Kettenis <kettenis@gnu.org>
6573
f0f625e2
MK
6574 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6575 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6576
2f1b5984
MK
6577 * corelow.c (core_open): Only call set_gdbarch_from_file if
6578 exec_bfd is NULL.
6579
fc974602
AV
65802002-05-17 Andrey Volkov <avolkov@transas.com>
6581
6582 * h8300-tdep.c: Add support of EXR register
6583 * config/h8300/tm-h8300.h: Ditto.
6584
906709f4
AV
65852002-05-17 Andrey Volkov <avolkov@transas.com>
6586
6587 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6588
6e591d68
AV
65892002-05-17 Andrey Volkov <avolkov@transas.com>
6590
6591 * h8300-tdep.c: Change literal regnums to REGNO.
6592
84f0252a
JB
65932002-05-17 Jim Blandy <jimb@redhat.com>
6594
e0e9281e
JB
6595 * NEWS: Note addition of macro support.
6596
84f0252a
JB
6597 Expand preprocessor macros in C expressions.
6598 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6599 (scan_macro_expansion, scanning_macro_expansion,
6600 finished_macro_expansion): New function declarations.
6601 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6602 variable declarations.
6603 * parser-defs.h (expression_context_pc): New declaration.
6604 * parse.c (expression_context_pc): New variable.
6605 (parse_exp_1): Set expression_context_pc, as well as
6606 expression_context_block.
6607 * c-exp.y (yylex): If we're not already reading the result of a
6608 macro expansion, try to macro-expand the next token. When we're
6609 done scanning a macro expansion, switch back to the mainline text.
6610 Commas and `if's in a macro's expansion don't terminate the input.
6611 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6612 (macro_original_text, macro_expanded_text,
6613 expression_macro_lookup_func, expression_macro_lookup_baton): New
6614 variables.
6615 (scan_macro_expansion, scanning_macro_expansion,
6616 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6617 c_preprocess_and_parse): New functions.
6618 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6619 c_preprocess_and_parse, instead of c_parse.
6620 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6621 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6622
1c509ca8
JR
6623Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6624
6625 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6626 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6627 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6628
2250ee0c
CV
66292002-05-17 Corinna Vinschen <vinschen@redhat.com>
6630
6631 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6632
ab3b8126
JT
66332002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6634
6635 * Makefile.in (sh_tdep_h): Define and use.
6636 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6637 register enum): Move to...
6638 * * sh-tdep.h: ...here.
6639 * sh-tdep.c: Include sh-tdep.h.
6640 * sh3-rom.c: Likewise.
6641 * shnbsd-tdep.c: Likewise.
6642
ed9d4749
MS
66432002-05-16 Michael Snyder <msnyder@redhat.com>
6644
6645 * arm-tdep.c: Spelling fix in comment.
6646
2e276125
JB
66472002-05-16 Jim Blandy <jimb@redhat.com>
6648
6821892e
JB
6649 Add commands for manually expanding macros and showing their
6650 definitions.
6651 * macrocmd.c, macroscope.c, macroscope.h: New files.
6652 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6653 (macroscope_h): New variable.
6654 (HFILES_NO_SRCDIR): Add macroscope.h.
6655 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6656 (macroscope.o, macrocmd.o): New rules.
6657
2e276125
JB
6658 Teach the Dwarf 2 reader to read macro information.
6659 * dwarf2read.c: #include "macrotab.h".
6660 (dwarf_macinfo_buffer): New variable.
6661 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6662 dwarf_macinfo_size.
6663 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6664 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6665 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6666 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6667 dwarf2_macro_spaces_in_definition): New complaints.
6668 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6669 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6670 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6671 the partial symbol table.
6672 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6673 from what's recorded in the partial symbol table.
6674 (read_file_scope): If the compilation unit has a
6675 `DW_AT_macro_info' attribute, read its macro information.
6676 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6677
2f53fe6c
DJ
66782002-05-16 Daniel Jacobowitz <drow@mvista.com>
6679
6680 Fix PR gdb/546
6681 * ser-tcp.c: Don't include <netinet/udp.h>.
6682
2be99286
SC
66832002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6684
6685 * MAINTAINERS: Update my email address.
6686
c9af212b 66872002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
6688
6689 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6690 include file of the same name.
6691
bf5f1a52
CV
66922002-05-16 Corinna Vinschen <vinschen@redhat.com>
6693
6694 * configure.tgt: Mark v850 as multi-arched.
6695 * config/v850/tm-v850.h: Remove file.
6696 * config/v850/v850.mt: Eliminate TM_FILE.
6697
435e042a
CV
66982002-05-16 Corinna Vinschen <vinschen@redhat.com>
6699
6700 * v850-tdep.c: Full multi-arch.
6701 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6702 Define GDB_MULTI_ARCH to 2.
6703
9819c6c8
PM
67042002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6705
6706 * p-exp.y (current_type): New static variable.
6707 Carries the type of the expression at the position that is parsed.
6708 (push_current_type, pop_current_type): Two new functions. Used
6709 to store/restore current_type in expression on specific tokens.
c9af212b
RE
6710 (search_field): New static variable. Set to one after parsing a point
6711 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
6712 (FIELDNAME): New token. After a point only a token belonging to
6713 current_type type definition is allowed.
6714 (all over token rules): reset and change current_type according
6715 to rules.
6716 (exp '[' rule): insert implicit array index field if
6717 exp is a pascal string type.
6718
3a06899a
CV
67192002-05-16 Corinna Vinschen <vinschen@redhat.com>
6720
6721 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6722 frame info. Use frame_info's saved_regs instead of matching member
6723 in extra_frame_info throughout.
6724 (v850_frame_init_saved_regs): New function.
6725 (v850_init_extra_frame_info): Move most functionality into
6726 v850_frame_init_saved_regs().
6727 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6728 (v850_frame_find_saved_regs): Remove declaration.
6729 (FRAME_FIND_SAVED_REGS): Remove definition.
6730 (v850_frame_init_saved_regs): Add declaration.
6731 (FRAME_INIT_SAVED_REGS): Add definition.
6732
6ed14b0e
CV
67332002-05-16 Corinna Vinschen <vinschen@redhat.com>
6734
6735 * v850-tdep.c: Begin multi-arch'ing v850.
6736 (v850_target_architecture_hook): Remove function.
6737 (v850_gdbarch_init): New function. Add code previously in
6738 v850_target_architecture_hook().
6739 (_initialize_v850_tdep): Don't set target_architecture_hook.
6740 Call register_gdbarch_init() instead.
6741
42725910
DJ
67422002-05-16 Daniel Jacobowitz <drow@mvista.com>
6743
6744 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6745 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6746 (fixup_class_method_type): Likewise.
6747
99d9066e
JB
67482002-05-15 Jim Blandy <jimb@redhat.com>
6749
6750 Add macro structures to GDB's symbol tables. Nobody puts anything
6751 in them yet.
6752 * symtab.h (struct symtab): New member: `macro_table'.
6753 * buildsym.h (pending_macros): New global variable.
6754 * buildsym.c: #include "macrotab.h".
6755 (buildsym_init): Initialize `pending_macros'.
6756 (end_symtab): If we found macro information while reading a CU's
6757 debugging info, do build a symtab structure for it. Make the
6758 symtab point to the macro information, and clear the
6759 `pending_macros' pointer which held it while we were reading the
6760 debug info.
6761 (really_free_pendings): Free any pending macro table.
6762 * objfiles.h (struct objfile): New member: `macro_cache'.
6763 * objfiles.c (allocate_objfile): Set allocate and free functions
6764 for the macro cache's objstack.
6765 (free_objfile): Empty the macro cache's obstack.
6766 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6767 set new allocate and free functions for it.
6768 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6769 free functions for the macro cache's objstack. (Why is this
6770 function building its own objfile?)
6771 * symmisc.c (print_objfile_statistics): Print statistics on the
6772 macro bcache.
6773 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6774
c899585b
RE
67752002-05-15 Richard Earnshaw <rearnsha@arm.com>
6776
6777 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6778 (REGISTER_U_ADDR): Delete definition.
6779 (arm_register_u_addr): Delete declaration.
6780
a6cdd8c5
RE
67812002-05-15 Richard Earnshaw <rearnsha@arm.com>
6782
6783 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6784 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6785
c97dcfc7
AC
67862002-05-14 Andrew Cagney <ac131313@redhat.com>
6787
6788 * regcache.c (register_valid): Revise comments refering to "Not
6789 available" and "unavailable".
6790 * frame.c (frame_register_read): Ditto.
6791 * findvar.c (value_of_register): Ditto.
6792
93021b7d
AC
67932002-05-15 Andrew Cagney <cagney@redhat.com>
6794
6795 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6796 (remote-sim.o): Update dependencies.
6797 (d10v-tdep.o): Specify dependencies.
6798 (sim_d10v_h): Define.
6799
a86bc61c
JB
68002002-05-14 Jim Blandy <jimb@redhat.com>
6801
6802 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6803 * macrotab.c (macro_lookup_inclusion, find_definition,
6804 new_macro_table): Same.
6805
6806 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6807 not `! strcmp ()'. This is a dubious improvement.
6808 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6809
6810 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6811 although it's not necessary, to avoid a warning.
6812
2fdde8f8
DJ
68132002-05-14 Daniel Jacobowitz <drow@mvista.com>
6814
6815 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6816 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6817 TYPE_INSTANCE_FLAGS.
6818 (struct main_type): New.
6819 (struct type): Move most members to struct main_type. Change
6820 cv_type and as_type to new type_chain member. Add instance_flags.
6821 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6822 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6823 (finish_cv_type): Remove prototype.
6824 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6825 Set TYPE_CHAIN.
6826 (alloc_type_instance): New function.
6827 (smash_type): New function.
6828 (make_pointer_type, make_reference_type, make_function_type)
6829 (smash_to_member_type, smash_to_method_type): Call smash_type.
6830 (make_qualified_type): New function.
6831 (make_type_with_address_space): Call make_qualified_type.
6832 (make_cv_type): Likewise.
6833 (finish_cv_type): Remove unnecessary function.
6834 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6835 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6836 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6837 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6838 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6839 * hpread.c (hpread_read_struct_type): Likewise.
6840 * stabsread.c (read_struct_type): Likewise.
6841
843fedf4
EZ
68422002-05-14 Elena Zannoni <ezannoni@redhat.com>
6843
6844 * configure.tgt: Add a catch all sh* target, for cases like
6845 sh[2,3,4]-elf and sh-hms.
6846
05a6c72c
KS
68472002-05-14 Keith Seitz <keiths@redhat.com>
6848
6849 * event-loop.c (create_file_handler): Don't do anything but
6850 update data when we are given a fd which we are already
6851 monitoring.
6852
5d085aaf
ML
68532002-05-14 Michal Ludvig <mludvig@suse.cz>
6854
6855 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6856 (update_context): Use __func__ in warnings.
6857
9db8d71f
DJ
68582002-05-14 Daniel Jacobowitz <drow@mvista.com>
6859
6860 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6861 and tcp_close to net_open and net_close.
6862 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6863 using UDP if requested. Don't try to disable Nagle on UDP
6864 sockets.
6865 * remote.c (remote_serial_open): New function. Warn about UDP.
6866 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6867
5dbc6baa
EZ
68682002-05-13 Elena Zannoni <ezannoni@redhat.com>
6869
6870 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6871
cc3023f7
EZ
68722002-05-13 Elena Zannoni <ezannoni@redhat.com>
6873
6874 * configure.tgt: Remove sh-hms target.
6875 * MAINTAINERS: Don't list sh-hms as a separate target.
6876
ec2bcbe7
JB
68772002-05-13 Jim Blandy <jimb@redhat.com>
6878
6879 Add first preprocessor macro-expansion files.
6880 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6881 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6882 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6883 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6884 (COMMON_OBS): Add macrotab.o, macroexp.o.
6885 (macroexp.o, macrotab.o): New rules.
6886
6d531722
AC
68872002-05-13 Andrew Cagney <ac131313@redhat.com>
6888
6889 * config/m88k/tm-m88k.h: Update copyright.
6890 (m88k_target_write_pc): Declare
6891 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6892 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6893 (SHIFT_INST_REGS): Update definition.
6894 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6895 using old definition of TARGET_WRITE_PC.
6896 * regcache.c (generic_target_write_pc): Delete code handling
6897 NNPC_REGNUM.
6898 * gdbarch.sh (NNPC_REGNUM): Delete.
6899 * gdbarch.h, gdbarch.c: Regenerate.
6900
3e3f2739
RE
69012002-05-13 Richard Earnshaw <rearnsha@arm.com>
6902
6903 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6904 builtin reg number.
6905
0004e5a2
DJ
69062002-05-13 Daniel Jacobowitz <drow@mvista.com>
6907
6908 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6909 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6910 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6911 access macros.
6912 * c-typeprint.c (cp_type_print_method_args): Likewise.
6913 (c_type_print_args): Likewise.
6914 * d10v-tdep.c (d10v_push_arguments): Likewise.
6915 (d10v_extract_return_value): Likewise.
6916 * expprint.c (print_subexp): Likewise.
6917 * gdbtypes.c (lookup_primitive_typename): Likewise.
6918 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6919 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6920 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6921 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6922 (TYPE_VECTOR): Likewise.
6923 * hpread.c (hpread_read_struct_type)
6924 (fix_static_member_physnames, fixup_class_method_type)
6925 (hpread_type_lookup): Likewise.
6926 * mdebugread.c (parse_symbol, parse_type): Likewise.
6927 * p-lang.c (is_pascal_string_type): Likewise.
6928 * valops.c (hand_function_call): Likewise.
6929 * x86-64-tdep.c (classify_argument): Likewise.
6930
6931 * hpread.c (hpread_read_function_type)
6932 (hpread_read_doc_function_type): Call replace_type.
6933 * dstread.c (create_new_type): Delete.
6934 (decode_dst_structure, process_dst_function): Call alloc_type.
6935 Use type access macros.
6936
dff95cc7
MK
69372002-05-12 Mark Kettenis <kettenis@gnu.org>
6938
6939 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6940 the're not supported by the current architecture.
6941 (i387_fill_fxsave): Likewise.
6942
bbcd32ad
FF
69432002-05-12 Fred Fish <fnf@redhat.com>
6944
6945 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6946 sect_index_xxx members to index the first slot in section_offsets
6947 if all of the section_offsets are zero.
6948
89cf4787
MK
69492002-05-12 Mark Kettenis <kettenis@gnu.org>
6950
6951 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6952 checked in with last change.
6953
1f77ffc5
MK
69542002-05-12 Mark Kettenis <kettenis@gnu.org>
6955
6956 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6957 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6958 config.sub.
6959
89b8b4a9
DJ
69602002-05-12 Daniel Jacobowitz <drow@mvista.com>
6961
6962 * Makefile.in: Update dependencies.
6963
14a5e767
AC
69642002-05-11 Andrew Cagney <ac131313@redhat.com>
6965
6966 * language.c (local_hex_string_custom): Simplify. Do not depend
6967 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6968
6969 * memattr.c (mem_info_command): Replace calls to
6970 longest_local_hex_string and longest_local_hex_string_custom.
6971 * buildsym.c (make_blockvector): Ditto.
6972 * solib.c (info_sharedlibrary_command): Ditto.
6973 * tracepoint.c (tracepoints_info): Ditto.
6974 * symtab.c (print_msymbol_info): Ditto.
6975
6976 * language.c (local_hex_string): Delete.
6977 (local_hex_string_custom): Delete.
6978 (longest_local_hex_string): Rename to local_hex_string.
6979 (longest_local_hex_string_custom): Rename to
6980 local_hex_string_custom.
6981 * language.h (local_hex_string): Change parameter type to LONGEST.
6982 (local_hex_string_custom): Ditto.
6983 (longest_local_hex_string): Delete declaration.
6984 (longest_local_hex_string_custom): Ditto.
6985
6986 * solib.c: Update copyright.
6987 * memattr.c: Update copyright.
6988
13d01224
AC
69892002-05-11 Andrew Cagney <ac131313@redhat.com>
6990
6991 * arch-utils.h (legacy_register_to_value): Declare.
6992 (legacy_value_to_register): Declare.
6993 (legacy_convert_register_p): Declare.
6994 * arch-utils.c (legacy_register_to_value): New function.
6995 (legacy_value_to_register): New function.
6996 (legacy_convert_register_p): New function.
6997
6998 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6999 (VALUE_TO_REGISTER): Define.
7000 (CONVERT_REGISTER_P): Define.
7001 * gdbarch.h, gdbarch.c: Regenerate.
7002
7003 * valops.c (value_assign): Use CONVERT_REGISTER_P and
7004 VALUE_TO_REGISTER.
7005 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7006 CONVERT_REGISTER_P.
7007
4a1970e4
DJ
70082005-05-11 Daniel Jacobowitz <drow@mvista.com>
7009 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7010
7011 * Makefile.in: Update dependencies for valops.c.
7012 * valops.c: Include "gdb_assert.h".
7013 (typecmp): Skip THIS parameter to methods.
7014 (find_method_list): Remove static_memfuncp argument,
7015 update callers. Check for stub methods.
7016 (find_value_oload_method_list): Don't set *static_memfuncp.
7017 (find_overload_match): Don't check for stub methods. Assert
7018 that methods are not stubbed. Handle static methods.
7019 (value_find_oload_method_list): Remove static_memfuncp argument.
7020 * gdbtypes.c (check_stub_method): Do not add THIS pointer
7021 to the argument list for static stub methods.
7022 * value.h (value_find_oload_method_list): Update prototype.
7023
b2e75d78
AC
70242002-05-11 Andrew Cagney <ac131313@redhat.com>
7025
7026 * arch-utils.h (generic_register_size): Declare.
7027 (generic_register_raw_size, generic_register_virtual_size): Delete
7028 declarations.
7029 * arch-utils.c (generic_register_raw_size): Delete.
7030 (generic_register_size): New function.
7031 (generic_register_virtual_size): Delete.
7032
7033 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7034 default generic_register_size.
7035 * gdbarch.h, gdbarch.c: Re-generate.
7036
7037 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7038 register_virtual_size.
7039 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7040 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7041
451fbdda
AC
70422002-05-11 Andrew Cagney <ac131313@redhat.com>
7043
7044 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7045 * gdbarch.h, gdbarch.c: Regenerate.
7046 * gnu-v3-abi.c: Update copyright.
7047 (vtable_address_point_offset): Update.
7048 (gnuv3_rtti_type): Update.
7049 (gnuv3_baseclass_offset): Update.
7050 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7051 (init_fetch_link_map_offsets): Update.
7052 * remote.c (get_remote_state): Update.
7053
6d2f5cea
DJ
70542002-05-11 Daniel Jacobowitz <drow@mvista.com>
7055
7056 * TODO: Remove value_headof/value_from_vtable_info comment.
7057 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7058 * values.c (value_headof, value_from_vtable_info): Delete.
7059 * value.h (value_from_vtable_info): Delete prototype.
7060
d2324da4
AC
70612002-05-11 Andrew Cagney <ac131313@redhat.com>
7062
7063 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7064 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7065 $(gdb_regex_h).
7066 (gdb_assert_h): Define.
7067 (gdb_wait_h): Define.
7068 (gdb_regex_h): Define.
7069
5c717440
DJ
70702002-05-11 Daniel Jacobowitz <drow@mvista.com>
7071
7072 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7073 * linespec.c (find_methods): Handle GCC 3.x template constructors.
7074
6c7861b3
JT
70752002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7076
7077 * nbsd-tdep.c: Fix comment.
7078
ea5bc2a6
JT
70792002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7080
7081 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7082 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7083 (nbsd-tdep.o): New dependency list.
7084 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
7085 nbsd-tdep.h.
7086 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7087 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7088 * nbsd-tdep.c: New file.
7089 * nbsd-tdep.h: New file.
7090 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
7091 nbsd-tdep.h.
7092 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7093 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7094 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7095 * config/sh/nbsd.mt (TDEPFILES): Ditto.
7096
b28da865
JT
70972002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7098
7099 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7100 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7101 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7102 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7103 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7104 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7105
4b8ff1fa
JT
71062002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7107
7108 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7109 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7110 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7111 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7112 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7113 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7114 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7115
dfe6eb1f
JT
71162002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7117
7118 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
7119 fetch_elfcore_registers to...
7120 * i386nbsd-tdep.c: ...here.
7121 (i386nbsd_use_struct_convention): Rename to...
7122 (i386nbsd_aout_use_struct_convention): ...this.
7123 (i386nbsd_supply_reg): New function.
7124 (i386nbsd_fill_reg): New function.
7125 (fetch_core_registers): Use i386nbsd_supply_reg.
7126 (fetch_elfcore_registers): Likewise.
7127 (_initialize_i386nbsd_tdep): New function.
7128 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7129 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7130 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7131 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7132 (i386nbsd_aout_use_struct_convention): ...this.
7133
20cb8cda
JT
71342002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7135
7136 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7137 (store_inferior_registers): Use shnbsd_fill_reg.
7138 * shnbsd-tdep.c (sh_nbsd_supply_registers,
7139 sh_nbsd_supply_register): Collapse into...
7140 (shnbsd_supply_reg): ...this.
7141 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7142 (shnbsd_fill_reg): ...this.
7143 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7144 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7145 (fetch_core_registers): Use shnbsd_supply_reg.
7146 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7147 (sh_nbsd_core_fns): Rename to...
7148 (shnbsd_core_fns): ...this.
7149 (sh_nbsd_elfcore_fns): Rename to...
7150 (shnbsd_elfcore_fns): ...this.
7151 (sh_nbsd_init_abi): Rename to...
7152 (shnbsd_init_abi): ...this.
7153 (_initialize_sh_nbsd_tdep): Rename to...
7154 (_initialize_shnbsd_tdep): ...this.
7155 * shnbsd-tdep.h (sh_nbsd_supply_registers,
7156 sh_nbsd_supply_register, sh_nbsd_fill_registers,
7157 sh_nbsd_fill_register): Remove prototypes.
7158 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7159
e750d25e
JT
71602002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7161
7162 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7163 (i387-nat.o): Delete dependency list.
7164 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7165 (x86-64-linux-nat.o): Likewise.
7166 * i387-nat.c: Delete file, moving contents to...
7167 * i387-tdep.c: ...here.
7168 * i387-nat.h: Rename...
7169 * i387-tdep.h: ...to this.
7170 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7171 * i386-linux-nat.c: Likewise.
7172 * i386bsd-nat.c: Likewise.
7173 * i386gnu-nat.c: Likewise.
7174 * i386nbsd-nat.c: Likewise.
7175 * i386v4-nat.c: Likewise.
7176 * x86-64-linux-nat.c: Likewise.
7177 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7178 * config/i386/go32.mh (NATDEPFILES): Likewise.
7179 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7180 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7181 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7182 * config/i386/linux.mh (NATDEPFILES): Likewise.
7183 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7184 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7185 * config/i386/obsd.mh (NATDEPFILES): Likewise.
7186 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7187
1aee598a
JT
71882002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7189
7190 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7191 (alphanbsd-nat.o): Remove dependency list.
7192 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7193 * alphanbsd-nat.c: Delete. Contents moved to...
7194 * alphanbsd-tdep.c: ...here.
7195 (_initialize_alphanbsd_tdep): Register core functions.
7196 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7197
12bcb0fe
JT
71982002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7199
7200 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7201 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7202 (alphanbsd-nat.o): Likewise.
7203 (alphabsd-tdep.o): New dependency list.
7204 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7205 (fill_gregset): Use alphabsd_fill_reg.
7206 (supply_fpregset): Use alphabsd_supply_fpreg.
7207 (fill_fpregset): Use alphabsd_fill_fpreg.
7208 (fetch_inferior_registers): Use struct reg and struct fpreg
7209 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7210 and alphabsd_supply_fpreg.
7211 (store_inferior_registers): Use struct reg and struct fpreg
7212 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7213 and alphabsd_fill_fpreg.
7214 * alphabsd-tdep.c: New file.
7215 * alphabsd-tdep.h: New file.
7216 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7217 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7218 alphabsd_supply_fpreg.
7219 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7220 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7221
361d1df0
EC
72222002-05-11 Eric Christopher <echristo@redhat.com>
7223
7224 * mips-tdep.c (mips_double_register_type): Fix thinko.
7225 (mips_single_register_type): Ditto.
7226 * MAINTAINERS: Add self.
7227
92dd7cee
MK
72282002-05-11 Mark Kettenis <kettenis@gnu.org>
7229
7230 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7231 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7232 right thing on architectures with different endianness and/or
7233 integer sizes.
7234
e27da16d
JT
72352002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7236
7237 From Christian Limpach <chris@Pin.LU>
7238 * configure.in: Change sed expression which comments out
7239 NATDEPFILES to also comment out continuation lines.
7240 * configure: Regenerate.
7241
ddde02bd
EZ
72422002-05-10 Elena Zannoni <ezannoni@redhat.com>
7243
7244 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7245 big patch.
7246
1c922164
EZ
72472002-05-10 Elena Zannoni <ezannoni@redhat.com>
7248
7249 * sh-tdep.c: Include correct file.
7250
283150cd
EZ
72512002-05-10 Elena Zannoni <ezannoni@redhat.com>
7252
7253 New support for sh64-elf (sh5) target.
7254
7255 * configure.tgt: For sh64-elf target, default to sh-elf.
7256
7257 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7258 (struct gdbarch_tdep): Add new fields for new registers and ABI
7259 info.
361d1df0 7260
283150cd
EZ
7261 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7262 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7263 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7264 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7265 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7266 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7267 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7268 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7269 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7270 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7271 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7272 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7273 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7274 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7275 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7276 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7277 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7278 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7279 sign_extend, sh64_nofp_frame_init_saved_regs,
7280 sh64_init_extra_frame_info, sh64_get_saved_register,
7281 sh64_extract_struct_value_address, sh64_pop_frame,
7282 sh64_push_arguments, sh64_extract_return_value,
7283 sh64_store_return_value, sh64_show_media_regs,
7284 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7285 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7286 sh_sh64_register_virtual_type,
7287 sh_sh64_register_convert_to_virtual,
7288 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7289 sh64_register_read, sh64_pseudo_register_write,
7290 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7291 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7292 sh64_do_pseudo_register, sh_compact_do_registers_info,
7293 sh64_do_registers_info, sh_gdbarch_init): New functions.
7294
3117ed25
EZ
72952002-05-10 Elena Zannoni <ezannoni@redhat.com>
7296
7297 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7298
2654e6d4
DJ
72992002-05-10 Daniel Jacobowitz <drow@mvista.com>
7300
7301 * linespec.c (decode_line_1): Check for a double quote after
7302 a filename correctly.
7303
9ab3e532
JB
73042002-05-10 Jim Blandy <jimb@redhat.com>
7305
7306 Properly track the size of the current objfile's .debug_line section.
7307 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7308 (DWARF_LINE_SIZE): New macro.
7309 (dwarf2_build_psymtabs_hard): Record the line section's size in
7310 the partial symbol table.
7311 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7312 symbol table.
7313
126fa72d
PS
73142002-05-10 Petr Sorfa <petrs@caldera.com>
7315
7316 * ia64-tdep.c: Handle breakpoints on L instruction type
7317 in MLX instruction bundle by moving the breakpoint to
7318 the third slot (X instruction type) as L holds only data.
7319
1f077a3e
KB
73202002-05-10 Kevin Buettner <kevinb@redhat.com>
7321
7322 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7323 (process_one_symbol): Complain about discarding local symbols
7324 due to a misplaced N_LBRAC entry.
7325
8120c9d5 73262002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
7327
7328 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
7329 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7330 decrease the depth we are at, in the case of templates.
361d1df0 7331
67b2c998
DJ
73322002-05-09 Daniel Jacobowitz <drow@mvista.com>
7333
7334 * mips-tdep.c (mips_float_register_type): New function.
7335 (mips_double_register_type): New function.
7336 (mips_print_register): Use them.
7337 (do_fp_register_row): Likewise.
7338
fd326606
DJ
73392002-05-09 Daniel Jacobowitz <drow@mvista.com>
7340
6609d9af 7341 * signals/signals.c (signals): Remove conditional compilation around
fd326606 7342 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 7343 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 7344
bef35864
MS
73452002-05-09 Michael Snyder <msnyder@redhat.com>
7346
7347 * remote-rdp.c (remote_rdp_can_run): Remove.
7348
c55a3f73
TT
73492002-05-09 Tom Tromey <tromey@redhat.com>
7350
7351 * jv-valprint.c (java_val_print): Handle `char' as a special case
7352 of TYPE_CODE_INT.
7353
b8d5e71d
MS
73542002-05-09 Michael Snyder <msnyder@redhat.com>
7355
7356 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7357 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 7358 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 7359 str r(0123),[sp,#nn].
361d1df0 7360 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
7361 order-independent by placing it in a loop.
7362
e2cd42dd
MS
73632002-05-06 Michael Snyder <msnyder@redhat.com>
7364
7365 * stabsread.c (read_type): Add recognition for new attribute:
7366 "@V;" means that an array type is actually a vector.
7367 This is analogous to the vector flag that's been added to dwarf2.
7368
3ce1502b
MK
73692002-05-09 Mark Kettenis <kettenis@gnu.org>
7370
7371 * i386-tdep.h (i386_abi): New enum.
7372 (struct gdbarch_tdep): Replace os_ident member with abi.
7373 (i386_gdbarch_register_os_abi): New prototype.
7374 * i386-tdep.c (i386_abi_names): New array.
7375 (process_note_abi_tag_sections): Removed.
7376 (process_note_sections): New function.
7377 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7378 (struct i386_abi_handler): New struct.
7379 (i386_abi_handler_list): New variable.
7380 (i386_gdbarch_register_os_abi): New function.
7381 (i386_gdbarch_init): Adapt for the changes given above.
7382
084c156a
DJ
73832002-05-08 Daniel Jacobowitz <drow@mvista.com>
7384
7385 * gregset.h: Say "GNU/Linux".
7386
6599f021
EZ
73872002-05-08 Elena Zannoni <ezannoni@redhat.com>
7388
7389 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7390 (build_gdbtypes): Build builtin_type_v2_float.
7391 (_initialize_gdbtypes): Register new builtin type.
7392
40af4b0c
AC
73932002-05-08 Andrew Cagney <ac131313@redhat.com>
7394
7395 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7396 (clear_gdbarch_swap): New function.
7397 (initialize_non_multiarch): Call.
7398 (gdbarch_update_p): Before calling init(), swap out and clear the
7399 existing architecture.
7400 * gdbarch.c: Regenerate.
7401
4fe84f46
JT
74022002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7403
7404 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7405 alphanbsd-tdep.c.
7406
4015edd1
JT
74072002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7408
7409 * sh-nbsd-nat.c: Rename to...
7410 * shnbsd-nat.c: ...this.
7411 * sh-nbsd-tdep.c: Rename to...
7412 * shnbsd-tdep.c: ...this.
7413 * sh-nbsd-tdep.h: Rename to...
7414 * shnbsd-tdep.h: ...this.
7415 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7416 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7417
0e2bd219
RE
74182002-05-08 Richard Earnshaw <rearnsha@arm.com>
7419
7420 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7421 concatenation for command help messages.
7422
13a38d45
JT
74232002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7424
7425 * NEWS: Note new sh*-*-netbsdelf* configuration.
7426 * configure.host: Set gdb_host_cpu to sh for all sh*.
7427 (sh*-*-netbsdelf*): New host.
7428 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7429 (sh*-*-netbsdelf*): New target.
7430 * sh-nbsd-nat.c: New file.
7431 * sh-nbsd-tdep.c: New file.
7432 * sh-nbsd-tdep.h: New file.
7433 * config/sh/nbsd.mh: New file.
7434 * config/sh/nbsd.mt: New file.
7435 * config/sh/nm-nbsd.h: New file.
7436 * config/sh/tm-nbsd.h: New file.
7437
d658f924
JT
74382002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7439
7440 * sh-tdep.c (sh_osabi_names): Declare.
7441 (process_note_abi_tag_sections): New function.
7442 (get_elfosabi): Ditto.
7443 (sh_gdbarch_register_os_abi): Ditto.
7444 (sh_dump_tdep): Ditto.
7445 _initialize_sh_tdep): Use gdbarch_register to register
7446 sh_gdbarch_init and sh_dump_tdep.
7447 * config/sh/tm-sh.h (sh_osabi): Declare.
7448 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7449
848cfffb
AC
74502002-05-07 Andrew Cagney <ac131313@redhat.com>
7451
7452 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7453 (thumb_scan_prologue): Ditto.
7454 (arm_find_callers_reg): Ditto.
7455 (arm_frame_chain): Ditto.
7456 (arm_init_extra_frame_info): Ditto.
7457 (arm_frame_saved_pc): Ditto.
7458 (arm_pop_frame): Ditto.
7459 (arm_push_return_address): New function.
7460 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7461 call_dummy_location, call_dummy_breakpoint_offset_p,
7462 call_dummy_breakpoint_offset, call_dummy_p,
7463 call_dummy_stack_adjust_p, call_dummy_words,
7464 sizeof_call_dummy_words, call_dummy_start_offset,
7465 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7466 call_dummy_address, push_return_address and push_dummy_frame for
7467 generic dummy frames.
7468
e7d717c0
JT
74692002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7470
7471 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7472 size computation for alloca.
7473 (sh_fp_frame_init_saved_regs): Likewise.
7474
7bbcf283
RE
74752002-05-07 Richard Earnshaw <rearnsha@arm.com>
7476
7477 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7478 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 7479 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
7480 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7481 * remote-rdp.c (remote_rdp_fetch_register): Use
7482 ARM_MAX_REGISTER_RAW_SIZE.
7483 (remote_rdp_store_register): Likewise.
7484
4657573b
ML
74852002-05-07 Michal Ludvig <mludvig@suse.cz>
7486
361d1df0 7487 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
7488 added default labels to switch {} statements.
7489 * x86-64-tdep.c: Ditto.
7490 * x86-64-linux-nat.c: Ditto.
7491
010f3b2f
JT
74922002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7493
7494 * solib.h: Protect against multiple inclusion.
7495
debd256d
JB
74962002-05-06 Jim Blandy <jimb@redhat.com>
7497
9ab3e532
JB
7498 Add first preprocessor macro-expansion files.
7499 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7500 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7501 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7502 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7503 (COMMON_OBS): Add macrotab.o, macroexp.o.
7504 (macroexp.o, macrotab.o): New rules.
7505
debd256d
JB
7506 Separate the job of reading the line number info statement program
7507 header (...expialidocious) out into its own function.
7508 * dwarf2read.c (struct line_head, struct filenames, struct
7509 directories): Replace with...
7510 (struct line_header): New structure, containing the full
7511 contents of the statement program header, including the
7512 include directory and file name tables.
7513 (read_file_scope): If we have line number info, instead of just
7514 calling dwarf_decode_lines to do all the work, call
7515 dwarf_decode_line_header first to get a `struct line_header'
7516 containing the data in the statement program header, and then
7517 pass that to dwarf_decode_lines, which will pick up where that
7518 left off. Be sure to clean up the `struct line_header' object.
7519 (dwarf_decode_line_header, free_line_header, add_include_dir,
7520 add_file_name): New functions.
7521 (dwarf_decode_lines): Move all the code to read the statement
7522 program header into dwarf_decode_line_header. Take the line
7523 header it built as the first argument, instead of the offset to
7524 the compilation unit's line number info. Use the new `struct
7525 line_header' type instead of the old structures. No need to do
7526 cleanups here now, since we don't allocate anything.
7527 (dwarf2_statement_list_fits_in_line_number_section,
7528 dwarf2_line_header_too_long): New complaints.
7529
ac3aafc7
EZ
75302002-05-06 Elena Zannoni <ezannoni@redhat.com>
7531
7532 * gdbtypes.c (init_vector_type): New function.
7533 (build_builtin_type_vec128): Simplify the representation of SIMD
7534 registers.
7535 (build_gdbtypes): Initialize new builtin vector types.
7536 (_initialize_gdbtypes): Register new vector types with gdbarch.
7537 (builtin_type_v4_float, builtin_type_v4_int32,
7538 builtin_type_v8_int16, builtin_type_v16_int8,
7539 builtin_type_v2_int32, builtin_type_v4_int16,
7540 builtin_type_v8_int8): New (renamed) SIMD types.
7541
13e49980
MK
75422002-05-06 Mark Kettenis <kettenis@gnu.org>
7543
7544 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7545 (i387_fill_fxsave): Likewise.
7546
997b20b8
AO
75472002-05-05 Alexandre Oliva <aoliva@redhat.com>
7548
7549 * alpha-tdep.c (alpha_extract_return_value): Don't use
7550 non-constant array size in prototype.
7551
535c96ce
AC
75522002-05-04 Andrew Cagney <ac131313@redhat.com>
7553
7554 From Brian Taylor <briant at model dot com>:
7555 * ui-out.c (ui_out_field_core_addr): Use the function
7556 longest_local_hex_string_custom'to format addresses > 32 bits
7557 wide.
7558
7559 * ui-out.c (ui_out_field_core_addr): Update comment.
7560
bedfa57b
AC
75612002-05-04 Andrew Cagney <ac131313@redhat.com>
7562
7563 * stack.c (select_and_print_frame): Make static. Delete the
7564 parameter `level'.
7565 (func_command): Update call.
7566 (select_frame_command): Delete code computing the frame level.
7567 * frame.h (select_and_print_frame): Delete declaration.
7568
f621c63e
AC
75692002-05-04 Andrew Cagney <ac131313@redhat.com>
7570
7571 * sparc-tdep.c (sparc_get_saved_register): Comment why
7572 get_prev_frame call is safe.
7573
0f7d239c
AC
75742002-05-04 Andrew Cagney <ac131313@redhat.com>
7575
7576 * frame.h (select_frame): Delete level parameter.
7577 * stack.c (select_frame): Update. Use frame_relative_level to
7578 obtain the frame's level.
7579 (select_and_print_frame): Update call.
7580 (select_frame_command): Ditto.
7581 (up_silently_base): Ditto.
7582 (down_silently_base): Ditto.
7583 * ocd.c (ocd_start_remote): Ditto.
7584 * remote-rdp.c (remote_rdp_open): Ditto.
7585 * remote-mips.c (mips_initialize): Ditto.
7586 (common_open): Ditto.
7587 * remote-e7000.c (e7000_start_remote): Ditto.
7588 * m3-nat.c (select_thread): Ditto.
7589 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7590 (child_get_current_exception_event): Ditto.
7591 * varobj.c (varobj_create): Ditto.
7592 (varobj_update): Ditto.
7593 (c_value_of_root): Ditto.
7594 * tracepoint.c (finish_tfind_command): Ditto.
7595 * corelow.c (core_open): Ditto.
7596 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7597 * thread.c (info_threads_command): Ditto.
7598 (switch_to_thread): Ditto.
7599 * infrun.c (normal_stop): Ditto.
7600 (restore_selected_frame): Ditto.
7601 (restore_inferior_status): Ditto.
7602 * breakpoint.c (insert_breakpoints): Ditto.
7603 (watchpoint_check): Ditto.
7604 (bpstat_stop_status): Ditto.
7605 (do_enable_breakpoint): Ditto.
7606 * blockframe.c (flush_cached_frames): Ditto.
7607 (reinit_frame_cache): Ditto.
7608
71d6c7b1
AC
76092002-05-04 Andrew Cagney <ac131313@redhat.com>
7610
7611 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7612 maintainer.
7613
cda6c68a
JB
76142002-05-04 Jim Blandy <jimb@redhat.com>
7615
7616 * gdbtypes.c (replace_type): Doc fix.
7617
5c1c87f0
AC
76182002-05-04 Andrew Cagney <ac131313@redhat.com>
7619
7620 * valprint.c (strcat_longest): Delete commented out function.
7621 Update copyright.
7622
cd9bfe15
AC
76232002-05-04 Andrew Cagney <ac131313@redhat.com>
7624
7625 * MAINTAINERS: Mark a29k as deleted.
7626 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7627 Move new configurations to the top.
7628 * configure.tgt: Remove a29k.
7629 * config/a29k/tm-vx29k.h: Delete.
7630 * config/a29k/vx29k.mt: Delete.
7631 * config/a29k/tm-a29k.h: Delete.
7632 * config/a29k/a29k-udi.mt: Delete.
7633 * config/a29k/a29k.mt: Delete.
7634 * a29k-tdep.c: Delete.
7635 * remote-udi.c: Delete.
7636 * remote-mm.c: Delete.
7637 * remote-eb.c: Delete.
7638 * remote-adapt.c: Delete.
7639 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
7640 * config/s390/s390x.mt: Ditto.
7641 * config/s390/s390.mt: Ditto.
7642 * config/sparc/sparclynx.mh: Ditto.
7643 * config/sparc/linux.mh: Ditto.
7644 * config/pa/hppaosf.mh: Ditto.
7645 * config/pa/hppabsd.mh: Ditto.
7646 * config/ns32k/nbsd.mt: Ditto.
7647 * config/mips/vr5000.mt: Ditto.
7648 * config/m68k/sun3os4.mh: Ditto.
7649 * config/m68k/nbsd.mt: Ditto.
7650 * config/m68k/m68klynx.mh: Ditto.
7651 * config/m32r/m32r.mt: Ditto.
7652 * config/i386/x86-64linux.mt: Ditto.
7653 * config/i386/nbsdelf.mt: Ditto.
7654 * config/i386/nbsd.mt: Ditto.
7655 * config/i386/i386lynx.mh: Ditto.
7656
bf0c5130
AC
76572002-05-04 Andrew Cagney <ac131313@redhat.com>
7658
7659 * target.c (debug_print_register): New function. Handle oversize
7660 registers.
7661 (debug_to_fetch_registers): Call.
7662 (debug_to_store_registers): Call.
7663
2ae1c2d2
JB
76642002-05-03 Jim Blandy <jimb@redhat.com>
7665
13a393b0
JB
7666 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7667 (read_type): Doc fix.
7668 * gdbtypes.c (replace_type): Doc fix.
7669
2ae1c2d2
JB
7670 * stabsread.c (multiply_defined_struct): New complaint.
7671 (read_struct_type): If the type we were passed isn't empty, or
7672 incomplete, don't read the new struct type into it; complain,
7673 and return the original type unchanged. Take a new `type_code'
7674 argument, which is the type code for the new type.
7675 (read_type): Rather than storing the type's type code here, pass
7676 it as an argument to read_struct_type, and let that take care of
7677 storing it. That way, we don't overwrite the original type code,
7678 so read_struct_type can use it to decide whether we're overwriting
7679 something we shouldn't.
7680 (complain_about_struct_wipeout): New function.
7681
8de9bdc4
AC
76822002-05-03 Andrew Cagney <ac131313@redhat.com>
7683
7684 * gdbarch.sh: Assert that gdbarch is non-NULL.
7685 * gdbarch.c: Regenerate.
7686
f773fdbb
JM
76872002-05-03 Jason Merrill <jason@redhat.com>
7688
7689 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7690 and return NULL.
7691
0e04a514
ML
76922002-05-03 Michal Ludvig <mludvig@suse.cz>
7693
7694 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7695 (x86_64_dwarf2gdb_regno_map_length),
7696 (x86_64_dwarf2_reg_to_regnum): Added.
7697 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7698 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7699 (_initialize_x86_64_tdep): Synced with the change above.
7700 (x86_64_skip_prologue): Reformulated message.
7701
065432a8
PM
77022002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7703
7704 * f-exp.y: Also use new prev_lexptr variable
7705 to improve error reporting. Based on Michael Snyder
7706 2002-04-24 dated patch to c-exp.y.
7707 * jv-exp.y: Likewise.
7708 * m2-exp.y: Likewise.
7709
a3162708
EZ
77102002-05-02 Elena Zannoni <ezannoni@redhat.com>
7711
7712 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7713 we are dealing with vectors.
7714
03620c38
PM
77152002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7716
7717 * config/m68k/tm-nbsd.h: Obvious fix,
7718 correct machine name.
7719
6604db2e
PM
77202002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7721
7722 * p-typeprint.c (pascal_type_print_base): Add support
7723 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7724
0906b739
PM
77252002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7726
7727 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7728 for fondamental pascal 'char' type.
7729
e2625b33
PM
77302002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7731
7732 * p-lang.h (is_pascal_string_type): Declaration changed,
7733 new sixth argument of type char ** added.
361d1df0 7734 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
7735 changed. Args length_pos, length_size, string_pos, char_size
7736 can now be NULL. New argument arrayname set to the field
7737 name of the char array. Return value set to char array
7738 field index plus one.
361d1df0 7739 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
7740 is_pascal_string_type function.
7741
cf17c188
AC
77422002-05-02 Andrew Cagney <cagney@redhat.com>
7743
7744 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7745 <cagney@redhat.com> change.
7746 * gdbarch.c: Regenerate.
7747
52bca491
AC
77482002-05-02 Andrew Cagney <cagney@redhat.com>
7749
7750 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7751 before probing for a new one. Detect errorenous gdbarch_init
7752 functions.
7753 * gdbarch.c: Regenerate.
7754
d5e72505
AC
77552002-05-01 Andrew Cagney <cagney@redhat.com>
7756
7757 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7758 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7759 * config/v850/tm-v850.h: Ditto. Update copyright.
7760
af566d9f
AC
77612002-04-30 Andrew Cagney <ac131313@redhat.com>
7762
7763 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7764 current_gdbarch.
7765
880d85fa
MS
77662002-04-30 Michael Snyder <msnyder@redhat.com>
7767
94c30b78
MS
7768 * arm-tdep.c: Whitespace clean-ups.
7769 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7770 should have been removed as part of 4/24 change.
7771
6f5987a6
KB
77722002-04-30 Kevin Buettner <kevinb@redhat.com>
7773
7774 * rs6000-tdep.c: Added comment describing how fpscr register
7775 numbers were chosen.
7776
1a113c93
MS
77772002-04-30 Michael Snyder <msnyder@redhat.com>
7778
7779 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7780
9a6f53fe
EZ
77812002-04-29 Elena Zannoni <ezannoni@redhat.com>
7782
7783 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7784 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7785 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7786
11ed25ac
KB
77872002-04-29 Kevin Buettner <kevinb@redhat.com>
7788
7789 From Louis Hamilton <hamilton@redhat.com>:
7790 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7791 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7792 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7793 not bfd-private xcoff data, to determine wordsize.
7794 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7795
ae232405
AC
77962002-04-29 Andrew Cagney <ac131313@redhat.com>
7797
7798 GDB 5.2 released from 5.2 branch.
7799
91fd20f7
ML
78002002-04-29 Michal Ludvig <mludvig@suse.cz>
7801
7802 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7803 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7804 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7805
2dc5091b
EZ
78062002-04-29 Elena Zannoni <ezannoni@redhat.com>
7807
7808 * rs6000-tdep.c (rs6000_extract_return_value,
7809 rs6000_store_return_value): Handle returning vectors.
7810 (rs6000_gdbarch_init): Use
7811 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7812 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7813 New function.
7814 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7815 vectors.
7816 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7817 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7818
2b9848d8
PM
78192002-04-24 Pierre Muller <ics.u-strasbg.fr>
7820
7821 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7822 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7823 with fprintf_unfiltered (gdb_stderr,...).
7824
f8d17dc5
PM
78252002-04-24 Pierre Muller <ics.u-strasbg.fr>
7826
7827 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7828 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7829 Replace fprintf (stderr,...
7830 with fprintf_unfiltered (gdb_stderr,....
7831 * remote-es.c: Likewise.
7832 * remote-os9k.c: Likewise.
7833 * remote-st.c: Likewise.
7834
2f2f1ad1
AS
78352002-04-28 Andreas Schwab <schwab@suse.de>
7836
7837 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7838 linux-proc.o and gcore.o.
7839
b6779aa2
AC
78402002-04-26 Michal Ludvig <mludvig@suse.cz>
7841
7842 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7843 code without frame pointers.
7844
7e57f5f4
AC
78452002-04-26 Andrew Cagney <ac131313@redhat.com>
7846
7847 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7848 ON_STACK is needed.
7849
2ceb85d0
BE
78502002-04-26 Ben Elliston <bje@redhat.com>
7851
7852 * target.c (do_xfer_memory): Correct reference to the new option
7853 "trust-readonly-sections".
7854
f5f8a009
EZ
78552002-04-26 Elena Zannoni <ezannoni@redhat.com>
7856
7857 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7858 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7859 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7860 vectors.
7861 (read_array_type): Record the fact that this array type is really a
7862 vector (i.e. are passed in by value).
7863
5868c862
JT
78642002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7865
7866 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7867 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7868 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7869 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7870 * alpha-linux-tdep.c: Include frame.h.
7871 (alpha_linux_sigcontext_addr): New function.
7872 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7873 alpha_linux_sigcontext_addr.
7874 * alpha-osf1-tdep.c: Include gdbcore.h.
7875 (alpha_osf1_sigcontext_addr): New function.
7876 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7877 alpha_osf1_sigcontext_addr.
7878 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7879 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7880
bfb01f37
AC
78812002-04-26 Andrew Cagney <ac131313@redhat.com>
7882
361d1df0 7883 * stack.c (selected_frame_level):
bfb01f37
AC
7884 (select_frame): Do not set selected_frame_level.
7885 * frame.h (selected_frame_level): Delete declaration.
7886
15813d3f
AC
78872002-04-26 Andrew Cagney <ac131313@redhat.com>
7888
7889 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7890 convert_from_func_ptr-addr when AIX / PowerOpen.
7891
6096c27a
AC
78922002-04-25 Andrew Cagney <ac131313@redhat.com>
7893
7894 * valops.c (hand_function_call): Call
7895 generic_save_call_dummy_addr.
7896 * frame.h (generic_save_call_dummy_addr): Declare.
7897 * blockframe.c (struct dummy_frame): Add fields call_lo and
7898 call_hi.
7899 (generic_find_dummy_frame): Check for PC in range call_lo to
7900 call_hi instead of entry_point_address.
7901 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7902 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7903 (generic_save_call_dummy_addr): New function.
7904
f510d44e
DM
79052002-04-24 David S. Miller <davem@redhat.com>
7906
7907 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7908 sparc_skip_prologue.
7909 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7910 information to find prologue when possible.
7911 (sparc_prologue_frameless_p): Call examine_prologue directly.
7912 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7913 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7914 second argument.
7915 (SKIP_PROLOGUE): Likewise.
7916
15d72a92
JT
79172002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7918
7919 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7920 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7921 indicate that the condition it was testing is always true.
7922 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7923 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7924 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7925
accc6d1f
JT
79262002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7927
7928 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7929 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7930 tdep->jb_pc and tdep->jb_elt_size.
7931 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7932 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7933 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7934 * alpha-nat.c (get_longjmp_target): Remove.
7935 (JB_ELEMENT_SIZE): Ditto.
7936 (JB_PC): Ditto.
7937 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7938 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7939 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7940 to alpha_get_longjmp_target.
7941 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7942 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7943 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7944
1bfdc549
AC
79452002-04-25 Andrew Cagney <ac131313@redhat.com>
7946
7947 * README: Update to GDB 5.2.
7948
1bd316f0
AC
79492002-04-25 Andrew Cagney <ac131313@redhat.com>
7950
7951 * gdbarch.sh (LC_ALL): Set to `c'.
7952
2e5ff58c
TR
79532002-04-25 Theodore A. Roth <troth@verinet.com>
7954
7955 * avr-tdep.c: Ran through gdb_indent.sh.
7956
e33ce519
TR
79572002-04-25 Theodore A. Roth <troth@verinet.com>
7958
7959 * MAINTAINERS: Add myself as AVR maintainer.
7960 * NEWS: Note new target avr.
7961
8818c391
TR
79622002-04-25 Theodore A. Roth <troth@verinet.com>
7963
7964 * Makefile.in: Add support for AVR target.
7965 * configure.tgt: Add support for AVR target.
7966 * avr-tdep.c: New file
7967 * config/avr/avr.mt: New file.
7968
79509c2d
TR
79692002-04-25 Theodore A. Roth <troth@verinet.com>
7970
7971 * MAINTAINERS: Add myself to write-after-approval.
7972
dac8068e
PM
79732002-04-24 Pierre Muller <ics.u-strasbg.fr>
7974
7975 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7976 with fprintf_unfiltered (gdb_stderr,....
7977
25bf3106
PM
79782002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7979
7980 Fix PR gdb/508.
7981 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7982
24467a86
PM
79832002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7984
7985 * p-exp.y: Also use new prev_lexptr variable
7986 to improve error reporting. Based on Michael Snyder
7987 2002-04-24 dated patch to c-exp.y.
7988
95b80706
JT
79892002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7990
7991 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7992 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7993 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7994 to 0.
7995 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7996 and struct value.
7997 (FUNCTION_START_OFFSET): Remove.
7998 (BREAKPOINT): Ditto.
7999
e90cc612
JT
80002002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8001
8002 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8003 * NEWS: Ditto.
8004
6c72f9f9
JT
80052002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8006
8007 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8008 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8009 alpha_linux_pc_in_sigtramp.
8010 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8011 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8012 alpha_osf1_pc_in_sigtramp.
8013 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8014 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8015 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8016 alphafbsd_pc_in_sigtramp.
8017 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8018 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8019 alphanbsd_pc_in_sigtramp.
8020 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8021 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8022
5e4f3379
JT
80232002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8024
8025 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8026
da8ca43d
JT
80272002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8028
8029 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8030 alphanbsd-tdep.c.
8031 (alphanbsd-nat.o): New dependency list.
8032 (alphanbsd-tdep.o): Ditto.
8033 * NEWS: Note new native NetBSD/alpha configuration.
8034 * alphanbsd-nat.c: New file.
8035 * alphanbsd-tdep.c: Ditto.
8036 * configure.host (alpha*-*-netbsd*): New host.
8037 * configure.tgt (alpha*-*-netbsd*): New target.
8038 * config/alpha/nbsd.mh: New file.
8039 * config/alpha/nbsd.mt: Ditto.
8040 * config/alpha/nm-nbsd.h: Ditto.
8041 * config/alpha/tm-nbsd.h: Ditto.
8042
36a6271d
JT
80432002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8044
8045 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8046 (alpha-osf1-tdep.o): New dependency list.
8047 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8048 and skip_sigtramp_frame members.
8049 * alpha-linux-tdep.c: Include gdbcore.h.
8050 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8051 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8052 * alpha-osf1-tdep.c: New file.
8053 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8054 alpha-osf1-dep.c.
8055 (alpha_frame_past_sigtramp_frame): New function.
8056 (alpha_dynamic_sigtramp_offset): Ditto.
8057 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8058 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8059 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8060 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8061 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8062 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8063 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8064 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8065 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8066 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8067 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
8068 to find_solib_trampoline_target.
8069 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8070 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8071 (SKIP_TRAMPOLINE_CODE): Remove.
8072 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8073 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8074 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8075 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8076 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8077 (PROC_SIGTRAMP_MAGIC): Ditto.
8078 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8079 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8080 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8081 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8082 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8083
2f4bc57b
JT
80842002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8085
8086 * NEWS: Note that Alpha targets are now multi-arch.
8087
665132f9
MS
80882002-04-24 Michael Snyder <msnyder@redhat.com>
8089
8090 * parser-defs.h (prev_lexptr): New external variable.
8091 * parse.c (parse_exp_1): Set prev_lexptr to null before
8092 calling the language-specific parser.
8093 * c-exp.y (yylex): Set prev_lexptr to start of current token.
8094 (yyerror): Use prev_lexptr in error reporting.
8095
32872fa7
DJ
80962002-04-24 Daniel Jacobowitz <drow@mvista.com>
8097
8098 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8099 * gregset.h: If FILL_FPXREGSET is defined, provide
8100 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8101 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8102 is defined, call fill_fpxregset.
8103
57e76fac
MS
81042002-04-24 Roland McGrath <roland@frob.com>
8105
8106 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8107 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8108 (supply_gregset, supply_fpregset): New functions.
8109
8110 * gnu-nat.c (gnu_find_memory_regions): New function.
8111 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8112 (gnu_xfer_memory): Add a cast.
8113
f43845b3
MS
81142002-04-24 Michael Snyder <msnyder@redhat.com>
8115
361d1df0 8116 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
8117 loop. Add handling for "str lr, [sp, #-4]!" and for saves
8118 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 8119 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
8120 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
8121 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8122
a0abec03
AC
8123Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
8124
8125 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8126 NUM_PSEUDO_REGS can be used.
8127
d7bd68ca
AC
81282002-04-24 Andrew Cagney <ac131313@redhat.com>
8129
8130 * arch-utils.h: Update copyright.
8131
8132 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8133 * gdbarch.h, gdbarch.c: Re-generate.
8134
8135 * inferior.h (IN_SIGTRAMP): Delete definition.
8136 * arch-utils.c (legacy_pc_in_sigtramp): New function.
8137 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8138
8139 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8140 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8141 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
8142 (find_proc_framesize): Ditto.
8143 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8144 (alpha_init_extra_frame_info): Ditto.
8145 * infrun.c (handle_inferior_event): Ditto.
8146 (handle_inferior_event): Ditto.
8147 (check_sigtramp2): Ditto.
8148 * blockframe.c (create_new_frame): Ditto.
8149 (get_prev_frame): Ditto.
8150 * ppc-linux-tdep.c: Update comments.
8151 * i386-linux-tdep.c: Update comments.
8152 * breakpoint.c (bpstat_what): Update comment.
8153
4867e41e
DM
81542002-04-24 David S. Miller <davem@redhat.com>
8155
21d83aa5
DM
8156 * i960-tdep.c (register_in_window_p): New function.
8157 (i960_find_saved_register): Use it instead of
8158 REGISTER_IN_WINDOW_P.
8159 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8160
4867e41e
DM
8161 * symtab.h (find_stab_function_addr): Kill extern.
8162 * minsyms.c (find_stab_function_addr): Remove from here...
8163 * dbxread.c: ... to here, and mark it static.
8164
69cdf6a2
DM
81652002-04-20 David S. Miller <davem@redhat.com>
8166
8167 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8168 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8169
5a595886
DM
81702002-04-21 David S. Miller <davem@redhat.com>
8171
8172 * remote-vxsparc.c (vx_read_register): Fix typo, we want
8173 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8174 (vx_write_register): Likewise.
8175
1da1a192
JB
81762002-04-23 J. Brobecker <brobecker@gnat.com>
8177
8178 * source.c (is_regular_file): New function.
8179 (openp): Check wether file to open is a regular file
8180 to avoid opening directories.
8181
baa6f10b
JT
81822002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8183
8184 * findvar.c (extract_signed_integer): Cast printf argument
8185 to suppress format warning.
8186 (extract_unsigned_integer): Likewise.
8187 * infcmd.c (registers_info): Likewise.
8188 * top.c (get_prompt_1): Likewise.
8189 * valops.c (value_assign): Likewise.
8190 * valprint.c (print_decimal): Likewise.
8191
b2c4da81
L
81922002-04-22 H.J. Lu (hjl@gnu.org)
8193
8194 * c-exp.y (typebase): Support
361d1df0 8195
b2c4da81
L
8196 [long|long long|short] [signed|unsigned] [int|]
8197
8198 and
8199
8200 signed [long|long long|short] int
8201
f267bd6a
JT
82022002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8203
8204 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8205 and vax-tdep.h.
8206 * vax-tdep.h: New file.
8207 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8208 Make several routines static.
8209 (vax_get_saved_register): New function.
8210 (vax_gdbarch_init): New function.
8211 (_initialize_vax_tdep): Register vax_gdbarch_init.
8212 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8213 Remove macros now under the control of gdbarch.
8214
da3c6d4a
MS
82152002-04-22 Michael Snyder <msnyder@redhat.com>
8216
11d3b27d
MS
8217 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8218 Some whitespace and coding standards tweaks.
da3c6d4a 8219
a33f7558
JT
82202002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8221
8222 * vax-tdep.c: Include regcache.h.
8223 (vax_call_dummy_words): New.
8224 (sizeof_vax_call_dummy_words): New.
8225 (vax_fix_call_dummy): New function.
8226 (vax_saved_pc_after_call): Ditto.
8227 * config/vax/tm-vax.h: Don't include regcache.h.
8228 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8229 (CALL_DUMMY): Remove.
8230 (CALL_DUMMY_WORDS): Define.
8231 (SIZEOF_CALL_DUMMY_WORDS): Define.
8232 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8233
47a73475
MS
82342002-04-18 Michael Snyder <msnyder@redhat.com>
8235
8236 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8237
52efde73
JT
82382002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8239
8240 * vax-tdep.c (vax_frame_chain): New function.
8241 (vax_push_dummy_frame): Ditto.
8242 (vax_pop_frame): Ditto.
8243 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8244 (FRAMELESS_FUNCTION_INVOCATION): Use
8245 generic_frameless_function_invocation_not.
8246 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8247 (POP_FRAME): Use vax_pop_frame.
8248
ea74468c
JT
82492002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8250
8251 * vax-tdep.c (vax_store_struct_return): New function.
8252 (vax_extract_return_value): Ditto.
8253 (vax_store_return_value): Ditto.
8254 (vax_extract_struct_value_address): Ditto.
8255 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8256 vax_store_struct_return.
8257 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8258 (STORE_RETURN_VALUE): Use vax_store_return_value.
8259 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8260
5516aa92
JT
82612002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8262
8263 * vax-tdep.c (vax_frame_saved_pc): New function.
8264 (vax_frame_args_address_correct): Ditto.
8265 (vax_frame_args_address): Ditto.
8266 (vax_frame_locals_address): Ditto.
8267 (vax_frame_num_args): Move code to be in proximity to
8268 other frame-related functions.
8269 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8270 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8271 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8272 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8273 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8274
36af0b35
L
82752002-04-22 H.J. Lu (hjl@gnu.org)
8276
8277 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8278 includedir.
8279
ab62c900
JT
82802002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8281
8282 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8283 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8284 (FRAME_INIT_SAVED_REGS): New macro.
8285
7232b100
JT
82862002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8287
8288 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8289
b70d2aee
JT
82902002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8291
8292 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8293 where needed.
8294 (fetch_osf_core_registers): Likewise.
8295 (supply_gregset): Likewise.
8296
a0e8a2d1 82972002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 8298
a0e8a2d1
JB
8299 * symfile.h (get_section_index): Define.
8300 * symfile.c (get_section_index): New function.
8301 * mdebugread.c (SC_IS_SBSS): New macro.
8302 (SC_IS_BSS): Return true for the scBss storage class only, as
8303 the scSBss storage class refers to the .sbss section.
8304 (parse_partial_symbols): Discard the symbols which associated
8305 section does not exist.
8306 Make sure to use the .sbss section index for symbols which
8307 storage class is scBss, rather than using the .bss section index.
8308
51eb8b08
JT
83092002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8310
8311 * vax-tdep.c: Update copyright years.
8312 (vax_register_name): New function.
8313 (vax_register_byte): Ditto.
8314 (vax_register_raw_size): Ditto.
8315 (vax_register_virtual_size): Ditto.
8316 (vax_register_virtual_type): Ditto.
8317 * config/vax/tm-vax.h: Update copyright years.
8318 (REGISTER_NAMES): Remove.
8319 (REGISTER_NAME): Define.
8320 (REGISTER_BYTE): Use vax_register_byte.
8321 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8322 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8323 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8324
6cc1c0a8
AC
83252002-04-21 Andrew Cagney <ac131313@redhat.com>
8326
8327 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8328 declaration
8329 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8330
9319a2fe
DM
83312002-04-21 David S. Miller <davem@redhat.com>
8332
8333 * arch-utils.c (generic_prologue_frameless_p): Kill
8334 SKIP_PROLOGUE_FRAMELESS_P code.
8335 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8336 references.
8337 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8338 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8339 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8340 references.
8341 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8342 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8343 (sparc_gdbarch_init): Pass it to
8344 set_gdbarch_prologue_frameless_p.
a0e8a2d1 8345
e9ed6d01
JT
83462002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8347
8348 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8349 (alphabsd-nat.o): New dependency list.
8350
36012033
JT
83512002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8352
8353 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8354 alphafbsd-tdep.c.
8355 (alpha-linux-tdep.o): New dependency list.
8356 (alphafbsd-tdep.o): Likewise.
8357
3379287a
JT
83582002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8359
8360 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8361 to here...
8362 * alpha-tdep.c: ...from here.
8363 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8364
4bcbd6cb
JT
83652002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8366
8367 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8368 prototype from here...
8369 * alpha-tdep.h: ...to here.
8370
b31da25e
AC
83712002-04-21 Andrew Cagney <ac131313@redhat.com>
8372
8373 * frame.h (selected_frame_level): Document as deprecated.
8374 (frame_relative_level): Declare.
8375 * stack.c (frame_relative_level): New function.
8376 (selected_frame_level): Document as deprecated.
8377 (select_frame): Do not set the selected_frame_level.
8378
8379 * stack.c (frame_info, record_selected_frame): Update.
8380 (frame_command, current_frame_command): Update.
8381 (up_silently_base, up_command, down_silently_base): Update.
8382 (down_command): Update.
8383 * inflow.c (kill_command): Update.
8384 * tracepoint.c (finish_tfind_command): Update.
8385 * corelow.c (core_open): Update.
8386 * thread.c (info_threads_command): Update.
8387 (do_captured_thread_select): Update.
8388 * infcmd.c (finish_command): Update.
8389 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8390
9c1d6fe5
JT
83912002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8392
8393 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8394
ab89facf
AC
83952002-04-21 Andrew Cagney <ac131313@redhat.com>
8396
8397 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8398 type const.
8399
82a4efa1
JT
84002002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8401
8402 * alphafbsd-tdep.c: Update copyright years. Include
8403 alpha-tdep.h.
8404 (alphafbsd_use_struct_convention): Make static.
8405 (alphafbsd_init_abi): New function.
8406 (_initialize_alphafbsd_tdep): New function.
8407 * config/alpha/tm-fbsd.h: Update copyright years.
8408 (USE_STRUCT_CONVENTION): Remove.
8409
44dffaac
JT
84102002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8411
8412 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8413 an Alpha ABI variant.
8414 (alpha_abi_handler_list): Declare.
8415 (alpha_gdbarch_register_os_abi): New function.
8416 (alpha_gdbarch_init): Give registered ABI variant handlers a
8417 chance to tweak the gdbarch once we have set up defaults.
8418 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8419
65585be4
JT
84202002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8421
8422 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8423 to standard_coerce_float_to_double.
8424 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8425
d9b023cc
JT
84262002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8427
8428 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8429 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8430 from gdbarch_tdep rather than a constant.
8431 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8432 the default text address for all Alpha Unix ABIs.
8433 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8434 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8435
dc129d82
JT
84362002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8437
8438 * alpha-tdep.h: New file. Includes several Alpha target constants
8439 taken from...
8440 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8441 let gdbarch deal with.
8442 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8443 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8444 to dependency list.
8445 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8446 Alpha target register names.
8447 * alphabsd-nat.c: Likewise.
8448 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8449 Alpha target register names. Make serveral routines static.
8450 (alpha_get_saved_register): New function.
8451 (alpha_abi_names): New.
8452 (process_note_abi_tag_sections): New function.
8453 (get_elfosabi): New function.
8454 (alpha_gdbarch_init): New function.
8455 (alpha_dump_tdep): New function.
8456 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8457
d49d1e0a
AC
84582002-04-21 Andrew Cagney <ac131313@redhat.com>
8459
8460 * frame.c (find_saved_register): Delete #ifdef
8461 HAVE_REGISTER_WINDOWS code.
8462 * config/sparc/tm-sparc.h: Update comments.
8463 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8464
92e8c9ed
AC
84652002-04-21 Andrew Cagney <ac131313@redhat.com>
8466
8467 * i960-tdep.c (i960_find_saved_register): New function.
8468 (i960_get_saved_register): New function.
8469 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8470 (i960_get_saved_register): Declare.
8471 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8472
e1925118
DM
84732002-04-20 David S. Miller <davem@redhat.com>
8474
8475 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8476
29673b29
AC
84772002-04-20 Andrew Cagney <ac131313@redhat.com>
8478
8479 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8480 instead of NUM_PSEUDO_REGS.
8481
6c86dcd5
DM
84822002-04-20 David S. Miller <davem@redhat.com>
8483
8484 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8485 GDB_MULTI_ARCH_PARTIAL
8486 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8487 define, let tm-sp64.h do it.
8488
aa40ec90
JT
84892002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8490
8491 * frame.c (find_saved_register): Avoid a NULL pointer
8492 dereference and actually walk the frame list.
8493
0f79675b
AC
84942002-04-20 Andrew Cagney <ac131313@redhat.com>
8495
8496 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8497 sorted in most most-recent-used order. Document.
8498 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8499
f91305dd 85002002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
8501
8502 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8503 instead of ->prev.
8504 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8505 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8506 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8507 instead of ->prev.
8508
73d322b1
EZ
85092002-04-19 Elena Zannoni <ezannoni@redhat.com>
8510
8511 Fix PR gdb/471.
8512 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8513 (build_builtin_type_vec128): Ditto.
8514 (append_composite_type_field): Fix calculation of type length in
8515 union case.
8516
ccd9a834
EZ
85172002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8518
8519 * config/djgpp/README: Update.
8520
8521 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8522 compiler warnings.
8523
a57f9e49
JT
85242002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8525
8526 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8527 (alpha_setup_arbitrary_frame): ...to this.
8528 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8529 for alpha_setup_arbitrary_frame.
8530
f4f9705a
AC
85312002-04-18 Andrew Cagney <cagney@redhat.com>
8532
8533 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8534 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8535
f4f9705a
AC
8536 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8537 * target.h (memory_breakpoint_from_pc): Update declaration.
8538 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8539
8540 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8541 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8542 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8543 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8544 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8545 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8546 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8547 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8548 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8549 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8550 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8551 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8552
8553 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8554 const pointer.
8555 * monitor.c (monitor_insert_breakpoint): Ditto.
8556 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8557
8558 * config/mcore/tm-mcore.h: Update copyright.
8559 * mem-break.c: Ditto.
8560 * xstormy16-tdep.c: Ditto.
8561
29f319b8
PM
85622002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8563
8564 * p-exp.y: Add precedence rule for '^' token.
8565 This removes the shift/reduce conflicts.
8566 Remove the comment concerning these shift/reduce conflicts.
8567
ebeac11a
EZ
85682002-04-18 Elena Zannoni <ezannoni@redhat.com>
8569
8570 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8571 (registers_powerpc_nofp): New register set for processors
8572 without floating point unit.
8573
27c31547
DM
85742002-04-18 David S. Miller <davem@redhat.com>
8575
8576 * MAINTAINERS: Add myself to write-after-approval.
8577
47a73475
MS
85782002-04-17 Michael Snyder <msnyder@redhat.com>
8579
8580 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8581
953836b2
AC
85822002-04-17 Andrew Cagney <ac131313@redhat.com>
8583
8584 * rs6000-tdep.c (frame_initial_stack_address): Use
8585 frame_register_read to read the alloca_reg.
8586
8b0d4340
AC
85872002-04-17 Andrew Cagney <ac131313@redhat.com>
8588
8589 * frame.c (find_saved_register): Find saved registers in the next
8590 not prev frame.
8591 Fix PR gdb/365.
8592
d8864532
AC
85932002-04-17 Andrew Cagney <ac131313@redhat.com>
8594
8595 * gdbarch.sh (LANG): Set to ``c''.
8596
36cc83a3 85972002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 8598
36cc83a3 8599 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 8600
2f4150cc 86012002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
8602
8603 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8604 Update copyright.
8605
628703c6 8606 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 8607 Also fix PR gdb/391.
361d1df0 8608
56157b4a
AC
86092002-04-14 Andrew Cagney <ac131313@redhat.com>
8610
8611 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8612 * aclocal.m4, configure: Re-generate.
8613 Fix PR gdb/391.
361d1df0 8614
6d1e3329
EZ
86152002-04-14 Elena Zannoni <ezannoni@redhat.com>
8616
8617 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8618 instead of tm_print_insn.
8619
cb06fa07
EZ
86202002-04-14 Elena Zannoni <ezannoni@redhat.com>
8621
8622 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8623
f208ba17
AC
86242002-04-14 Andrew Cagney <ac131313@redhat.com>
8625
8626 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8627 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8628 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8629
20f01a46
DH
86302002-04-12 Don Howard <dhoward@redhat.com>
8631
8632 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8633 max_user_call_depth.
8634 (init_cmd_lists): Initialize the new value;
8635 * cli/cli-script.c (execute_user_command): Limit the call depth of
8636 user defined commands. This avoids a core-dump when user commands
8637 are infinitly recursive.
8638
a88376a3
KB
86392002-04-12 Kevin Buettner <kevinb@redhat.com>
8640
8641 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8642 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8643 from tdep struct instead of DEFAULT_LR_SAVE.
8644 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8645 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8646 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8647
f2172603
MS
86482002-04-12 Michael Snyder <msnyder@redhat.com>
8649
694f61fb 8650 * Remote.c: Spelling fix.
20fe79c8
MS
8651 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8652 If no symbol found for "sbrk", try "_sbrk".
8653 (make_output_phdrs): Use bfd_section_name.
8654 (gcore_copy_callback): Use bfd_section_name.
62995fc4 8655 * eval.c: Indentation fix-ups.
169a7369
MS
8656 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8657 in case it gets applied to an address that is already
8658 in the instruction space.
de74f71f
MS
8659 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8660 * symfile.c: Fix indentation, long lines.
f2172603
MS
8661 * source.c: White space fix-up.
8662
cda5a58a
AC
86632002-04-12 Andrew Cagney <cagney@redhat.com>
8664
8665 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8666 * frame.c (frame_register_read): New function. Return non-zero on
8667 success.
8668 (read_relative_register_raw_bytes_for_frame): Delete.
8669 (read_relative_register_raw_bytes): Delete.
8670 * frame.h (frame_register_read): Declare.
8671 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8672 * sh-tdep.c: Ditto.
8673 * infcmd.c (do_registers_info): Ditto.
8674 * hppa-tdep.c: Ditto.
8675 * rs6000-tdep.c: Ditto.
8676 * h8500-tdep.c: Ditto.
8677 * mips-tdep.c: Ditto.
8678 * h8300-tdep.c: Ditto.
8679 * z8k-tdep.c: Ditto.
8680
2ea5f656
KB
86812002-04-12 Kevin Buettner <kevinb@redhat.com>
8682
8683 From Jimi X <jimix@watson.ibm.com>:
8684 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8685 64-bit SysV ABI.
8686
27b15785
KB
86872002-04-12 Kevin Buettner <kevinb@redhat.com>
8688
8689 From Jimi X <jimix@watson.ibm.com>:
8690 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8691 bfd info.
8692
5d57ee30
KB
86932002-04-12 Kevin Buettner <kevinb@redhat.com>
8694
8695 From Jimi X <jimix@watson.ibm.com>:
8696 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8697 register sets for these processor variants.
8698
bc1e36ca
DJ
86992002-04-11 Daniel Jacobowitz <drow@mvista.com>
8700
bc1e36ca
DJ
8701 * regformats/reg-ppc.dat: Support FPSCR.
8702
e3f36dbd
KB
87032002-04-11 Kevin Buettner <kevinb@redhat.com>
8704
8705 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8706 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8707 Add fpscr as an invalid/unfetchable register.
8708 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8709 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8710 (fill_fpregset): Add support for register fpscr.
8711 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8712 (fill_gregset): Account for the fact that register ``mq'' might
8713 not exist.
8714 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8715 (registers_power): Add fpscr to register set at slot 71.
8716 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8717 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8718
943c9c25
MS
87192002-04-11 Michael Snyder <msnyder@redhat.com>
8720
8721 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8722 * configure: Regenerate.
8723 * config.in: Regenerate.
8724 * acconfig.h: Add define for _SYSCALL32.
8725 * core-sol2.c: Remove #define _SYSCALL32.
8726 * solib-legacy.c: Remove #define _SYSCALL32.
8727
d8c0a2e7
AC
87282002-04-10 Andrew Cagney <ac131313@redhat.com>
8729
8730 * stack.c (select_frame): Cleanup internal error message, do not
8731 use %p.
8732
7cc19214
AC
87332002-04-10 Andrew Cagney <ac131313@redhat.com>
8734
8735 * stack.c (select_frame): Check that selected_frame and the
8736 specified level are as expected.
8737 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8738 Update copyright.
8739 * frame.h (struct frame_info): Add field `level'. Update
8740 copyright.
8741 Work-in-progress PR gdb/464.
8742
67a2b77e
AC
87432002-04-10 Andrew Cagney <ac131313@redhat.com>
8744
8745 * maint.c (maint_print_section_info): Rename print_section_info.
8746 (print_bfd_section_info, print_objfile_section_info): Update.
8747 * inferior.h (struct gdbarch): Add opaque declaration.
8748 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8749 * gdbarch.h: Regenerate.
8750
8cfda98c
ML
87512002-04-10 Michal Ludvig <mludvig@suse.cz>
8752
8753 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8754 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8755 (kernel_u_size): Added.
8756 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8757 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8758
ca439ad2 87592002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 8760
ca439ad2
JI
8761 * valarith.c (find_size_for_pointer_math): New function, either returns
8762 the size for a pointer's target, returns 1 for void *, or errors for
8763 incomplete types.
8764 (value_add, value_sub): use find_size_for_pointer_math.
8765
2f2893d9
DJ
87662002-04-09 Daniel Jacobowitz <drow@mvista.com>
8767
8768 * linux-low.c (linux_look_up_symbols): New hook.
8769 (linux_target_ops): Add linux_look_up_symbols.
8770 * remote-utils.c (decode_address): New function.
8771 (look_up_one_symbol): New function.
8772 * server.c (handle_query): Call target look_up_symbols hook.
8773 * server.h (look_up_one_symbol): Add prototype.
8774 * target.h (struct target_ops): Add look_up_symbols hook.
8775
96cb11df
AC
87762002-04-09 Andrew Cagney <ac131313@redhat.com>
8777
8778 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8779 override FP_REGNUM with frame->fp. Update copyright.
8780 * parse.c (num_std_regs, std_regs): Delete.
8781 (target_map_name_to_register): Do not search std_regs. Update
8782 function description.
8783 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8784 declarations. Update copyright.
8785 Fix PR gdb/251.
361d1df0 8786
97658e92
DJ
87872002-04-09 Daniel Jacobowitz <drow@mvista.com>
8788
8789 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8790 after the last symbol in a block.
8791
6044e3eb
PM
87922002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8793
8794 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8795 is non zero as a found symbol.
8796
0406ec40
AC
87972002-04-08 Andrew Cagney <ac131313@redhat.com>
8798
8799 * findvar.c: Include "builtin-regs.h".
8800 (value_of_register): Call value_of_builtin_reg when applicable.
8801 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8802 (target_map_name_to_register): Call
8803 builtin_reg_map_name_to_regnum.
8804 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8805 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8806 (builtin_regs_h): Define.
8807 (builtin-regs.o): New target.
8808 (findvar.o): Add $(builtin_regs_h).
8809 * builtin-regs.c, builtin-regs.h: New files.
8810 * std-regs.c: New file.
8811 Partial fix for PR gdb/251.
8812
56a6dfb9
KB
88132002-04-08 Kevin Buettner <kevinb@redhat.com>
8814
8815 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8816 it's no longer required.
8817
3a808432
AC
88182002-04-08 Andrew Cagney <ac131313@redhat.com>
8819
8820 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8821
7c40d541
KB
88222002-04-08 Kevin Buettner <kevinb@redhat.com>
8823
8824 From Jimi X <jimix@watson.ibm.com>:
8825 * rs6000-tdep.c (rs6000_software_single_step): Use
8826 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8827 and size. Use target_insert_breakpoint() and
8828 target_remove_breakpoint() to insert and remove breakpoints
8829 instead of explicit memory reads and writes.
8830
cc9836a8
KB
88312002-04-08 Kevin Buettner <kevinb@redhat.com>
8832
8833 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8834 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8835 ELF_OBJECT_FORMAT ifdef.
8836
7495d1dc
KB
88372002-04-08 Kevin Buettner <kevinb@redhat.com>
8838
8839 From Jimi X <jimix@watson.ibm.com>:
8840 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8841
4288e836
KB
88422002-04-08 Kevin Buettner <kevinb@redhat.com>
8843
8844 From Jimi X <jimix@watson.ibm.com>:
8845 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8846 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8847
a4e4e501
MK
88482002-04-07 Mark Kettenis <kettenis@gnu.org>
8849
8850 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8851 s/asprintf/xasprintf/.
8852 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8853
006defba
AC
88542002-04-07 Andrew Cagney <ac131313@redhat.com>
8855
8856 I believe Jeff Law denies responsability for this one:
8857 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8858 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8859 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8860 Work-around for PR gdb/366.
8861
7aa83cac
EZ
88622002-04-07 Elena Zannoni <ezannoni@redhat.com>
8863
8864 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8865 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8866 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8867
cf1fcca1
EZ
88682002-04-07 Elena Zannoni <ezannoni@redhat.com>
8869
8870 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8871 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8872 information.
8873
3f289e6f
AC
88742002-04-07 Andrew Cagney <ac131313@redhat.com>
8875
8876 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8877 maintainer.
8878
129188f6
AC
88792002-04-07 Andrew Cagney <ac131313@redhat.com>
8880
8881 * README (Reporting Bugs in GDB): Document the bug web page as the
8882 prefered way of submitting bugs.
8883 Fix PR gdb/402.
8884
1200cd6e
AC
88852002-04-06 Andrew Cagney <ac131313@redhat.com>
8886
8887 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8888 -1. Update comment.
8889 * gdbarch.h, gdbarch.c: Re-generate.
8890
2853c33c
AS
88912002-04-07 Andreas Schwab <schwab@suse.de>
8892
8893 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8894 buffer to regcache_collect.
8895
c2169756
AC
88962002-04-06 Andrew Cagney <ac131313@redhat.com>
8897
8898 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8899 * gdbarch.c, gdbarch.h: Re-generate.
8900
25f1b008
AC
89012002-04-06 Andrew Cagney <ac131313@redhat.com>
8902
8903 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8904 declaration. Fix -Werror.
8905
59263426
DJ
89062002-04-05 Daniel Jacobowitz <drow@mvista.com>
8907
8908 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8909 * gdbarch.c: Regenerate.
8910
f5db4da3
MS
89112002-04-05 Michael Snyder <msnyder@redhat.com>
8912
80f8a6eb
MS
8913 * breakpoint.c (clear_command): Rewrite middle section to
8914 combine two loops with identical control conditions.
8915 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8916 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8917
ad3dcc5c
L
89182002-04-05 H.J. Lu (hjl@gnu.org)
8919
8920 * solib-svr4.c (bkpt_names): Add "__start".
8921
f32e7a74
AC
89222002-04-04 Andrew Cagney <ac131313@redhat.com>
8923
8924 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8925 as test for 64 bit target.
8926
8227c0ff
AC
89272002-04-05 Andrew Cagney <ac131313@redhat.com>
8928
8929 * h8500-tdep.c (h8500_write_fp): Delete function.
8930 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8931 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8932 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8933 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8934 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8935 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8936 (s390_write_fp):
8937 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8938 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8939 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8940 (d10v_write_fp): Delete function.
8941 * inferior.h (write_fp, generic_target_write_fp): Delete
8942 declarations.
8943 * regcache.c (generic_target_write_fp): Delete function.
8944 (write_fp): Delete function.
8945 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8946 * gdbarch.h, gdbarch.c: Regenerate.
8947 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8948 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8949 (sparc64_write_fp): Delete declaration.
8950 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8951 (h8500_write_fp): Delete declaration.
8952
2757dd86
AC
89532002-04-04 Andrew Cagney <ac131313@redhat.com>
8954
8955 * sparc-tdep.c (sparc64_write_fp): Delete.
8956 (sparc_push_dummy_frame): Replace write_fp call with code to store
8957 the FP directly.
8958 (sparc_gdbarch_init): Do not initialize write_fp.
8959
c69255e1
KB
89602002-04-05 Kevin Buettner <kevinb@redhat.com>
8961
8962 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8963 clause.
8964
ae767bfb
JB
89652002-03-29 Jim Blandy <jimb@redhat.com>
8966
8967 * stack.c (get_selected_block): Add new argument `addr_in_block',
8968 used to return the exact code address we used to select the block,
8969 not just the block.
8970 * blockframe.c (get_frame_block, get_current_block): Same.
8971 * frame.h (get_frame_block, get_current_block,
8972 get_selected_block): Update declarations.
8973 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8974 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8975
84d2ac95
MS
89762002-04-05 Michael Snyder <msnyder@redhat.com>
8977
8978 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8979 warning message.
8980
596aa3bf
JB
89812002-04-05 J. Brobecker <brobecker@gnat.com>
8982
8983 * utils.c (xfullpath): New function.
8984 * defs.h (xfullpath): Add declaration.
8985 * source.c (openp): Use xfullpath in place of gdb_realpath to
8986 avoid resolving the basename part of filenames when the
8987 associated file is a symbolic link. This fixes a potential
8988 inconsistency between the filenames known to GDB and the
8989 filenames it prints in the annotations.
8990 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8991 to be able to match a filename with either the real filename, or
8992 the name of any symbolic link to this file.
8993 (lookup_partial_symtab): Ditto.
8994
c02f5703
MS
89952002-04-04 Michael Snyder <msnyder@redhat.com>
8996
8997 * breakpoint.c: Add support for hardware breakpoints in overlays.
8998 (overlay_events_enabled): New state variable.
8999 (insert_breakpoints): Use overlay_events_enabled to decide
9000 whether to attempt to set a breakpoint at the overlay load addr.
9001 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9002 (remove_breakpoint): Use overlay_events_enabled to decide
9003 whether breakpoints need to be removed from overlay load addr.
9004 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9005 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 9006 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
9007 disable_overlay_breakpoints): Update overlay_events_enabled.
9008
5fb290d7
DJ
90092002-04-04 Daniel Jacobowitz <drow@mvista.com>
9010
9011 * dwarf2read.c (struct function_range): New.
9012 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9013 (check_cu_functions): New.
9014 (read_file_scope): Initialize global function lists.
9015 Call dwarf_decode_line after processing children.
9016 (read_func_scope): Add to global function list.
9017 (dwarf_decode_lines): Call check_cu_functions everywhere
9018 record_line is called. Call record_line with a linenumber
9019 of 0 to mark sequence ends.
9020
7b3fabf0
ML
90212002-04-04 Michal Ludvig <mludvig@suse.cz>
9022
361d1df0 9023 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
9024 change sync with glibc.
9025
bce58c09
JB
90262002-04-03 Jim Blandy <jimb@redhat.com>
9027
9028 * configure.in: Call AC_C_INLINE.
9029 * configure: Regenerated.
361d1df0 9030
2fccf04a
DJ
90312002-04-01 Daniel Jacobowitz <drow@mvista.com>
9032
9033 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9034 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9035
2d1bfe2e
MK
90362002-03-31 Mark Kettenis <kettenis@gnu.org>
9037
a5941fbf
MK
9038 * NEWS: Mention gcore support on FreeBSD/i386.
9039
a90cd31d
MK
9040 * fbsd-proc.c: New file.
9041 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9042 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9043
2d1bfe2e
MK
9044 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9045 while statement.
9046
9eb6e5a1
JB
90472002-03-29 Jim Blandy <jimb@redhat.com>
9048
9049 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9050 unescaped newlines in string literals, but newer ones don't. So
9051 escape them.
9052
f02df580
MS
90532002-03-26 Michael Snyder <msnyder@redhat.com>
9054 Andrew Cagney <cagney@redhat.com>
9055
361d1df0 9056 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
9057 restore file to memory.
9058 * cli/cli-dump.h: New file.
9059 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 9060 * NEWS: Mention new commands.
f02df580 9061
109f874e
MS
90622002-03-28 Michael Snyder <msnyder@redhat.com>
9063
9064 * symfile.c (symbol_file_add): Move test for null symbols to later.
9065
520f6ade
AC
90662002-03-27 Andrew Cagney <ac131313@redhat.com>
9067
9068 From veksler at il.ibm.com:
9069 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9070 the xstrduped original path.
9071 Fix PR gdb/417.
9072
d4654627
MS
90732002-03-27 Michael Snyder <msnyder@redhat.com>
9074
9075 * breakpoint.c (_initialize_breakpoint): Clean up help string.
9076 * infcmd.c (_initialize_infcmd): Ditto.
9077 * language.c (_initialize_language): Ditto.
9078 * symfile.c (_initialize_symfile): Ditto.
9079 * top.c (_init_main): Ditto.
9080 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9081
6be8bc0c
EZ
90822002-03-27 Elena Zannoni <ezannoni@redhat.com>
9083
9084 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9085 vector registers handling.
9086 (skip_prologue): Handle new AltiVec instructions. Fill in new
9087 fields of frame data.
9088 (frame_get_saved_regs): Fill in information for AltiVec registers.
9089
12af6855
JB
90902002-03-27 Jim Blandy <jimb@redhat.com>
9091
9092 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9093 a function; leave this macro here to invoke that function.
9094 (symbol_init_mangled_name): Declaration for that function.
9095 * symtab.c (symbol_init_mangled_name): New function.
9096
dc672865
AC
90972002-03-27 Andrew Cagney <ac131313@redhat.com>
9098
9099 * valarith.c: Replace strerror with safe_strerror.
9100 * tracepoint.c: Ditto.
9101 * lin-lwp.c: Ditto.
9102 * go32-nat.c: Ditto.
9103 * inflow.c: Ditto.
9104 * gnu-nat.c: Ditto.
9105
d96429cd
AS
91062002-03-27 Andreas Schwab <schwab@suse.de>
9107
9108 * event-top.c (command_line_handler): Remove useless if.
9109
7e336ba1
AJ
91102002-03-27 Andreas Jaeger <aj@suse.de>
9111
9112 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9113 comment.
9114
de220d0f
ML
91152002-03-27 Michal Ludvig <mludvig@suse.cz>
9116
9117 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9118 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9119 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9120 (x86_64_linux_dr_get_status, supply_gregset),
9121 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9122 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9123 (x86_64_register_info_table): Add.
9124 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9125 (x86_64_register_raw_size, x86_64_register_virtual_type),
9126 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9127 general x86_64_register_info_table.
9128 (i386_gdbarch_init): gdbarch_register_bytes is now set
9129 dynamicaly during initialization.
9130 * regformats/reg-x86-64.dat: Synced with changes to registers above.
9131 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 9132
0e98d0a7
DJ
91332002-03-27 Daniel Jacobowitz <drow@mvista.com>
9134
9135 * gdbserver/server.c (main): Call target_signal_to_host_p
9136 and target_signal_to_host on signals received from the remote.
9137 * gdbserver/remote-utils.c (prepare_resume_reply): Call
9138 target_signal_from_host on signals sent to the remote.
9139 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
9140 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
9141
3130066b
DJ
91422002-03-27 Daniel Jacobowitz <drow@mvista.com>
9143
9144 * signals/signals.c: Include "server.h" in gdbserver build.
9145 (target_signal_from_name): Don't use STREQ.
9146 (_initialize_signals): Likewise. Don't include function in
9147 gdbserver build.
9148
9aedf4f4
DJ
91492002-03-27 Daniel Jacobowitz <drow@mvista.com>
9150
9151 * signals.c: Moved to...
9152 * signals/signals.c: Here.
7e336ba1 9153 * Makefile (signals.o): Update.
9aedf4f4 9154
3fa41cdb
JL
91552002-03-26 Jeff Law (law@redhat.com)
9156
9157 * somread.c (som_symtab_read): Remove some commented out code and
9158 updated related comments. Do not set the minimal symbol table to
9159 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9160 in a dynamic executable.
9161 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9162 where we are unable to find the minimal symbol for the given
9163 PC value.
9164
ee677e8d
MS
91652002-03-25 Jeff Law (law@redhat.com)
9166
9167 * linux-proc.c (read_mapping): Scan up to end of line for filename.
9168
e76e1718
ML
91692002-03-25 Michal Ludvig <mludvig@suse.cz>
9170
9171 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9172
18a642a1
AC
91732002-03-23 Andrew Cagney <ac131313@redhat.com>
9174
9175 * command.h: Update copyright.
9176 (struct cmd_list_element): Replace definition with opaque
9177 declaration.
9178 (enum cmd_types): Document that it will eventually be moved to
9179 cli/cli-decode.h
9180 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9181 (MALLOCED_REPLACEMENT): Delete macro.
9182 * Makefile.in (cli_decode_h): Add $(command_h).
9183 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 9184 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
9185 * completer.c: Include "cli/cli-decode.h".
9186 * maint.c: Include "cli/cli-decode.h".
9187 * cli/cli-decode.h: Include "command.h".
9188 (enum command_class): Delete.
9189 (enum cmd_types): Comment out.
9190 (enum cmd_auto_boolean): Delete.
9191 (enum var_types): Delete.
9192
b2875cc0
AC
91932002-03-23 Andrew Cagney <ac131313@redhat.com>
9194
9195 * cli/cli-decode.c: Include "gdb_assert.h".
9196 (add_set_or_show_cmd): New static function.
9197 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9198 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9199 all fields, such as func, from the set command.
9200
3b45974e
AC
92012002-03-23 Andrew Cagney <ac131313@redhat.com>
9202
9203 * MAINTAINERS (sh-elf): Change warning flag to -w.
9204
823ca731
AC
92052002-03-23 Andrew Cagney <cagney@redhat.com>
9206
9207 * defs.h (error): Add printf format attribute.
9208 * thread-db.c (thread_from_lwp): Fix error format string.
9209 * stack.c (parse_frame_specification): Ditto.
9210 * cli/cli-decode.c (undef_cmd_error): Ditto.
9211 * scm-lang.c (scm_lookup_name): Ditto.
9212 * tracepoint.c (trace_error): Ditto.
9213 * remote-utils.c (usage): Ditto.
9214 * remote.c (compare_sections_command): Ditto.
9215 Fix PR gdb/328.
9216
0e101458
AC
92172002-03-22 Andrew Cagney <ac131313@redhat.com>
9218
9219 * gdbtypes.c (append_composite_type_field): New function.
9220 (init_composite_type): New function.
9221 * gdbtypes.h (append_composite_type_field): Declare.
9222 (init_composite_type): Ditto.
9223
8e0662df
EZ
92242002-03-22 Elena Zannoni <ezannoni@redhat.com>
9225
9226 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 9227 function.
8e0662df
EZ
9228 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9229 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9230 structure returning convention for SYSV ABI case, but not
9231 for GNU/Linux, FreeBSD, or NetBSD.
9232
3121eff0
DJ
92332002-03-22 Daniel Jacobowitz <drow@mvista.com>
9234
9235 * symtab.h (lookup_block_symbol): Add mangled_name argument
9236 to prototype.
9237
9238 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9239 with new mangled_name argument.
9240 * linespec.c (decode_line_1): Likewise.
9241 * valops (value_of_this): Likewise.
9242 * symtab.c (lookup_transparent_type): Likewise.
9243 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9244 (lookup_symbol): If we are given a mangled name, pass it down
9245 to lookup_symbol_aux.
9246 (lookup_block_symbol): If we are given a mangled name to check
9247 against, only return symbols which match it.
9248
349b409f
CF
92492002-03-22 Christopher Faylor <cgf@redhat.com>
9250
9251 * win32-nat.c (child_create_inferior): Check for proper shell to use
9252 here, in case the user changes it on the fly.
9253 (_initialize_inftarg): Remove shell path considerations.
9254
2a873819
EZ
92552002-03-21 Elena Zannoni <ezannoni@redhat.com>
9256
9257 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9258 for gdbarch_max_register_raw_size and max_register_virtual_size.
9259 Adjust copyright year.
9260
a1b9830c
DJ
92612002-03-21 Daniel Jacobowitz <drow@mvista.com>
9262
9263 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9264 in a function to cover the entire beginning of the function
9265 as well if it does not already.
9266
8b5790f2
TR
92672002-03-21 Tom Rix <trix@redhat.com>
9268
9269 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9270 (rs6000_ptrace64): Renamed from ptrace64.
9271
bdbe5747
MH
92722002-03-20 Martin M. Hunt <hunt@redhat.com>
9273
9274 * gdbserver/remote-utils.c (remote_open): Don't call
9275 getprotobyname, we're all using TCP here so just use
9276 IPPROTO_TCP.
7e336ba1 9277 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
9278
92792002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 9280
bdbe5747
MH
9281 * regcache.c (_initialize_regcache): No need to call
9282 build_regcache() at this time; it gets called whenever
9283 the gdbarch changes.
9284
7781cd62
DB
92852002-03-20 David O'Brien <obrien@FreeBSD.org>
9286
9287 * sparc-nat.c: Include sys/param.h where possible.
9288
f65ca430
DJ
92892002-03-20 Daniel Jacobowitz <drow@mvista.com>
9290
9291 Fix PR gdb/422.
9292 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9293 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9294 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9295 complex types.
9296 * stabsread.c (rs6000_builtin_type): Likewise.
9297 (read_sun_floating_type): Likewise.
9298
0c867556
PS
92992002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9300
9301 * stabsread.c (read_member_functions): Remove skip code for duplicate
9302 constructor/destructor methods. Use standard parsing for these
9303 methods and just do not chain them to the list of methods after
9304 parsing.
9305
12b9c64f
AO
93062002-03-19 Alexandre Oliva <aoliva@redhat.com>
9307
9308 * coffread.c: Remove redundant static declarations. Replace
9309 occurrences of `PTR' with `void *'.
9310 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9311 * top.h (quit_cover): Likewise.
9312 * defs.h (catch_errors): Likewise.
9313
349c5d5f
AC
93142002-03-18 Andrew Cagney <ac131313@redhat.com>
9315
9316 * defs.h (XMALLOC): Define.
9317 * gdb-events.sh (XMALLOC): Delete macro.
9318 * gdb-events.c, gdb-events.h: Regenerate.
9319 * gdbarch.sh (XMALLOC): Delete macro.
9320 * gdbarch.c: Regenerate.
9321 * serial.c (XMALLOC): Delete macro.
9322 * ui-file.c (XMALLOC): Ditto.
9323 * ser-unix.h (XMALLOC): Ditto.
9324 * sh-tdep.c (XMALLOC): Ditto.
9325 * ui-out.c (XMALLOC): Ditto.
9326 * utils.c (XMALLOC): Ditto.
9327 * i386-tdep.c (XMALLOC): Ditto.
9328 * gdb-events.c (XMALLOC): Ditto.
9329 * d10v-tdep.c (XMALLOC): Ditto.
9330 * cli-out.c (XMALLOC): Ditto.
9331
9332 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9333 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9334 * ui-file.c, ui-out.c: Ditto.
9335
7d0766f3
AC
93362002-03-18 Andrew Cagney <ac131313@redhat.com>
9337
9338 * command.h (struct cmd_list_element): Add field context.
9339 (set_cmd_context, get_cmd_context): Declare.
9340 * cli/cli-decode.h: Ditto.
9341 * cli/cli-decode.c (get_cmd_context): New function.
9342 (set_cmd_context): New function.
9343 (add_cmd): Initialize context.
9344 Part of fixing PR gdb/145 and PR gdb/146.
9345
5913bcb0
AC
93462002-03-17 Andrew Cagney <ac131313@redhat.com>
9347
1868c04e
AC
9348 * cli/cli-decode.c (cmd_type): New function.
9349 * command.h (cmd_type): Declare.
9350 * infrun.c (set_schedlock_func): Call function cmd_type.
9351 * kod.c (kod_set_os): Call cmd_type.
9352 * cris-tdep.c (cris_version_update): Use function cmd_type.
9353 (cris_mode_update, cris_abi_update): Ditto.
9354
5913bcb0
AC
9355 * command.h: (execute_cmd_post_hook): Declare.
9356 (execute_cmd_pre_hook): Declare.
9357 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9358 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9359 functions. Execute pre/post hook while ensuring that afterwords
9360 hook_in is cleared.
9361 * top.c (execute_command): Use execute_cmd_post_hook, and
9362 execute_cmd_pre_hook to execute pre/post commands.
9363 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9364 hook_stop_stub.
9365 (hook_stop_stub): Call execute_cmd_pre_hook.
9366
b51450c9
AC
93672002-03-17 Andrew Cagney <ac131313@redhat.com>
9368
9369 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9370 set'' and this leads to a core dump. Move xstrdup of
9371 operating_system to after check that it is not NULL.
9372
f66c9f11
AC
93732002-03-17 Andrew Cagney <ac131313@redhat.com>
9374
8e694ecf
AC
9375 * kod.c (kod_set_os): Remove unnecessary check that
9376 ``command->type'' is set_cmd.
9377
f66c9f11
AC
9378 * valprint.c (set_input_radix): Use input_radix.
9379 (set_output_radix): Use output_radix.
9380 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9381 isn't reverted.
9382
9d01611c
AC
93832002-03-16 Andrew Cagney <ac131313@redhat.com>
9384
9385 * value.h (struct value): Delete field ``substring_addr''. Change
9386 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
9387 force_core_addr_align and force_pointer_aligh.
9388
9389 * value.h (struct value): Fix typo in above change.
9d01611c 9390
4156bb53
PS
93912002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9392
9393 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9394 to fix internal_error from ``maintenance print architecture''.
9395
0e5e3ea6
PS
93962002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9397
9398 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9399 for gcc versions after gcc-2.8.1.
9400
9b013045
PS
94012002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9402
9403 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9404 for method resolution. Restore adjustment of ``this'' pointer after
9405 calling value_struct_elt, which was accidentally removed during the
9406 HP merge.
9407
376c9600
AC
94082002-03-15 Andrew Cagney <ac131313@redhat.com>
9409
9410 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9411 value_of_register.
9412 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9413 get_saved_register.
9414 * value.h (value_of_register): Update.
9415
a4db0f07
RH
94162002-03-14 Richard Henderson <rth@redhat.com>
9417
9418 * configure.in: Detect declaration for canonicalize_file_name.
9419 * utils.c (canonicalize_file_name): Declare, if needed.
9420 (gdb_realpath): Prefer realpath if available and usable.
9421 * config.in, configure: Rebuild.
9422
96383835
RH
94232002-03-14 Richard Henderson <rth@redhat.com>
9424
9425 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9426 a constant array bound.
9427
9428 * MAINTAINERS: Add myself to write-after-approval.
9429
75245b24
MS
94302002-03-14 Michael Snyder <msnyder@redhat.com>
9431
9432 * symfile.c (syms_from_objfile): Return immediately if no syms.
9433 (symbol_file_add): Return immediately if no syms.
9434 (find_sym_fns): Return immediately if no syms.
9435
e641a1ca
ML
94362002-03-13 Michal Ludvig <mludvig@suse.cz>
9437
9438 * gdbserver/remote-util.c (remote_open): Print remote-side's
9439 IP address when remote debugging over the network.
7e336ba1 9440
df08bfec
DB
94412002-03-12 David O'Brien <obrien@FreeBSD.org>
9442
9443 * config/sparc/fbsd.mh: Fix copyright.
9444 * config/sparc/fbsd.mt: Likewise.
9445
9a57864f
RE
94462002-03-11 Richard Earnshaw <rearnsha@arm.com>
9447
9448 * MAINTAINERS: Fix typo in name of gdb warnings option.
9449 (x86-64): Fix formating so that this can be parsed by awk.
9450
dd7bf85e
DJ
94512002-03-10 Daniel Jacobowitz <drow@mvista.com>
9452
9453 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9454 * defs.h: Include "gdb/signals.h".
9455 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9456
33a0a2ac
ML
94572002-03-10 Michal Ludvig <mludvig@suse.cz>
9458
9459 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 9460 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
9461 from x86-64-tdep.h
9462
dd824b04
DJ
94632002-03-10 Daniel Jacobowitz <drow@mvista.com>
9464 Don Howard <dhoward@redhat.com>
9465
9466 * mips-tdep.c (ST0_FR): Define.
9467 (mips2_fp_compat): New function, temporarily disabled.
9468 (mips_read_fp_register_single): New function.
9469 (mips_read_fp_register_double): New function.
9470 (mips_print_register): Use them.
9471 (do_fp_register_row): Likewise.
9472
6a41ff59
AC
94732002-03-09 Andrew Cagney <ac131313@redhat.com>
9474
9475 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9476 approval''.
9477
4ea09c10
PS
94782002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9479
9480 * stabsread.c (read_member_functions): Fix is_stub test for
9481 static member functions, improve comment.
9482
6ccc741d
RE
94832002-03-07 Richard Earnshaw <rearnsha@arm.com>
9484
9485 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9486 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9487 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9488 commands that set boolean values.
9489 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9490 (arm_rdi_resume): Always initialize PC.
9491 (arm_rdi_open): Don't use rslt as a boolean.
9492 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9493 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9494 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9495 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9496
438013df
AO
94972002-03-06 Alexandre Oliva <aoliva@redhat.com>
9498
9499 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9500 * configure: Rebuilt.
9501
70ed8774
SC
95022002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9503
9504 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9505 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9506
5ba2abeb
AC
95072002-03-06 Andrew Cagney <ac131313@redhat.com>
9508
9509 * cli/cli-decode.c (set_cmd_completer): New function.
9510 * command.h (set_cmd_completer): Declare.
9511 * cli/cli-decode.h (set_cmd_completer): Ditto.
9512
9513 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9514 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9515 * win32-nat.c (_initialize_inftarg): Ditto.
9516 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9517 * proc-api.c (_initialize_proc_api): Ditto.
9518 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9519 * source.c (_initialize_source): Ditto.
9520 * exec.c (_initialize_exec): Ditto.
9521 * solib.c (_initialize_solib): Ditto.
9522 * top.c (init_main): Ditto.
9523 * tracepoint.c (_initialize_tracepoint): Ditto.
9524 * symfile.c (_initialize_symfile): Ditto.
9525 * printcmd.c (_initialize_printcmd): Ditto.
9526 * infcmd.c (_initialize_infcmd): Ditto.
9527 * corefile.c (_initialize_core): Ditto.
9528
f779ca99
AC
95292002-03-05 Andrew Cagney <ac131313@redhat.com>
9530
9531 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9532
01a3934b
AC
95332002-03-05 Andrew Cagney <ac131313@redhat.com>
9534
9535 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9536
37057839
AC
95372002-03-05 Andrew Cagney <ac131313@redhat.com>
9538
9539 * NEWS: Update headings, 5.2 has branched.
9540
c6ecbae5
DJ
95412002-03-04 Daniel Jacobowitz <drow@mvista.com>
9542
9543 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9544 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9545 (register_addr, REGISTER_RAW_SIZE): Likewise.
9546 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9547 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9548
e9f30c21
ML
95492002-03-03 Michal Ludvig <mludvig@suse.cz>
9550
9551 * MAINTAINERS (x86-64): Add myself.
9552 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9553 changed value_ptr -> struct value *
9554
54394ac3
DB
95552002-03-01 David O'Brien <obrien@FreeBSD.org>
9556
9557 * configure.host (sparc64-*-freebsd): Add.
9558 * configure.tgt: Likewise.
9559 * config/sparc/fbsd.mh: New file.
9560 * config/sparc/fbsd.mt: Likewise.
9561 * config/sparc/nm-fbsd.h: Likewise.
9562 * config/sparc/tm-fbsd.h: Likewise.
9563
bfe95955
DJ
95642002-03-01 Daniel Jacobowitz <drow@mvista.com>
9565
9566 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9567 regformats/reg-s390x.dat.
9568
f33c6cbf
AC
95692002-03-01 Andrew Cagney <ac131313@redhat.com>
9570
9571 * utils.c: Add FIXME explaining true/false problem.
9572
5ecaa7dd
AC
95732002-02-28 Andrew Cagney <ac131313@redhat.com>
9574
9575 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9576
2a251cc2
MC
95772002-02-28 Michael Chastain <mec@shout.net>
9578
9579 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9580
6a8031a3 95812002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
9582
9583 * gdbserver/linux-s390-low.c: New file.
9584 * regformats/reg-s390.dat: New file.
9585 * regformats/reg-s390x.dat: New file.
9586 * gdbserver/configure.srv: Add S/390.
9587 * gdbserver/Makefile.in: Add S/390.
9588 * configure.tgt: Enable gdbserver for S/390.
9589
ac469903
EZ
95902002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9591
9592 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9593 first line of the doc string for "info dos", except at the end of
9594 the sentence, since the short help stops at the first period.
9595
985cb1a3
JM
95962002-02-28 Jason Merrill <jason@redhat.com>
9597
9598 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9599
c570663e
FF
96002002-02-27 Fred Fish <fnf@redhat.com>
9601
9602 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9603 comment (dumy -> dummy).
9604
43630227
PS
96052002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9606
9607 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9608
b84911e8
RB
96092002-02-27 Rodney Brown <rbrown64@csc.com.au>
9610
9611 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9612
58caa3dc
DJ
96132002-02-27 Daniel Jacobowitz <drow@mvista.com>
9614
9615 * gdbserver/acconfig.h: New file.
9616 * gdbserver/i387-fp.c: New file.
9617 * gdbserver/i387-fp.h: New file.
9618 * gdbserver/linux-x86-64.c: New file.
9619 * regformats/reg-x86-64.dat: New file.
9620 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9621 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9622 * gdbserver/configure.in: Add support for regsets.
9623 * gdbserver/config.in: Regenerate.
9624 * gdbserver/configure: Regenerate.
9625 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9626 * gdbserver/linux-low.h: New file.
9627 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9628 for regsets.
9629 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9630 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9631 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9632 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9633 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9634 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9635 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9636 "i387-fp.h". Add PTRACE_GETREGS and friends.
9637 * gdbserver/regcache.c (supply_register): New function.
9638 (supply_register_by_name): New function.
9639 (collect_register): New function.
9640 (collect_register_by_name): New function.
9641
93652174
DJ
96422002-02-27 Daniel Jacobowitz <drow@mvista.com>
9643
9644 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9645 (config.status): Add configure.srv dependency.
9646 (server_h): Add config.h dependency.
9647
a02e4a61
DJ
96482002-02-27 Daniel Jacobowitz <drow@mvista.com>
9649
9650 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9651 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9652 * gdbserver/configure.srv: Change i386-*-linux* to use
9653 reg-i386-linux.o.
9654
ce0eebec
AC
96552002-02-26 Andrew Cagney <ac131313@redhat.com>
9656
9657 * x86-64-tdep.c: Re-indent. Update copyright date.
9658
82dbc5f7
AC
96592002-02-26 Andrew Cagney <ac131313@redhat.com>
9660
9661 From Michal Ludvig <mludvig@suse.cz>:
9662 * x86-64-tdep.c (value.h): Delete.
9663 (gdb_assert.h): Include.
9664 (x86_64_register_convert_to_virtual,
9665 x86_64_register_convert_to_raw ): Add check which lets only
9666 floating-point values to be converted.
9667 (value_push): Delete.
9668 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9669 (i386_gdbarch_init): Number of register_bytes fixed.
9670
e4621584
AC
96712002-02-26 Andrew Cagney <ac131313@redhat.com>
9672
9673 * MAINTAINERS: Add x86-64 target.
9674
81a9a963
AC
96752002-02-26 Andrew Cagney <ac131313@redhat.com>
9676
9677 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9678 * osfsolib.c (solib_map_sections): Ditto.
9679 * irix5-nat.c (solib_map_sections): Ditto.
9680 * corelow.c (gdb_check_format): Ditto.
9681 * symfile.c (symfile_bfd_open): Ditto.
9682 * solib.c (solib_map_sections): Ditto.
9683 Fix PR gdb/354.
7e336ba1 9684
0f017ab9
AC
96852002-02-26 Andrew Cagney <ac131313@redhat.com>
9686
9687 * remote.c (_initialize_remote): By default, disable ``e'' and
9688 ``E'' step out-of-range packets.
9689
75738c29
AS
96902002-02-26 Andreas Schwab <schwab@suse.de>
9691
9692 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9693 m68k_linux_frame_saved_pc.
9694 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9695 in_sigtramp.
9696 (SIGCONTEXT_PC_OFFSET): Remove.
9697 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9698 m68k_linux_sigtramp_saved_pc): New functions.
9699 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9700 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9701 (UCONTEXT_PC_OFFSET): Define.
9702 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9703 non-RT and RT signal trampolines.
9704
7e8ed687
RE
97052002-02-26 Richard Earnshaw <rearnsha@arm.com>
9706
9707 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9708 (TARGET_NBPG, STACK_END_ADDR): Delete
9709 (VARIABLES_INSIDE_BLOCK): Delete.
9710
6972bc8b
AC
97112002-02-25 Andrew Cagney <ac131313@redhat.com>
9712
9713 * utils.c (perror_with_name): Make string parameter constant.
9714 (print_sys_errmsg): Ditto.
9715 (query): Ditto.
9716 * defs.h (perror_with_name): Update.
9717 (print_sys_errmsg): Update.
9718 (query): Update.
9719
aa32f823
DJ
97202002-02-25 Daniel Jacobowitz <drow@mvista.com>
9721
9722 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9723 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9724
19caaa45
PS
97252002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9726
9727 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9728 if it already matches the current architecture from the exec file.
9729 Include arch-utils.h for gdbarch_info_init prototype.
9730 * Makefile.in (rs6000-nat.o): Update dependencies.
9731
d951901f
EZ
97322002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9733
9734 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9735 list of exported variables.
9736
7ea81414
DJ
97372002-02-24 Daniel Jacobowitz <drow@mvista.com>
9738
9739 * gdbserver/configure.srv: New file.
9740 * gdbserver/configure.in: Use configure.srv instead
9741 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9742 from it.
9743 * gdbserver/configure: Regenerated.
9744 * gdbserver/terminal.h: New file.
9745 * gdbserver/Makefile.in: Update for configure changes. Remove
9746 more unneeded include paths.
9747
080fe24b
AC
97482002-02-24 Andrew Cagney <ac131313@redhat.com>
9749
9750 From wiz at danbala:
9751 * config/sparc/tm-sp64.h: Fix grammar and typos.
9752 Fix PR gdb/287.
9753
8605d56e
AC
97542002-02-24 Andrew Cagney <ac131313@redhat.com>
9755
9756 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
9757 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9758 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9759 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
9760 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9761 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9762 * s390-tdep.c: Ditto.
92362027
AC
9763 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9764 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9765 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9766 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9767 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9768 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9769 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9770 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9771 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9772 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9773 Fix PR gdb/378.
7e336ba1 9774
8ed32cc0
AC
97752002-02-23 Andrew Cagney <ac131313@redhat.com>
9776
a3007b6f
AC
9777 * lin-thread.c: Delete file.
9778 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9779 to gdb_proc_service.h.
9780 * configure: Re-generate.
9781
50a9e2f1
AC
9782 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9783 * serial.c (serial_open): Delete check for "ocd".
9784 Fix PR gdb/349.
9785
8b6e7932
AC
9786 * Makefile.in (linux-thread.o): Delete target.
9787 * linux-thread.c: Delete file.
9788
d155c46b
AC
9789 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9790 renamed SH files to be consistent.
9791
8ed32cc0
AC
9792 * symtab.c (sort_search_symbols): Use xfree.
9793
0e18d038
RE
97942002-02-23 Richard Earnshaw <rearnsha@arm.com>
9795
9796 * arm-linux-tdep.c (arm_linux_init_abi): Register
9797 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9798 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9799 definition with undef, since we don't want the sysvr4 definition.
9800 (SKIP_TRAMPOLINE_CODE): Likewise.
9801
27aac7ff
AC
98022002-02-23 Andrew Cagney <ac131313@redhat.com>
9803
9804 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9805
9806 * configure.in: (AC_CHECK_FUNCS) Added test for
9807 canonicalize_file_name Regenerated.
9808 * config.in, configure: Regenerated.
9809 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9810 defined use canonicalize_file_name.
7e336ba1 9811
65a6e0ee
MC
98122002-02-23 Michael Chastain <mec@shout.net>
9813
9814 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9815
47b95330
AC
98162002-02-23 Andrew Cagney <ac131313@redhat.com>
9817
9818 * README: Remove references to cygnus.com.
9819 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9820 dot com'' form. Remove references to cygnus.com and sourceware.
9821
696f451b
AC
98222002-02-23 Andrew Cagney <ac131313@redhat.com>
9823
9824 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9825 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9826 1003.1-2001 no longer allows "head -1".
9827 * gdb/Makefile.in (version.c): Likewise.
9828 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9829 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9830 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9831
bbaca940
AC
98322002-02-23 Andrew Cagney <ac131313@redhat.com>
9833
9834 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9835 * command.h (cmd_cfunc_eq): Declare.
9836 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9837
9838 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9839 ``struct cmd_list_element *''.
9840 * cli/cli-cmds.c (is_complete_command): Update. Use
9841 cmd_cfunc_eq.
9842 * top.c (execute_command): Pass the command to
9843 is_complete_command.
9844 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9845
b8b8b047
AC
98462002-02-23 Andrew Cagney <ac131313@redhat.com>
9847
9848 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9849 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9850 architecture defines.
9851 * s390-tdep.c (s390_gdbarch_init): Likewise.
9852
19d3fc80
RE
98532002-02-23 Richard Earnshaw <rearnsha@arm.com>
9854
9855 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9856 (arm_linux_push_arguments): Likewise.
9857 (arm_linux_init_abi): Register them. Also register linux-specific
9858 call_dummy_words.
9859 (find_minsym_and_objfile): Use strcmp, not STREQ.
9860 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9861 (arm_linux_call_dummy_words): Delete declaration.
9862 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9863 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9864 declarations.
9865 (LOWEST_PC): Delete.
9866
3ab13650
PS
98672002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9868
9869 * maint.c (print_section_info): Do not prepend `0x' to filepos
9870 output, it will be handled by local_hex_string_custom.
9871
19d3fc80 98722002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
9873
9874 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9875 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9876 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9877
d85a5daf
JB
98782002-02-22 Jim Blandy <jimb@redhat.com>
9879
9880 Indicate that the bcache functions don't change the strings
9881 they're passed.
9882 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9883 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9884
eeb25b8a
PM
98852002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9886
9887 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9888
6badb179
CF
98892002-02-21 Christopher Faylor <cgf@redhat.com>
9890
9891 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9892 find the complete path to a loaded DLL.
9893
e8717518
FF
98942002-02-21 Fred Fish <fnf@redhat.com>
9895
9896 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9897 that marks the end of the range of a function, enter a line number
9898 entry that has a line number of zero and a PC offset that matches
9899 the end of the function. This starts a range of PC's for which no
9900 line number information is known.
9901 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9902 PC's for which no line number info is found (line number is zero)
9903 then we didn't find any valid line information.
9904 * symtab.h: Document use of zero line number entry.
9905
9abe5450
EZ
99062002-02-21 Elena Zannoni <ezannoni@redhat.com>
9907
9908 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9909 (have_ptrace_getvrregs): Define for run time checks.
9910 (gdb_vrregset_t): New type for Altivec register handling.
9911 (fetch_register, store_register): Fetch/store altivec register
9912 when needed.
9913 (fetch_altivec_register, store_altivec_register): New functions.
9914 (supply_vrregset, fill_vrregset): New functions.
9915 (fetch_altivec_registers, store_altivec_registers): New functions.
9916 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9917 registers as well.
9918
aaa38bb5
AJ
99192002-02-21 Jiri Smid <smid@suse.cz>
9920
9921 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9922
b34db576
RE
99232002-02-21 Richard Earnshaw <rearnsha@arm.com>
9924
9925 * Makefile.in (armnbsd-nat.o): Update dependencies.
9926 * armnbsd-nat.c (supply_gregset): New function. Common code to
9927 supply the integer register set.
9928 (supply_fparegset): New function. Similar for FPA registers.
9929 (fetch_regs, fetch_fp_regs): Use them.
9930 (fetch_core_registers): Likewise.
9931 (fetch_elfcore_registers): New function.
9932 (arm_netbsd_elfcore_fns): New core-file type specification.
9933 (_initialize_arm_netbsd_nat): Register it.
9934
3e56fc4b
RE
99352002-02-21 Richard Earnshaw <rearnsha@arm.com>
9936
9937 * armnbsd-nat.c: Include gdbcore.h.
9938 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9939 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9940 'void' to declaration, to shut up ARI.
9941 (fetch_core_registers): Make static. Rewrite using supply_register.
9942 (arm_netbsd_core_fns): New core-file type specification.
9943 (_initialize_arm_netbsd_nat): New function.
9944
097f6b0b
CF
99452002-02-21 Christopher Faylor <cgf@redhat.com>
9946
9947 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9948 value.
9949
c914e0cc
CF
99502002-02-20 Christopher Faylor <cgf@redhat.com>
9951
9952 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9953 fails.
9954
385fa495
DJ
99552002-02-20 Daniel Jacobowitz <drow@mvista.com>
9956
9957 * jv-exp.y (parse_number): Change type of implicit longs
9958 to builtin_type_uint64.
9959
e5f1222d
DJ
99602002-02-20 Daniel Jacobowitz <drow@mvista.com>
9961
9962 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9963 to be an integer instead of a `union wait'.
9964
75c9abc6
DJ
99652002-02-20 Daniel Jacobowitz <drow@mvista.com>
9966
9967 * mips-linux-nat.c: Call the operating system GNU/Linux.
9968 * mips-linux-tdep.c: Likewise.
9969 * mips-tdep.c: Likewise.
9970
551792a5
DJ
99712002-02-20 Daniel Jacobowitz <drow@mvista.com>
9972
9973 Fix PR gdb/265.
9974 * jv-exp.y (parse_number): Handle 64-bit integers.
9975
ee6e2b82
DJ
99762002-02-20 Daniel Jacobowitz <drow@mvista.com>
9977
9978 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9979 AC_STDC_HEADERS to AC_HEADER_STDC.
9980 * gdbserver/configure: Regenerated.
9981
a48442a0
RE
99822002-02-20 Richard Earnshaw <rearnsha@arm.com>
9983
9984 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9985 is defined.
9986 * sparc-tdep.c (get_longjmp_target): Likewise.
9987
fe419ffc
RE
99882002-02-20 Richard Earnshaw <rearnsha@arm.com>
9989
9990 * News: Add news about ARM and Multi-arch. Mention the new target
9991 arm*-*-netbsd*.
9992
5832ed7e
JB
99932002-02-19 Jim Blandy <jimb@redhat.com>
9994
9995 * stabsread.c (error_type_complaint): Improve error message.
9996
84563040
DJ
99972002-02-19 Daniel Jacobowitz <drow@mvista.com>
9998
9999 * gdbserver/README: Update documentation.
10000 * gdbserver/configure.in: Update configury to match documentation.
10001 * gdbserver/Makefile.in: Likewise.
10002 * gdbserver/configure: Regenerated.
10003 * gdbserver/aclocal.m4: New file, generated by aclocal.
10004 * gdbserver/config.in: New file, generated by autoheader.
10005
375fd65b
RE
100062002-02-19 Richard Earnshaw <rearnsha@arm.com>
10007
10008 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10009 armnbsd-nat.c.
10010
08216dd7
RE
100112002-02-19 Richard Earnshaw <rearnsha@arm.com>
10012
10013 * arm-tdep.h (enum arm_float_model): New enum.
10014 (struct gdbarch_tdep): Add fp_model.
10015 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
10016 up floating-point conversions until we know the floating-point model
10017 in use by the inferior. Don't complain about being unable to
10018 determine the ABI of the inferior when we don't have one.
10019 (arm_extract_return_value): Support different floating-point models.
10020 (arm_store_return_value): Likewise.
aaa38bb5 10021 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
10022 ARM_FLOAT_SOFT.
10023 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10024
65d6d66a
PS
100252002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10026
10027 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10028 of ``current_gdbarch''.
10029
47221191
RE
100302002-02-19 Richard Earnshaw <rearnsha@arm.com>
10031
10032 * armnbsd-nat.c : ANSIfy all function declarations.
10033 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10034 (fetch_inferior_registers): Re-implement in terms of above.
10035 (store_register, store_regs, store_fp_register, store_fp_regs): New.
10036 (store_inferior_registers): Re-implement in terms of above.
10037
fdf39c9a
RE
100382002-02-19 Richard Earnshaw <rearnsha@arm.com>
10039
aaa38bb5 10040 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
10041 kernel.
10042 * arm-linux-tdep.c: Likewise.
10043 * config/arm/tm-linux.h: Likewise.
10044
93247f88
RE
100452002-02-19 Richard Earnshaw <rearnsha@arm.com>
10046
10047 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10048 * config/arm/nbsd.mt (TM_FILE): Delete.
10049 * config/arm/tm-nbsd.h: Delete.
10050
d7b486e7
RE
100512002-02-19 Richard Earnshaw <rearnsha@arm.com>
10052
10053 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10054 Initialize CALL_DUMMY_LENGTH.
10055
41d39a95
RE
100562002-02-19 Richard Earnshaw <rearnsha@arm.com>
10057
10058 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10059 function.
10060 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 10061 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
10062 defines one thing and that is incorrect for this port.
10063 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10064
e1195560
PM
100652002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10066
10067 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10068
c1748f97
PM
100692002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10070
10071 * win32-nat.c (display_selector): New function. Displays information
10072 about the information returned by GetThreadSelectorEntry API function.
10073 (display_selectors): New function. Displays the infomation of
10074 the selector given as argument, or of CS, DS ans FS selectors
10075 if no argument is given.
10076 ( _initialize_inftarg): Add "w32" as info prefix command.
10077 Add "info w32 selector" as command calling display_selectors.
10078
e41e6bbf
PM
100792002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
10080
10081 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10082 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10083 if not defined.
10084
0d3a9f48
RE
100852002-02-18 Richard Earnshaw <rearnsha@arm.com>
10086
10087 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10088
3fb4b924
RE
100892002-02-18 Richard Earnshaw <rearnsha@arm.com>
10090
10091 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10092 (arm_fix_call_dummy): Call it.
10093 (arm_call_dummy_breakpoint_offset): Delete.
10094 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10095 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10096
7f55af32
AC
100972002-02-18 Andrew Cagney <ac131313@redhat.com>
10098
10099 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10100 Default to func_frame_chain_valid.
10101 * gdbarch.h, gdbarch.c: Re-generate.
10102 * frame.h (FRAME_CHAIN_VALID): Delete definition.
10103
05f13b9c
EZ
101042002-02-18 Elena Zannoni <ezannoni@redhat.com>
10105
10106 * ppc-linux-nat.c: Update copyright.
10107 (fetch_register, store_register): Add tid parameter, don't compute
10108 tid here.
10109 (fetch_ppc_registers, store_ppc_registers): Add tid
10110 parameter. Pass it along to callees.
10111 (fetch_inferior_registers, store_inferior_registers): Compute tid
10112 here, and pass it to calleed functions.
10113 (fill_gregset, supply_fpregset): Clean up formatting.
10114
d7afb4c9
RE
101152002-02-18 Richard Earnshaw <rearnsha@arm.com>
10116
10117 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10118 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10119
9df628e0
RE
101202002-02-18 Richard Earnshaw <rearnsha@arm.com>
10121
10122 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10123 * gdbarch.c gdbarch.h: Regenerate.
10124 * breakpoint.c (create_longjmp_breakpoint): Always compile this
10125 function.
10126 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10127 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10128 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10129
10130 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10131 * arm-tdep.c (arm_get_longjmp_target): New function.
10132 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
10133 this to a positive value register arm_get_longjmp_target as the
10134 longjmp handler.
10135 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10136 (arm_linux_init_abi): Set up longjmp description in tdep.
10137 * armnbsd-nat.c (get_longjmp_target): Delete.
10138 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10139 description in tdep.
10140 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10141 (get_longjmp_target): Delete declaration.
10142 (GET_LONGJMP_TARGET): Delete.
10143 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10144 (GET_LONGJMP_TARGET): Delete.
10145
57bc8964
KB
101462002-02-17 Kevin Buettner <kevinb@redhat.com>
10147
10148 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
10149 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10150 of ``current_gdbarch''.
10151
83d31a92
TT
101522002-02-17 Tom Tromey <tromey@redhat.com>
10153
10154 * cli/cli-cmds.c (compare_strings): New function.
10155 (complete_command): Only print each unique item once.
10156 * completer.h (complete_line): Declare.
10157 * completer.c (complete_line): New function.
10158 (line_completion_function): Use it.
10159
17ef5d92
AC
101602002-02-16 Andrew Cagney <ac131313@redhat.com>
10161
10162 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10163 * gdbarch.h, gdbarch.c: Re-generate.
10164
491b8946
DJ
101652002-02-16 Daniel Jacobowitz <drow@mvista.com>
10166
10167 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10168
101692002-02-16 Daniel Jacobowitz <drow@mvista.com>
10170
10171 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10172 * valops.c (value_arg_coerce): Don't take the address of a reference
10173 to convert an argument to a reference.
10174
dfe7f3ac
CF
101752002-02-15 Christopher Faylor <cgf@redhat.com>
10176
10177 * win32-nat.c (get_image_name): New function.
10178 (handle_load_dll): Use get_image_name function.
10179 (get_child_debug_event): Avoid registering debug events until possibly
10180 execed process is started.
10181 (child_create_inferior): Allow invocation via shell so that command
10182 line redirection, etc. works ok.
10183 (_initialize_inftarg): Add new command: "set shell" to control whether
10184 a shell is used to start a process.
10185
1d33e73a
DJ
101862002-02-15 Daniel Jacobowitz <drow@mvista.com>
10187
10188 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10189 instead of find_register_by_number.
10190 (cannot_store_register): Likewise.
10191
48cd0caa
PM
101922002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
10193
aaa38bb5 10194 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
10195 fprintf_unfiltered (gdb_stderr, ...).
10196
8656e7d8
DJ
101972002-02-15 Daniel Jacobowitz <drow@mvista.com>
10198
10199 * gdbserver/gdbserver.1: Document --attach.
10200
66e810cd
RE
102012002-02-15 Richard Earnshaw <rearnsha@arm.com>
10202
10203 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10204 descriptions.
10205 * arm-tdep.c (arm_default_arm_le_breakpoint)
10206 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10207 (arm_default_thumb_be_breakpoint): New. Initialize them from
10208 traditional breakpoint defines.
10209 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10210 (arm_gdbarch_init): Initialize new breakpoint variables.
10211 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10212 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10213 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10214 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10215 code out to ...
10216 (arm_netbsd_init_abi_common): ... here; new function.
10217 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10218 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10219 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10220 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10221
97e03143
RE
102222002-02-15 Richard Earnshaw <rearnsha@arm.com>
10223
10224 * arm-tdep.h (enum arm_abi): New enum.
10225 (struct gdbarch_tdep): New structure.
10226 (LOWEST_PC): Provide a default.
10227 (arm_gdbarch_register_os_abi): Declare new function.
10228 * arm-tdep.c (arm_abi_names): New array.
10229 (process_note_abi_tag_sections): New function.
10230 (get_elfosabi): New function.
10231 (arm_gdbarch_register_os_abi): New function.
10232 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10233 support for that ABI has been built in, then call the appropriate
10234 configuration routine. Use gdbarch_num_regs() to get the number
10235 of registers.
10236 (arm_dump_tdep): New function.
10237 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10238 place-holder functions.
10239 (_initialize_arm_tdep): Register them.
10240 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10241
10242 * armnbsd-tdep.c: New file.
10243 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10244 * config/arm/nbsd.mt (TDEPFILES): Add it.
10245 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10246
10247 * armnbsd-nat.c: Include regcache.h.
10248 * Makefile.in (armnbsd-nat.o): Update dependency list.
10249
10250 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10251
ad68be46
DJ
102522002-02-14 Daniel Jacobowitz <drow@mvista.com>
10253
10254 * gdbserver/Makefile.in: Fix typos in target rules.
10255
003d6d1d
DJ
102562002-02-14 Daniel Jacobowitz <drow@mvista.com>
10257
aaa38bb5 10258 Fix part of PR gdb/267.
003d6d1d
DJ
10259 * linespec.c (find_methods): Handle constructors specially for now.
10260
6b230f1b
CV
102612002-02-14 Corinna Vinschen <vinschen@redhat.com>
10262
10263 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10264 handling.
10265 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10266 standard_coerce_float_to_double().
10267
1ea98d12
CF
102682002-02-14 Christopher Faylor <cgf@redhat.com>
10269
10270 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10271 GDBINIT_FILENAME.
10272
dd47e6fd
EZ
102732002-02-14 Elena Zannoni <ezannoni@redhat.com>
10274
10275 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10276 find_variant_by_name, because it confuses the multiarch
10277 framework. Return NULL if there isn't an architecture with the
10278 user supplied name, instead of forcing a different one without
10279 recording the change with the multiarch machinery.
10280 (find_variant_by_name): Delete.
10281
d7e39b9e
PS
102822002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10283
10284 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10285 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10286
76e42a4f
MH
102872002-02-13 Martin M. Hunt <hunt@redhat.com>
10288
aaa38bb5 10289 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
10290 print_frame_info_listing_hook, set current_source_symtab.
10291
0a30fbc4
DJ
102922002-02-14 Daniel Jacobowitz <drow@mvista.com>
10293
10294 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10295 and remove unused $(INCLUDE_DIR).
10296 Add regcache.c to OBS.
10297 Add generated register protocol files to clean target.
10298 Update dependencies for new objects, obsolete old target code.
10299
10300 * gdbserver/linux-low.c: Remove all platform-specific code to
10301 new files. Remove various dead code. Update to use regcache
10302 functionality.
10303 * gdbserver/remote-utils.c (fromhex): Add return statement
10304 to quiet warning.
10305 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10306 constant.
10307 (input_interrupt): Add integer parameter to match prototype
10308 of a signal handler.
10309 (outreg): Use register_data ().
10310 (prepare_resume_reply): Use gdbserver_expedite_regs.
10311 * gdbserver/server.c (main): Dynamically allocate own_buf because
10312 PBUFSIZ is no longer constant. Use registers_to_string () and
10313 registers_from_string ().
10314 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10315 for error (), fatal (), and warning (). Update definition of
10316 PBUFSIZ to use regcache functionality. Add include guard.
10317 * gdbserver/utils.c (fatal): Add missing ``const''.
10318 (warning): New function.
10319
10320 * regformats/regdat.sh: Include "regcache.h" in generated files.
10321 Provide init_registers () function.
10322 * regformats/regdef.h: Add prototype for set_register_cache ().
10323 Add include guard.
10324
10325 * gdbserver/linux-arm-low.c: New file.
10326 * gdbserver/linux-i386-low.c: New file.
10327 * gdbserver/linux-ia64-low.c: New file.
10328 * gdbserver/linux-m68k-low.c: New file.
10329 * gdbserver/linux-mips-low.c: New file.
10330 * gdbserver/linux-ppc-low.c: New file.
10331 * gdbserver/linux-sh-low.c: New file.
10332
10333 * gdbserver/regcache.c: New file.
10334 * gdbserver/regcache.h: New file.
10335
10336 * gdbserver/low-linux.c: Removed obsolete file.
10337
4cc841d0
DJ
103382002-02-14 Daniel Jacobowitz <drow@mvista.com>
10339
10340 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10341 * config/i386/linux.mt: Likewise.
10342 * config/ia64/linux.mt: Likewise.
10343 * config/m68k/linux.mh: Likewise.
10344 * config/powerpc/linux.mh: Likewise.
10345 * config/mips/linux.mt: Likewise.
10346
10347 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10348
10349 * config/i386/i386lynx.mh: Mark gdbserver variables
10350 as (currently) obsolete for this target.
10351 * config/i386/nbsd.mt: Likewise.
10352 * config/i386/nbsdelf.mt: Likewise.
10353 * config/m32r/m32r.mt: Likewise.
10354 * config/m68k/m68klynx.mh: Likewise.
10355 * config/m68k/nbsd.mt: Likewise.
10356 * config/m68k/sun3os4.mh: Likewise.
10357 * config/mips/vr5000.mt: Likewise.
10358 * config/ns32k/nbsd.mt: Likewise.
10359 * config/pa/hppabsd.mh: Likewise.
10360 * config/pa/hppaosf.mh: Likewise.
10361 * config/powerpc/nbsd.mt: Likewise.
10362 * config/rs6000/rs6000lynx.mh: Likewise.
10363 * config/s390/s390.mt: Likewise.
10364 * config/s390/s390x.mt: Likewise.
10365 * config/sparc/sparclynx.mh: Likewise.
10366 * config/sparc/sun4os4.mh: Likewise.
10367 * config/i386/x86-64linux.mt: Likewise.
10368 * config/sparc/linux.mh: Likewise.
10369
a85f51e7
DJ
103702002-02-14 Daniel Jacobowitz <drow@mvista.com>
10371
10372 * configure.tgt: Configure gdbserver only for known working
10373 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10374 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10375 SUBDIRS if it is configured. Update comment for ${nativefile}.
10376 * configure: Regenerated.
10377
65554fef
MS
103782002-02-13 Michael Snyder <msnyder@redhat.com>
10379
670a52db
MS
10380 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10381
6dbdc4a3
MS
10382 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10383 (default_gcore_mach): Just return 0, work around a problem in bfd.
10384 (default_gcore_target): OK to return NULL if exec_bfd is null.
10385 (make_mem_sec): Use a cast, avoid a warning.
10386
10387 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 10388 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
10389 sizeof (host pointer) != sizeof (target pointer)).
10390 (procfs_make_note_section): Avoid overflow in psargs string.
10391
aaa38bb5 10392 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
10393 implementation return an error.
10394
103952002-02-13 Rodney Brown <rbrown64@csc.com.au>
10396
10397 * procfs.c (procfs_make_note_section): Provide a default definition
10398 (for alpha-dec-osf4.0f). Fix typos.
10399
1e4d76e7
EZ
104002002-02-13 Elena Zannoni <ezannoni@redhat.com>
10401
10402 * linux-proc.c: Add include of regcache.h.
10403 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10404
b6d1a1d5
AC
104052002-02-13 Andrew Cagney <ac131313@redhat.com>
10406
10407 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
10408 * memattr.c (create_mem_region): Disallow useless empty region.
10409 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 10410 non-overlapping.
b6d1a1d5 10411
6c6ea35e
MC
104122002-02-13 Michael Chastain <mec@shout.net>
10413
10414 * defs.h: Kill CONST_PTR.
10415 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10416 * c-lang.c (c_builtin_types): Likewise.
10417 * ch-lang.c (ch_builtin_types): Likewise.
10418 * f-lang.c (f_builtin_types): Likewise.
10419 * language.c (unknown_builtin_types): Likewise.
10420 * m2-lang.c (m2_builtin_types): Likewise.
10421 * p-lang.c (pascal_builtin_types): Likewise.
10422 * scm-lang.c (c_builtin_types): Likewise.
10423
3e0b0f48
KS
104242002-02-13 Keith Seitz <keiths@redhat.com>
10425
10426 * arm-tdep.h (arm_get_next_pc): Add declaration.
10427
67255d04
RE
104282002-02-13 Richard Earnshaw <rearnsha@arm.com>
10429
10430 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10431 with other related struct-returning functions.
10432 (arm_extract_struct_value_address): New function.
10433 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10434 initialize float_format, double_format and long_double_format as
10435 appropriate to the endianness of the target.
10436 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10437 (arm_use_struct_convention): Delete declaration.
10438 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10439
079777f6
KS
104402002-02-13 Keith Seitz <keiths@redhat.com>
10441
10442 * defs.h (core_addr_to_string_nz): New function.
10443
34588f23
MK
104442002-02-13 Mark Kettenis <kettenis@gnu.org>
10445
10446 Apply missing bits of 2002-01-15 patch.
10447 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10448 (fill_fpregset): Use i387_fill_fsave.
10449
49b563f9
KS
104502002-02-12 Keith Seitz <keiths@redhat.com>
10451
49b563f9
KS
10452 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10453 (core_addr_to_string_nz): New function.
10454
aeb98c60
RE
104552002-02-11 Richard Earnshaw <rearnsha@arm.com>
10456
10457 * arm-linux-nat.c: Really include arm-tdep.h.
10458 * config/arm/tm-linux.h (struct type, struct value): Declare.
10459
65554fef
MS
104602002-02-11 Michael Snyder <msnyder@redhat.com>
10461
10462 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10463 (gcore section): Ifdef for Solaris and Unixware only.
10464 (procfs_do_thread_registers): Unixware needs one lwpstatus
10465 per thread (not one prstatus or pstatus).
10466 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10467 not over all gdb threads. For unixware, call elfcore_write_pstatus
10468 once before iterating over threads.
10469
34e8f22d
RE
104702002-02-11 Richard Earnshaw <rearnsha@arm.com>
10471
10472 * arm-tdep.h: New file.
10473 * arm-tdep.c: Include arm-tdep.h.
10474 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10475 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10476 (arm_print_float_info, arm_register_type, convert_to_extended)
10477 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10478 (arm_extract_return_value, arm_register_name): Make static.
10479 (arm_software_single_step): Similarly. Fix types in declaration.
10480 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10481 (arm_store_return_value, arm_store_struct_return): New functions.
10482 (arm_gdbarch_init): Register the above functions. Also register
10483 call_dummy_start_offset, sizeof_call_dummy_words,
10484 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10485 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 10486 max_register_virtual_size, register_size. Set up
34e8f22d
RE
10487 prologue_cache.saved_regs here, rather than ...
10488 (_initialize_arm_tdep): ... here.
10489 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10490 declarations.
10491 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10492 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10493 (arm_print_float_info, arm_register_type, convert_to_extended)
10494 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10495 (arm_extract_return_value, arm_register_name): Delete declarations.
10496 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10497 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10498 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10499 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10500 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10501 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10502 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10503 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10504 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10505 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10506 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10507 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10508 interface.
10509 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10510 * remote-rdi.c remote-rdp.c: Likewise.
10511 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10512 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10513 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10514 definition.
10515
10516 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10517 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10518 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10519 from non-ARM_ prefixed definitions.
10520 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10521 all uses of above.
10522 * remote-rdi.c remote-rdp.c: Likewise.
10523 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10524
148754e5
RE
105252002-02-11 Richard Earnshaw <rearnsha@arm.com>
10526
10527 * arm-tdep.c (arm_frameless_function_invocation)
10528 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10529 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10530 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10531 (arm_pop_frame, arm_get_next_pc): Make static.
10532 (arm_gdbarch_init): Register above in gdbarch structure.
10533 (arm_read_fp): Renamed from arm_target_read_fp.
10534 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10535 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10536 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10537 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10538 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10539 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10540 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
10541 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10542 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10543 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10544 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 10545
434d2d4f
DJ
105462002-02-10 Daniel Jacobowitz <drow@mvista.com>
10547
10548 * symtab.c (compare_search_syms): New function.
10549 (sort_search_symbols): New function.
10550 (search_symbols): Sort symbols after searching rather than
10551 before.
10552
55241689
AC
105532002-02-10 Andrew Cagney <ac131313@redhat.com>
10554
10555 * NEWS: Linux -> GNU/Linux.
10556
028c194b
AC
105572002-02-10 Andrew Cagney <ac131313@redhat.com>
10558
10559 * gdbarch.sh: For for level one methods, disallow a definition
10560 when partially multi-arched. Add comments explaining rationale.
10561 * gdbarch.h: Re-generate.
10562
6acf50cd
AC
105632002-02-10 Andrew Cagney <ac131313@redhat.com>
10564
10565 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10566 multi-arch partial.
aaa38bb5 10567
50248794
AC
105682002-02-10 Andrew Cagney <ac131313@redhat.com>
10569
10570 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10571 field. Use diff -u.
10572 * gdbarch.c: Re-generate.
10573
c30e0066
AC
105742002-02-10 Andrew Cagney <ac131313@redhat.com>
10575
9b56c5f3 10576 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
10577 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10578 partial.
10579
6e6d6484
AC
105802002-02-10 Andrew Cagney <ac131313@redhat.com>
10581
10582 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10583 multi-arch partial.
10584 (PUSH_ARGUMENTS): Switch to using predefault.
10585 * gdbarch.c: Regenerate.
10586
c203844d
AC
105872002-02-10 Andrew Cagney <ac131313@redhat.com>
10588
10589 * valops.c (PUSH_ARGUMENTS): Delete definition.
10590 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10591 partial. Default to default_push_arguments.
10592 * gdbarch.h, gdbarch.c: Regenerate.
10593
b5a2688f
AC
105942002-02-09 Andrew Cagney <ac131313@redhat.com>
10595
10596 * defs.h (throw_exception): Rename return_to_top_level. Update
10597 comments.
10598 * utils.c (error_stream, internal_verror, quit): Ditto.
10599 * top.c (throw_exception, catcher): Ditto.
10600 * sparclet-rom.c (sparclet_load): Ditto.
10601 * remote.c (interrupt_query, minitelnet): Ditto.
10602 * remote-sds.c (interrupt_query): Ditto.
10603 * remote-mips.c (mips_error, mips_kill): Ditto.
10604 * ocd.c (interrupt_query): Ditto.
10605 * monitor.c (monitor_interrupt_query): Ditto.
10606 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10607 * target.h: Update comment.
aaa38bb5 10608
b5a2688f 10609 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 10610
2fa5c1e0
AC
106112002-02-09 Andrew Cagney <ac131313@redhat.com>
10612
10613 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10614 default_double_format.
10615 * gdbarch.h, gdbarch.c: Re-generate.
10616 * findvar.c (floatformat_unknown): Delete variable definition.
10617 * doublest.h (floatformat_unknown): Delete variable declaration.
10618
da966255
JB
106192002-02-09 Jim Blandy <jimb@redhat.com>
10620
10621 * stabsread.c (read_type): Add code to parse Sun's syntax for
10622 prototyped function types.
10623
123a4891
AC
106242002-02-09 Andrew Cagney <ac131313@redhat.com>
10625
10626 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10627 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10628
fb39c8f3
PS
106292002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10630
10631 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10632 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10633 now _initialize_xcoffsolib gets called again and overrides the
10634 commands from solib.c in a native configuration.
10635
0b87a11d
MK
106362002-02-09 Mark Kettenis <kettenis@gnu.org>
10637
10638 * doublest.c (store_typed_floating): Don't try to return a value.
10639 Fixes PR gdb/290.
10640
bdc2fc72
JB
106412002-02-08 Jim Blandy <jimb@redhat.com>
10642
10643 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10644 is prototyped and has no arguments, print its argument list as
10645 `(void)'.
10646
da69bbcf
CD
106472002-02-08 Chris Demetriou <cgd@broadcom.com>
10648
10649 * MAINTAINERS (write-after-approval): Add myself.
10650 (paper-trail): I've escaped!
aaa38bb5 10651
b69571f5
CF
106522002-02-08 Christopher Faylor <cgf@redhat.com>
10653
10654 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10655 changes.
10656 (_initialize_check_for_gdb_ini): Ditto.
10657
f6871398
MH
106582002-02-08 Martin M. Hunt <hunt@redhat.com>
10659
10660 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10661 xaprintf -> xasprintf.
10662
4e52d31c
PM
106632002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10664
10665 * win32-nat.c: Remove use of printf and sprintf functions.
10666
39bbf761
RE
106672002-02-08 Richard Earnshaw <rearnsha@arm.com>
10668
10669 * arm-tdep.c (arm_frame_chain_valid): Make static.
10670 (arm_push_arguments): Likewise.
10671 (arm_gdbarch_init): New function.
10672 (_initialize_arm_tdep): Call it.
10673 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10674 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10675 (FRAME_CHAIN_VALID): Delete.
10676 (arm_frame_chain_valid): Delete declaration.
10677 (PUSH_ARGUMENTS): Delete.
10678 (arm_push_arguments): Delete declaration.
10679 (CALL_DUMMY_P): Delete.
10680
9c9532c9
CV
106812002-02-08 Andrew Cagney <ac131313@redhat.com>
10682 Corinna Vinschen <vinschen@redhat.com>
10683
10684 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10685 on builtin float types.
10686
4e8f7a8b
DJ
106872002-02-08 Daniel Jacobowitz <drow@mvista.com>
10688
10689 * utils.c: Include <curses.h> before "bfd.h".
10690 * tui/tui-hooks.c: Likewise.
10691 * tui/tui.c: Likewise.
10692 * tui/tuiCommand.c: Likewise.
10693 * tui/tuiData.c: Likewise.
10694 * tui/tuiDataWin.c: Likewise.
10695 * tui/tuiDisassem.c: Likewise.
10696 * tui/tuiGeneralWin.c: Likewise.
10697 * tui/tuiIO.c: Likewise.
10698 * tui/tuiLayout.c: Likewise.
10699 * tui/tuiRegs.c: Likewise.
10700 * tui/tuiSource.c: Likewise.
10701 * tui/tuiSourceWin.c: Likewise.
10702 * tui/tuiStack.c: Likewise.
10703 * tui/tuiWin.c: Likewise.
10704
cd4bffcf
EZ
107052002-02-07 Elena Zannoni <ezannoni@redhat.com>
10706
10707 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10708 to include space for pseudoregs as well. Update loops accordingly.
10709 (sh_fp_frame_init_saved_regs): Ditto.
10710 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10711
26806ce2
AC
107122002-02-07 Andrew Cagney <ac131313@redhat.com>
10713
10714 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10715 Add Richard Earnshaw to Arm maintainers.
10716
97fdab62
AC
107172002-02-07 Andrew Cagney <ac131313@redhat.com>
10718
a6b98203
AC
10719 * defs.h (warning_begin): Delete declaration.
10720
97fdab62
AC
10721 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10722 Delete macro.
10723
78b29b40
MS
107242002-02-07 Michael Snyder <msnyder@redhat.com>
10725
aaa38bb5 10726 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
10727 Logic bug, remove misplaced else.
10728
d8849953
KD
107292002-02-07 Klee Dienes <klee@apple.com>
10730
10731 * fork-inferior.c (fork_inferior): Add '!' to the list of
10732 characters that need to be quoted when building a string for the
10733 shell. Quote '!' specifically with a backslash, since CSH chokes
10734 when trying to evaluate "str!str".
aaa38bb5 10735
095778a0
NC
107362002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10737
10738 * rdi-share/host.h: Only provide a typedef for bool if it is not
10739 defined.
10740
1900040c
MS
107412002-02-04 Michael Snyder <msnyder@redhat.com>
10742
10743 * breakpoint.h (enum bptype): Add new overlay event bp type.
10744 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 10745
1900040c
MS
10746 * breakpoint.c (create_internal_breakpoint): New function.
10747 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10748 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10749 (create_thread_event_breakpoint): Ditto.
10750 (create_solib_event_breakpoint): Ditto.
10751 (create_overlay_event_breakpoint): New function.
10752 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10753 (update_breakpoints_after_exec): Delete and re-initialize
10754 overlay event breakpoints after an exec. Add FIXME comment
10755 about longjmp breakpoint.
10756 (print_it_typical): Ignore overlay event breakpoints.
10757 (print_one_breakpoint): Ditto.
10758 (mention): Ditto.
10759 (bpstat_what): Do not stop for overlay event breakpoints.
10760 (delete_breakpoint): Don't delete overlay event breakpoints.
10761 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10762 (breakpoint_re_set): Re-create overlay event breakpoint.
10763
10764 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10765 (overlay_manual_command): Disable overlay breakpoints.
10766 (overlay_off_command): Disable overlay breakpoints.
10767
082fc60d
RE
107682002-02-06 Richard Earnshaw <rearnsha@arm.com>
10769
10770 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10771 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10772 to here from config/tm-arm.h.
10773 (coff_sym_is_thumb): Make static.
10774 (arm_elf_make_msymbol_special): New function.
10775 (arm_coff_make_msymbol_special): New function.
10776 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10777 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10778 (coff_sym_is_thumb): Delete declaration.
10779 (arm_elf_make_msymbol_special): Declare.
10780 (arm_coff_make_msymbol_special): Declare.
10781 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10782 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10783
039c5766
RE
107842002-02-06 Richard Earnshaw <rearnsha@arm.com>
10785
10786 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10787
107882002-02-06 Richard Earnshaw <rearnsha@arm.com>
10789
10790 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10791 * gdbarch.c gdbarch.h: Regenerate.
10792 * arch-utils.c (default_print_float_info): New function.
10793 * arch-utils.h (default_print_float_info): Prototype it.
10794 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10795 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10796 (PRINT_FLOAT_INFO): Document it.
10797
10798 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10799 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10800 (PRINT_FLOAT_INFO): Define.
10801
58fa08f0
PM
108022002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10803
aaa38bb5 10804 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10805 Add typecast to sprintf argument to suppress a warning.
10806
7393af7c
PM
108072002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10808
58fa08f0 10809 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10810 to allow easier handling of pass state.
10811 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10812 that gives exception name and address.
10813 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10814 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10815 exceptions added.
aaa38bb5
AJ
10816 (child_continue): Correctly report continue_status.
10817 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10818 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10819 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10820 the exception should be passed to debuggee or not.
10821
6af4589c
MS
108222002-02-05 Michael Snyder <msnyder@redhat.com>
10823
10824 * regcache.c (fetch_register): Call target_fetch_register
10825 only if we don't call FETCH_PSEUDO_REGISTER.
10826 (store_register): Call target_store_register only if we
10827 don't call STORE_PSEUDO_REGISTER.
10828
a2cf933a
EZ
108292002-02-05 Elena Zannoni <ezannoni@redhat.com>
10830
10831 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10832 ELF_MAKE_MSYMBOL_SPECIAL.
10833 * gdbarch.c, gdbarch.h: Regenerate.
10834 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10835 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10836 * elfread.c (elf_symtab_read): Compile use of
10837 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10838 multiarched.
10839 * coffread.c (coff_symtab_read): Ditto, for
10840 COFF_MAKE_MSYMBOL_SPECIAL.
10841
6bb7be43
JB
108422002-02-05 Jim Blandy <jimb@redhat.com>
10843
10844 * solib-svr4.c (svr4_truncate_ptr): New function.
10845 (svr4_relocate_section_addresses): Do the address arithmetic with
10846 the appropriate truncation for target addresses, even when
10847 CORE_ADDR is larger than a target address.
10848
e18651ec
DJ
108492002-02-05 Daniel Jacobowitz <drow@mvista.com>
10850
10851 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10852 to (int *).
10853
6b2725be
DJ
108542002-02-05 Daniel Jacobowitz <drow@mvista.com>
10855
10856 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10857 code.
10858
fca9e603
DJ
108592002-02-05 Daniel Jacobowitz <drow@mvista.com>
10860
10861 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10862
6c537a52
DJ
108632002-02-05 Daniel Jacobowitz <drow@mvista.com>
10864
10865 * gdbserver/linux-low.c: Remove unused include files.
10866
d844cde6
DJ
108672002-02-05 Daniel Jacobowitz <drow@mvista.com>
10868
10869 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10870 (read_inferior_memory): Use it.
10871 (write_inferior_memory): Likewise.
10872
d07c63e7
DJ
108732002-02-05 Daniel Jacobowitz <drow@mvista.com>
10874
10875 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10876 grubbing through sys_errlist.
10877
da6d8c04
DJ
108782002-02-05 Daniel Jacobowitz <drow@mvista.com>
10879
10880 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10881
5b421780
PM
108822002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10883 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10884
9f60d481
AC
108852002-02-04 Andrew Cagney <ac131313@redhat.com>
10886
10887 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10888 (do_sfunc, set_cmd_sfunc): New functions.
10889
10890 * command.h (struct cmd_list_element): Add field func.
10891 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10892 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10893 * cli/cli-decode.h: Ditto.
10894
10895 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10896 (help_all, help_cmd_list): Ditto.
10897 (find_cmd, complete_on_cmdlist): Ditto.
10898 * top.c (execute_command): Ditto.
10899
10900 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10901 function.sfunc.
10902
10903 * infcmd.c (notice_args_read): Fix function signature.
10904
10905 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10906 * cli/cli-decode.c (add_set_cmd): Ditto.
10907 * utils.c (initialize_utils): Ditto.
10908 * maint.c (_initialize_maint_cmds): Ditto.
10909 * infrun.c (_initialize_infrun): Ditto.
10910 * demangle.c (_initialize_demangler): Ditto.
10911 * remote.c (add_packet_config_cmd): Ditto.
10912 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10913 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10914 * proc-api.c (_initialize_proc_api): Ditto.
10915 * kod.c (_initialize_kod): Ditto.
10916 * valprint.c (_initialize_valprint): Ditto.
10917 * top.c (init_main): Ditto.
10918 * infcmd.c (_initialize_infcmd): Ditto.
10919 * corefile.c (_initialize_core): Ditto.
10920 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10921 * arch-utils.c (initialize_current_architecture): Ditto.
10922 (_initialize_gdbarch_utils): Ditto.
10923 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10924
10925 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10926 * wince.c (_initialize_inftarg): Ditto.
10927 * symfile.c (_initialize_symfile): Ditto.
10928 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10929 * language.c (_initialize_language): Ditto.
10930 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10931
f9ba0717
MS
109322002-02-04 Michael Snyder <msnyder@redhat.com>
10933
10934 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10935
0c74b2a7
DJ
109362002-02-04 Daniel Jacobowitz <drow@mvista.com>
10937
10938 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10939 Add rules for building the register data files.
10940
c638789f
DJ
109412002-02-04 Daniel Jacobowitz <drow@mvista.com>
10942
10943 * regformats/regdat.sh: Add braces to the definition of
10944 expedite_regs_${arch}.
10945
db253027
DJ
109462002-02-04 Daniel Jacobowitz <drow@mvista.com>
10947
10948 * regformats/regdef.h (struct reg): Add comment describing the
10949 requirements for offset and size fields.
10950
206be19c
AS
109512002-02-04 Andreas Schwab <schwab@suse.de>
10952
10953 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10954 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10955
181c1381
RE
109562002-02-04 Richard Earnshaw <rearnsha@arm.com>
10957
10958 * gdbarch.sh (copyright): Update years in generated header.
10959 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10960 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10961 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10962 * dbxread.c: Likewise.
10963 * dwarfread.c: Likewise.
10964 * elfread.c: Likewise.
10965 * somread.c: Likewise.
10966
10967 * arm-tdep.c (arm_smash_text_address): New function.
10968 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10969
fa4ba8da
PM
109702002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10971
10972 Add support for hardware watchpoints on win32 native.
aaa38bb5 10973 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10974 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10975 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10976 of debug registers.
10977 (debug_registers_changed): New variable. Reflects when debug registers
10978 are changed and need to be written to inferior.
aaa38bb5 10979 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10980 was set, used when new threads are created.
10981 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10982 i386-nat code.
10983 (thread_rec): Set dr array if id is the thread of current_event .
10984 (child_continue, child_resume): Change the debug registers for all
10985 threads if debug_registers_changed.
10986 (child_add_thread): Change the debug registers if debug_registers_used.
10987 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10988 Link nm.h to new nm-cygwin.h file.
10989 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10990 of hardware registers.
10991
a73c86fb
AC
109922002-02-03 Andrew Cagney <ac131313@redhat.com>
10993
10994 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10995 Restore behavour broken by 2002-01-20 Andrew Cagney
10996 <ac131313@redhat.com> IEEE_FLOAT removal.
10997
acf5ed49
DJ
109982002-02-03 Daniel Jacobowitz <drow@mvista.com>
10999
11000 * c-valprint.c (c_val_print): Pass a proper valaddr to
11001 cp_print_class_method.
11002 * valops.c (search_struct_method): If there is only one method
11003 and args is NULL, return that method.
11004
493d28d5
DJ
110052002-02-03 Daniel Jacobowitz <drow@mvista.com>
11006
11007 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11008 accessing tag_name directly.
11009
7495dfdb
DJ
110102002-02-03 Daniel Jacobowitz <drow@mvista.com>
11011
11012 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11013 of accessing tag_name directly.
11014
dd6bda65
DJ
110152002-02-03 Daniel Jacobowitz <drow@mvista.com>
11016
11017 PR gdb/280
11018 * gdbtypes.c (replace_type): New function.
11019 * gdbtypes.h (replace_type): Add prototype.
11020 * stabsread.c (read_type): Use replace_type.
11021
88fe217c
RE
110222002-02-03 Richard Earnshaw <rearnsha@arm.com>
11023
11024 * Makefile.in (memattr.o): Add missing dependencies rule.
11025
e5d66720
PS
110262002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11027
11028 * breakpoint.c (break_at_finish_command): Really export.
11029 (break_at_finish_at_depth_command): Ditto.
11030 (tbreak_at_finish_command): Ditto.
11031 * hppa-tdep.c: Include completer.h.
11032 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11033 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11034
fffee0be
AC
110352002-02-01 Andrew Cagney <ac131313@redhat.com>
11036
11037 * utils.c (do_write): New function.
11038 (error_stream): Rewrite combining the code from error_begin and
11039 verror.
11040 (verror): Rewrite using error_stream.
11041 (error_begin): Delete function.
11042
255e7dbf
AC
110432002-02-01 Andrew Cagney <ac131313@redhat.com>
11044
11045 * utils.c (error_begin): Make static.
11046 * defs.h (error_begin): Delete declaration.
11047
11048 * linespec.c (cplusplus_error): Replace cplusplus_hint.
11049 (decode_line_1): Use cplusplus_error instead of error_begin,
11050 cplusplus_hint and return_to_top_level.
11051 * coffread.c (coff_symfile_read): Use error instead of error_begin
11052 and return_to_top_level.
11053 * infrun.c (default_skip_permanent_breakpoint): Ditto.
11054
ddfe3c15
AC
110552002-02-01 Andrew Cagney <ac131313@redhat.com>
11056
11057 * language.h (type_error, range_error): Make string parameter
11058 constant.
11059 * language.c (warning_pre_print): Delete extern declaration.
11060 * dwarfread.c (warning_pre_print): Ditto.
11061 * language.c (type_error, range_error): Rewrite to use verror and
11062 vwarning instead of warning_begin.
11063
03ac34d5
MS
110642002-02-01 Michael Snyder <msnyder@redhat.com>
11065
261c4ca2
MS
11066 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11067 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 11068
e00d1dc8
AC
110692002-02-01 Andrew Cagney <ac131313@redhat.com>
11070
11071 * command.h (NO_FUNCTION): Delete macro.
11072 * cli/cli-decode.h (NO_FUNCTION): Ditto.
11073 * top.c (execute_command): Replace NO_FUNCTION with NULL.
11074 * tracepoint.c (_initialize_tracepoint): Ditto.
11075 * cli/cli-decode.c (add_set_cmd): Ditto.
11076 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 11077
76b79d6e
DJ
110782002-02-01 Daniel Jacobowitz <drow@mvista.com>
11079
11080 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11081 Update ``this'' pointer when calling virtual functions.
11082
799f9e91
MS
110832002-02-01 Michael Snyder <msnyder@redhat.com>
11084
c7bd442c 11085 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
11086 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11087
3cf384d4
DJ
110882002-02-01 Daniel Jacobowitz <drow@mvista.com>
11089
11090 * regformats/reg-arm.dat: New file.
11091 * regformats/reg-i386.dat: New file.
11092 * regformats/reg-ia64.dat: New file.
11093 * regformats/reg-m68k.dat: New file.
11094 * regformats/reg-mips.dat: New file.
11095 * regformats/reg-ppc.dat: New file.
11096 * regformats/reg-sh.dat: New file.
11097 * regformats/regdef.h: New file.
11098 * regformats/regdat.sh: New file.
11099
0defa245
RE
111002002-02-01 Richard Earnshaw <reanrsha@arm.com>
11101
11102 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11103 (arm_frame_args_address, arm_frame_locals_address): New functions.
11104 (arm_frame_num_args): New function.
11105 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11106 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11107 (FRMA_NUM_ARGS): Call arm_frame_num_args.
11108
405f26e6
MS
111092002-01-31 Michael Snyder <msnyder@redhat.com>
11110
502fd408
MS
11111 * breakpoint.c (break_at_finish_command): Export.
11112 (break_at_finish_at_depth_command): Export.
11113 (tbreak_at_finish_command): Export.
d6020d45 11114 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 11115 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 11116 "txbreak" commands, which are HPPA specific.
502fd408 11117
7d35e135
MS
11118 * printcmd.c (disassemble_command): Remove an ancient
11119 artifact of an old merge.
11120
aaa38bb5 11121 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
11122 Define enum constant values for overlay mode.
11123 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
11124 (overlay_is_mapped, overlay_auto_command,
11125 overlay_manual_command): Ditto.
d874f1e2 11126
aaa38bb5
AJ
11127 * breakpoint.c (insert_breakpoints, remove_breakpoint,
11128 breakpoint_here_p, breakpoint_inserted_here_p,
11129 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
11130 describe_other_breakpoints, check_duplicates, clear_command):
11131 Coding standard fixes.
11132
8add0441 11133 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 11134 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
11135 code: check bfd SEC_READONLY flag for section.
11136
e351066e
AC
111372002-01-31 Andrew Cagney <ac131313@redhat.com>
11138
7d35e135 11139 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 11140
8a48e967
DJ
111412002-01-30 Daniel Jacobowitz <drow@mvista.com>
11142
11143 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11144 data symbols, since we search based on textlow and texthigh.
11145 (find_pc_sect_symtab): Likewise.
11146
f5a96129
AC
111472002-01-30 Andrew Cagney <ac131313@redhat.com>
11148
11149 * defs.h (vwarning): Declare.
f5a96129
AC
11150 * utils.c (vwarning): New function.
11151 (warning): Call vwarning.
11152 (warning_begin): Delete function.
11153
11154 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11155 the warning message.
11156 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11157 warning_begin.
11158
cefd4ef5
MS
111592002-01-30 Michael Snyder <msnyder@redhat.com>
11160
1a703748
MS
11161 * NEWS: Mention "set trust-readonly-sections" command.
11162 Mention generate-core-file command.
cefd4ef5 11163
3a11626d
MS
111642002-01-15 Michael Snyder <msnyder@redhat.com>
11165
11166 * target.c: New command, "set trust-readonly-sections on".
11167 (do_xfer_memory): Honor the suggestion to trust readonly sections
11168 by reading them from the object file instead of from the target.
11169 (initialize_targets): Register command "set trust-readonly-sections".
11170
d1c7e53b
AC
111712002-01-29 Andrew Cagney <ac131313@redhat.com>
11172
11173 * parse.c (target_map_name_to_register): Simplify, search regs and
11174 pseudo-regs using a single loop.
11175
e2c9a72c
AC
111762002-01-30 Andrew Cagney <ac131313@redhat.com>
11177
11178 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11179
69824b4e
MK
111802002-01-15 Rodney Brown <rbrown64@csc.com.au>
11181
11182 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11183 * config/i386/i386v42mp.mh: Add i387-nat.o .
11184 * i386v4-nat.c: Include i387-nat.h.
11185 (supply_fpregset): Use i387_supply_fsave.
11186 (fill_fpregset): Use i387_fill_fsave.
11187
6eb69eab
RE
111882002-01-30 Richard Earnshaw <rearnsha@arm.com>
11189
11190 * arm-tdep.c (arm_call_dummy_words): Define.
11191 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11192 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11193 (CALL_DUMMY_WORDS): Define.
11194 (arm_call_dummy_words): Declare.
11195 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11196 (arm_linux_call_dummy_words): Declare.
11197
9852326a
AS
111982002-01-30 Andreas Schwab <schwab@suse.de>
11199
11200 * m68klinux-nat.c: Fix last change to use regcache_collect
11201 instead of referencing registers[] directly.
11202
977a3030
AC
112032002-01-29 Andrew Cagney <ac131313@redhat.com>
11204
11205 * parse.c (target_map_name_to_register): Delete code wrapped in
11206 #ifdef REGISTER_NAME_ALIAS_HOOK.
11207
2076c72b
MS
112082002-01-28 Michael Snyder <msnyder@redhat.com>
11209
11210 * regcache.c (legacy_read_register_gen): Need to be able to
11211 read pseudo-register as well as real register.
11212 (legacy_write_register_gen): Ditto.
11213
8fcc723b
AC
112142002-01-28 Andrew Cagney <ac131313@redhat.com>
11215
11216 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11217 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11218 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11219 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11220 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11221 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11222 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11223 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11224 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11225 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11226 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11227 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11228 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11229 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11230 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11231 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11232 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11233 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11234 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11235 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11236
afe64c1a
AC
112372002-01-28 Andrew Cagney <ac131313@redhat.com>
11238
11239 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11240 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11241 (initialize_current_architecture): Update target_byte_order using
11242 information from BFD.
aaa38bb5 11243 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
11244 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11245
75bc7ddf
AC
112462002-01-28 Andrew Cagney <ac131313@redhat.com>
11247
11248 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11249 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11250
11251 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11252 #ifdef INVALID_FLOAT.
11253 * infcmd.c (do_registers_info): Ditto.
11254 * values.c (unpack_double): Ditto. Add comment.
11255
11256 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11257 already commented out.
11258
0280a90a
AS
112592002-01-26 Andreas Schwab <schwab@suse.de>
11260
11261 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11262 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11263 registers and add support for PTRACE_GETREGS.
11264
7072a954
AC
112652002-01-24 Andrew Cagney <ac131313@redhat.com>
11266
11267 GDB 5.1.1 released from 5.1 branch.
11268 * NEWS: Add 5.1.1 news.
11269 * README: Sync with 5.1 branch.
11270
86f902e0
FF
112712002-01-23 Fred Fish <fnf@redhat.com>
11272
11273 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11274 stabstring on initial malloc. Reallocing will copy it for us,
11275 if necessary.
11276
8af51c36
EZ
112772002-01-23 Elena Zannoni <ezannoni@redhat.com>
11278
aaa38bb5 11279 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
11280 (HFILES_NO_SRCDIR): Remove hpread.h.
11281 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11282 (hpread.o): Update dependencies.
11283 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11284
11285 * hp-psymtab-read.c: Remove file.
11286 * hp-symtab-read.c: Remove file.
11287 * hpread.h: Remove file.
11288
11289 * hpread.c: Merge all contents of hp-psymtab-read.c,
11290 hp-symtab-read.c and hpread.h into this file, as it was prior to
11291 January 1999.
11292
11293 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 11294 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
11295 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11296 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11297
dc5cfeb6
EZ
112982002-01-23 Elena Zannoni <ezannoni@redhat.com>
11299
11300 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11301 fill_gregset): Call gdbarch_tdep() just once, assign result to
11302 variable and use that, instead of calling the function several
11303 times.
11304
ea87b71b
AO
113052002-01-24 Alexandre Oliva <aoliva@redhat.com>
11306
11307 * configure.host: Accept sparcv9 as alias for sparc64.
11308 * configure.tgt: Likewise.
11309
13fc0c2f
KB
113102002-01-22 Kevin Buettner <kevinb@redhat.com>
11311
11312 * solib-aix5.c (build_so_list_from_mapfile)
11313 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11314 arguments is not reversed.
11315 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11316 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 11317
7bd872fe
EZ
113182002-01-22 Elena Zannoni <ezannoni@redhat.com>
11319
11320 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11321 modified version of obsolete sh_fetch_pseudo_register.
11322 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11323 (sh4_register_read): New function.
11324 (sh_pseudo_register_write): New function. Renamed and modified
11325 version of obsolete sh_store_pseudo_register.
11326 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11327 (sh4_register_write): New function.
11328 (sh_gdbarch_init): Remove setting of gdbarch function
11329 fetch_pseudo_register and store_pseudo_register. Remove setting of
11330 register_convert_to_raw, register_convert_to_virtual,
11331 register_convertible.
11332 (sh_sh4_register_convertible): Delete. No longer needed. All is
11333 taken care by architecture specific functions
11334 register_read/register_write.
11335 (sh_sh4_register_convert_to_virtual): Make static.
11336 (sh_sh4_register_convert_to_raw): Ditto.
11337
069e84fd
AC
113382002-01-22 Andrew Cagney <ac131313@redhat.com>
11339
11340 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11341 (floatformat_is_nan, floatformat_mantissa): Ditto.
11342
11343 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11344 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11345 builtin_type_ieee_double_little,
11346 builtin_type_ieee_double_littlebyte_bigword,
11347 builtin_type_m68881_ext, builtin_type_i960_ext,
11348 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11349 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11350 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11351 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11352
211a4f69
CV
113532002-01-22 Corinna Vinschen <vinschen@redhat.com>
11354
11355 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11356 parameter. Set frameless flag if it exists and depended of
11357 whether the scanned function is frameless or not.
11358 (xstormy16_skip_prologue): If function is frameless, return
11359 result of xstormy16_scan_prologue().
11360 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11361 call.
11362
f81353e4
EZ
113632002-01-21 Elena Zannoni <ezannoni@redhat.com>
11364
11365 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11366 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11367 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11368 sh_sh4_register_byte, sh_sh4_register_raw_size,
11369 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11370 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11371 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11372 sh_store_pseudo_register, sh_do_pseudo_register): Call
11373 gdbarch_tdep() just once, assign result to variable and use that,
11374 instead of calling the function several times.
11375
63c73a17
MK
113762002-01-20 Mark Kettenis <kettenis@gnu.org>
11377
11378 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11379 macros instead of LAST_FPU_CTRL_REGNUM.
11380 (store_register): Likewise.
11381
39ad761d
JB
113822002-01-21 Jim Blandy <jimb@redhat.com>
11383
11384 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11385 is up-to-date before running the program, not just when a program
11386 exits.
11387
3d74b771
FF
113882002-01-21 Fred Fish <fnf@redhat.com>
11389
11390 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11391 when we have found all instructions we are looking for.
11392
966fbf70
RE
113932002-01-21 Richard Earnshaw <rearnsha@arm.com>
11394
11395 * arm-tdep.c (arm_register_name): New function.
11396 (arm_registers_names): Make static.
11397 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11398 (arm_register_name): Declare.
11399 (REGISTER_NAME): Use it.
11400
c3b4394c
RE
114012002-01-21 Richard Earnshaw <rearnsha@arm.com>
11402 Kevin Buettner <kevinb@redhat.com>
11403
11404 Convert arm targets to new FRAME interface.
11405 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11406 (arm_frame_find_save_regs): Delete.
11407 (arm_frame_init_saved_regs): New.
11408 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11409 Allocate extra_info as required. Convert all uses of fsr.regs
11410 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11411 to use extra_info.
11412 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11413 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11414 (check_prologue_cache, save_prologue_cache): Likewise.
11415 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11416 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11417 (FRAME_FIND_SAVED_REGS): Delete.
11418 (arm_frame_find_saved_regs): Delete prototype.
11419 (arm_frame_init_saved_regs): New prototype.
11420 (FRAME_INIT_SAVED_REGS): Define.
11421
61d99182
AC
114222002-01-20 Andrew Cagney <ac131313@redhat.com>
11423
11424 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11425
6aaea291
AC
114262002-01-20 Andrew Cagney <ac131313@redhat.com>
11427
11428 From Jeff Law <law@redhat.com>:
11429 * infttrace.c: Include <sys/pstat.h>.
11430 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11431 exec file if the ttrace equivalent fails.
11432
15f698d2
AC
114332002-01-20 Andrew Cagney <ac131313@redhat.com>
11434
11435 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11436 (closeLogFile): Ditto.
11437
f86ddd7c
MC
114382002-01-20 Michael Chastain <mec@shout.net>
11439
11440 * top.c (print_gdb_version): Bump copyright year to 2002.
11441
904507ce
AC
114422002-01-20 Andrew Cagney <ac131313@redhat.com>
11443
11444 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11445 Zannoni and Eli Zaretskii.
11446
d7f0b9ce
DJ
114472002-01-20 Daniel Jacobowitz <drow@mvista.com>
11448
11449 * buildsym.c: Update copyright years.
11450 * c-typeprint.c: Likewise.
11451 * dwarf2read.c: Likewise.
11452 * f-typeprint.c: Likewise.
11453 * gdbtypes.c: Likewise.
11454 * gdbtypes.h: Likewise.
11455 * hp-symtab-read.c: Likewise.
11456 * hpread.c: Likewise.
11457 * mdebugread.c: Likewise.
11458 * p-typeprint.c: Likewise.
11459
3fd3d7d2
AC
114602002-01-20 Andrew Cagney <ac131313@redhat.com>
11461
11462 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11463 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11464 byte-order selectable.
11465 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11466 * arch-utils.c: Ditto.
11467 (set_endian): Ditto.
11468 (set_endian_from_file): Ditto.
11469 * gdbserver/low-sim.c (create_inferior): Ditto.
11470 * gdbarch.sh: Ditto.
11471 * gdbarch.h: Re-generate.
aaa38bb5
AJ
11472 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11473 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11474 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11475 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11476 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11477 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11478 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
11479 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11480 macro definition.
11481 * config/mips/tm-wince.h: Remove #undef of macro
11482 TARGET_BYTE_ORDER_SELECTABLE.
11483 * config/sh/tm-wince.h: Ditto.
11484
b02dede2
DJ
114852002-01-20 Daniel Jacobowitz <drow@mvista.com>
11486
11487 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11488 member function fields. Add accessor macro
11489 TYPE_FN_FIELD_ARTIFICIAL.
11490 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11491 * c-typeprint.c (c_type_print_base): Skip artificial member
11492 functions.
11493
c3643761
DJ
114942002-01-20 Daniel Jacobowitz <drow@mvista.com>
11495
11496 * f-typeprint.c: Delete unused function f_type_print_args.
11497 * p-typeprint.c: Delete unused function pascal_type_print_args.
11498
8176bb6d
DJ
114992002-01-20 Daniel Jacobowitz <drow@mvista.com>
11500
11501 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11502 comment. Add ``artificial'' to ``union field_location''.
11503
11504 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11505
11506 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11507 * mdebugread.c (parse_symbol): Likewise.
11508 * stabsread.c (define_symbol): Likewise.
11509 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11510 initializing TYPE_FIELD_BITPOS to n (obsolete).
11511 (hpread_doc_function_type): Likewise.
11512 * hpread.c (hpread_function_type): Likewise.
11513
7fd60527
AC
115142002-01-20 Andrew Cagney <ac131313@redhat.com>
11515
11516 * configure.in (host_makefile_frag): Only require a host makefile
11517 fragment when a native build.
11518 * configure: Re-generate.
11519
c2f05ac9
AC
115202002-01-20 Andrew Cagney <ac131313@redhat.com>
11521
11522 * doublest.h (floatformat_from_type): Declare.
11523 * doublest.c (floatformat_from_type): New function.
11524 (convert_typed_floating): Use.
11525
11526 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11527 call to function floatformat_from_type.
11528
11529 * gdbarch.sh (IEEE_FLOAT): Delete.
11530 * gdbarch.h, gdbarch.c: Re-generate.
11531 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11532 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11533 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11534 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11535 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11536 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11537 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11538 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11539 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11540 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11541 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
11542 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11543
11544 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11545 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11546 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11547 * sh-tdep.c (sh_gdbarch_init): Ditto.
11548 * mips-tdep.c (mips_gdbarch_init): Ditto.
11549 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11550 * cris-tdep.c (cris_gdbarch_init): Ditto.
11551
abf22e64
AJ
115522002-01-20 Jiri Smid <smid@suse.cz>
11553
11554 * configure.host, configure.tgt: Support x86-64.
11555 * NEWS: Note new target x86-64.
11556
b7c4cbf8
AJ
11557 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11558 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11559 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11560 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11561 x86-64-linux-nat.o): Fix dependencies.
11562
82600034
AC
115632002-01-19 Andrew Cagney <ac131313@redhat.com>
11564
11565 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11566 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11567 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11568 * config/sparc/xm-sun4os4.h: Delete file.
11569 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 11570
bbe5c628
AC
115712002-01-19 Andrew Cagney <ac131313@redhat.com>
11572
11573 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11574 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11575 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11576 * config/i386/i386lynx.mh (XM_FILE): Delete.
11577 * config/rs6000/xm-rs6000ly.h: Delete file.
11578 * config/sparc/xm-sparclynx.h: Delete file.
11579 * config/m68k/xm-m68klynx.h: Delete file.
11580 * config/i386/xm-i386lynx.h: Delete file.
11581 * config/xm-lynx.h: Delete file.
11582 * config/djgpp/fnchange.lst: Update.
11583
f8453e34
JT
115842002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11585
11586 * alpha-tdep.c (alpha_register_byte): New function.
11587 (alpha_register_raw_size): Ditto.
11588 (alpha_register_virtual_size): Ditto.
11589 (alpha_skip_prologue_internal): Renamed from
11590 alpha_skip_prologue.
11591 (alpha_skip_prologue): New version that calls
11592 alpha_skip_prologue_internal.
11593 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11594 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11595 second argument from alpha_skip_prologue.
11596 (REGISTER_BYTE): Use alpha_register_byte.
11597 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11598 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11599 (FRAMELESS_FUNCTION_INVOCATION): Use
11600 generic_frameless_function_invocation_not.
11601 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11602 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11603
52d9e613
AC
116042002-01-19 Andrew Cagney <ac131313@redhat.com>
11605
11606 * config/mips/xm-news-mips.h: Delete file.
11607 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11608
11609 * config/m88k/xm-m88k.h: Delete file.
11610 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11611 * config/m88k/xm-delta88v4.h: Ditto.
11612 * config/m88k/xm-delta88.h: Ditto.
11613
11614 * config/alpha/xm-fbsd.h: Delete file.
11615 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11616
11617 * config/sparc/xm-sparc.h: Delete file.
11618 * Makefile.in (xm-sun4os4.h): Delete dependency.
11619 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11620 * config/sparc/xm-sun4os4.h: Ditto.
11621 * config/sparc/xm-linux.h: Ditto.
11622
11623 * config/i386/xm-windows.h: Delete file.
11624
2d1b2124
AC
116252002-01-19 Andrew Cagney <ac131313@redhat.com>
11626
11627 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11628 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11629
ee1f65f0
JT
116302002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11631
11632 * alpha-tdep.c (alpha_call_dummy_words): New.
11633 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11634 (CALL_DUMMY_P): Define.
11635 (CALL_DUMMY_WORDS): Define.
11636 (SIZEOF_CALL_DUMMY_WORDS): Define.
11637
98081e55
PB
116382002-01-19 Per Bothner <per@bothner.com>
11639
11640 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11641 isn't NULL, which can happen with some gcj-3.x-produced code.
11642
0d056799
JT
116432002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11644
11645 * alpha-tdep.c (alpha_register_virtual_type): New function.
11646 (alpha_init_frame_pc_first): Ditto.
11647 (alpha_fix_call_dummy): Ditto.
11648 (alpha_store_struct_return): Ditto.
11649 (alpha_extract_struct_value_address): Ditto.
11650 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11651 alpha_register_virtual_type.
11652 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11653 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11654 alpha_extract_struct_value_address.
11655 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11656 (INIT_FRAME_PC): Use init_frame_pc_noop.
11657 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11658
4604bcad
MK
116592002-01-19 Mark Kettenis <kettenis@gnu.org>
11660
11661 * i386gnu-nat.c: Include "i386-tdep.h".
11662 (fetch_fpregs): Simplify code dealing with uninitialized floating
11663 point states such that it doesn't require FP7_REGNUM.
11664
140f9984
JT
116652002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11666
abf22e64
AJ
11667 * alpha-tdep.c (frame_extra_info): New.
11668 (alpha_find_saved_regs): Make static. Use
140f9984
JT
11669 frame->extra_info.
11670 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
11671 (alpha_frame_saved_pc): Use frame->extra_info.
11672 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11673 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
11674 (init_extra_frame_info): Rename to...
11675 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 11676 (alpha_print_extra_frame_info): New function.
140f9984
JT
11677 (alpha_frame_locals_address): Ditto.
11678 (alpha_frame_args_address): Ditto.
abf22e64 11679 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
11680 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11681 alpha_frame_args_address.
abf22e64 11682 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 11683 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
11684 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11685 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
11686 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11687 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11688
d734c450
JT
116892002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11690
11691 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11692 (alpha_cannot_fetch_register): Ditto.
11693 (alpha_cannot_store_register): Ditto.
11694 (alpha_register_convertible): Ditto.
11695 (alpha_use_struct_convention): Ditto.
11696 * config/alpha/tm-alpha.h: Update copyright years.
11697 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11698 (INNER_THAN): Use core_addr_lessthan.
11699 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11700 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11701 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11702 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11703 (FRAME_CHAIN): Remove unnecessary cast.
11704
b4ceaee6
AC
117052002-01-18 Andrew Cagney <ac131313@redhat.com>
11706
11707 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11708 obsolete.
11709
0a65a603
AC
117102002-01-18 Andrew Cagney <ac131313@redhat.com>
11711
11712 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11713 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11714 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11715 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11716 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11717 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11718 * x86-64-linux-nat.c: Ditto.
11719
636a6dfc
JT
117202002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11721
abf22e64 11722 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
11723 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11724 (REGISTER_NAME): Define.
11725
acceddb6
JT
117262002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11727
11728 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11729
ec32e4be
JT
117302002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11731
11732 * alpha-tdep.c: Update copyright years.
11733 (alpha_next_pc): New function.
11734 (alpha_software_single_step): Ditto.
11735 * config/alpha/tm-alpha.h: Add prototype for
11736 alpha_software_single_step.
11737
e771a871
JT
117382002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11739
11740 * alphabsd-nat.c: Update copyright years.
11741 (fill_gregset): Use regcache_collect.
11742 (fill_fpregset): Likewise.
11743 (fetch_inferior_registers): Only fetch integer registers
11744 if requested to do so.
11745 (store_inferior_registers): Only store integer registers
11746 if requested to do so.
11747
7708fa01
AC
117482002-01-17 Andrew Cagney <ac131313@redhat.com>
11749
11750 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11751 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11752 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11753 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11754 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11755 * config/arm/linux.mh (XDEPFILES): Delete.
11756 * config/arm/nbsd.mh (XDEPFILES): Delete.
11757 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11758 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11759 * config/i386/i386m3.mh (XDEPFILES): Delete.
11760 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11761 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11762 * config/i386/fbsd.mh (XDEPFILES): Delete.
11763 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11764 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11765 * config/i386/i386v4.mh (XDEPFILES): Delete.
11766 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11767 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11768 * config/i386/i386aix.mh (XDEPFILES): Delete.
11769 * config/i386/go32.mh (XDEPFILES): Delete.
11770 * config/i386/cygwin.mh (XDEPFILES): Delete.
11771 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11772 * config/i386/i386mach.mh (XDEPFILES): Delete.
11773 * config/i386/i386v32.mh (XDEPFILES): Delete.
11774 * config/i386/linux.mh (XDEPFILES): Delete.
11775 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11776 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11777 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11778 * config/i386/i386sco.mh (XDEPFILES): Delete.
11779 * config/i386/i386v.mh (XDEPFILES): Delete.
11780 * config/i386/nbsd.mh (XDEPFILES): Delete.
11781 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11782 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11783 * config/i386/symmetry.mh (XDEPFILES): Delete.
11784 * config/i386/obsd.mh (XDEPFILES): Delete.
11785 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11786 * config/ia64/linux.mh (XDEPFILES): Delete.
11787 * config/ia64/aix.mh (XDEPFILES): Delete.
11788 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11789 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11790 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11791 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11792 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11793 * config/m68k/linux.mh (XDEPFILES): Delete.
11794 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11795 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11796 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11797 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11798 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11799 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11800 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11801 * config/m88k/delta88.mh (XDEPFILES): Delete.
11802 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11803 * config/m88k/m88k.mh (XDEPFILES): Delete.
11804 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11805 * config/mips/linux.mh (XDEPFILES): Delete.
11806 * config/mips/irix6.mh (XDEPFILES): Delete.
11807 * config/mips/irix5.mh (XDEPFILES): Delete.
11808 * config/mips/irix4.mh (XDEPFILES): Delete.
11809 * config/mips/irix3.mh (XDEPFILES): Delete.
11810 * config/mips/decstation.mh (XDEPFILES): Delete.
11811 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11812 (NATDEPFILES): Move core-aout.o to here.
11813 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11814 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11815 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11816 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11817 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11818 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11819 * config/pa/hpux11.mh (XDEPFILES): Delete.
11820 * config/powerpc/aix.mh (XDEPFILES): Delete.
11821 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11822 * config/powerpc/linux.mh (XDEPFILES): Delete.
11823 * config/romp/rtbsd.mh: Rename XDEPFILES.
11824 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11825 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11826 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11827 * config/s390/s390.mh (XDEPFILES): Delete.
11828 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11829 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11830 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11831 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11832 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11833 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11834 * config/sparc/linux.mh (XDEPFILES): Delete.
11835 * config/vax/vaxult.mh (XDEPFILES): Delete.
11836 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11837 * Makefile.in (DEPFILES): Remove XDEPFILES.
11838
375fc983
AC
118392002-01-17 Andrew Cagney <ac131313@redhat.com>
11840
11841 * utils.c (internal_verror): Fix comments, default is yes not no.
11842 Update queries to match. Default to quit and dump core.
11843
8926118c
AC
118442002-01-17 Andrew Cagney <ac131313@redhat.com>
11845
11846 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11847 copyright.
11848 * defs.h, event-top.c, gdbcmd.h: Ditto.
11849 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11850 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11851 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11852 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11853 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11854 * mi/mi-main.c:Ditto.
11855
11856 * stack.c, symfile.c: Update copyright.
11857
45b7b345
DJ
118582002-01-17 Daniel Jacobowitz <drow@mvista.com>
11859
db728ff7
DJ
11860 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11861 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11862 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11863 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11864
db728ff7
DJ
118652002-01-17 Daniel Jacobowitz <drow@mvista.com>
11866
11867 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11868 * gdbserver/low-lynx.c (myattach): Likewise.
11869 * gdbserver/low-nbsd.c (myattach): Likewise.
11870 * gdbserver/low-sim.c (myattach): Likewise.
11871 * gdbserver/low-sparc.c (myattach): Likewise.
11872 * gdbserver/low-sun3.c (myattach): Likewise.
11873
11874 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11875
db728ff7 11876 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11877 (main): Handle "--attach".
11878
8de3c354
AC
118792002-01-16 Andrew Cagney <ac131313@redhat.com>
11880
11881 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11882 maintainer.
11883
b0129042
DJ
118842002-01-15 Daniel Jacobowitz <drow@mvista.com>
11885
11886 * c-typeprint.c (is_type_conversion_operator): Add additional
11887 check for non-conversion operators.
11888
ba8679fb 118892002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
11890
11891 * linux-proc.c: Add "info proc" command, a la procfs.c.
11892 (read_mapping): New function, abstract and re-use code.
11893 (linux_find_memory_regions): Use new func read_mapping.
11894 (linux_info_proc_cmd): New function, implement "info proc".
11895 (_initialize_linux_proc): Add new command "info proc".
11896
e4f9b4d5
MS
118972002-01-15 Michael Snyder <msnyder@redhat.com>
11898
11899 * symfile.c (generic_load): Use bfd_map_over_sections method
11900 instead of manipulating bfd structure members directly.
11901 (add_section_size_callback): New function, bfd sections callback
11902 used by generic_load.
11903 (load_sections_callback): New function, bfd sections callback
11904 used by generic_load.
11905
08cf96df
EZ
119062002-01-15 Elena Zannoni <ezannoni@redhat.com>
11907
abf22e64 11908 [Based on work by Jim Blandy]
08cf96df
EZ
11909 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11910 (builtin_type_vec128): Export.
11911 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11912 types.
11913 (builtin_type_vec128): New builtin type for 128 bit vector
11914 registers.
11915 (build_gdbtypes): Initialize builtin_type_v16qi and
11916 builtin_type_v8hi. Create the vec128 register builtin type
11917 structure.
11918 (build_builtin_type_vec128): New function.
abf22e64 11919 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11920 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11921 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11922 AltiVec register to new builtin type.
11923
d7242108
DJ
119242001-01-15 Daniel Jacobowitz <drow@mvista.com>
11925
11926 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11927 to make_cv_type.
11928
4ee3352d
AC
119292002-01-14 Andrew Cagney <ac131313@redhat.com>
11930
11931 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11932 CLEAN_UP_REGISTER_VALUE.
11933 * regcache.c (supply_register): Update only call.
11934
f015b2e7
AC
119352002-01-14 Andrew Cagney <ac131313@redhat.com>
11936
11937 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11938 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11939 a29k-*-vxworks* targets as obsolete.
11940
356ae49d
MS
119412002-01-14 Michael Snyder <msnyder@redhat.com>
11942
11943 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11944 until we can resolve portability issues.
11945 * gregset.h: Remove references to fpxregs.
11946 * gcore.c (gcore_command): Initialize note_sec to NULL.
11947
ade8f45e
AC
119482002-01-13 Andrew Cagney <ac131313@redhat.com>
11949
11950 * signals.c (target_signal_to_name): Rewrite. Only use
11951 signals[].name when in bounds and non-NULL.
abf22e64 11952
89c49e7a
AC
119532002-01-13 Andrew Cagney <ac131313@redhat.com>
11954
11955 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11956 * signals.c (target_signal_to_name): Verify that SIG is within the
11957 bounds of the signals array.
11958
4daa9f9f
AC
119592002-01-13 Andrew Cagney <ac131313@redhat.com>
11960
11961 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11962
ba4bbdcb
KS
119632002-01-13 Keith Seitz <keiths@redhat.com>
11964
11965 * stack.c (print_frame_info_base): Print the frame's pc
11966 only if when print_frame_info_listing_hook is not defined.
11967
575bbeb6
KS
119682002-01-13 Keith Seitz <keiths@redhat.com>
11969
11970 * varobj.c (varobj_set_value): Make sure that there were no
11971 errors evaluating the object before attempting to set its
11972 value.
11973 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11974 so this offset adjustment is no longer necessary.
11975 (create_child): Don't set the error flag if the child is
11976 a CPLUS_FAKE_CHILD.
11977 (value_of_child): If value_fetch_lazy fails, return NULL
11978 so that callers will be notified that an error occurred.
11979 (c_value_of_variable): Delay check of variable's validity
11980 until later. We actually want all structs and unions to have
11981 the value "{...}".
11982 Do not return "???" for variables which could not be evaluated.
11983 This error condition must be returned to the caller so that it
11984 can get the error condition from gdb.
11985 (cplus_name_of_child): Adjust index for vptr before figuring
11986 out the name of the child.
11987 (cplus_value_of_child): If a child's (real) parent is not valid,
11988 don't even bother trying to give a value for it. Just return
11989 an error. Change all instances in this function.
11990 (cplus_type_of_child): If our parent is one of the "fake"
11991 parents, we need to get at the type of the real parent, and
11992 derive the child's true type using this information.
11993
b76898ab
AC
119942002-01-13 Andrew Cagney <ac131313@redhat.com>
11995
11996 From 2002-01-09 John Marshall <johnm@falch.net>:
11997 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11998 sources.redhat.com, and tweak some related URLs which had
11999 suffered from linkrot.
12000
b6649e88
AC
120012002-01-13 Andrew Cagney <ac131313@redhat.com>
12002
12003 From Jeff law:
12004 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12005 structures passed in registers.
12006
82cc5033
EZ
120072002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
12008
12009 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12010 white space which prevented compilation. Reported by DSK
12011 <dsk@student.unsw.edu.au>.
12012
ba5f2f8a
MS
120132002-01-11 Michael Snyder <msnyder@redhat.com>
12014
fbd35540
MS
12015 * symfile.c (build_section_addr_info_from_section_tab):
12016 Use bfd access method instead of manipulating bfd directly.
12017 (syms_from_objfile): Ditto.
12018 (simple_overlay_update_1): Ditto.
12019 (simple_overlay_update): Ditto.
12020 (generic_load): Ditto.
12021 (overlay_unmapped_address): FIXME comment, bfd access methods.
12022 (sections_overlap): FIXME comment, bfd access methods.
12023 (pc_in_mapped_range): FIXME comment, bfd access methods.
12024 (pc_in_unmapped_range): FIXME comment, bfd access methods.
12025 (section_is_mapped): FIXME comment, bfd access methods.
12026 (section_is_overlay): FIXME comment, bfd access methods.
12027
ba5f2f8a
MS
12028 * symfile.c (generic_load): Whitespace and long line cleanups.
12029 Remove duplicate variable, change several local variables to
12030 more appropriate data types.
12031 (print_transfer_performance): Use %lu instead of %ld for ulongs.
12032
17df2af6
AC
120332002-01-12 Andrew Cagney <ac131313@redhat.com>
12034
12035 From Peter Schauer:
12036 * language.c (longest_local_hex_string_custom): Use phex_nz to
12037 convert NUM to a hex string.
12038
ec920329
EZ
120392002-01-12 Elena Zannoni <ezannoni@redhat.com>
12040
12041 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12042 the function.
538a76d6 12043 Update Copyright year.
ec920329 12044
3abd2e01
AC
120452002-01-12 Andrew Cagney <ac131313@redhat.com>
12046
12047 * language.c (longest_raw_hex_string): Delete unused function.
12048
b21b22e0
PS
120492002-01-11 Petr Sorfa <petrs@caldera.com>
12050
12051 * MAINTAINERS (write-after-approval): Add myself.
12052 * dwarf2read.c (read_tag_string_type): Handling of
12053 DW_AT_byte_size.
12054 (read_tag_string_type): FORTRAN fix to prevent propagation of
12055 first string size.
12056 (set_cu_language): Handling of DW_LANG_Fortran95
12057
747fe712
RE
120582002-01-11 Richard Earnshaw <rearnsha@arm.com>
12059
12060 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12061 GETPID(inferior_ptid).
12062 (store_inferior_registers): Likewise.
12063
f1bea926
JM
120642002-01-10 Jason Merrill <jason@redhat.com>
12065
12066 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12067 Fix DW_OP_minus.
12068
ae940673
AC
120692002-01-10 Andrew Cagney <ac131313@redhat.com>
12070
12071 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12072 and bfd/elf32-sh-nbsd.c.
12073
00546b04
MS
120742002-01-10 Michael Snyder <msnyder@redhat.com>
12075
352ed7b4
MS
12076 * NEWS: Mention --pid and corefile/proc-id behavior change.
12077
c18be923
MS
12078 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12079 * gcore.c: Include cli/cli-decode.h instead of command.h.
12080
00546b04
MS
12081 * main.c (captured_main): Add new command line option "--pid".
12082 If the second command line argument (following the symbol-file)
12083 begins with a digit, try to attach to it before trying to open
12084 it as a corefile.
12085 (print_gdb_help): Document the "--pid" argument.
12086
db60ec62
EZ
120872002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
12088
12089 * completer.c (command_completer): New function.
12090
12091 * completer.h <command_completer>: Add prototype.
12092
12093 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12094 completer for the "help" command.
12095
39c22d1a
JM
120962002-01-09 Jason Merrill <jason@redhat.com>
12097
12098 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12099
c564377f
MS
121002002-01-09 Michael Snyder <msnyder@redhat.com>
12101
975aec09
MS
12102 * i386-linux-nat.c (fill_fpxregset): Make global.
12103 (store_fpxregset): Ditto.
12104
db4a10fa
MS
12105 * gregset.h (gdb_fpxregset_t): Define.
12106 (supply_fpxregset): Prototype.
12107 (fill_fpxregset): Prototype.
12108
c564377f
MS
12109 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12110
c3d45d70
RE
121112002-01-09 Richard Earnshaw <rearnsha@arm.com>
12112
12113 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12114 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12115 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12116
fcc87af1
AC
121172002-01-09 Andrew Cagney <ac131313@redhat.com>
12118
12119 * MAINTAINERS: Update target maintainer rules so that any
12120 Maintainer can approve a tested patch for a maintenance-only
12121 target.
12122
dd96c05b
RE
121232002-01-09 Richard Earnshaw <rearnsha@arm.com>
12124
d4297db9 12125 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 12126
d4297db9 12127 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
12128 IN_SIGTRAMP.
12129
145fdc6e
MS
121302002-01-08 Michael Snyder <msnyder@redhat.com>
12131
12132 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12133 real name of the executable, rather than the /proc name.
12134
be4d1333
MS
121352002-01-03 Michael Snyder <msnyder@redhat.com>
12136
12137 Implement a "generate-core-file" command in gdb, save target state.
12138 * gcore.c: New file. Implement new command 'generate-core-file'.
12139 Save a corefile image of the current state of the inferior.
12140 * linux-proc.c: Add linux-specific code for saving corefiles.
12141 * target.h (struct target_ops): Add new target vectors for saving
12142 corefiles; to_find_memory_regions and to_make_corefile_notes.
12143 (target_find_memory_regions): New macro.
12144 (target_make_corefile_notes): New macro.
12145 * target.c (update_current_target): Inherit new target methods.
12146 (dummy_find_memory_regions): New place-holder method.
12147 (dummy_make_corefile_notes): New place-holder method.
12148 (init_dummy_target): Initialize new dummy target vectors.
12149 * exec.c (exec_set_find_memory_regions): New function.
12150 Allow the exec_ops vector for memory regions to be taken over.
12151 (exec_make_note_section): New function, target vector method.
12152 * defs.h (exec_set_find_memory_regions): Export prototype.
12153 * procfs.c (proc_find_memory_regions): New function, corefile method.
12154 (procfs_make_note_section): New function, corefile method.
12155 (init_procfs_ops): Set new target vector pointers.
12156 (find_memory_regions_callback): New function.
12157 (procfs_do_thread_registers): New function.
12158 (procfs_corefile_thread_callback): New function.
12159 * sol-thread.c (sol_find_memory_regions): New function.
12160 (sol_make_note_section): New function.
12161 (init_sol_thread_ops): Initialize new target vectors.
12162 * inftarg.c (inftarg_set_find_memory_regions): New function.
12163 Allow to_find_memory_regions vector to be taken over.
12164 (inftarg_set_make_corefile_notes): New function.
12165 Allow to_make_corefile_notes vector to be taken over.
12166 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12167 interface layer if not target_has_execution (may be a corefile).
12168 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12169 * config/sparc/sun4sol2.mh: Ditto.
12170 * config/alpha/alpha-linux.mh: Ditto.
12171 * config/arm/linux.mh: Ditto.
12172 * config/i386/x86-64linux.mh: Ditto.
12173 * config/ia64/linux.mh: Ditto.
12174 * config/m68k/linux.mh: Ditto.
12175 * config/mips/linux.mh: Ditto.
12176 * config/powerpc/linux.mh: Ditto.
12177 * config/sparc/linux.mh: Ditto.
12178
c6b92abd
MS
121792002-01-07 Michael Snyder <msnyder@redhat.com>
12180
12181 * arm-linux-nat.c: Remove references to regcache.c internal data
12182 (registers[] and register_valid[]).
12183
4b09dc8c
MS
121842002-01-07 Michael Snyder <msnyder@redhat.com>
12185
abf22e64
AJ
12186 * linux-proc.c: New file. Implement child_pid_to_exec_file,
12187 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
12188 symbol file and shlibs.
12189 * Makefile.in: Add rule for linux-proc.o.
12190 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12191 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12192 * config/arm/linux.mh: Ditto.
12193 * config/i386/linux.mh: Ditto.
12194 * config/i386/x86-64linux.mh: Ditto.
12195 * config/ia64/linux.mh: Ditto.
12196 * config/m68k/linux.mh: Ditto.
12197 * config/mips/linux.mh: Ditto.
12198 * config/powerpc/linux.mh: Ditto.
12199 * config/sparc/linux.mh: Ditto.
12200
c25b74ac
PM
122012002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12202
12203 * win32-nat.c: Add i386-tdep.h dependency.
12204
94cd915f
MS
122052002-01-07 Michael Snyder <msnyder@redhat.com>
12206
c7cccb76
MS
12207 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12208 instead of bfd_get_arch_size. Don't bail out just because
12209 there's no exec_bfd.
abf22e64 12210
34c0bd93
MS
12211 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12212 * p-valprint.c (pascal_object_print_value): Ditto.
12213 * somread.c (som_symtab_read): Ditto.
12214 * symfile.c (simple_free_overlay_region_table): Ditto.
12215 * valops.c (value_assign): Ditto.
12216
21c1c920
MS
12217 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12218 use tilde_expand and strerror for opening save-tracepoints file.
12219
5bbd998e
MS
12220 * thread-db.c (thread_db_new_objfile): Indendation fix.
12221
94cd915f
MS
12222 * infptrace.c (GDB_MAX_ALLOCA): New define.
12223 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 12224 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
12225 can be overridden with whatever value is appropriate to the host).
12226 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12227 alloca to allocate potentially large buffer.
12228 * rs6000-nat.c (child_xfer_memory): Ditto.
12229 * symm-nat.c (child_xfer_memory): Ditto.
12230 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12231
494e8a93
JSC
122322002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12233
12234 From Nick Clifton <nickc@redhat.com>
12235 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12236
d0e1d48e
MS
122372002-01-07 Michael Snyder <msnyder@redhat.com>
12238
abf22e64 12239 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
12240 Don't use exec_bfd if it's NULL.
12241
290b2c7a
MK
122422002-01-06 Mark Kettenis <kettenis@gnu.org>
12243
abf22e64 12244 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 12245
aef21287
AC
122462002-01-06 Andrew Cagney <ac131313@redhat.com>
12247
12248 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12249 * gnu-nat.c: Ditto.
12250
30efa627
AC
122512002-01-06 Andrew Cagney <ac131313@redhat.com>
12252
12253 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12254 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12255 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12256 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12257 z8k-coff have not been multi-arched. Update z8k-coff build
12258 status.
12259
9b4ff276
AC
122602002-01-06 Andrew Cagney <ac131313@redhat.com>
12261
12262 * MAINTAINERS: Mark a29k target as obsolete.
12263 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12264 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12265 comments.
12266 * NEWS: Note that a29k targets are obsolete.
12267 * a29k-tdep.c: Mark as obsolete.
12268 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12269 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12270 a29k-*-vxworks* targets as obsolete.
12271 * remote-adapt.c: Obsolete.
12272 * remote-eb.c: Obsolete.
12273 * remote-mm.c: Obsolete.
12274 * remote-udi.c: Obsolete.
12275 * config/a29k/a29k-udi.mt: Obsolete.
12276 * config/a29k/a29k.mt: Obsolete.
12277 * config/a29k/tm-a29k.h: Obsolete.
12278 * config/a29k/tm-vx29k.h: Obsolete.
12279 * config/a29k/vx29k.mt: Obsolete.
12280
a9011d31
AC
122812002-01-05 Andrew Cagney <ac131313@redhat.com>
12282
12283 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12284 with BFD_ENDIAN_BIG.
12285
9299404e
AC
122862002-01-05 Andrew Cagney <ac131313@redhat.com>
12287
12288 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12289 * configure, config.in: Re-generate.
12290 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12291 * defs.h: Do not include <endian.h>.
12292
7e89e357
JT
122932002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12294
12295 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12296 * config.in: Regenerate.
12297 * configure.in: Update copyright years.
12298 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12299 * configure: Regenerate.
12300 * i386bsd-nat.c: Update copyright years.
12301 (fill_gregset): Use regcache_collect.
12302 (fetch_inferior_registers): Only fetch integer registers
12303 if requested to do so. Add support for XMM registers
12304 using PT_GETXMMREGS.
12305 (store_inferior_registers): Only store integer registers
12306 if requested to do so. Add support for XMM registers
12307 using PT_SETXMMREGS.
12308 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12309 (store_inferior_registers): Remove.
12310 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12311 (fetch_elfcore_registers): New function.
12312 (i386nbsd_elfcore_fns): New.
12313 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12314 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12315 i386bsd-nat.o.
12316 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12317 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12318 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12319 * config/i386/tm-nbsd.h: Update copyright years.
12320 (HAVE_SSE_REGS): Define.
12321 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12322 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12323 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12324 (SIGCONTEXT_PC_OFFSET): Remove.
12325 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12326
a752853e
AC
123272002-01-05 Andrew Cagney <ac131313@redhat.com>
12328
12329 * configure.tgt: Remove powerpc-*-macos* target.
12330 * config/m68k/xm-mpw.h: Delete file.
12331 * config/xm-mpw.h: Delete file.
12332 * ser-mac.c: Delete file.
12333 * mpw-make.sed: Delete file.
12334 * mpw-config.in: Delete file.
12335 * mac-xdep.c: Delete file.
12336 * mac-gdb.r: Delete file.
12337 * mac-defs.h: Delete file.
12338 * mac-nat.c: Delete file.
12339 * config/powerpc/macos.mh: Delete file.
12340 * config/powerpc/macos.mt: Delete file.
12341 * config/powerpc/nm-macos.h: Delete file.
12342 * config/powerpc/tm-macos.h: Delete file.
12343 * source.c (openp, open_source_file): Remove obsolete code.
12344 * top.c (gdb_readline): Ditto.
12345 * utils.c (query): Ditto.
12346 * event-top.c (display_gdb_prompt): Ditto.
12347 * Makefile.in (ser-mac.o): Delete obsolete target.
12348 * NEWS: Update.
12349
d7449b42
AC
123502002-01-04 Andrew Cagney <ac131313@redhat.com>
12351
12352 * defs.h (BIG_ENDIAN): Delete macro definition.
12353 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12354 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12355 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12356 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12357 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12358 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12359 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12360 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12361 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12362 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12363 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12364 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12365 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12366 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12367 * gdbarch.c: Re-generate.
12368
356374e8
DJ
123692002-01-04 Daniel Jacobowitz <drow@mvista.com>
12370
12371 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12372 for core files.
12373
a2b8f8f8
JT
123742002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12375
12376 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12377
12466af9
AC
123782002-01-04 Andrew Cagney <ac131313@redhat.com>
12379
12380 * value.h (value_ptr): Delete typedef.
12381
3549ab40
JT
123822002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12383
12384 * i386nbsd-nat.c: Update copyright years.
12385 Include i386-tdep.h.
12386
fedbd091
EZ
123872002-01-04 Elena Zannoni <ezannoni@redhat.com>
12388
12389 * stabsread.c: Update copyright years.
12390
12391 From Debashis Mahata <debashis.mahata@wipro.com>:
12392 (read_struct_fields): Deal with Sun C compiler erroneous stab
12393 output for structs and unions.
fec8b34f 12394 Fix PR gdb/269.
fedbd091 12395
eb43544b
DJ
123962002-01-04 Daniel Jacobowitz <drow@mvista.com>
12397
12398 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12399 prototype.
12400
1514d34e
DJ
124012002-01-04 Daniel Jacobowitz <drow@mvista.com>
12402
12403 * cp-abi.c: Fix whitespace.
12404 (baseclass_offset): New wrapper function.
12405 * cp-abi.h (baseclass_offset): Add prototype.
12406 (struct cp_abi_ops): Add baseclass_offset pointer.
12407
12408 * valops.c (vb_match): Move to...
12409 * gnu-v2-abi.c (vb_match): here.
12410 * valops.c (baseclass_offset): Move to...
12411 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12412
12413 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12414
12415 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12416 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12417 * hpacc-abi.c (init_hpacc_ops): Likewise.
12418
7f8c9282
DJ
124192002-01-04 Daniel Jacobowitz <drow@mvista.com>
12420
12421 * valops.c (find_overload_match): Accept obj as a
12422 reference parameter. Update it before returning.
12423 * value.h (find_overload_match): Update prototype.
12424 * eval.c (evaluate_subexp_standard): Pass object to
12425 find_overload_match by reference.
12426
f23631e4
AC
124272002-01-03 Andrew Cagney <ac131313@redhat.com>
12428
12429 * valarith.c: Replace value_ptr with struct value pointer. Remove
12430 register attribute from value declarations.
12431 * valops.c: Ditto.
12432 * value.h: Ditto.
12433 * scm-lang.c (scm_lookup_name): Ditto.
12434
79e10fab 124352002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 12436
79e10fab
AC
12437 Abstract the functionality of iterating over mapped memory
12438 regions into a general purpose iterator function.
abf22e64 12439 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
12440 iterator for memory sections.
12441 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12442 (solib_mappings_callback): New function, callback for above.
12443 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12444 (info_mappings_callback): New function, callback for above.
12445
12446 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12447
c5ad026a
MK
124482002-01-01 Mark Kettenis <kettenis@gnu.org>
12449
d2a7c97a
MK
12450 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12451 * i386-tdep.c: Include "elf-bfd.h".
12452 (process_note_abi_tag_sections): New function.
12453 (i386_gdbarch_init): Add code to recognize various OS/ABI
12454 combinations.
12455
c5ad026a
MK
12456 * maint.c (_initialize_maint_cmds): Add missing \ in
12457 string-literal.
12458
a1a5b71e 12459For older changes see ChangeLog-2001
c906108c
SS
12460\f
12461Local Variables:
12462mode: change-log
12463left-margin: 8
12464fill-column: 74
12465version-control: never
12466End:
This page took 0.914772 seconds and 4 git commands to generate.