2002-11-07 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0ec30a36
AC
12002-11-07 Andrew Cagney <ac131313@redhat.com>
2
3 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
4
e600bd34
AC
52002-11-07 Andrew Cagney <ac131313@redhat.com>
6
7 * regcache.h (regcache_cooked_read_using_offset_hack)
8 (regcache_cooked_write_using_offset_hack): Delete declarations.
9 (register_changed): Delete declaration.
10 * regcache.c (regcache_cooked_read_using_offset_hack)
11 (regcache_cooked_write_using_offset_hack): Delete functions.
12 (cooked_xfer_using_offset_hack): Delete function.
13 (register_changed): Delete function.
14
568f8739
JB
152002-11-07 Jim Blandy <jimb@redhat.com>
16
17 * macroscope.c: #include "complaints.h".
18 (sal_macro_scope): Cope with filenames that appear in the symtabs,
19 but not in the macro table.
20 * Makefile.in (macroscope.o): Record dependency.
21
b0718b7b
JB
222002-11-07 Joel Brobecker <brobecker@gnat.com>
23
24 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
25
2b9e5f3f
AC
262002-11-07 Andrew Cagney <ac131313@redhat.com>
27
28 * regcache.c (deprecated_registers_fetched): Update.
29 * regcache.h (deprecated_registers_fetched): Rename
30 registers_fetched.
31 * remote-vxsparc.c (vx_read_register): Update.
32 * remote-vxmips.c (vx_read_register): Update.
33 * remote-vx68.c (vx_read_register): Update.
34 * irix5-nat.c (fetch_core_registers): Update.
35 * mipsm3-nat.c (fetch_inferior_registers): Update.
36 * sun3-nat.c (fetch_inferior_registers): Update.
37 * symm-nat.c (fetch_inferior_registers): Update.
38 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
39 (fetch_core_registers): Update.
40 (fetch_kcore_registers): Update.
41 * mips-nat.c (fetch_inferior_registers): Update.
42 * corelow.c (get_core_registers): Update.
43 * a68v-nat.c (fetch_inferior_registers): Update.
44
e6e68f1f
JB
452002-11-06 Joel Brobecker <brobecker@gnat.com>
46
47 Put in place the framework necessary for multiarching the hppa targets.
48 * hppa-tdep.c (hppa_gdbarch_init): New function.
49 (hppa_dump_tdep): New function.
50 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
51 tdep structure dumper.
52 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
53 until the multi-arching conversion has partially been completed.
54
492254e9
AC
552002-11-06 Andrew Cagney <ac131313@redhat.com>
56
57 * valops.c (value_assign): Merge lval_register case into
58 lval_reg_frame_relative. Use frame_register and
59 regcache_cooked_write instead of get_saved_register and
60 write_register_bytes. After flushing the register cache, try to
61 re-select the selected frame.
62
8262ee23
AC
632002-11-06 Andrew Cagney <ac131313@redhat.com>
64
65 * regcache.h (deprecated_register_valid): Rename register_valid.
66 * regcache.c: Update.
67 * ia64-aix-nat.c: Update.
68 * i386gnu-nat.c: Update.
69 * alpha-nat.c: Update.
70 * sparc-nat.c: Update.
71 * lynx-nat.c: Update.
72 * remote-mips.c: Update.
73
4facf7e8
JB
742002-11-06 Joel Brobecker <brobecker@gnat.com>
75
76 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
77 to end of file, to be more consistent with the pratice followed
78 by other targets.
79
f9418c0f
AC
802002-11-06 Andrew Cagney <ac131313@redhat.com>
81
82 * infcmd.c: Include "reggroups.h" and <ctype.h>.
83 (print_float_info): Print registers in float_reggroup.
84 (print_vector_info): Print registers in vector_reggroup.
85 (default_print_registers_info): When all, print registers in
86 all_reggroup. Otherwize, print registers in general_reggroup.
87 (registers_info): Rewrite. Add support for register groups.
88 Eliminate a goto.
89
3fe235a7
EZ
902002-11-06 Elena Zannoni <ezannoni@redhat.com>
91
92 * symtab.c (methods_info): Delete. It has been ifdeffed out for
93 ages.
94 (symtab_symbol_info): Remove eons old ifdeffed out code.
95 (_initialize_symtab): Remove prehistoric disabled 'info methods'
96 command.
97
ef944135
TR
982002-11-06 Theodore A. Roth <troth@openavr.org>
99
100 * c-exp.y: Add missing semi-colons.
101 * f-exp.y: Add missing semi-colons.
102 * m2-exp.y: Add missing semi-colons.
103 * p-exp.y: Add missing semi-colons.
104 Add empty action to start rule to avoid a type clash error when
105 building with bison >= 1.50.
106
f8302a57
JB
1072002-11-06 Jim Blandy <jimb@redhat.com>
108
109 * macrotab.h (struct macro_source_file): Doc fix.
110
6e382aa3
JJ
1112002-11-05 Jeff Johnston <jjohnstn@redhat.com>
112
113 * varobj.c (child_exists, cplus_number_of_children): Change
114 STREQ macro references to strcmp.
115 (cplus_name_of_child): Change code to handle the fact that
116 fields are not necessarily contiguous with regards to their
117 access control. This is a fix for PR gdb/792.
118
a216a322
AC
1192002-11-05 Andrew Cagney <ac131313@redhat.com>
120
121 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
122 * gdbarch.h, gdbarch.c: Regnerate.
123 * frame.h (frame_register): Declare.
124 * frame.c (frame_register): New function.
125 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
126 GET_SAVED_REGISTER, otherwize call
127 generic_unwind_get_saved_register.
128 (frame_register_read): Use frame_register instead of
129 get_saved_register.
130
7d5b6fdd
EZ
1312002-11-05 Elena Zannoni <ezannoni@redhat.com>
132
133 From Jim Ingham <jingham@apple.com>:
134 * event-top.c (gdb_disable_readline): New function.
135 (_initialize_event_loop): Move comment.
136
b7c64260
EZ
1372002-11-05 Elena Zannoni <ezannoni@redhat.com>
138
139 * event-loop.c (start_event_loop): Add comment.
140 Update copyright.
141
c2e1b8f2
AC
1422002-11-05 Andrew Cagney <ac131313@redhat.com>
143
144 * infcmd.c (default_print_registers_info): Do not call
145 PRINT_REGISTER_HOOK.
146
87647bb0
AC
1472002-11-05 Andrew Cagney <ac131313@redhat.com>
148
149 * sparc-tdep.c (sparc_print_register_hook): Make static.
150 (sparc_print_registers_info): New function.
151 (sparc_do_registers_info): New function.
152 (sparclet_print_registers_info): New function.
153 (sparclet_do_registers_info): New function.
154 (do_sparc_print_registers_info): New function.
155 (sparc_print_registers): New static function, clone of infcmd.c's
156 default_print_registers_info.
157 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
158 (sparclet_do_registers_info): Declare.
159 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
160 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
161 Re-define.
162 (sparc_do_registers_info): Declare.
163 (PRINT_REGISTER_HOOK): Delete macro.
164 (sparc_print_register_hook): Delete declaration.
165
8155455b
DC
1662002-11-05 David Carlton <carlton@math.stanford.edu>
167
168 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
169 functions.
170 (lookup_symbol_aux_local): New function.
171 (lookup_symbol_aux_symtabs): New function.
172 (lookup_symbol_aux_psymtabs): New function.
173
29924310
DC
1742002-11-05 David Carlton <carlton@math.stanford.edu>
175
176 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
177 previous values of 'objfile' and 'block'.
178
cc303028
PM
1792002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
180
181 * values.c (value_change_enclosing_type): Set
182 enclosing_type field correctly also for the case where
183 more memory needs to be allocated.
184
1d70089a
MK
1852002-11-03 Mark Kettenis <kettenis@gnu.org>
186
f16a25ae
MK
187 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
188 of puts_filtered.
189
1d70089a
MK
190 * i387-tdep.c (i387_print_float_info): Replace calls to
191 register_read and deprecated_read_register_gen with calls to
192 frame_register_read, and make the necessary adjustments to the
193 surrounding code.
194
7e20f3fb
AC
1952002-11-02 Andrew Cagney <ac131313@redhat.com>
196
197 * gdbarch.sh (register_reggroup_p): Allow default value.
198 * gdbarch.h, gdbarch.c: Regenerate.
199
192dbe33
AC
2002002-11-02 Andrew Cagney <ac131313@redhat.com>
201
202 * regcache.h: Add coment indicating replacements for deprecated
203 functions.
204
b59ff9d5
AC
2052002-11-02 Andrew Cagney <cagney@redhat.com>
206
207 * reggroups.h, reggroups.c: New files.
208 * regcache.c: Include "reggroups.h".
209 (enum regcache_dump_what): Add `regcache_dump_groups'.
210 (regcache_dump): Contract size of the "Type" column. When
211 specified, dump the register's groups.
212 (maintenance_print_register_groups): New function.
213 (_initialize_regcache): Add command `maint print register-groups'.
214 * Makefile.in (COMMON_OBS): Add reggroups.o
215 (SFILES): Add reggroups.c.
216 (reggroups_h): Define.
217 (regcache.o, gdbarch.o): Update dependencies.
218 (reggroups.o): Specify dependencies.
219 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
220 Add opaque declaration for `struct reggroup' in generated .h file.
221 Include "reggroups.h" in generated .c file.
222 gdbarch.h, gdbarch.c: Re-generate.
223
4caf0990
AC
2242002-11-02 Andrew Cagney <cagney@redhat.com>
225
226 * regcache.h (deprecated_read_register_gen): Rename
227 read_register_gen.
228 (deprecated_write_register_gen): Rename write_register_gen.
229 * i387-tdep.c: Update.
230 * x86-64-linux-nat.c: Update
231 * wince.c: Update.
232 * thread-db.c: Update.
233 * win32-nat.c: Update.
234 * mips-tdep.c: Update.
235 * d10v-tdep.c: Update.
236 * cris-tdep.c: Update.
237 * remote-sim.c: Update.
238 * remote-rdi.c: Update.
239 * remote-rdp.c: Update.
240 * frame.c: Update.
241 * target.c: Update.
242 * blockframe.c: Update.
243 * x86-64-tdep.c: Update.
244 * xstormy16-tdep.c: Update.
245 * sh-tdep.c: Update.
246 * s390-tdep.c: Update.
247 * rs6000-tdep.c: Update.
248 * sparc-tdep.c: Update.
249 * i386-tdep.c: Update.
250 * dwarf2cfi.c: Update.
251 * regcache.c: Update.
252
7a7adcdf
JB
2532002-11-01 Joel Brobecker <brobecker@gnat.com>
254
255 New interix-specific files:
256 * config/i386/nm-interix.h: New file.
257 * config/i386/interix.mh: New file.
258 * config/i386/interix.mt: New file.
259 * i386-interix-nat.c: New file.
260 * i386-interix-tdep.c: New file.
261
bdcdd535
AC
2622002-11-01 Andrew Cagney <cagney@redhat.com>
263
264 * frame.h (deprecated_generic_get_saved_register): Rename
265 generic_get_saved_register.
266 * blockframe.c (deprecated_generic_get_saved_register): Update.
267 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
268 (xstormy16_frame_saved_register): Update.
269 * sh-tdep.c (sh_gdbarch_init): Update.
270 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
271 * ia64-tdep.c (ia64_get_saved_register): Update.
272 * cris-tdep.c (cris_gdbarch_init): Update.
273 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
274 * arm-tdep.c (arm_gdbarch_init): Update.
275
2a4b7c45
DJ
2762002-10-31 Daniel Jacobowitz <drow@mvista.com>
277
278 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
279
ef17e74b
DJ
2802002-10-31 Daniel Jacobowitz <drow@mvista.com>
281
282 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
283 trampolines in sigaction.
284
4904ba5b
AC
2852002-10-31 Andrew Cagney <cagney@redhat.com>
286
287 * h8300-tdep.c: Include "gdb_assert.h".
288 (h8300_print_register): Add gdbarch, file and frame parameters.
289 Use frame_read_unsigned_register to read the register's value.
290 Use fprintf_filtered to display output.
291 (h8300_print_registers_info): Replace h8300_do_registers_info.
292 (h8300_gdbarch_init): Set print_registers_info.
293
f908a0eb
AC
2942002-10-31 Andrew Cagney <cagney@redhat.com>
295
296 * frame.c (frame_read_unsigned_register): New function.
297 (frame_read_signed_register): New function.
298 * frame.h (frame_read_unsigned_register): Declare.
299 (frame_read_signed_register): Declare.
300
c5646e11
AC
3012002-10-31 Andrew Cagney <cagney@redhat.com>
302
303 * h8500-tdep.c (h8500_print_registers_info): New static function,
304 clone of infcmd.c's default_print_registers_info.
305 (h8500_do_registers_info): New funtion.
306 (h8500_print_register_hook): Rename print_register_hook, make
307 static.
308
309 * config/h8500/tm-h8500.h: Update copyright.
310 (DEPRECATED_DO_REGISTERS_INFO): Define.
311 (h8500_do_registers_info: Declare.
312 (PRINT_REGISTER_HOOK): Delete macro.
313 (print_register_hook): Delete function.
314
0bdd672b
AC
3152002-10-31 Andrew Cagney <cagney@redhat.com>
316
317 * z8k-tdep.c (z8k_print_register_hook): Make static.
318 (z8k_print_registers_info): New static function, clone of
319 infcmd.c's default_print_registers_info.
320 (z8k_do_registers_info): New function. Wrap
321 z8k_print_registers_info.
322 * config/z8k/tm-z8k.h: Update copyright.
323 (PRINT_REGISTER_HOOK): Delete macro.
324 (z8k_print_register_hook): Delete declaration.
325 (DEPRECATED_DO_REGISTERS_INFO): Define.
326 (z8k_do_registers_info): Declare.
327
bf9c25dc
JB
3282002-10-30 Joel Brobecker <brobecker@gnat.com>
329
330 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
331 as this is already provided by value.h, and was actually causing
332 a compilation error because of a conflict in parameter type
333 declaration due to a missing const keyword.
334 (low_text_segment_addres): Fix a compilation warning.
335
2c665b51
DJ
3362002-10-29 Daniel Jacobowitz <drow@mvista.com>
337
338 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
339 registers without a name.
340 (mips_linux_cannot_store_register): Don't store registers without
341 a name.
342
e70ea697
DC
3432002-10-28 David Carlton <carlton@math.stanford.edu>
344
345 * symtab.c (find_addr_symbol): Delete. (It was already commented
346 out.)
347 * symtab.h: Delete prototype for find_addr_symbol.
348
903ad3a6
AC
3492002-10-26 Andrew Cagney <cagney@redhat.com>
350
351 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
352 DO_REGISTERS_INFO.
353 gdbarch.h, gdbarch.c: Re-generate.
354 * infcmd.c (default_print_registers_info): Update reference.
355 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
356 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
357 * sh-tdep.c (sh_gdbarch_init): Ditto.
358 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
359 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
360
ab91194c
MK
3612002-10-26 Mark Kettenis <kettenis@gnu.org>
362
e3033f15
MK
363 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
364 cfi_init_extra_frame_info.
365 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
366 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
367
b83b026c
MK
368 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
369 target where necessary. Add more comments and remove the ones
370 that don't provide any useful information.
371
267bf4bb
MK
372 * i386-tdep.c (i386_frame_saved_pc): Replace call to
373 deprecated_read_register_dummy with
374 frame_unwind_unsigned_register.
375
751f1375
MK
376 * i386-tdep.c (i386_extract_struct_value_address): Use
377 regcache_raw_read_unsigned instead of
378 regcache_cooked_read_unsigned since we know that the register
379 we're reading isn't a pseudo register. Rename variable 'val' into
380 the more descriptive 'addr'.
381
26abbdc4
MK
382 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
383 (x86_64_push_return_address): Add comment.
384 (x86_64_pop_frame): Make static.
385 (examine_argument): Clarify comment.
386 (x86_64_skip_prologue): Make prolog_expact variable static.
387
9f1549cc
MK
388 * dwarf2cfi.c: Fix some formatting problems.
389 (context_cpy, read_encoded_pointer): Clarify comments.
390
ab91194c
MK
391 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
392 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
393 i386 target back into x86_64_gdbarch_init. Add some comments and
394 remove meaningless ones.
395
72367fb4
AC
3962002-10-25 Andrew Cagney <cagney@redhat.com>
397
398 * complaints.h (struct deprecated_complaint): Rename `struct
399 complaint'.
400 * complaints.c (complain): Update.
401 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
402 incorrect comment indicating that "symfile.h" was being included
403 for the `struct complaint' definition.
404 * remote-vx.c: Update.
405 * objc-lang.c: Update.
406 * xcoffread.c: Update.
407 * hpread.c: Update.
408 * mdebugread.c: Update.
409 * stabsread.c: Update.
410 * dwarf2read.c: Update.
411 * dwarfread.c: Update.
412 * elfread.c: Update.
413 * coffread.c: Update.
414 * stabsread.h: Update.
415 * dbxread.c: Update.
416 * buildsym.c: Update.
417 * gdbtypes.c: Update.
418 * macrotab.c: Update.
419
1f2baacc
MK
4202002-10-25 Mark Kettenis <kettenis@gnu.org>
421
0c1a73d6
MK
422 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
423 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
424 (x86_64_init_abi): ...new function.
425
6aee4d54 426 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
427 * i386v-nat.c: Include "i386-tdep.h".
428
8f9cbe01
AC
4292002-10-25 Andrew Cagney <cagney@redhat.com>
430
5f11f355
AC
431 * gdbtypes.c (address_space_name_to_int): Update.
432 (address_space_int_to_name): Update.
433 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
434 multi-arch predicate.
435 (address_class_name_to_type_flags): Ditto.
436 * gdbarch.h, gdbarch.c: Re-generate.
437
8f9cbe01
AC
438 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
439
e8d96a5d
MH
4402002-10-24 Martin M. Hunt <hunt@redhat.com>
441
442 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
443
fe39c653
EZ
4442002-10-24 Elena Zannoni <ezannoni@redhat.com>
445
446 * symtab.h (INIT_SAL): Delete macro.
447 (init_sal): Export.
448 * symtab.c (init_sal): New function.
449
450 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
451 to init_sal function call.
452 (find_sal_from_funcs_and_line): Ditto.
453 (all_sals_for_line): Ditto.
454 * breakpoint.c (create_internal_breakpoint): Ditto.
455 (create_fork_vfork_event_catchpoint): Ditto.
456 (create_exec_event_catchpoint): Ditto.
457 (parse_breakpoint_sals): Ditto.
458 (watch_command_1): Ditto.
459 (handle_gnu_4_16_catch_command): Ditto.
460 (clear_command): Ditto.
461 * hppa-tdep.c (child_enable_exception_callback): Ditto.
462 * infcmd.c (run_stack_dummy): Ditto.
463 * infrun.c (process_event_stop_test): Ditto.
464 (check_sigtramp2): Ditto.
465 (step_over_function): Ditto.
466 * linespec.c (decode_line_2): Ditto.
467 (decode_line_1): Ditto.
468 * source.c (line_info): Ditto.
469 * symtab.c (find_pc_sect_line): Ditto.
470
baed091b
ML
4712002-10-24 Michal Ludvig <mludvig@suse.cz>
472
473 * dwarf2cfi.c (struct context)
474 (struct context_reg): Moved to dwarf2cfi.h
475 (context_alloc, frame_state_alloc, context_cpy):
476 Made extern instead of static, removed prototypes.
477 * dwarf2cfi.h (struct context)
478 (struct context_reg): New, moved from dwarf2cfi.c
479 (context_alloc, frame_state_alloc, context_cpy):
480 New prototypes.
481 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
482 Changed from static to extern.
483 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
484 (LINUX_SIGCONTEXT_FP_OFFSET)
485 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
486 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
487 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
488 * x86-64-tdep.c (x86_64_gdbarch_init): Several
489 set_gdbarch_*() calls now use x86-64 specific functions
490 instead of DWARF2 CFI ones.
491 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
492 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
493 (x86_64_init_extra_frame_info): New prototypes.
494
c38da1af
DC
4952002-10-23 David Carlton <carlton@math.stanford.edu>
496
497 * linespec.c: #include "parser-defs.h".
498 Delete prototype for find_template_name_end.
499 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
500
fb9b6b35
JJ
5012002-10-23 Jeff Johnston <jjohnstn@redhat.com>
502
503 * NEWS: add recent mi fixes.
504 * varobj.c (struct varobj): Add new "updated" flag.
505 (new_variable): Default "updated" flag to 0.
506 (varobj_set_value): Set "updated" flag to 1 if value
507 changes.
508 (varobj_update): Check varobj "updated" flag before
509 comparing old and refreshed values. Fix for
510 PR gdb/702.
511
8da065d5
DC
5122002-10-23 David Carlton <carlton@math.stanford.edu>
513
514 * parse.c (parse_exp_1): Use BLOCK_START.
515 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
516 SYMBOL_BLOCK_VALUE.
517 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
518
87f2f08c
DC
5192002-10-23 David Carlton <carlton@math.stanford.edu>
520
521 * symtab.c: Delete cplusplus_hint.
522 Delete prototype for find_template_name_end.
523
88cda038
EZ
5242002-10-23 Elena Zannoni <ezannoni@redhat.com>
525
526 * symtab.h: Update comment.
527
2625d86c
MS
5282002-10-23 Michael Snyder <msnyder@redhat.com>
529
530 * printcmd.c (address_info): Restore quotes in output.
531 * valops.c (value_of_local): Restore quotes in error message.
532
9cc0d196
EZ
5332002-10-23 Elena Zannoni <ezannoni@redhat.com>
534
535 * symtab.c (symbol_demangled_name): New function.
536 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
537 turning most of it into a function.
538 (symbol_demangled_name): Export.
539
19de93d0
MS
5402002-10-23 Michael Snyder <msnyder@redhat.com>
541
542 * valops.c (value_of_local): Restore quotes in error message.
543
89aad1f9
EZ
5442002-10-23 Elena Zannoni <ezannoni@redhat.com>
545
546 * symtab.c (symbol_init_language_specific): New function.
547 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
548 turning most of it into a function.
549 (symbol_init_language_specific): Export.
550
d9fa45fe
DC
5512002-10-23 David Carlton <carlton@math.stanford.edu>
552
553 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
554 (dwarf_attr_name): Ditto.
555 (dwarf_type_encoding_name): Ditto.
556 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
557 (process_die): Handle DW_TAG_namespace,
558 DW_TAG_imported_declaration, DW_TAG_imported_module.
559 (read_namespace): New function.
560
1045b512
JB
5612002-10-22 Joel Brobecker <brobecker@gnat.com>
562
563 * configure.in: Define NEW_PROC_API on Interix too.
564 * configure: Regenerate.
565
5662002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
567
568 * configure: Regenerate using the proper version of autoconf.
569
3987b9d4
EZ
5702002-10-21 Elena Zannoni <ezannoni@redhat.com>
571
572 * findvar.c (read_var_value): Temporarily disable TLS code, until
573 complete TLS support is added.
574
9d774e44
EZ
5752002-10-21 Jim Blandy <jimb@redhat.com>
576 Elena Zannoni <ezannoni@redhat.com>
577
578 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
579 for thread local storage locations.
580 (struct symbol): Add objfile field.
581 (SYMBOL_OBJFILE): Define.
582 * dwarf2read.c (is_thread_local): New static variable.
583 (new_symbol): If variable is in thread local fill in address class
584 and objfile appropriately.
585 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
586 stack operation.
587 * printcmd.c (address_info): Print the information for thread
588 local storage variable.
589 * findvar.c (read_var_value): In case of thread local variable,
590 defer to the target vector code to compute address.
591
bc4a16ae
EZ
5922002-10-21 Elena Zannoni <ezannoni@redhat.com>
593
594 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
595 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
596
407caf07
EZ
5972002-10-21 Elena Zannoni <ezannoni@redhat.com>
598
599 * symtab.h (address_class): Rename
600 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
601 * hpread.c (hpread_process_one_debug_symbol): Ditto.
602 * printcmd.c (address_info): Ditto.
603 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
604
005328e3
MK
6052002-10-20 Mark Kettenis <kettenis@gnu.org>
606
afdb036a
MK
607 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
608 DBREG_DRX macro to acces debug registers.
609
ca02e098
MK
610 * Makefile.in (i386obsd-tdep.o): New target.
611
03cc47f7
MK
612 * solib-sunos.c: Include "bcache.h" and "regcache.h".
613 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
614
005328e3
MK
615 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
616 * config/i386/obsd.mt: New file.
617 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
618 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
619 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
620 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
621 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
622 * i386obsd-tdep.c: New file.
623
9c96f9f2
AF
6242002-10-19 Adam Fedor <fedor@gnu.org>
625
626 * objc-exp.y (name_not_typename): Fix invalid comment.
627
ce1ed485
MK
6282002-10-20 Mark Kettenis <kettenis@gnu.org>
629
630 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
631 to allocate partial syms and macro byte caches.
632
1efc7aaa
DC
6332002-10-18 David Carlton <carlton@math.stanford.edu>
634
635 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
636
7e1d63ec
AF
6372002-10-18 Adam Fedor <fedor@gnu.org>
638
639 * stabsread.c (find_name_end): New function.
640 (define_symbol): Use it.
641
6e8d29a9
DJ
6422002-10-18 Daniel Jacobowitz <drow@mvista.com>
643
644 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
645 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
646 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
647 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
648
1efc7aaa 6492002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
650
651 * symfile.h: Add opaque declaration for struct obstack.
652 Declare obsavestring to take a const char *.
653 * symfile.c (obsavestring): Make first argument a const char *.
654
1aeae86e
AF
6552002-10-16 Adam Fedor <fedor@gnu.org>
656
657 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
658 names when matching breakpoints in current file.
659
8b2dbe47
KB
6602002-10-16 Kevin Buettner <kevinb@redhat.com>
661
662 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
663 (read_tag_pointer_type): Add address class support.
664 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
665 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
666 New methods.
667 * gdbarch.h, gdbarch.c: Regenerate.
668 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
669 (make_type_with_address_space, recursive_type_dump): Add address
670 class support.
671 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
672 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
673 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
674
74451869
KD
6752002-10-16 Klee Dienes <kdienes@apple.com>
676
677 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
678 to get the last character of a char[] buffer, not
679 name[sizeof(vptr_name)-1].
680
ff4cb3e8
AF
6812002-10-14 Adam Fedor <fedor@gnu.org>
682
683 * symtab.h: New objc_specific struct.
684 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
685 (SYMBOL_DEMANGLED_NAME): Likewise.
686
da2cf7e0
AF
6872002-10-14 Adam Fedor <fedor@gnu.org>
688
689 * symfile.c (init_filename_language_table): Add ObjC file extension.
690
4a351cef
AF
6912002-10-14 Adam Fedor <fedor@gnu.org>
692
693 * utils.c (puts_filtered_tabular): New function.
694 (fprintf_symbol_filtered): Get ObjC demangled name.
695 * defs.h (puts_filtered_tabular): Declared.
696
9750e763
KB
6972002-10-14 Kevin Buettner <kevinb@redhat.com>
698
699 * c-lang.h (c_type_print_varspec_prefix): Delete.
700 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
701 ``need_post_space'' parameter. Adjust all callers.
702
eee771c1
DJ
7032002-10-14 Daniel Jacobowitz <drow@mvista.com>
704
705 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
706 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
707 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
708 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
709
46c82446
AF
7102002-10-13 Adam Fedor <fedor@gnu.org>
711
712 * source.c (print_source_lines): Update comments.
713
d069f99d
AF
7142002-10-13 Adam Fedor <fedor@gnu.org>
715
716 * valops.c (value_of_local): New function.
717 (value_of_this): Use it.
718 * value.h (value_of_local): Declared.
719
53c551b7
AF
7202002-10-13 Adam Fedor <fedor@gnu.org>
721
722 * parse.c: (length_of_subexp, prefixify_subexp): Handle
723 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
724
eb392fbf
AF
7252002-10-12 Adam Fedor <fedor@gnu.org>
726
727 * language.c (binop_result_type): Add language_objc to case.
728 (integral_type): Likewise.
729 (character_type): Likewise.
730 (string_type): Likewise.
731 (boolean_type): Likewise.
732 (structured_type): Likewise.
733 (binop_type_check): Likewise.
734
e2b23ee9
AF
7352002-10-11 Adam Fedor <fedor@gnu.org>
736
737 * printcmd.c (address_info): Print 'self' for ObjC.
738
b01ab485
AF
7392002-10-11 Adam Fedor <fedor@gnu.org>
740
741 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
742 OP_SELF.
743
806e6073
AF
7442002-10-11 Adam Fedor <fedor@gnu.org>
745
746 * language.h (CAST_IS_CONVERSION): Add language_objc.
747
50f85cdf
AF
7482002-10-11 Adam Fedor <fedor@gnu.org>
749
750 * defs.h (enum language): Add language_objc.
751
0d540cdf
KD
7522002-10-11 Klee Dienes <kdienes@apple.com>
753
69266111 754 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
755 * gdbcore.h (read_memory_typed_address): Add prototype.
756 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
757 to read a value destined for a CORE_ADDR, not read_memory_integer.
758 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
759 (f77_get_dynamic_lowerbound): Ditto.
760
d5dc7960
MH
7612002-10-11 Martin M. Hunt <hunt@redhat.com>
762
763 * utils.c (string_to_core_addr): After turning string into
764 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
765 which will do necessary sign-extension, etc.
766
8343f86c
DJ
7672002-10-11 Daniel Jacobowitz <drow@mvista.com>
768
769 * c-exp.y (THIS): Delete token and grammar rule.
770 (yylex): Don't return THIS.
771 * cp-valprint.c (vtbl_ptr_name_old): Delete.
772 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
773 * demangle.c (cplus_markers): Update comment. Put '$'
774 first. Remove CPLUS_MARKER.
775 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
776 * jv-exp.y (THIS): Delete token and grammar rule.
777 (yylex): Don't return THIS.
778 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
779 * objc-exp.y (THIS): Delete token and grammar rule.
780 (yylex): Don't return THIS.
781 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
782 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
783 (read_member_functions): Likewise for opname.
784 (read_tilde_fields): Use is_cplus_marker.
785
786 * defs.h (CPLUS_MARKER): Don't define.
787 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
788 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
789 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
790 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
791 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
792
793 * config/i386/tm-i386v4.h: Delete file.
794 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
795 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
796 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
797 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
798 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
799 * config/i386/i386sco5.mt (TM_FILE): Likewise.
800 * config/i386/i386v4.mt (TM_FILE): Likewise.
801 * config/i386/ncr3000.mt (TM_FILE): Likewise.
802
967c0d83
MM
8032002-10-10 Marko Mlinar <markom@opencores.org>
804
805 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
806 accidentially not commited 2002-10-09
807 * gdbarch.h, gdbarch.c: Re-generate.
808
f74fa174
MM
8092002-10-09 Marko Mlinar <markom@opencores.org>
810
811 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
812 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
813 * gdbarch.h, gdbarch.c: Re-generate.
814
57349743
JB
8152002-10-08 Petr Sorfa <petrs@caldera.com>
816
817 Revised and re-submitted by John Wolfe <jlw@caldera.com>
818
819 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
820 so we can work on more than one compilation unit at a time. This
821 helps prepare GDB to handle inter-CU die references.
822 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
823 the code to be defined before struct comp_unit_head.
824 (comp_unit_head): Added new members - offset, cu_head,
825 begin_die, next and dwarf2_abbrevs.
826 (dwarf2_abbrevs): Removed single static var; now member of
827 struct comp_unit_head.
828 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
829 members.
830 (psymtab_to_symtab_1): Changed to work with the new
831 struct comp_unit_head.
832 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
833 constructs the dwarf2_abbrevs[] inside the cu_header.
834 (dwarf2_empty_abbrev_table): Now expects a ptr to a
835 dwarf2_abbrev table to clean up.
836 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
837 handling of dwarf2_abbrevs inside the cu_header.
838 (read_partial_die): Now supports the call to the new
839 dwarf2_lookup_abbrev.
840 (read_full_die): Now supports the call to the new
841 dwarf2_lookup_abbrev.
842
4092aadb
CF
8432002-10-06 Christopher Faylor <cgf@redhat.com>
844
845 * Makefile.in (install-gdbtk): Add missing continuation backslash to
846 insure that shell variables, such as "transformed_name" are propagated
847 to later shell statements in rule.
848
af0b2512
MK
8492002-10-06 Mark Kettenis <kettenis@gnu.org>
850
851 * config/i386/nm-i386sco.h: Add protection against
852 multiple-inclusion. Include "i386/nm-i386v.h".
853 (REGISTER_U_ADDR): Remove define.
854 (i386_register_u_addr): Remove prototype.
855
d6020d45
MS
8562002-10-04 Michael Snyder <msnyder@redhat.com>
857
858 * m32r-stub.c (handle_exception): Make sure exception is "trap"
859 before treating it as a single-step event.
860
7248f48e
AF
8612002-10-03 Adam Fedor <fedor@gnu.org>
862
863 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
864 (objc_demangle): Remove assignment in if statements, Replace
865 free with xfree.
866 (add_msglist): Likewise.
867 (end_msglist): Likewise.
868 (complare_selectors): Likewise.
869 (selectors_info): Likewise.
870 (compare_classes): Likewise.
871 (classes_info): Likewise.
872 (print_object_command): Likewise.
873 (find_objc_msgcall_submethod): Replace PTR with void *.
874 * objc-lang.h: Remove check for __STDC__.
875
52c6a6ac
JJ
8762002-10-03 Jeff Johnston <jjohnstn@redhat.com>
877
878 * ui-out.h (ui_out_field_fmt_int): New prototype.
879 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
880 of field width and alignment.
881 * stack.c (print_frame_info_base): When printing frame level, use
882 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
883 PR gdb/192
884
7e3cec17
JJ
8852002-10-03 Jeff Johnston <jjohnstn@redhat.com>
886
887 * MAINTAINERS: Add self to Write After Approval list.
888
a58dd373
EZ
8892002-10-02 Elena Zannoni <ezannoni@redhat.com>
890
891 * infcmd.c (interrupt_target_command_wrapper): Delete.
892 (interrupt_target_command): Make non static.
893 (nofp_registers_info): Make static.
894 * stack.c (return_command_wrapper): Delete.
895 (return_command): Make non static.
896
cee6ddeb
EZ
8972002-10-02 Elena Zannoni <ezannoni@redhat.com>
898
899 * event-top.c (gdb_setup_readline): New function. Code moved from
900 _initialize_event_loop().
901 (_initialize_event_loop): Call gdb_setup_readline().
902
c4ed33b9
AC
9032002-10-02 Andrew Cagney <ac131313@redhat.com>
904
905 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
906 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
907 * gdbarch.h, gdbarch.c: Re-generate.
908
cef4f5dd
DJ
9092002-10-02 Daniel Jacobowitz <drow@mvista.com>
910
911 Fix PR gdb/778
912 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
913 before recursing.
914 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
915 of fill_in_vptr_fieldno.
916
36dc181b 9172002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 918
36dc181b
EZ
919 * inferior.h (registers_info, stepi_command, nexti_command,
920 continue_command, interrupt_target_command): Export from infcmd.c.
921 * frame.h (args_info, selected_frame_level_changed_hook,
922 return_command): Export from stack.c.
923 * v850ice.c (stepi_command, nexti_command, continue_command): use
924 prototypes from inferior.h.
925 * tracepoint.c (registers_info, args_info, locals_info): Use
926 prototypes from frame.h and inferior.h.
927 * Makefile.in (mi-main.o): Add dependency on frame.h.
928
6f99cb26
AC
9292002-10-02 Andrew Cagney <ac131313@redhat.com>
930
da3eff49
AC
931 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
932 value in register 3 adjusted by ppc_gp0_regnum.
933
6f99cb26
AC
934 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
935
da615bee
MM
9362002-10-02 Marko Mlinar <markom@opencores.org>
937
938 * MAINTAINERS: Add myself to the Write After Approval list.
939
d154bee2
AO
9402002-10-01 Alexandre Oliva <aoliva@redhat.com>
941
62a49b2c
AO
942 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
943 of the section for the N64 ABI, fixed.
944
d154bee2
AO
945 * config/mips/tm-irix6.h: Include solib.h.
946
ed348acc
EZ
9472002-10-01 Elena Zannoni <ezannoni@redhat.com>
948
949 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
950 GNU operators.
951
da0f9dcd
AC
9522002-10-01 Andrew Cagney <ac131313@redhat.com>
953
954 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
955 and that "mi0" syntax has been removed.
956
bdf64bac
DC
9572002-09-30 David Carlton <carlton@math.stanford.edu>
958
959 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
960 * ppc-sysv-tdep.c: #include "gdb_string.h".
961 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
962 pacify GCC.
963
54c2a1e6
AC
9642002-10-01 Andrew Cagney <ac131313@redhat.com>
965
966 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
967 "vrsave"'s register number.
968
cedea778
AC
9692002-09-30 Andrew Cagney <ac131313@redhat.com>
970
971 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
972 use frame_unwind_signed_register to obtain the PC.
973 (mips_frame_chain): Handle a generic dummy frame.
974 (mips_init_extra_frame_info): When a generic dummy frame, don't
975 re-compute the frame base.
976 (mips_pop_frame): Handle generic dummy frames.
977 (mips_gdbarch_init): When generic dummy frames, set
978 use_generic_dummy_frames, push_dummy_frame to
979 generic_push_dummy_frame, pc_in_call_dummy to
980 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
981 generic_save_dummy_frame_tos.
982
68315eb8
AC
9832002-09-30 Andrew Cagney <ac131313@redhat.com>
984
985 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
986 against TOP when TOP was explictly set.
987 (generic_push_dummy_frame): Set TOP to zero.
988
3b8630c3
EZ
9892002-09-30 Elena Zannoni <ezannoni@redhat.com>
990
991 * event-loop.c (start_event_loop): Rename variable 'result' to
992 'gdb_result', to avoid conflicts with upcoming intepreters changes.
993
28ee05e9
KS
9942002-09-30 Keith Seitz <keiths@redhat.com>
995
996 * gdb-events.sh (selected_thread_changed): New event.
997 * gdb-events.c: Regenerated.
998 * gdb-events.h: Regenerated.
999
6eecb1c8
HPN
10002002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1001
1002 * MAINTAINERS: Add self to Write After Approval list.
1003
92df71f0
FN
10042002-09-30 Fernando Nasser <fnasser@redhat.com>
1005
3b8630c3
EZ
1006 * disasm.c: New file.
1007 * disasm.h: New file.
92df71f0
FN
1008 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1009 (compare_lines): Ditto.
1010 (dump_insns): Ditto.
3b8630c3
EZ
1011 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1012 argument.
92df71f0 1013 (do_assembly_only): Ditto.
3b8630c3
EZ
1014 (do_disassembly): Renamed to gdb_disassembly and moved to
1015 disasm.c. Sdded uiout argument.
1016 * Makefile.in: Add new files. Reorder SFILES list. Update
1017 dependencies. Include libgdb.a later in the insight executable.
92df71f0 1018
0c22854d
AC
10192002-09-29 Andrew Cagney <ac131313@redhat.com>
1020
1021 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1022 bfd/elf64-alpha-fbsd.c.
1023
e67f2023
AC
10242002-09-29 Andrew Cagney <ac131313@redhat.com>
1025
1026 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1027 i386gnu-tdep.c.
1028
89396210
AC
10292002-09-29 Andrew Cagney <ac131313@redhat.com>
1030
1031 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1032 __FUNCTION__.
1033 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1034 function name.
1035 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1036 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1037 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1038 (S_msg_sig_post_reply): Ditto.
1039
7079c36c
CV
10402002-09-28 Corinna Vinschen <vinschen@redhat.com>
1041
89396210
AC
1042 * sh-tdep.c (sh_use_struct_convention): Use definition according
1043 to ABI.
7079c36c
CV
1044 (sh_push_arguments): Store in register with correct endianess.
1045 (sh_default_store_return_value): Ditto.
1046 (sh_gdbarch_init): Set sizeof long double to 8.
1047
975ac915
MK
10482002-09-27 Mark Kettenis <kettenis@gnu.org>
1049
1050 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1051 Fix some whitespace problems.
1052
9bbe19fb
DC
10532002-09-27 David Carlton <carlton@math.stanford.edu>
1054
1055 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1056 (mcore-tdep.o): Ditto.
1057 (ns32k-tdep.o): Ditto.
1058 (ns32knbsd-tdep.o): Ditto.
1059 (sh3-rom.o): Ditto.
1060 (vax-tdep.o): Ditto.
1061 * cris-tdep.c: #include "gdb_string.h"
1062 * mcore-tdep.c: Ditto.
1063 * ns32k-tdep.c: Ditto.
1064 * ns32knbsd-tdep.c: Ditto.
1065 * sh3-rom.c: Ditto.
1066 * vax-tdep.c: Ditto.
1067
43b2fdc7
DC
10682002-09-27 David Carlton <carlton@math.stanford.edu>
1069
1070 * config/djgpp/fnchange.lst: Add entries for
1071 gdb/testsuite/gdb.c++/m-static files.
1072
e8cfbbd9
JW
10732002-09-27 Jim Wilson <wilson@redhat.com>
1074
1075 * MAINTAINERS: Add myself to the Write After Approval list.
1076
43b2fdc7 10772002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
1078
1079 * mips-tdep.c (find_proc_desc): Initialize startaddr.
1080
1081
9f3b7f07
AC
10822002-09-26 Andrew Cagney <ac131313@redhat.com>
1083
1084 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1085 frame.
1086
11269d7e
AC
10872002-09-26 Andrew Cagney <ac131313@redhat.com>
1088
1089 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1090 (rs6000_struct_return_address): Delete variable.
1091 (rs6000_store_struct_return): Update.
1092 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1093 deprecated_extract_struct_value_address.
1094 (rs6000_frame_align): New function.
1095 (rs6000_gdbarch_init): Set frame_align.
1096
f15ab4a7
AC
10972002-09-26 Andrew Cagney <ac131313@redhat.com>
1098
1099 From Grace Sainsbury <graces@redhat.com>:
1100 * Makefile.in (gdbtk-main.o): New target.
1101 (gdb.o): New target.
1102 (main_h): Define.
1103 (main.o): Update dependencies.
1104 (gdb$(EXEEXT)): Add gdb.o.
1105 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1106 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1107 (SUBDIR_GDBTK_CLEAN): Set.
1108 (install-gdbtk): Install the insight binary.
1109 (uninstall-gdbtk): New target.
1110 (all-gdbtk, clean-gdbtk): New rule.
1111 * top.c (use_windows): Default to zero.
1112 * main.c: Include "main.h".
1113 (main): Delete.
1114 (struct captured_main_args): Delete.
1115 (gdb_main): New function.
1116 * main.h: New file.
1117 * gdb.c: New File.
1118
e36180d7
AC
11192002-09-25 Andrew Cagney <cagney@redhat.com>
1120
1121 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1122 (frame_map_regnum_to_name): New function.
1123 (frame_map_name_to_regnum): New function.
1124 * frame.h (frame_map_name_to_regnum): Declare.
1125 (frame_map_regnum_to_name): Declare.
1126 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1127 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1128 * parse.c: Do not include "builtin-regs.h".
1129 (target_map_name_to_register): Delete function.
1130 (write_dollar_variable): Use frame_map_name_to_regnum.
1131 * parser-defs.h (target_map_name_to_register): Delete declaration.
1132 * expprint.c: Include "frame.h".
1133 (print_subexp): Use frame_map_regnum_to_name.
1134 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1135 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1136
8b69000d
AC
11372002-09-25 Andrew Cagney <ac131313@redhat.com>
1138
1139 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1140 wasn't saved, and the next innermost frame is a dummy, return the
1141 dummy frame's link register.
1142
046ca86a
JB
11432002-09-24 Jim Blandy <jimb@redhat.com>
1144
1145 Fix from Paul Breed:
1146 * main.c (captured_main): Add a `break' after the case for 'b'.
1147
94b66fa7
KS
11482002-09-24 Keith Seitz <keiths@redhat.com>
1149
1150 * varobj.c (c_type_of_child): Use get_target_type instead
1151 of TYPE_TARGET_TYPE.
1152
c214a6fd
FN
11532002-09-22 Fernando Nasser <fnasser@redhat.com>
1154
53cb0458
FN
1155 * source.c (get_current_or_default_source_symtab_and_line): Remove
1156 function.
1157 (set_default_source_symtab_and_line): New function. Attempts to
1158 determine a source file to list lines from if one is not currently
1159 defined.
1160 (get_current_source_symtab_and_line): Initialize sal.pc and
1161 sal.end fields.
1162 (set_current_source_symtab_and_line): Mark argument as const.
1163 * source.h: Update declarations and comments.
1164 * linespec.c (decode_line_1): Replace call to removed routine above.
1165 * stack.c (print_frame_info_base): Ditto.
1166 * cli/cli-cmds.c (edit_command): Ditto.
1167 (list_command): Ditto.
1168
11692002-09-22 Fernando Nasser <fnasser@redhat.com>
1170
d6020d45 1171 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 1172 sal.pc and sal.end fields.
c214a6fd
FN
1173 (get_current_or_default_source_symtab_and_line): Ditto.
1174 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1175 so we do not cause a new source symtab to be searched for (reverting an
1176 unintentional change from the 2002-09-20 patch).
1177 * scm-lang.c (scm_unpac): Ditto.
1178
cc3b68a5
AC
11792002-09-21 Andrew Cagney <cagney@redhat.com>
1180
1181 * complaints.c (symfile_explanations): Remove new-line from
1182 ``isolated_message''.
1183 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1184 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1185
5835abe7
NC
11862002-09-20 Nick Clifton <nickc@redhat.com>
1187
1188 * NEWS: Announce that V850EA ISA is no longer supported.
1189 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1190
a15ef5f5
DC
11912002-09-20 David Carlton <carlton@math.stanford.edu>
1192
06ba1b39
DC
1193 * Makefile.in (c-lang.o): Correct dependencies.
1194 (utils.o): Gather dependencies.
1195 (charset.o): Move.
a15ef5f5
DC
1196 * c-lang.c: #include "gdb_string.h"
1197
87885426
FN
11982002-09-20 Fernando Nasser <fnasser@redhat.com>
1199
1200 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
1201 * cli/cli-cmds.c (list_command): New function. Implements the new
1202 cli edit command.
1203 (_init_cli_cmds): Add new command definition.
1204 * gdb.1: Document edit command.
1205 * doc/gdb.texinfo: Document edit command.
1206
12072002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
1208
1209 * source.c: Make global variables current_source_symtab and
1210 current_source_line static.
1211 (list_command): Moved to cli/cli-cmds.c.
1212 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1213 (get_first_line_listed): New accessor function.
1214 (get_lines_to_list): New accessor function.
1215 (get_current_source_symtab_and_line): New function. Retrieves the
1216 position in the source code that we consider current.
1217 (get_current_or_default_source_symtab_and_line): New function.
1218 Like the above but attempts to determine a default position if one
1219 is not currently defined.
1220 (set_current_source_symtab_and_line): New function. Sets the source
1221 code position considered current and returns the previously set one.
1222 (clear_current_source_symtab_and_line): Reset stored information about
1223 a current source line.
1224 (_initialize_source): Remove registration for the "list" command and
1225 its alias.
1226 * source.h: Add declarations for the new functions above.
1227 * symtab.h: Remove declarations for the global variables mentioned
1228 above.
1229 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1230 obtain current source line.
1231 * linespec.c (decode_line_1): Ditto.
1232 * macroscope.c (default_macro_scope): Ditto.
1233 * scm-lang.c (scm_unpac): Ditto.
1234 * stack.c (print_frame_info_base): Ditto.
1235 * symfile.c (clear_symtab_users): Ditto.
1236 * symtab.c (decode_line_spec): Ditto.
1237 * cli/cli-cmds.c (list_command): Moved here from source.c.
1238 (ambiguous_line_spec): Moved here from source.c.
1239 (_init_cli_cmds): Add definition for "list" and its alias.
1240 * Makefile.in: Update dependencies.
1241
ddd216ea
CV
12422002-09-20 Corinna Vinschen <vinschen@redhat.com>
1243
1244 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1245 with what gcc thinks is correct.
1246
6d305052
CV
12472002-09-20 Corinna Vinschen <vinschen@redhat.com>
1248
1249 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1250 multiple register push instruction.
1251
234b45d4
KB
12522002-09-19 Jim Blandy <jimb@redhat.com>
1253
1254 Add support for distinct host and target character sets.
1255 * charset.c, charset.h: New files.
1256 * c-exp.y: #include "charset.h".
1257 (yylex): Convert character and string literals to the target
1258 character set, before returning them as the semantic value of the
1259 token.
1260 * c-lang.c: #include "charset.h".
1261 (c_emit_char): Use charset-specific methods to recognize
1262 characters with backslash escape forms, to decide which characters
1263 to print literally and which to print using numeric escape
1264 sequences, and to convert target characters to host characters
1265 before printing.
1266 * utils.c: #include "charset.h".
1267 (no_control_char_error): New function.
1268 (parse_escape): Use charset-specific methods to recognize
1269 backslash escapes, parse `control character' notation, and convert
1270 characters from the host character set to the target character set.
1271 * configure.in: Set the default host character set.
1272 Check where to find iconv, and what its argument types might be.
1273 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1274 * Makefile.in (SFILES): List charset.c.
1275 (COMMON_OBS): List charset.o.
1276 (charset.o): New rule.
1277 (charset_h): New header dependency variable.
1278 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1279 (LIBICONV): New variable, set by configure.
1280 (CLIBS): Include $(LIBICONV) here.
1281 * aclocal.m4, config.in, configure: Regenerated.
1282
525d6a61
JB
12832002-09-19 Joel Brobecker <brobecker@gnat.com>
1284
1285 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1286 bison 1.35 warning.
1287
3ed93867
RE
12882002-09-19 Richard Earnshaw <rearnsha@arm.com>
1289
1290 * gdb_mbuild.sh: New file.
1291
437666f8
AC
12922002-09-19 Andrew Cagney <ac131313@redhat.com>
1293
1294 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1295
389e51db
AC
12962002-09-18 Andrew Cagney <ac131313@redhat.com>
1297
1298 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1299 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1300 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1301 valops.c, value.h: Revert previous change.
1302
3b4efeaa
MS
13032002-09-18 Michael Snyder <msnyder@redhat.com>
1304
1305 Preliminary support for Objective-C:
1306 * defs.h (language_objc): New enum value.
1307 (puts_filtered_tabular): Declaration only, exported from utils.c.
1308 (skip_quoted): Delete, declared in completer.h.
1309 * c-exp.y: Include completer.h.
1310 * p-exp.y: Ditto.
1311 * jv-exp.y: Ditto.
1312 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
1313 New operator enum values.
1314 * language.h (CAST_IS_CONVERSION): Test for language_objc.
1315 * language.c (binop_result_type): Handle language_objc case.
1316 (integral_type, character_type, string_type, boolean_type,
1317 structured_type, binop_type_check): Ditto.
1318 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1319 (struct objc_specific): Add to general_symbol_info.
1320 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1321 (SYMBOL_DEMANGLED_NAME): Handle objc case.
1322 * parser-defs.h (struct objc_class_str): New struct type.
1323 (start_msglist, end_msglist, add_msglist): Declaration only,
1324 exported from objc-lang.c.
1325 * value.h (value_of_local, value_nsstring,
1326 call_function_by_hand_expecting_type): Exported from valops.c.
1327 * valops.c (find_function_addr): Export.
1328 (call_function_by_hand_expecting_type): New function.
1329 (value_of_local): New function.
1330 * symfile.c (init_filename_language_table): Add ".m" extension
1331 for Objective-C.
1332 * utils.c (puts_filtered_tabular): New function.
1333 (fprintf_symbol_filtered): Add objc demangling support (disabled).
1334 (set/show demangle): Extend help-string to refer to ObjC.
1335 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1336 * stabsread.c (symbol_reference_defined): Objective-C symbols
1337 may contain colons: make allowances when scanning stabs strings
1338 for colons.
1339 (objc_find_colon): New function.
1340 * printcmd.c (address_info): If language == objc then print
1341 "self" instead of "this".
1342 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1343 OP_NSSTRING, and OP_SELF.
1344 (prefixify_subexp): Ditto.
1345 * source.c (print_source_lines): Mention objc in comment.
1346 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1347 method names.
1348
b9caf505
AC
13492002-09-18 Andrew Cagney <ac131313@redhat.com>
1350
1351 * complaints.h: Update copyright.
1352 (struct complaints): Declare.
1353 (struct complaint): Make `message' constant.
1354 (internal_complaint): Declare.
1355 (complaint): Declare.
1356 (complaint_root): Delete declaration.
1357 (symfile_complaints): Delete declaration.
1358 (struct complaints): Add opaque declaration.
1359 (clear_complaints): Add a complaints parameter.
1360 * complaints.c: Update copyright.
1361 (enum complaint_series): Define.
1362 (complaint_root): Delete.
1363 (struct complaints): Define.
1364 (complaint_sentinel, symfile_complaint_book): New variables.
1365 (symfile_explanations, symfile_complaints): New variables.
1366 New variables.
1367 (get_complaints): New function.
1368 (vcomplaint): New function.
1369 (complaint): New function.
1370 (internal_complaint): New function.
1371 (complain): Call vcomplain with symfile_complaint.
1372 (clear_complaints): Rewrite.
1373 (_initialize_complaints): Use add_setshow_command.
1374 * Makefile.in (complaints.o): Update dependencies.
1375 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1376 to call to clear_complaints.
1377 (new_symfile_objfile, reread_symbols): Ditto.
1378 (oldsyms_complaint): Delete.
1379 (empty_symtab_complaint, unknown_option_complaint): Delete.
1380 (free_named_symtabs): Use complaint instead of complain.
1381
d2e6263c
MS
13822002-09-18 Michael Snyder <msnyder@redhat.com>
1383
5fb2031a
AC
1384 Contributed by Apple Computer, Inc. Merged with current sources
1385 by Adam Fedor <fedor@doc.com> [cagney].
1386
d2e6263c
MS
1387 * objc-lang.c: First clean-up round: comments, indentation.
1388 * objc-lang.h: Ditto.
1389 * objc-lang.y: Ditto.
1390
dec43320
AC
13912002-09-18 Andrew Cagney <ac131313@redhat.com>
1392
1393 * maint.c (maintenance_internal_error): Print the parameter as the
1394 error message.
1395 (maintenance_internal_warning): New function.
1396 (_initialize_maint_cmds): Add command `maint internal-warning'.
1397
1398 * defs.h (internal_warning, internal_vwarning): Declare.
1399 * utils.c (struct internal_problem): Define.
1400 (internal_vproblem): New function.
1401 (internal_warning): New function.
1402 (internal_vwarning): New function.
1403 (internal_warning_problem, internal_error_problem): New variables.
1404 (internal_verror): Just call internal_vproblem.
1405
b81654f1
MS
14062002-09-18 Michael Snyder <msnyder@redhat.com>
1407
1408 * objc-lang.c: New file, support for Objective-C.
1409 Preliminary check-in, not yet integrated into gdb.
1410 * objc-lang.h: New file.
1411 * objc-exp.y: New file.
1412
0542c381
AC
14132002-09-18 Andrew Cagney <ac131313@redhat.com>
1414
7bda5e4a
AC
1415 * infrun.c (signal_stop_update): Convert definition to ISO C.
1416 (signal_print_update): Ditto.
1417 (signal_pass_update): Ditto.
1418 * inflow.c (terminal_save_ours): Ditto.
1419
5247b418
AC
1420 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1421 comments.
1422
fc60962c
AC
1423 * config/djgpp/fnchange.lst: Handle name clashes between
1424 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1425 bfd/coff-tic80.c.
1426
0542c381
AC
1427 * i386-linux-tdep.h: Fix tipo.
1428
5b924b9b
AF
14292002-09-18 Adam Fedor <fedor@gnu.org>
1430
1431 * MAINTAINERS: Add myself to the Write After Approval list.
1432
5afc051b
JB
14332002-09-18 Jim Blandy <jimb@redhat.com>
1434
1435 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1436 texthigh and textlow to reader-specific structs caused
1437 objfile_relocate to miss them. This is fixable, but the work that
1438 the change was supposed to prepare GDB for never got done anyway.
1439
eb944380
DC
14402002-09-18 David Carlton <carlton@math.stanford.edu>
1441
1442 * MAINTAINERS: Alphabetize Write After Approval list.
1443
948e66d9
DJ
14442002-09-18 Daniel Jacobowitz <drow@mvista.com>
1445
1446 Fix PR gdb/709
1447 * values.c (value_static_field): Call read_var_value.
1448
dc604539
AC
14492002-09-18 Andrew Cagney <ac131313@redhat.com>
1450
1451 * valops.c (hand_function_call): Align the initial stack pointer
1452 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1453 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1454 return value.
1455 * mips-tdep.c (mips_frame_align): New function.
1456 (mips_gdbarch_init): Set frame_align.
1457 * gdbarch.sh (FRAME_ALIGN): New method.
1458 * gdbarch.h, gdbarch.c: Re-generate.
1459
cb7e422f
ML
14602002-09-18 Michal Ludvig <mludvig@suse.cz>
1461
1462 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1463 registers.
1464
a094c6fb
AC
14652002-09-17 Andrew Cagney <ac131313@redhat.com>
1466
1467 * NEWS: Mention that MIPS $fp behavior changed.
1468 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1469 reference to FP_REGNUM.
1470 (mipsnbsd_cannot_store_register): Ditto.
1471 * mips-linux-nat.c: Update copyright.
1472 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1473 (mips_linux_cannot_store_register): Ditto.
1474 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1475 * config/mips/tm-mips.h: Update copyright.
1476 (FP_REGNUM): Delete macro.
1477 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1478 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1479 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1480 (mips_r3041_reg_names, mips_r3051_reg_names)
1481 (mips_r3081_reg_names): Replace "fp" with "".
1482 Fix PR gdb/480.
1483
45cf40d1
TR
14842002-09-17 Theodore A. Roth <troth@verinet.com>
1485
1486 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1487 generic_read_register_dummy() (PR gdb/703).
1488 (avr_push_return_address): #if 0 out unused vars.
1489 (avr_gdbarch_init): Enable use of avr_push_return_address().
1490
c7e701b5
MS
14912002-09-17 Michael Snyder <msnyder@redhat.com>
1492
d76ba2a5 1493 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
1494 RTE will take care of it.
1495
20bcf01c
AC
14962002-09-17 Andrew Cagney <ac131313@redhat.com>
1497
1498 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1499 invalid, return SP_REGNUM.
1500
009a9971 15012002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
1502
1503 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1504 point registers without sign extension.
1505
135c175f
AC
15062002-09-17 Andrew Cagney <cagney@redhat.com>
1507
1508 * blockframe.c (deprecated_read_register_dummy): Rename
1509 generic_read_register_dummy.
1510 * frame.c (frame_unwind_signed_register): New function.
1511 (frame_unwind_unsigned_register): New function.
1512 * frame.h (frame_unwind_signed_register): Declare.
1513 (frame_unwind_unsigned_register): Declare.
1514 (deprecated_read_register_dummy): Rename
1515 generic_read_register_dummy.
1516
1517 * h8300-tdep.c (h8300_frame_chain): Update.
1518 (h8300_frame_saved_pc): Update.
1519 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1520 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1521 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1522 (s390_frame_chain): Update.
1523 * v850-tdep.c (v850_find_callers_reg): Update.
1524 (v850_frame_saved_pc): Update.
1525 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1526 (m32r_find_callers_reg): Update.
1527 (m32r_frame_saved_pc): Update.
1528 * sh-tdep.c (sh_find_callers_reg): Update.
1529 (sh64_get_saved_pr): Update.
1530 (sh_init_extra_frame_info): Update.
1531 (sh_init_extra_frame_info): Update.
1532 (sh64_init_extra_frame_info): Update.
1533 (sh64_init_extra_frame_info): Update.
1534 * mcore-tdep.c (mcore_find_callers_reg): Update.
1535 (mcore_frame_saved_pc): Update.
1536 (mcore_init_extra_frame_info): Update.
1537 * i386-tdep.c (i386_frame_saved_pc): Update.
1538 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1539 (ia64_init_extra_frame_info): Update.
1540 (ia64_init_extra_frame_info): Update.
1541 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1542 * cris-tdep.c (cris_init_extra_frame_info): Update.
1543 * avr-tdep.c (avr_frame_chain): Update.
1544 (avr_init_extra_frame_info): Update.
1545 (avr_frame_saved_pc): Update.
1546 * arm-tdep.c (arm_find_callers_reg): Update.
1547 (arm_init_extra_frame_info): Update.
1548 (arm_frame_saved_pc): Update.
1549
a741e514
TT
15502002-09-17 Tom Tromey <tromey@redhat.com>
1551
1552 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1553 is "'".
1554
d1a8e808
CV
15552002-09-17 Corinna Vinschen <vinschen@redhat.com>
1556
1557 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1558 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1559 NEXT_PROLOGUE_INSN.
1560 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1561 NEXT_PROLOGUE_INSN.
1562
d9025a18
JB
15632002-09-16 Joel Brobecker <brobecker@gnat.com>
1564
1565 * osfsolib.c: Remove file, replaced by solib-osf.c.
1566 * Makefile.in: Remove compilation rules for osfsolib.c.
1567
1b2ef1b6
DC
15682002-09-16 David Carlton <carlton@math.stanford.edu>
1569
1570 * cp-valprint.c (cp_print_class_method): Correct args to
1571 check_stub_method_group.
1572
928e48af
CV
15732002-09-16 Corinna Vinschen <vinschen@redhat.com>
1574
1575 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1576 `set architecture'. Unify naming convention of functions.
1577 (h8300_skip_prologue): Improve prologue analysis.
1578 (h8300_push_arguments): Rewritten to more closely match GCC's
1579 bizarre argument-passing behavior, along with the comment describing
1580 said behavior.
1581 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1582 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1583 sim, remote-e7000.c, remote-hms.c and remote.c
1584
5e3397bb
MK
15852002-09-15 Mark Kettenis <kettenis@gnu.org>
1586
1587 * i386-tdep.c (gdb_print_insn_i386): Removed.
1588 (i386_print_insn): New function.
1589 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1590 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1591 tm_print_insn_info.
1592
f710f4fc
MK
15932002-09-14 Mark Kettenis <kettenis@gnu.org>
1594
1595 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1596 zero.
1597
db54fef4
CV
15982002-09-14 Corinna Vinschen <vinschen@redhat.com>
1599
1600 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1601 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1602 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1603
2becadee
CF
16042002-09-13 Christopher Faylor <cgf@redhat.com>
1605
1606 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1607
de17c821
DJ
16082002-09-13 Daniel Jacobowitz <drow@mvista.com>
1609
1610 * gdbtypes.c (check_stub_method): Make static.
1611 (check_stub_method_group): New function.
1612 * gdbtypes.h: Update prototypes.
1613 * cp-support.c: New file.
1614 * cp-support.h: New file.
1615
1616 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1617 (update_method_name_from_physname): New function.
1618 (read_member_functions): Correct method names for operators
1619 and v3 constructors/destructors. Separate v2 constructors and
1620 destructors.
1621 * Makefile.in (stabsread.o): Update dependencies.
1622 (SFILES): Add cp-support.c.
1623 (COMMON_OBS): Add cp-support.o.
1624 (cp_support_h, cp-support.o): Add.
1625
1626 * cp-valprint.c (cp_print_class_method): Call
1627 check_stub_method_group instead of check_stub_method. Remove
1628 extraneous QUITs.
1629 * p-valprint.c (pascal_object_print_class_method): Likewise.
1630 * valops.c (search_struct_method): Likewise.
1631 (find_method_list, value_struct_elt_for_reference): Likewise.
1632
e76cff22
AC
16332002-09-13 Andrew Cagney <cagney@redhat.com>
1634
1635 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1636 * gdbarch.h, gdbarch.c: Regenerate.
1637
905abb3f
AC
16382002-09-13 Andrew Cagney <ac131313@redhat.com>
1639
1640 * frame.c (find_saved_register): Delete function.
1641 * frame.h (find_saved_register): Delete declaration.
1642 Fix PR gdb/631.
1643
64159455
AC
1644Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1645
1646 * mips-tdep.c (read_next_frame_reg): Re-hack using
1647 frame_register_unwind.
1648
795e1e11
AC
1649Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1650
1651 * mips-tdep.c (mips_get_saved_register): Re-hack using
1652 frame_register_unwind.
1653
5720643c
JB
16542002-09-12 Joel Brobecker <brobecker@gnat.com>
1655
1656 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1657 vector. Will be useful for Interix.
1658 * gdbarch.h, gdbarch.c: Regenerate.
1659
1660 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1661 name of the malloc function by NAME_OF_MALLOC.
1662
3bada2a2
JB
16632002-09-12 Joel Brobecker <brobecker@gnat.com>
1664
1665 * value.h (find_function_in_inferior): Add const keyword to
1666 one of the parameters. Allows us to invoke this function with
1667 a const char *.
1668 * valops.c (find_function_in_inferior): Likewise.
1669
3db26b01
JB
16702002-09-12 Joel Brobecker <brobecker@gnat.com>
1671
1672 * exec.c (xfer_memory): Fix compilation warning with old versions
1673 of GCC.
1674 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1675
17c5ed2c
DC
16762002-09-12 David Carlton <carlton@math.stanford.edu>
1677
1678 * symtab.h: Run through gdb_indent.h.
1679 Add 2002 to Copyright year list.
1680
ecd1107e
AM
16812002-09-12 Alan Modra <amodra@bigpond.net.au>
1682
1683 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1684 mach constants.
1685 * MAINTAINERS: Add myself to write after approval list.
1686
e64f66d1
JB
16872002-09-11 J. Brobecker <brobecker@gnat.com>
1688
1689 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1690
f9395794
JB
16912002-09-11 J. Brobecker <brobecker@gnat.com>
1692
1693 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1694 Interix.
1695
1a303dec
MS
16962002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1697
1698 * procfs.c (do_detach): Clear current signal, not just fault.
1699 Corrects problem with breakpoint trap signal leaking to detached
1700 process on Tru64.
1701
c0219d42
MS
17022002-09-10 Michael Snyder <msnyder@redhat.com>
1703
1704 * buildsym.c (finish_block): Protect against null pointer.
1705
9d84ac84
AC
17062002-09-10 Andrew Cagney <cagney@redhat.com>
1707
1708 * infcmd.c (default_print_registers_info): Send all output to
1709 ``file'' instead of ``gdb_stdout''.
1710
77d8f2b4
MS
17112002-09-10 Michael Snyder <msnyder@redhat.com>
1712
1713 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1714 LONGEST, and use signed register read (addresses are sign-
1715 extended for mips).
1716
99656a61
SC
17172002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1718
1719 * event-loop.c (gdb_do_one_event): Make public.
1720 * event-loop.h (gdb_do_one_event): Declare.
1721
da12f4d8
JL
17222002-09-10 Jeff Law <law@redhat.com>
1723
1724 * infttrace.c (child_resume): Simplify and rework to avoid
1725 TT_PROC_CONTINUE.
1726
d0aee0c4
FF
17272002-09-09 Fred Fish <fnf@intrinsity.com>
1728
1729 * printcmd.c (print_scalar_formatted): "len" is the number of
1730 target bytes, NOT the number of target bits.
1731
7cb3ec5e
EZ
17322002-09-09 Elena Zannoni <ezannoni@redhat.com>
1733
1734 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1735 * top.c (init_main): Set rl_terminal_name.
1736
4dc81987
AS
17372002-09-08 Aidan Skinner <aidan@velvet.net>
1738
1739 * ada-lang.c (ada_array_bound, ada_type_match,
1740 _initialize_ada_language): Fix K&R definitions.
1741 * ada-tasks.c (get_current_task): Fix K&R definitions.
1742 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1743
842330b4
CF
17442002-09-07 Christopher Faylor <cgf@redhat.com>
1745
1746 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1747 Add XP.
1748
43156d82
MK
17492002-09-06 Mark Kettenis <kettenis@gnu.org>
1750
66da5fd8
MK
1751 * i386-tdep.c (i386_register_virtual_type,
1752 i386_register_convertible, i386_register_convert_to_virtual,
1753 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1754 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1755 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1756 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1757 Don't set push_arguments twice.
1758
4b218c18
MK
1759 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1760 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1761 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1762 sigtramp_end to NULL.
1763 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1764 defines.
1765 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1766
4cc314d5
MK
1767 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1768 whitespace.
1769
43156d82
MK
1770 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1771 * gdbarch.h, gdbarch.c: Re-generate.
1772 * blockframe.c (find_pc_sect_partial_function): Convert to use
1773 SIGTRAMP_START_P predicate.
1774
6672060b
MS
17752002-09-05 Michael Snyder <msnyder@redhat.com>
1776
a90c3637
MS
1777 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1778 generic_dummy_frame method and old method. Also distinguish
1779 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 1780 (arm_extract_return_value): Use new regcache method.
a90c3637 1781
6672060b
MS
1782 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1783 adjustment that doesn't conform to the ABI.
1784 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1785 saved regcache, not from current regcache.
1786
299ffc64
AC
17872002-09-05 Andrew Cagney <ac131313@redhat.com>
1788
1789 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1790 * README: Update.
1791
a3a2ee65
JT
17922002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1793
1794 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1795 if arm_apcs_32 is false.
1796
2bc7eea9
AC
17972002-09-04 Andrew Cagney <ac131313@redhat.com>
1798
1799 GDB 5.3 branch created.
1800
8a55a7c5
TR
18012002-09-03 Theodore A. Roth <troth@verinet.com>
1802
1803 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1804 generic_unwind_get_saved_register.
1805
e26fb1d7
DC
18062002-09-03 David Carlton <carlton@math.stanford.edu>
1807
1808 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1809 argument (PR gdb/653). Update call to smash_to_method_type.
1810 (read_structure_scope): Update call to dwarf2_add_member_fn.
1811
30d52491
ML
18122002-09-03 Michal Ludvig <mludvig@suse.cz>
1813
1814 * x86-64-linux-tdep.c: Include gdb_string.h
1815 * x86-64-linux-nat.c: Ditto.
1816
06891d83
JT
18172002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1818
1819 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1820 when YYDEBUG is set to 1.
1821 * c-exp.y: Likewise.
1822 * f-exp.y: Likewise.
1823 * jv-exp.y: Likewise.
1824 * m2-exp.y: Likewise.
1825 * p-exp.y: Likewise.
1826
7d400e77
JT
18272002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1828
1829 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1830 dependency list.
1831 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1832 solib_svr4_fetch_link_map_offsets to
1833 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1834 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1835 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1836 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1837 solib-svr4.o, and solib-legacy.o.
1838 * config/i386/tm-nbsd.h: Include solib.h.
1839
704a27c4
JT
18402002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1841
1842 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1843 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1844 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1845 comment noting that this needs its own target configuration.
1846 * config/i386/nbsd.mt: New file.
1847 * config/i386/nbsdaout.mt: Remove.
1848 * config/i386/nbsdelf.mt: Ditto.
1849 * config/i386/tm-nbsdaout.h: Ditto.
1850
d66198e1
JT
18512002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1852
1853 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1854 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1855 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1856 tdep->sigtramp_end.
1857 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1858 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1859 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1860
3cac699e
JT
18612002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1862
1863 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1864 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1865 * i386-tdep.h (i386bsd_init_abi): New prototype.
1866 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1867 function declaration.
1868 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1869 for NetBSD-a.out or NetBSD-ELF.
1870 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1871 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1872 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1873 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1874 and nbsd-tdep.h.
1875 (i386nbsd_pc_in_sigtramp): New function.
1876 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1877 i386nbsd_pc_in_sigtramp.
1878 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1879 and i386nbsdelf_init_abi OS ABI handlers.
1880 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1881 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1882
7010ca0a
MK
18832002-09-02 Mark Kettenis <kettenis@gnu.org>
1884
1885 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1886 registers if the target really has them.
1887
6dd93b72
JT
18882002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1889
1890 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1891 than nbsd-tdep.h.
1892
2ca8ae21
JT
18932002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1894
1895 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1896 list.
1897 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1898 (alphanbsd_skip_sigtramp_frame): New functions.
1899 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1900 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1901 to alphanbsd_sigcontext_addr.
1902
3d9b49b0
JT
19032002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1904
1905 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1906 list.
1907 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1908 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1909 nbsd_pc_in_sigtramp.
1910 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1911 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1912 * nbsd-tdep.c: Include gdb_string.h.
1913 (nbsd_pc_in_sigtramp): New function.
1914 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1915 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1916 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1917 ppcnbsd_pc_in_sigtramp.
1918 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1919 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1920 shnbsd_pc_in_sigtramp.
1921 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1922 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1923 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1924
c860120c
PM
19252002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1926
1927 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1928 watchpoints to NULL.
1929 (insert_breakpoints): set val field of watchpoints if NULL.
1930
1931
c7612d53
JB
19322002-08-29 Jim Blandy <jimb@redhat.com>
1933
1934 * symtab.c (lookup_symbol_aux): In the cases where we find a
1935 minimal symbol of an appropriate name and use its address to
1936 select a symtab to read and search, use `name' (as passed to us)
1937 as the demangled name when searching the symtab's global and
1938 static blocks, not the minsym's name.
1939
66609862
KS
19402002-08-29 Keith Seitz <keiths@redhat.com>
1941
1942 * stack.c (print_frame_info_base): Always set current_source_symtab
1943 and current_source_line.
1944
151fefe2
JB
19452002-08-29 Donn Terry <donnte@microsoft.com>
1946
1947 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1948
bfb3754e
KS
19492002-08-28 Keith Seitz <keiths@redhat.com>
1950
1951 * stack.c (select_frame): Add FIXME concerning selected-frame
1952 events.
1953 (select_frame_command): Send selected-frame-level-changed
1954 event notification, but only if the level actually changed.
1955 (up_silently_base): Add selected-frame-level-changed event
1956 notification.
1957 (down_silently_base): Likewise.
1958
e822a2a0
AC
19592002-08-28 Andrew Cagney <ac131313@redhat.com>
1960
1961 * Makefile.in: Update dependencies for all gdb/*.c files.
1962
309367d4
TT
19632002-08-27 Tom Tromey <tromey@redhat.com>
1964
1965 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1966 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1967 Update dependencies.
1968 * i387-tdep.c: Include gdb_string.h.
1969 * osabi.c: Likewise.
1970 * i386-linux-nat.c: Likewise.
1971 * lin-lwp.c: Likewise.
1972 * ax-gdb.c: Likewise.
1973 * signals/signals.c: Likewise.
1974 * jv-valprint.c: Likewise.
1975 * p-lang.c: Likewise.
1976 * c-valprint.c: Likewise.
1977 * cp-abi.c: Likewise.
1978
e1507482
EZ
19792002-08-27 Elena Zannoni <ezannoni@redhat.com>
1980
1981 * cli/cli-script.h (copy_command_lines): Export.
1982 * breakpoint.c: Include cli/cli-script.h.
1983 * Makefile.in (breakpoint.o): Update dependencies.
1984
c6510018
MS
19852002-08-26 Michael Snyder <msnyder@redhat.com>
1986
1987 * breakpoint.c (insert_breakpoints): Protect all references
1988 to 'process_warning'. Shorten long lines.
1989
c2b8ed2c
MS
19902002-08-26 Joel Brobecker <brobecker@gnat.com>
1991
1992 * cli/cli-script.c (copy_command_lines): New function.
1993 * defs.h (copy_command_lines): Export.
1994 * testsuite/gdb.base/commands.exp: New tests for commands
1995 attached to a temporary breakpoint, and for commands that
1996 delete the breakpoint they are attached to.
1997
19982002-08-26 Michael Snyder <msnyder@redhat.com>
1999
2000 * breakpoint.c (bpstat_stop_status): Instead of copying the
2001 pointer to the breakpoint commands struct, make a new copy
2002 of the struct and point to that.
2003 (bpstat_clear): Free the commands struct.
2004 (bpstat_clear_actions): Free the commands struct.
2005 (bpstat_do_actions): Free the command actions. Also execute
2006 the local cleanups, instead of deleting them.
2007 (delete_breakpoint): Leave the commands field of the bpstat
2008 chain alone -- it will be freed later.
2009
64b84175
KB
20102002-08-26 Kevin Buettner <kevinb@redhat.com>
2011
2012 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2013 deleted in 2002-08-20 commit. This function is still used by
2014 ppc-linux-nat.c.
2015
55970da6
KS
20162002-08-26 Keith Seitz <keiths@redhat.com>
2017
2018 * gdb-events.sh: Add selected-frame-level-changed event.
2019 * gdb-events.c: Regenerated.
2020 * gdb-events.h: Regenerated.
2021
a790ad35
SC
20222002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2023
2024 Fix PR gdb/393:
2025 * inflow.c (terminal_save_ours): New function to save terminal
2026 settings.
2027 * inferior.h (terminal_save_ours): Declare.
2028 * target.c (debug_to_terminal_save_ours): New function.
2029 (cleanup_target): Defaults to_terminal_save_ours.
2030 (update_current_target): Inherit to_terminal_save_ours.
2031 (setup_target_debug): Set to_terminal_save_ours.
2032 * target.h (target_terminal_save_ours): New to save terminal settings.
2033 (target_ops): New member to_terminal_save_ours.
2034 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2035 * hpux-thread.c (init_hpux_thread_ops): Likewise.
2036 * inftarg.c (init_child_ops): Likewise.
2037 * m3-nat.c (init_m3_ops): Likewise.
2038 * procfs.c (init_procfs_ops): Likewise.
2039 * wince.c (init_child_ops): Likewise.
2040 * win32-nat.c (init_child_ops): Likewise.
2041 * sol-thread.c (init_sol_thread_ops): Likewise.
2042
c00dcbe9
MK
20432002-08-26 Mark Kettenis <kettenis@gnu.org>
2044
3d7f4f49
MK
2045 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
2046 use regcache_* functions.
2047 (i386_gdbarch_init): Set store_return_value instead of
2048 deprecated_store_return_value.
2049
c00dcbe9
MK
2050 * regcache.c (regcache_raw_write_signed,
2051 regcache_raw_write_unsigned): New functions.
2052 * regcache.h (regcache_raw_write_signed,
2053 regcache_raw_write_unsigned): New prototypes.
2054
0e0d15ca
AC
20552002-08-25 Andrew Cagney <ac131313@redhat.com>
2056
2057 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2058 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2059 source file dependencies. Cleanup corresponding generator rules.
2060
d3b22ed5
AC
20612002-08-25 Andrew Cagney <ac131313@redhat.com>
2062
2063 * regcache.h (register_offset_hack): Declare.
2064 (regcache_cooked_read_using_offset_hack): Declare.
2065 (regcache_cooked_write_using_offset_hack): Declare.
2066
2067 * regcache.c (register_offset_hack): New function.
2068 (regcache_cooked_read_using_offset_hack): New function.
2069 (regcache_cooked_write_using_offset_hack): New function.
2070 (regcache_dump): Check that the registers, according to their
2071 offset, are packed hard against each other.
2072 (cooked_xfer_using_offset_hack): New function.
2073
bb425013
AC
20742002-08-25 Andrew Cagney <ac131313@redhat.com>
2075
2076 * regcache.c (struct regcache_descr): Add field register_type.
2077 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2078 in as a parameter
2079 (init_regcache_descr): Initialize register_type. Pass the descr
2080 to init_legacy_regcache_descr. Use register_type instead of
2081 REGISTER_VIRTUAL_TYPE.
2082 (register_type): New function.
2083 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2084 * regcache.h (register_type): Declare.
2085
d0403e00
AC
20862002-08-25 Andrew Cagney <ac131313@redhat.com>
2087
2088 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2089 instead of deprecated_store_return_value. Fix fallout from
2090 2002-08-23 Andrew Cagney <cagney@redhat.com>.
2091
0ed04cce
AC
20922002-08-25 Andrew Cagney <ac131313@redhat.com>
2093
2094 * regcache.c (max_register_size): New function.
2095 (init_legacy_regcache_descr): Ensure that max_register_size is
2096 large enough for REGISTER_VIRTUAL_SIZE.
2097 * regcache.h (max_register_size): Declare.
2098
46d79c04
AC
20992002-08-24 Andrew Cagney <ac131313@redhat.com>
2100
2101 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2102 store_return_value.
2103 (e500_extract_return_value): Change type of valbuf pointer to
2104 void.
2105
853c7bd0
MK
21062002-08-24 Mark Kettenis <kettenis@gnu.org>
2107
cd87e769
MK
2108 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2109 workaround.
2110
853c7bd0
MK
2111 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2112 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2113 long long) to prevent compiler warning on 64-bit systems.
2114
ebba8386
AC
21152002-08-23 Andrew Cagney <cagney@redhat.com>
2116
2117 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2118 (DEPRECATED_STORE_RETURN_VALUE): New method.
2119 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2120 * gdbarch.h, gdbarch.c: Re-generate.
2121
2122 * values.c (set_return_value): Pass current_regcache to
2123 STORE_RETURN_VALUE.
2124 * arch-utils.h (legacy_store_return_value): Declare.
2125 * arch-utils.c (legacy_store_return_value): New function.
2126 (legacy_extract_return_value): Update parameters.
2127
2128 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2129 STORE_RETURN_VALUE.
2130 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2131 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2132 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2133 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2134 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2135 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2136 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2137 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2138 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2139 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2140
2141 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2142 * i386-tdep.c (i386_extract_return_value): Update.
2143 * arch-utils.c (legacy_extract_return_value): Update.
2144 * frv-tdep.c (frv_gdbarch_init): Update.
2145 * cris-tdep.c (cris_gdbarch_init): Update.
2146 * d10v-tdep.c (d10v_gdbarch_init): Update.
2147 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2148 * m68k-tdep.c (m68k_gdbarch_init): Update.
2149 * mcore-tdep.c (mcore_gdbarch_init): Update.
2150 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2151 * s390-tdep.c (s390_gdbarch_init): Update.
2152 * sparc-tdep.c (sparc_gdbarch_init): Update.
2153 * sh-tdep.c (sh_gdbarch_init): Update.
2154 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2155 * v850-tdep.c (v850_gdbarch_init): Update.
2156 * avr-tdep.c (avr_gdbarch_init): Update.
2157 * ia64-tdep.c (ia64_gdbarch_init): Update.
2158 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2159 * vax-tdep.c (vax_gdbarch_init): Update.
2160 * alpha-tdep.c (alpha_gdbarch_init): Update.
2161 * arm-tdep.c (arm_gdbarch_init): Update.
2162 * mips-tdep.c (mips_gdbarch_init): Update.
2163 * i386-tdep.c (i386_gdbarch_init): Update.
2164
5bd8c6d0
AC
21652002-08-23 Andrew Cagney <ac131313@redhat.com>
2166
2167 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2168 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2169
e73e1724
MK
21702002-08-24 Mark Kettenis <kettenis@gnu.org>
2171
2172 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
2173 problems.
2174
3e6564e1
JB
21752002-08-23 Joel Brobecker <brobecker@gnat.com>
2176
2177 * infrun.c (handle_inferior_event): Move a comment outside of a
2178 function call, in order to avoid indent reformatting this part
2179 of the code in an unreadable way.
2180
81d0cc19
GS
21812002-08-23 Grace Sainsbury <graces@redhat.com>
2182
2183 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2184 when breakpoints fail. Move general breakpoint error messages to
2185 insert_breakpoints.
2186 * breakpoint.c (insert_breakpoints): Change warnings when
2187 breakpoints are nto inserted to specify the type. Remove call to
2188 memory_error when hardware breakpoints can't be inserted. Remove
2189 multiple calls to warning so all messages are sent to the user at
2190 once.
2191 (delete_breakpoints): Make insert error messsages more explicit.
2192
17574093
DJ
21932002-08-23 Daniel Jacobowitz <drow@mvista.com>
2194
2195 * ChangeLog: Move gdbserver entries after GDB 5.2 to
2196 gdbserver/ChangeLog.
2197
8acc2935
MK
21982002-08-23 Mark Kettenis <kettenis@gnu.org>
2199
dfe01d39
MK
2200 * i386-tdep.c: Include "objfiles.h".
2201 (i386_svr4_init_abi): Set in_solib_call_trampoline and
2202 skip_trampoline_code.
2203 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2204 (CPLUS_MARKER): Define to '.'.
2205
8acc2935
MK
2206 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2207 member.
2208 (linux_corefile_thread_callback): Increase args->num_notes.
2209 (linux_make_note_section): Initialize thread_args.num_notes, and
2210 use it to determine whether notes for any threads were created.
2211
151fefe2 22122002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
2213
2214 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2215 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2216 and PCUNKILL.
2217 (write_with_trace): Conditionalize out the switch branch handling
2218 PCSHOLD if the corresponding macro is not defined. Likewise for
2219 PRSABORT and PRSTOP.
2220 This change will be needed by the Interix port.
2221
e1507482
EZ
22222002-08-22 Elena Zannoni <ezannoni@redhat.com>
2223
2224 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2225 write_register wherever possible instead of manipulating the
2226 register bytes directly.
2227 Assign VALUE_CONTENTS to a variable and use that.
2228 The GPR numbers are now dependent on the architecture.
2229
96ff0de4
EZ
22302002-08-22 Elena Zannoni <ezannoni@redhat.com>
2231
2232 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2233 ev_offset fields.
2234 (skip_prologue): Add support for BookE/e500 instructions.
2235 (e500_extract_return_value): New function.
2236 (frame_get_saved_regs): Add support for saving ev registers and
2237 pseudo gpr's.
2238 (e500_store_return_value): New function.
2239 (rs6000_gdbarch_init): Move up default intializations of
2240 deprecated_extract_return_value and store_return_value. Overwrite
2241 init of store_return_value with e500 specific version.
2242 Set extract_return_value for e500.
2243
fbefca5b
EZ
22442002-08-22 Elena Zannoni <ezannoni@redhat.com>
2245
2246 * blockframe.c (generic_call_dummy_register_unwind): Use
2247 regcache_cooked_read to catch cases in which the variable is
2248 stored in a pseudo register.
2249
4d210288
AC
22502002-08-22 Andrew Cagney <cagney@redhat.com>
2251
2252 * NEWS: Mention that the i960 has been made obsolete.
2253 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2254 i960-tdep.c
2255 (remote-nrom.o): Obsolete target.
2256 (remote-nindy.o, i960-tdep.o): Ditto.
2257 * remote-nrom.c: Make file obsolete.
2258 * remote-nindy.c, remote-vx960.c: Ditto.
2259 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2260 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2261 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2262 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2263 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2264 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2265 i960-*-vxworks* obsolete.
2266 * MAINTAINERS: Note that the i960 is obsolete.
2267
6c0c456d
CV
22682002-08-21 Corinna Vinschen <vinschen@redhat.com
2269
2270 * aix-thread.c (aix_thread_detach): Disable thread debugging on
2271 detach to allow reinitialization.
2272
9f9d12b3
AC
22732002-08-22 Andrew Cagney <ac131313@redhat.com>
2274
2275 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2276 attempt).
2277
ebeb39fe
JB
22782002-08-22 Jim Blandy <jimb@redhat.com>
2279
2280 * coffread.c (coff_symfile_read): Don't try to read the line
2281 number table from disk if the image file doesn't have a symbol
2282 table; we'll never actually look at the info anyway, and Windows
2283 ships DLL's with bogus file offsets for the line number data.
2284
5bf1c677
EZ
22852002-08-21 Elena Zannoni <ezannoni@redhat.com>
2286
2287 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2288 an e500 executable.
2289
71b8ef93
MS
22902002-08-21 Michael Snyder <msnyder@redhat.com>
2291
2292 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2293 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
2294 (DEFAULT_MIPS_TYPE): Delete unused macro.
2295 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2296 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 2297
d174216d
JB
22982002-08-21 Jim Blandy <jimb@redhat.com>
2299
2300 * valops.c (value_cast): Simplify and correct logic for doing a
2301 static cast from a pointer to a base class to a pointer to a
2302 derived class.
2303
0ab7a791
AC
23042002-08-21 Andrew Cagney <ac131313@redhat.com>
2305
2306 * infcmd.c (default_print_registers_info): Replace
2307 do_registers_info.
2308 (registers_info): Use gdbarch_print_registers_info instead of
2309 DO_REGISTERS_INFO.
2310 * inferior.h (default_print_registers_info): Replace
2311 do_registers_info.
2312 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2313 (DO_REGISTERS_INFO): Change to a predicate function.
2314 * gdbarch.h, gdbarch.c: Regenerate.
2315
e23792cc
KS
23162002-08-21 Keith Seitz <keiths@redhat.com>
2317
2318 * gdb-events.sh: Add target-changed event.
2319 * gdb-events.c: Regenerated.
2320 * gdb-events.c: Regenerated.
2321 * valops.c (value_assign): Add target-changed event notification
2322 to inlval_register, lval_memory, and lval_reg_frame_relative.
2323
9fb14e79
JB
23242002-08-21 Joel Brobecker <brobecker@gnat.com>
2325
2326 * NEWS: Add an entry regarding the improvement of the next/step
2327 operation on Alpha Tru64 multi-processor machines.
2328
6d39a69f
AC
23292002-08-21 Andrew Cagney <ac131313@redhat.com>
2330
72acd513
AC
2331 * Makefile.in: Update dependencies for mi/ cli/ and tui/
2332 directores.
342af04b 2333 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
2334 * Makefile.in (install-gdbtk): Move to install section.
2335 (rdi-share/libangsd.a): Move to end of file.
2336
fa5f27c7
AC
23372002-08-19 Andrew Cagney <ac131313@redhat.com>
2338
2339 * frame.c (frame_register_unwind): When a register, set addrp to
2340 the register's byte.
2341
5a89d8aa
MS
23422002-08-20 Michael Snyder <msnyder@redhat.com>
2343
2344 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2345 used locally, so move them from the target machine header to here.
2346 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2347 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2348 Make static.
2349 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2350
822e978b
AC
23512002-08-20 Andrew Cagney <cagney@redhat.com>
2352
2353 * NEWS: Mention that the Apollo line was made obsolete.
2354 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2355 m68*-hp-hpux* obsolete.
2356 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2357 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2358 * buildsym.c (make_blockvector): Make static.
2359 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2360 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2361 (ALLDEPFILES): Remove dstread.c.
2362 (dstread.o): Obsolete make rule.
2363 * dstread.c: Makefile obsolete.
2364 * dst.h: Ditto.
2365 * config/m68k/hp300hpux.mt: Ditto.
2366 * config/m68k/hp300hpux.mh: Ditto.
2367 * config/m68k/hp300bsd.mt: Ditto.
2368 * config/m68k/hp300bsd.mh: Ditto.
2369 * config/m68k/apollo68b.mt: Ditto.
2370 * config/m68k/apollo68v.mh: Ditto.
2371 * config/m68k/apollo68b.mh: Ditto.
2372
e41b17f0
MS
23732002-08-20 Michael Snyder <msnyder@redhat.com>
2374
2375 * mips-tdep.c (mips_in_return_stub): Make static.
2376 (mips_gdbarch_init): Set in_solib_return_trampoline.
2377 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2378
d50355b6
MS
23792002-08-20 Michael Snyder <msnyder@redhat.com>
2380
2381 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2382 * gdbarch.c, gdbarch.h: Regenerate.
2383 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2384 Add.
2385 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2386
757a7cc6
MS
23872002-08-20 Michael Snyder <msnyder@redhat.com>
2388
2389 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2390 (mips_gdbarch_init): Set skip_trampoline_code,
2391 in_solib_call_trampoline.
2392 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2393 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2394
c8001721
EZ
23952002-08-20 Elena Zannoni <ezannoni@redhat.com>
2396
2397 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2398
2399 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2400 vector type for ev registers.
2401 (e500_pseudo_register_read): New function.
2402 (e500_pseudo_register_write): New function.
2403 (e500_dwarf2_reg_to_regnum): New function.
2404 (PPC_UISA_NOFP_SPRS): New macro.
2405 (PPC_EV_REGS): New macro.
2406 (PPC_GPRS_PSEUDO_REGS): New macro.
2407 (registers_e500): New register set for e500.
2408 (variants): Add e500 variant.
2409 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2410 before setting architectural dependent variations. Initialize ev
2411 registers numbers. Add case for e500 architecture. Set the
2412 number of pseudo registers.
2413
64366f1c
EZ
24142002-08-20 Elena Zannoni <ezannoni@redhat.com>
2415
2416 * rs6000-tdep.c: Clean up comments.
2417
7e78f0ca
AC
24182002-08-20 Andrew Cagney <cagney@redhat.com>
2419
2420 * h8300-tdep.c: Re-indent file.
2421
697f7479
JB
24222002-08-20 Jim Blandy <jimb@redhat.com>
2423
2424 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2425 default for this.
697f7479 2426
e86ae29f
KS
24272002-08-20 Keith Seitz <keiths@redhat.com>
2428
2429 * breakpoints.c (watch_command_1): Use internal breakpoint
2430 when setting a watchpoint_scope breakpoint.
2431
216b504f
EZ
24322002-08-20 Elena Zannoni <ezannoni@redhat.com>
2433
2434 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2435 (build_builtin_type_vec64i): Ditto.
2436 (build_builtin_type_vec128): Ditto.
2437 (build_builtin_type_vec128i): Ditto.
2438
f7ab6ec6
MS
24392002-08-19 Michael Snyder <msnyder@redhat.com>
2440
2441 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2442 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2443 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2444 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2445 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2446 CALL_DUMMY_ADDRESS): Delete.
2447 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2448 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2449 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2450 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2451 push_return_address.
2452 (mips_register_raw_size, mips_eabi_use_struct_convention,
2453 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2454 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2455 mips_init_extra_frame_info, mips_eabi_push_arguments,
2456 mips_n32n64_push_arguments, mips_push_return_address,
2457 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2458 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2459
b5d1566e
MS
24602002-08-19 Michael Snyder <msnyder@redhat.com>
2461
2462 * mips-tdep.c (mips_frame_num_args): New function.
2463 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2464 frame_saved_pc, frame_args_address, frame_locals_address,
2465 frame_num_args, and frame_args_skip.
2466 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2467 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2468 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2469 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2470
2f1488ce
MS
24712002-08-20 Michael Snyder <msnyder@redhat.com>
2472
2473 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2474 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2475 * mips-tdep.c (mips_store_struct_return): New function.
2476 (mips_extract_struct_value_address): New function.
2477 (mips_gdbarch_init): Set store_struct_return and
2478 extract_struct_value_address.
2479
41ff2da1
DC
24802002-08-20 David Carlton <carlton@math.stanford.edu>
2481
2482 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2483 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2484 (read_file_scope): Check that line_header is nonzero before
2485 decoding macro information.
2486
e5451d58
MK
24872002-08-20 Mark Kettenis <kettenis@gnu.org>
2488
2489 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2490 flag the general-purpose registers as floating-point on targets
2491 that don't support the floating-point registers.
2492
4a6daafa
EZ
24932002-08-20 Elena Zannoni <ezannoni@redhat.com>
2494
2495 * rs6000-tdep.c (altivec_register_p): Delete.
2496 (rs6000_do_altivec_registers): Delete.
2497 (rs6000_altivec_registers_info): Delete.
2498 (rs6000_do_registers_info): Delete.
2499 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2500 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2501
ab4327e0
EZ
25022002-08-20 Elena Zannoni <ezannoni@redhat.com>
2503
2504 * infcmd.c (do_registers_info): Print vector registers in hex
2505 format only.
2506 (print_vector_info): Check that printing registers
2507 makes sense.
2508 (print_float_info): Ditto.
2509
cb1d2653
AC
25102002-08-20 Andrew Cagney <ac131313@redhat.com>
2511
2512 * mips-tdep.c (mips_gdbarch_init): Update.
2513 (mips_o32_extract_return_value): Rewrite.
2514 (mips_o32_store_return_value): Rewrite.
2515 (mips_o32_xfer_return_value): New function.
2516 (mips_xfer_register): Tweak debug print message. Allow for
2517 buf_offset when dumping the value transfered.
2518
dfc3d9b2
AC
25192002-08-20 Andrew Cagney <ac131313@redhat.com>
2520
2521 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2522 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2523 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2524 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2525 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2526
7807aa61
MS
25272002-08-14 Michael Snyder <msnyder@redhat.com>
2528
2529 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2530
489461e2
EZ
25312002-08-19 Elena Zannoni <ezannoni@redhat.com>
2532
2533 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2534 register.
2535 (P): New macro to define a register as a pseudo register.
2536 (R, R4, R8, R16, FR32, R64, R0): Updated.
2537 (struct variant): Add new fields for number of pseudo registers
2538 and number of total registers.
2539 (tot_num_registers): New macro replacing....
2540 (num_registers): ...deleted macro.
2541 (num_registers): New function.
2542 (num_pseudo_registers): New function.
2543 (variants): Update all variants to intialize new fields correctly.
2544 Postpone initialization of number of pseudo regs and real regs.
2545 (init_variants): New function.
2546 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2547 registers offsets.
2548
fcaffe4c
DC
25492002-08-19 David Carlton <carlton@math.stanford.edu>
2550
2c2738a0
DC
2551 * valops.c (search_struct_field): Change error message to treat
2552 return value of 0 from value_static_field as meaning that field is
2553 optimized out.
2554 (value_struct_elt_for_reference): Ditto.
2555 * values.c (value_static_field): Treat an unresolved location the
2556 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
2557 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2558 enclosed. Fix PR gdb/574.
fcaffe4c
DC
2559 * MAINTAINERS: Add self to Write After Approval list.
2560
88658117
AC
25612002-08-19 Andrew Cagney <ac131313@redhat.com>
2562
2563 * mips-tdep.c (mips_xfer_register): New function.
2564 (mips_n32n64_extract_return_value): Rewrite.
2565 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2566 instead of deprecated_extract_return_value.
2567
21283beb
EZ
25682002-08-19 Elena Zannoni <ezannoni@redhat.com>
2569
2570 * rs6000-tdep.c (TDEP): Delete macro.
2571 (branch_dest): Replace use of TDEP macro with its body.
2572 (rs6000_pop_frame): Ditto.
2573 (rs6000_push_arguments): Ditto.
2574 (rs6000_skip_trampoline_code): Ditto.
2575 (rs6000_frame_saved_pc): Ditto.
2576 (rs6000_frame_chain): Ditto.
2577 (rs6000_register_name): Ditto.
2578 (rs6000_register_byte): Ditto.
2579 (rs6000_register_raw_size): Ditto.
2580 (rs6000_register_virtual_type): Ditto.
2581 (rs6000_register_convertible): Ditto.
2582 (rs6000_convert_from_func_ptr_addr): Ditto.
2583
bf072999
DJ
25842002-08-19 Daniel Jacobowitz <drow@mvista.com>
2585
2586 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2587 conditionally.
2588 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2589 MIPS_LINUX_JB_ELEMENT_SIZE.
2590 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2591 for MAX_REGISTER_RAW_SIZE arrays.
2592 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2593 MIPS_LINUX_JB_ELEMENT_SIZE.
2594
9b949a49
PM
25952002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2596
2597 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2598
6d3e79c6
AS
25992002-08-19 Aidan Skinner <aidan@velvet.net>
2600
2601 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2602 ada-valprint.c ada-tasks.c.
2603 (YYFILES): Add ada-exp.y.
2604 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2605 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2606 (ada-exp.tab.o): New target.
2607
06c0b04e
AC
26082002-08-18 Andrew Cagney <ac131313@redhat.com>
2609
2610 * regcache.c (regcache_xfer_part): New function.
2611 (regcache_raw_read_part): New function.
2612 (regcache_raw_write_part): New function.
2613 (regcache_cooked_read_part): New function.
2614 (regcache_cooked_write_part): New function.
2615 * regcache.h (regcache_raw_read_part): Declare.
2616 (regcache_raw_write_part): Declare.
2617 (regcache_cooked_read_part): Declare.
2618 (regcache_cooked_write_part): Declare.
2619
92d1e331
DJ
26202002-08-18 Daniel Jacobowitz <drow@mvista.com>
2621
2622 * remote.c (remote_open_1): Add async_p.
2623 (remote_async_open_1): Delete.
2624 (open_remote_target): Delete.
2625 (remote_open, extended_remote_open): Update calls to remote_open_1.
2626 (remote_async_open, extended_remote_async_open): Call
2627 remote_open_1 instead of remote_async_open_1.
2628
247055de
MK
26292002-08-19 Mark Kettenis <kettenis@gnu.org>
2630
2631 * blockframe.c: Fix a few coding standard violations.
2632
641eda39
MK
26332002-08-19 Mark Kettenis <kettenis@gnu.org>
2634
0b717710
MK
2635 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2636 here from ...
2637 * config/i386/tm-i386sco5.h: ... here. File removed.
2638 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2639
26d28e12 2640 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
2641 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2642 (TM_FILE): Set to tm-i386.h.
2643 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2644 * config/i386/tm-i386v.h: Remove file.
2645 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2646 instead of "i386/tm-i386v.h".
2647 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2648 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2649 "i386/tm-i386v.h".
2650 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2651 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2652 "i386/tm-i386.h".
2653
d4e0bab4
MK
26542002-08-18 Mark Kettenis <kettenis@gnu.org>
2655
2656 * config/i386/nm-i386v.h: Add protection against
2657 multiple-inclusion.
2658 (i386_register_u_addr): Remove prototype.
2659 (register_u_addr): New prototype.
2660 (REGISTER_U_ADDR): Redefine accordingly.
2661 * i386v-nat.c: Improve several comments.
2662 (i386_register_u_addr): Change signature and rename to
2663 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2664 ubase variable.
2665
46cac009
AC
26662002-08-18 Andrew Cagney <ac131313@redhat.com>
2667
2668 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2669 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2670 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2671 deprecated_extract_return_value.
2672 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2673 rename mips_o32o64_push_arguments.
2674 (mips_gdbarch_init): Update.
2675 (mips_extract_return_value): Delete.
2676 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2677 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2678 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2679 (mips_n32n64_extract_return_value): Clone
2680 mips_extract_return_value.
2681 (mips_store_return_value): Delete.
2682 (mips_o32_store_return_value): Clone mips_store_return_value.
2683 (mips_o64_store_return_value): Clone mips_store_return_value.
2684 (mips_eabi_store_return_value): Clone mips_store_return_value.
2685 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2686
d2e4a39e
AS
26872002-08-18 Aidan Skinner <aidan@velvet.net>
2688
0c30c098
AS
2689 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2690 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2691
26922002-08-18 Aidan Skinner <aidan@velvet.net>
2693
2694 * ada-lang.c: Run through gdb_indent.sh.
2695 * ada-lang.h: Run through gdb_indent.sh.
2696 * ada-tasks.c: Run through gdb_indent.sh.
2697 * ada-typeprint.c: Run through gdb_indent.sh.
2698 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 2699
01fc4e33
AC
27002002-08-18 Andrew Cagney <ac131313@redhat.com>
2701
2702 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2703 ABI.
2704
d8ee244c
MK
27052002-08-18 Mark Kettenis <kettenis@gnu.org>
2706
c38d8261
MK
2707 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2708
222db64c
MK
2709 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2710 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2711
c2848c82
MK
2712 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2713 write_register_gen instead of write_register_bytes.
2714
d8ee244c
MK
2715 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2716 i[3456]-*-osf1mk* configurations have been made obsolete.
2717 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2718 i[3456]86-*-osf1mk* hosts obsolete.
2719 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2720 targets obsolete.
2721 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2722 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2723 config/i386/i386m3.mt, config/i386/nm-m3.h,
2724 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2725 config/i386/i386mk.mh, config/i386/i386mk.mt,
2726 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2727 obsolete.
2728 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2729 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2730 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2731
61d8d407
AC
27322002-08-18 Andrew Cagney <ac131313@redhat.com>
2733
2734 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2735 (hppa_value_returned_from_stack): Declare.
2736 (hppa_extract_return_value): Declare.
2737 * config/pa/hppa.mt: New file.
2738 * configure.tgt: Recognize hppa*-*-*.
2739 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2740
0c52bd59
MK
27412002-08-18 Mark Kettenis <kettenis@gnu.org>
2742
2743 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2744 comment.
2745
b5686e99
MK
27462002-08-17 Mark Kettenis <kettenis@gnu.org>
2747
2748 * top.c (gdb_rl_operate_and_get_next): Make sure
2749 operate-and-get-next functions correctly even when the history
2750 list is completely filled.
2751
c1bab85b
AC
27522002-08-18 Andrew Cagney <ac131313@redhat.com>
2753
2754 * MAINTAINERS (Target Instruction Set Architectures): Rename
2755 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2756 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2757 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2758 already listed under Host/Native.
2759
2760 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2761 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2762 mips*-*-*.
2763
32089c7c
AC
27642002-08-17 Andrew Cagney <ac131313@redhat.com>
2765
2766 * config/ia64/ia64.mt: New file.
2767 * config/alpha/alpha.mt: New file.
2768 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2769 ia64-linux-gnu. Mention that ia64-elf is broken.
2770 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2771
b4671f85
MK
27722002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2773
2774 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2775 generic_func_frame_valid instead of func_frame_valid.
2776
c8edd8b4
JB
27772002-08-16 Joel Brobecker <brobecker@gnat.com>
2778
2779 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2780 procfs appears to be broken when debugging on multi-processor
2781 machines. So enable software single stepping in order to avoid
2782 using the procfs interface to do next/step operations, using
2783 internal breakpoints instead.
2784
2785 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2786 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2787 make this pc address equal to the value it would have if the
2788 system stepping capability was used. Also set a new flag used
2789 to ensure that we don't readjust the PC one more time later.
2790
2791 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2792 address by DECR_PC_AFTER_BREAK when software single step is
2793 in use for this architecture, as this has already been taken
2794 care of in handle_inferior_event().
2795
238617f6
JB
27962002-08-16 Joel Brobecker <brobecker@gnat.com>
2797
2798 * infrun.c (handle_inferior_event): Minor reformatting, to make
2799 a rather long condition expression easier to read.
2800
541a7aac
AC
28012002-08-16 Andrew Cagney <ac131313@redhat.com>
2802
2803 * Makefile.in (gdbtk.o): Move to end of file.
2804 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2805 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2806 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2807 (gdbtk-wrapper.o, gdbres.o): Ditto.
2808
f92d4a7b
AC
28092002-08-16 Andrew Cagney <ac131313@redhat.com>
2810
2811 * Makefile.in (copying.o): Separate out compile rule.
2812 (hpux-thread.o, procfs.o, signals.o): Ditto.
2813 (v850ice.o, z8k-tdep.o): Ditto.
2814 (tui-file.o): Move to TUI section.
2815 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2816 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2817
1cce71eb
JB
28182002-08-16 Joel Brobecker <brobecker@gnat.com>
2819
2820 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2821 skip_trampoline_code, for better namespace-proofing.
2822
2823 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2824
0851f23d
JB
28252002-08-16 Joel Brobecker <brobecker@gnat.com>
2826
2827 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2828
f8d40ec8
JB
28292002-08-16 Joel Brobecker <brobecker@gnat.com>
2830
2831 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2832 signal, check whether we hit a breakpoint before checking for a
2833 single step breakpoint. Otherwise, GDB fails to notice that a
2834 breakpoint has been hit when stepping onto a breakpoint.
2835
63d022e0
KS
28362002-08-16 Keith Seitz <keiths@redhat.com>
2837
2838 * gdb-events.sh (clear_gdb_event_hooks): New function.
2839 * gdb-events.c: Regenerate.
2840 * gdb-events.h: Regenerate.
2841
6e31adb3
AC
28422002-08-16 Andrew Cagney <ac131313@redhat.com>
2843
2844 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2845 not_a_sw_breakpoint.
2846 * breakpoint.h (bpstat_stop_status): Add parameter names.
2847
c8189ed1
GS
28482002-08-16 Grace Sainsbury <graces@redhat.com>
2849
2850 * remote.c (remote_insert_hw_breakpoint)
2851 (remote_remove_hw_breakpoint): Fix calculation of length field
2852 for Z-packet.
2853
d05285fa
MS
28542002-08-15 Michael Snyder <msnyder@redhat.com>
2855
466d7106
MS
2856 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2857 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2858 (supply_fpregset): Ditto.
2859
d05285fa
MS
2860 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2861 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2862 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 2863 (TARGET_READ_SP): Delete.
bf1f5b4c 2864 (DO_REGISTERS_INFO): Delete.
102182a9
MS
2865 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2866 Delete.
2867 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2868 from macros to functions.
bf1f5b4c 2869
d05285fa
MS
2870 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2871 (mips_register_convertible, mips_register_convert_to_virtual,
2872 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
2873 (mips_read_sp): New function.
2874 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
2875 (mips_do_registers_info): Make static.
2876 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
2877 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2878 (mips_register_convert_from_type, mips_register_convert_to_type):
2879 New functions.
2880 (mips_gdbarch_init): Set up function_start_offset,
2881 register_virtual_size, pc_in_sigtramp.
d05285fa 2882
e76f1f2e
AC
28832002-08-15 Andrew Cagney <ac131313@redhat.com>
2884
2885 * infcmd.c (vector_info): New function.
2886 (_initialize_infcmd): Add command "info vector".
2887 (print_vector_info): New function.
2888
2889 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2890 * gdbarch.h, gdbarch.c: Regenerate.
2891
4782dc19
AC
28922002-08-15 Andrew Cagney <ac131313@redhat.com>
2893
2894 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2895 ``print_all''. Only print vector registers when ``print_all''.
2896
23e3a7ac
AC
28972002-08-15 Andrew Cagney <ac131313@redhat.com>
2898
8e186fd6
AC
2899 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2900 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2901
23e3a7ac
AC
2902 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2903 Add `args' parameter.
2904 * gdbarch.h, gdbarch.c: Regenerate.
2905
2906 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2907
2908 * infcmd.c (float_info): Call print_float_info.
2909 (print_float_info): New function. By default, print the
2910 floating-point registers.
2911
2912 * arch-utils.h (default_print_float_info): Delete declaration.
2913 * arch-utils.c (default_print_float_info): Delete function.
2914
e0ca2bb9
MK
29152002-08-16 Mark Kettenis <kettenis@gnu.org>
2916
3f733acc
MK
2917 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2918 out define.
2919
7d8d2918
MK
2920 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2921 FRAME.
2922
1c7cc583
MK
2923 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2924 * configure.host: Make i[3456]86-*-aix host obsolete.
2925 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2926 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2927 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2928 config/i386/xm-i386aix.h: Make files obsolete.
2929 * i386aix-nat.c: Make file obsolete.
2930 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2931 (i386aix-nat.o): Make target obsolete.
2932
e0ca2bb9
MK
2933 * config/i386/nm-gnu.h: Removed.
2934 * config/i386/nm-i386gnu.h: New file.
2935 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2936 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2937 Moved here from ...
2938 * config/i386/tm-i386gnu.h: ... here. Removed.
2939 * config/i386/xm-i386gnu.h: Removed.
2940 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2941 (NAT_FILE): Set to nm-i386gnu.h.
2942 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2943 * i386-tdep.c: New file.
2944 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2945 (i386gnu-tdep.o): Specify dependencies.
2946
16057ec7 29472002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 2948
6b99ee2e
MK
2949 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2950 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2951 Adjust a few comments to reflect reality a bit closer.
2952 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2953 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2954 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2955 target_insert_watchpoint, target_remove_watchpoint):
2956 Move defines to ...
2957 * config/i386/nm-i386sco5.h: ... here.
2958 (kernel_u_size): Add prototype. Improve a few comments and add
2959 protection against multiple inclusion.
2960
d9a6f65c
MK
2961 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2962 out define.
2963
047eff6a
MK
2964 * uw-thread.c (SP_ARG0): Define if not already defined.
2965 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2966
dcdb1290
MK
2967 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2968
5d2d0b2a
MK
2969 * config/i386/tm-i386.h: Don't include "regcache.h".
2970
61113f8b
MK
2971 * i387-tdep.h (i387_print_float_info): New prototype.
2972 * i387-tdep.c (print_i387_value, print_i387_ext,
2973 print_i387_status_word, print_i387_control_word): Add `struct
2974 ui_file *' argument and use it for output.
2975 (i387_print_float_info): Renamed from i387_float_info. Add
2976 `struct gdbarch *' and `struct ui_file *' arguments and use the
2977 latter for output.
2978 * i386-tdep.c: Include "i387-tdep.h".
2979 (i386_gdbarch_init): Set print_float_info.
2980 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2981 (FLOAT_INFO): Remove define.
2982
46e0f506
MS
29832002-08-13 Michael Snyder <msnyder@redhat.com>
2984
2985 * mips-tdep.c (mips_push_arguments): Rename to
2986 mips_eabi_push_arguments, and tune for EABI.
2987 (MIPS_REGS_HAVE_HOME_P): Delete.
2988 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2989 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2990 Delete references to mips_regs_have_home_p.
2991
409268de
KS
29922002-08-14 Keith Seitz <keiths@redhat.com>
2993
2994 * Makefile.in (install-gdbtk): Create insight plugin directory.
2995 Install plugins.tcl file.
2996
ffc6a242
KS
29972002-08-14 Keith Seitz <keiths@redhat.com>
2998
2999 * configure.in: Move SUBDIRS to near top of the file so that
3000 --enable options may add things to it.
3001 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3002 * configure: Regenerate.
3003
ebafbe83
MS
30042002-08-13 Michael Snyder <msnyder@redhat.com>
3005
3006 * mips-tdep.c (mips_o32o64_push_arguments): New function,
3007 cloned from mips_push_arguments, tuned for o32/o64 ABI.
3008 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3009
32f6f25d
AC
30102002-08-13 Andrew Cagney <ac131313@redhat.com>
3011
3012 * vax-tdep.c (vax_get_saved_register): Delete function.
3013 (vax_gdbarch_init): Update.
3014 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3015 (ns32k_gdbarch_init): Update.
3016 * alpha-tdep.c (alpha_get_saved_register): Delete function.
3017 (alpha_gdbarch_init): Update.
3018
53826de9
AC
30192002-08-13 Andrew Cagney <cagney@redhat.com>
3020
3021 * regcache.c (init_regcache_descr): Overallocate the
3022 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3023 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3024 nr_raw_registers.
3025 (set_register_cached): Add range checking assertions. Use
3026 current_regcache.
3027
16057ec7 30282002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
3029
3030 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3031 numbers for MMX registers.
3032
7b4c2dce
AC
30332002-08-13 Andrew Cagney <cagney@redhat.com>
3034
3035 * i386-tdep.c (i386_gdbarch_init): Use
3036 generic_unwind_get_saved_register.
3037
1e03ad20
KB
30382002-08-13 Kevin Buettner <kevinb@redhat.com>
3039
3040 * procfs.c (procfs_can_use_hw_breakpoint): New function.
3041 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3042 target vector.
3043 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3044 Delete. Add comment regarding this now-deleted target method.
3045
548bcbec
SC
30462002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3047
3048 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3049 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3050 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3051 real PC and the page number (if it's within the memory bank window).
3052 (m68hc11_pseudo_register_write): Likewise when saving.
3053 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3054 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3055 (m68hc11_register_raw_size): And use 32-bit for it.
3056 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3057 16K memory bank is used by the prog; also use the virtual pc.
3058
7df11f59
SC
30592002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3060
3061 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3062 (m68hc11_gdbarch_init): Install it in gdbarch.
3063 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3064 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3065 (MSYMBOL_SIZE): New for documentation.
3066 (insn_return_kind): Enum to specify how a function returns.
3067 (frame_extra_info): Cleanup and record the return mode.
3068 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
3069 register in address computation.
3070 (m68hc11_get_return_insn): New to obtain the return instruction used
3071 by the function.
3072 (m68hc11_frame_init_saved_regs): Take into account the return
3073 instruction used by the function for far and interrupt functions.
3074 (m68hc11_init_extra_frame_info): Take into account page register.
3075 (m68hc11_frame_args_address): Adjust according to the return mode.
3076 (show_regs): Print page register only when it's used.
3077
5706502a
SC
30782002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3079
3080 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3081 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3082 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3083 registers.
3084 (m68hc11_register_raw_size): Likewise.
3085
28fc6740
AC
30862002-08-13 Andrew Cagney <cagney@redhat.com>
3087
3088 * i386-tdep.c (i386_register_name): Handle mmx registers.
3089 (mmx_regnum_p): New function.
3090 (i386_mmx_names): New array.
3091 (mmx_num_regs): New variable.
3092 (i386_pseudo_register_read): New function.
3093 (i386_pseudo_register_write): New function.
3094 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3095
3096 * regcache.c (regcache_raw_read_unsigned): New function.
3097 (regcache_raw_read_signed): New function.
3098 * regcache.h (regcache_raw_read_unsigned): Declare.
3099 (regcache_raw_read_signed): Declare.
3100
a378f419
AC
31012002-08-13 Andrew Cagney <cagney@redhat.com>
3102
3103 * regcache.c (regcache_raw_read_as_address): Delete function.
3104 (regcache_cooked_read_signed): New function.
3105 (regcache_cooked_read_unsigned): New function.
3106 * regcache.h (regcache_cooked_read_signed): Declare.
3107 (regcache_cooked_read_unsigned): Declare.
3108 (regcache_raw_read_as_address): Delete declaration.
3109
3110 * blockframe.c (generic_read_register_dummy): Use
3111 regcache_cooked_read_unsigned.
3112 * i386-tdep.c (i386_extract_struct_value_address): Use
3113 regcache_cooked_read_unsigned.
3114
81967506
SC
31152002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3116
3117 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3118 double sizes according to ELF ABI flags.
3119 (gdbarch_tdep): Record elf_flags.
3120
ffe1f3ee
SC
31212002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3122
3123 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3124 (m6812_prolog): They can appear in 68HC12 function prologue.
3125 (m68hc11_frame_chain): Cleanup.
3126
98216c5d
AC
31272002-08-12 Andrew Cagney <cagney@redhat.com>
3128
3129 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3130 declarations.
3131 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3132 (i386_linux_register_raw_size): Delete function.
3133 (i386_linux_init_abi): Update.
3134 * i386-tdep.c (i386_register_raw_size): Delete function.
3135 (i386_register_byte): Delete function.
3136 (i386_gdbarch_init): Update.
3137 (i386_register_size): Delete array.
3138 (i386_register_offset): Delete array.
3139
3140 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3141 (REGISTER_RAW_SIZE): Delete macro.
3142 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3143 (REGISTER_BYTE): Delete macro.
3144
3b19021e
AS
31452002-08-11 Aidan Skinner <aidan@velvet.net>
3146
3147 * ada-lang.c (ada_lookup_partial_symbol)
3148 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3149 prototype names so that grep ^func works properly.
3150
3151 * ada-lang.c (ada_array_element_type)
3152 (ada_lookup_partial_symbol): Fix typos in parameter list.
3153
3154 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3155 Fix prototype names so that grep ^func works properly.
3156
b063e7a2
AC
31572002-08-10 Andrew Cagney <cagney@redhat.com>
3158 Elena Zannoni <ezannoni@redhat.com>
3159 Martin M. Hunt <hunt@redhat.com>
3160
3161 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3162 (build_builtin_type_vec128i): Set the vector bit.
3163 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3164 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3165 (build_builtin_type_vec64): New function.
3166 (build_builtin_type_vec64i): New function.
3167 (build_gdbtypes): Initialize builtin_type_vec64 and
3168 builtin_type_vec64i.
3169
a7e3c2ad
AC
31702002-08-09 Andrew Cagney <cagney@redhat.com>
3171
3172 * regcache.c (regcache_dump): Compare the register offset
3173 with REGISTER_BYTE.
3174 * arch-utils.c (generic_register_byte): New function.
3175 * arch-utils.h (generic_register_byte): Declare.
3176 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3177 * gdbarch.h, gdbarch.c: Regenerate.
3178
af030b9a
AC
31792002-08-09 Andrew Cagney <cagney@redhat.com>
3180
3181 * regcache.c: Include "gdbcmd.h"
3182 (_initialize_regcache): Add commands "maintenance print
3183 registers", "maintenance print raw-registers" and "maintenance
3184 print cooked-registers".
3185 (enum regcache_dump_what): Define.
3186 (dump_endian_bytes): New function.
3187 (regcache_dump): New function.
3188 (regcache_print): New function.
3189 (maintenance_print_registers): New function.
3190 (maintenance_print_raw_registers): New function.
3191 (maintenance_print_cooked_registers): New function.
3192 * Makefile.in (regcache.o): Update dependencies.
3193
cb3d25d1
MS
31942002-08-09 Michael Snyder <msnyder@redhat.com>
3195
3196 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3197 (mips_push_arguments): Correct some comments. Use paddr_nz
3198 for printing addresses in debug output. Replace static
3199 allocation using MAX_REGISTER_RAW_SIZE with alloca.
3200 (mips_n32n64_push_arguments): New function, cloned from
3201 mips_push_arguments and tuned for the n32/n64 ABI.
3202 (mips_push_register): Buffer needs dynamic allocation.
3203 (mips_print_register): Ditto.
3204 (do_gp_register_row): Ditto.
3205 (mips_store_return_value): Ditto.
3206 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3207
2163ab9d
DH
32082002-08-09 Don Howard <dhoward@redhat.com>
3209
3210 * memattr.c (mem_info_command): Print special case of upper bound
3211 as max CORE_ADDR + 1.
3212
b78bcb18
MS
32132002-08-08 Michael Snyder <msnyder@redhat.com>
3214
3215 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
3216 returns structs by ref if they're too big to fit in two registers.
3217
ffabd70d
KB
32182002-08-09 Kevin Buettner <kevinb@redhat.com>
3219
3220 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3221 saved regs value.
3222 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3223 mips_find_saved_regs().
3224 (mips_pop_frame): Likewise.
3225
fbcdb4a3
KB
32262002-08-09 Kevin Buettner <kevinb@redhat.com>
3227
3228 * blockframe.c (frame_saved_regs_register_unwind): Revise
3229 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3230 frames are in use.
3231
3c3bea1c
GS
32322002-08-09 Grace Sainsbury <graces@redhat.com>
3233
3234 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3235 T-packets; the 'a' is not taken as a register number.
3236 (remote_check_watch_resources, remote_stopped_by_watchpoint)
3237 (remote_stopped_data_address): New functions; add to target
3238 vector.
3239 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3240 prototypes to match other implementations of this
3241 function. replace integer argument with pointer -- the length
3242 field in the Z-packet is the length of what is pointed to or 1 if
3243 pointer is null. Add to target vector.
3244 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3245 target vector.
3246
3247 From Mark Salter:
3248 * remote.c (remote_wait): Add support to extract optional
3249 watchpoint information from T-packet. Ignore unrecognized
3250 optional info in T-packet.
3251 (remote_async_wait): Ditto.
3252
5d1d95de
CV
32532002-08-09 Corinna Vinschen <vinschen@redhat.com>
3254
3255 * cli/cli-dump.c: Change fopen modes to use binary open modes
3256 as defined in include/fopen-bin.h throughout.
3257
c86b5b38
MS
32582002-08-08 Michael Snyder <msnyder@redhat.com>
3259
3260 * mips-tdep.c: Minor whitespace and indentation clean-ups.
3261
b30590dc
KB
32622002-08-08 Kevin Buettner <kevinb@redhat.com>
3263
3264 * doublest.c (store_floating): Avoid floatformat_from_doublest()
3265 assertion failure by returning early after a warning.
3266
498868ed
KB
32672002-08-08 Kevin Buettner <kevinb@redhat.com>
3268
3269 * mips-tdep.c (mips_find_saved_regs): Make static.
3270 (mips_frame_init_saved_regs): New function.
3271 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3272 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3273 (mips_find_saved_regs): Delete declaration.
3274
b2dd6311
GS
32752002-08-08 Grace Sainsbury <graces@redhat.com>
3276
3c3bea1c
GS
3277 * remote.c (remote_wait, remote_async_wait): Change
3278 thread_num from int to ULONGEST.
3279 (unpack_varlen_hex): Change result parameter from
3280 int * to ULONGEST *.
b2dd6311 3281
ea47855f
AC
32822002-08-08 Andrew Cagney <ac131313@redhat.com>
3283
3284 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3285 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3286 powerpc*-*-*.
3287 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3288
69db8bae
AC
32892002-08-08 Andrew Cagney <cagney@redhat.com>
3290
3291 * gcore.c (override_derive_stack_segment): Delete variable.
3292 (preempt_derive_stack_segment): Delete function.
3293 (derive_stack_segment): Delete function.
3294 (default_derive_stack_segment): Renamed to derive_stack_segment.
3295 (override_derive_heap_segment): Delete variable.
3296 (preempt_derive_heap_segment): Delete function.
3297 (derive_heap_segment): Delete function.
3298 (default_derive_heap_segment): Rename to derive_heap_segment.
3299
cb811fe7
MS
33002002-08-06 Michael Snyder <msnyder@redhat.com>
3301
3302 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3303 * mips-tdep.c (mips_EABI_use_struct_convention,
3304 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3305 New functions. (mips_use_struct_convention): Delete.
3306 (mips_gdbarch_init): set use_gdbarch_convention.
3307
8b389c40
MS
33082002-08-06 Michael Snyder <msnyder@redhat.com>
3309
3310 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3311 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
3312 mips_o32_reg_struct_has_addr): New functions.
3313 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3314
5c27f28a
AC
33152002-08-07 Andrew Cagney <ac131313@redhat.com>
3316
3317 * regcache.c (pseudo_register): Delete function.
3318 (fetch_register): Delete function.
3319 (store_register): Delete function.
3320 (regcache_raw_read, legacy_read_register_gen): Use
3321 target_fetch_registers instead of fetch_register.
3322 (legacy_write_register_gen, regcache_raw_write): Use
3323 target_store_register instead of store_register.
3324 (write_register_bytes): Ditto.
3325
3326 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3327 (STORE_PSEUDO_REGISTER): Delete.
3328 * gdbarch.h, gdbarch.c: Regenerate.
3329
5b331675
CV
33302002-08-06 Corinna Vinschen <vinschen@redhat.com>
3331
3332 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3333 write dump file binary.
3334
6acdf5c7
MS
33352002-08-05 Michael Snyder <msnyder@redhat.com>
3336
3337 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
3338 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
3339 (mips_gdbarch_init): Set N32 target to be mips64.
3340
b2f01c35
KB
33412002-08-06 Kevin Buettner <kevinb@redhat.com>
3342
3343 * frame.c (find_saved_register): Break out of loop once saved
3344 register address is found. Don't mention sparc in loop comment
3345 anymore.
3346
63db5580
KB
33472002-08-06 Kevin Buettner <kevinb@redhat.com>
3348
3349 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3350 mips_default_saved_regsize to 8.
3351
5e34e75e
AC
33522002-08-06 Andrew Cagney <ac131313@redhat.com>
3353
3354 * gcore.c: Do not include <sys/procfs.h>.
3355 * Makefile.in (gcore.o): Update dependencies.
3356
eb4c54a2
AC
33572002-08-06 Andrew Cagney <cagney@redhat.com>
3358
3359 * configure.tgt: Make arc-*-* obsolete.
3360 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3361 * MAINTAINERS: Make arc-elf obsolete.
3362 * arc-tdep.c: Make file obsolete.
3363 * config/arc/arc.mt: Ditto.
3364 * config/arc/tm-arc.h: Ditto.
3365
ced15480
TR
33662002-08-05 Theodore A. Roth <troth@verinet.com>
3367
c1bab85b 3368 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 3369
b4743822
AC
33702002-08-05 Andrew Cagney <ac131313@redhat.com>
3371
3372 * mcore-tdep.c (mcore_gdbarch_init): Use
3373 generic_unwind_get_saved_register instead of
3374 generic_get_saved_register.
3375 * v850-tdep.c (v850_gdbarch_init): Ditto.
3376 * frv-tdep.c (frv_gdbarch_init): Ditto.
3377 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3378 * s390-tdep.c (s390_gdbarch_init): Ditto.
3379 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3380 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3381 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3382
3956d554
JB
33832002-08-05 Joel Brobecker <brobecker@gnat.com>
3384
3385 * objfiles.h: Add missing #include "symfile.h"
3386
3387 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3388
8249c0d6
AC
33892002-08-04 Andrew Cagney <ac131313@redhat.com>
3390
3391 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3392 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3393 of FIELD_BITSIZE.
3394
b9d14705
DJ
33952002-08-04 Daniel Jacobowitz <drow@mvista.com>
3396
3397 * NEWS: Cleanup and nitpick.
3398
dd73b9bb
AC
33992002-08-03 Andrew Cagney <ac131313@redhat.com>
3400
3401 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3402
043a27f8
AC
34032002-08-03 Andrew Cagney <ac131313@redhat.com>
3404
3405 * Makefile.in (gdbtk-bp.o): Update dependencies.
3406 (gdbtk-register.o): Ditto.
3407 (gdbtk-varobj.o): Ditto.
3408
46ce284d
AC
34092002-08-03 Andrew Cagney <cagney@redhat.com>
3410
3411 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3412 m68hc11_fetch_pseudo_register.
3413 (m68hc11_pseudo_register_write): Replace
3414 m68hc11_store_pseudo_register.
3415 (m68hc11_gdbarch_init): Update.
3416
b66d6d2e
AC
3417Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3418
3419 * gdbarch.sh: Include "gdb_string.h".
3420 * gdbarch.c: Regenerate.
3421
3422 * regcache.c: Include "gdb_string.h".
3423 * ax-general.c: Ditto.
3424 * varobj.c: Ditto.
3425 * std-regs.c: Ditto.
3426 * fbsd-proc.c: Ditto.
3427 * thread.c: Ditto.
3428
3429 * Makefile.in (regcache.o): Update dependencies.
3430 (thread.o, gdbarch.o): Ditto.
3431 (ax-general.o, gdbarch.o): Ditto.
3432 (varobj.o, std-regs.o): Ditto.
3433 (fbsd-proc.o): Specify dependencies.
3434
29e1842b
AC
34352002-08-02 Andrew Cagney <cagney@redhat.com>
3436
3437 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3438 regnum.
3439 (regcache_cooked_write): Ditto.
3440
68365089
AC
34412002-08-02 Andrew Cagney <ac131313@redhat.com>
3442
3443 * regcache.c (regcache_cooked_read): New function.
3444 (regcache_cooked_write): New function.
3445 (read_register_gen): Rewrite using regcache_cooked_read.
3446 (write_register_gen): Rewrite using regcache_cooked_write.
3447
3448 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3449 Declare.
3450
d8124050
AC
34512002-08-02 Andrew Cagney <cagney@redhat.com>
3452
3453 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3454 Replace the architecture methods register_read and register_write.
3455 * gdbarch.h, gdbarch.c: Regenerate.
3456 * regcache.c (init_regcache_descr): Update.
3457 (read_register_gen): Update.
3458 (write_register_gen): Update.
3459 (supply_register): Update comment.
3460
3461 * sh-tdep.c (sh_gdbarch_init): Update.
3462 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3463 `regcache' and `gdbarch' parameters. Make `buffer' a void
3464 pointer. Update code.
3465 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3466 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3467 void pointer. Update code.
3468 (sh64_register_write): Delete.
3469 (sh4_register_read): Delete.
3470 (sh64_register_read): Delete.
3471 (sh4_register_write): Delete.
3472 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3473 void pointer, `to' parameter a void pointer.
3474 (sh_sh64_register_convert_to_raw): Ditto.
3475
a6425924
KB
34762002-08-01 Kevin Buettner <kevinb@redhat.com>
3477
3478 * mips-tdep.c (mips_register_virtual_type): Use architecture
3479 invariant return values.
3480
ff5922b5
AC
34812002-08-01 Andrew Cagney <cagney@redhat.com>
3482
3483 * linux-proc.c: Include "gdb_string.h".
3484 * Makefile.in (linux-proc.o): Update dependency list.
3485
32a6503c
KB
34862002-08-01 Kevin Buettner <kevinb@redhat.com>
3487
3488 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3489 comment.
3490
ccaa32c7
GS
34912002-08-01 Grace Sainsbury <graces@redhat.com>
3492
3493 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3494 to_insert_watchpoint, to_remove_watchpoint,
3495 to_stopped_by_watchpoint, to_stopped_data_address,
3496 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3497 target vecctor. Define their corresponding macros so they call
3498 them.
3499
3500 * target.c: Add default and debug versions of for
3501 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3502 to_insert_watchpoint, to_remove_watchpoint,
3503 to_stopped_by_watchpoint, to_stopped_data_address,
3504 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3505
78fde5f8
KB
35062002-08-01 Kevin Buettner <kevinb@redhat.com>
3507
3508 * mips-tdep.c (mips_register_virtual_type): New function.
3509 (mips_gdbarch_init): Register mips_register_virtual_type()
3510 with gdbarch machinery.
3511 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3512 this file instead of tm-bigmips.h.
3513 (MIPS_REGSIZE): Delete this macro.
3514 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3515 multiarch version in mips-tdep.c will be found.
3516
db034ac5
AC
35172002-08-01 Andrew Cagney <cagney@redhat.com>
3518
3519 * NEWS: Menion that CHILL has been made obsolete.
3520
3521 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
3522 * stabsread.c (read_range_type): Ditto.
3523 * gdbtypes.h: Ditto.
3524 * language.c (binop_type_check): Ditto.
3525 (binop_result_type): Ditto.
3526 (integral_type): Ditto.
3527 (character_type): Ditto.
3528 (string_type): Ditto.
3529 (boolean_type): Ditto.
3530 (structured_type): Ditto.
3531 (lang_bool_type): Ditto.
3532 (binop_type_check): Ditto.
3533 * language.h (_LANG_chill): Ditto.
3534 * dwarfread.c (set_cu_language): Ditto.
3535 * dwarfread.c (CHILL_PRODUCER): Ditto.
3536 * dwarfread.c (handle_producer): Ditto.
3537 * expression.h (enum exp_opcode): Ditto.
3538 * eval.c: Ditto for comments.
3539 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3540 * expprint.c (print_subexp): Ditto.
3541 (print_subexp): Ditto.
3542 * valops.c (value_cast): Ditto.
3543 (search_struct_field): Ditto.
3544 * value.h (COERCE_VARYING_ARRAY): Ditto.
3545 * symfile.c (init_filename_language_table): Ditto.
3546 (add_psymbol_with_dem_name_to_list): Ditto.
3547 * valarith.c (value_binop): Ditto.
3548 (value_neg): Ditto.
3549 * valops.c (value_slice): Ditto.
3550 * symtab.h (union language_specific): Ditto.
3551 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3552 (SYMBOL_DEMANGLED_NAME): Ditto.
3553 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3554 * defs.h (enum language): Ditto.
3555 * symtab.c (got_symtab): Ditto.
3556 * utils.c (fprintf_symbol_filtered): Ditto.
3557
3558 * ch-typeprint.c: Make file obsolete.
3559 * ch-valprint.c: Make file obsolete.
3560 * ch-lang.h: Make file obsolete.
3561 * ch-exp.c: Make file obsolete.
3562 * ch-lang.c: Make file obsolete.
3563
3564 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3565 CHILL_LIB.
3566 (TARGET_FLAGS_TO_PASS): Ditto.
3567 (CHILLFLAGS): Obsolete.
3568 (CHILL): Obsolete.
3569 (CHILL_FOR_TARGET): Obsolete.
3570 (CHILL_LIB): Obsolete.
3571 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3572 ch-valprint.c.
3573 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3574 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3575 ch-lang.o.
3576 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3577 targets.
3578
8aaf0b47
JB
35792002-07-31 Joel Brobecker <brobecker@gnat.com>
3580
3581 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3582 This does not change anything at the moment, but will be helpful
3583 later when full Ada support is integrated.
3584
f3a7b3a5
KB
35852002-07-31 Kevin Buettner <kevinb@redhat.com>
3586
3587 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3588 help message.
3589
fb850278
KB
35902002-07-31 Kevin Buettner <kevinb@redhat.com>
3591
3592 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3593 and save it in a local variable. Use variable in later test.
3594
e3bddbfa
KB
35952002-07-31 Kevin Buettner <kevinb@redhat.com>
3596
3597 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3598 test. (Thanks to Daniel Jacobowitz.)
3599
28d169de
KB
36002002-07-31 Kevin Buettner <kevinb@redhat.com>
3601
3602 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3603 (mips_abi_strings): Add "n64".
3604 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3605
7fe7e44e
KB
36062002-07-31 Kevin Buettner <kevinb@redhat.com>
3607
3608 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3609 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3610
c6caf090
KB
36112002-07-31 Kevin Buettner <kevinb@redhat.com>
3612
3613 * utils.c (host_pointer_to_address, address_to_host_pointer):
3614 Use gdb_assert() instead of explicit call to internal_error().
3615
c41669e0
KB
36162002-07-30 Kevin Buettner <kevinb@redhat.com>
3617
3618 * Makefile.in (rs6000-nat.o): Update dependencies.
3619
3620 From Nicholas Duffek:
3621 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3622 (aix-thread.o): New rule.
3623 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3624 * config/powerpc/aix432.mh: New file.
3625
2fda4977
DJ
36262002-07-30 Daniel Jacobowitz <drow@mvista.com>
3627
3628 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3629 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3630 (fetch_core_registers, ppc_linux_supply_gregset)
3631 (ppc_linux_supply_fpregset): New functions.
3632 (ppc_linux_regset_core_fns): New.
3633 (_initialize_ppc_linux_tdep): Call add_core_fns.
3634 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3635 and ppc_linux_supply_gregset.
3636 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3637 (supply_fpregset): Call ppc_linux_supply_fpregset.
3638 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3639 corelow.o.
3640 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3641
729051e6
DJ
36422002-07-30 Daniel Jacobowitz <drow@mvista.com>
3643
3644 * symtab.c (lookup_symbol): Demangle before lowercasing.
3645
5f8a3188
AC
36462002-07-30 Andrew Cagney <ac131313@redhat.com>
3647
3648 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3649 declaration.
3650 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3651 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3652 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3653 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3654 "gdb_string.h".
3655 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3656 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3657 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3658 (avr-tdep.o, mon960-rom.o): Ditto.
3659 (aout_stabs_gnu_h): Define.
3660 (symtab_h): Remove $(gdb_obstack_h).
3661
67f07146
JB
36622002-07-30 Jim Blandy <jimb@redhat.com>
3663
3664 Patch from David Carlton <carlton@math.stanford.edu>:
3665 * gdbinit.in: Move the `dir' commands that add GDB's own source
3666 directory to the search path to the end, so that the `gdb' source
3667 directory will be searched first.
3668
04ea0df1
AC
36692002-07-29 Andrew Cagney <ac131313@redhat.com>
3670
3671 * gdb_obstack.h: New file.
3672 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3673 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3674 * objfiles.h: Include "gdb_obstack.h".
3675 * Makefile.in (gdb_obstack_h): Define.
3676 (symtab_h): Add $(gdb_obstack_h).
3677 (objfiles_h): Add $(gdb_obstack_h).
3678
3679 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3680 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3681 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3682 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3683 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3684 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3685 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3686 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3687
3688 * Makefile.in (bcache.o): Update dependencies.
3689 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3690 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3691 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3692 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3693 (stabsread.o, symfile.o, symmisc.o): Ditto.
3694 (symtab.o, typeprint.o, macroexp.o): Ditto.
3695 (macrotab.o, mdebugread.o): Ditto.
3696 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3697 (coff_ecoff_h, aout_aout64_h): Define.
3698 (aout_stabs_gnu_h, libaout_h): Define.
3699
d138e37a
AC
37002002-07-29 Andrew Cagney <cagney@redhat.com>
3701
3702 * regcache.c (struct regcache_descr): Rename nr_registers to
3703 nr_cooked_registers. Revise comments describing the structure
3704 member fields.
3705 (init_regcache_descr): Update.
3706 (init_legacy_regcache_descr): Update.
3707 (read_register_gen, write_register_gen): When a cooked register in
3708 the raw register range, directly access the value from the raw
3709 register cache.
3710
460e6ec3
AC
37112002-07-29 Andrew Cagney <ac131313@redhat.com>
3712
3713 * z8k-tdep.c: Do not include "obstack.h".
3714 * h8300-tdep.c, h8500-tdep.c: Ditto.
3715 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3716 * valprint.c, v850-tdep.c: Ditto.
3717 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3718 * mn10200-tdep.c: Ditto.
3719
3720 * Makefile.in (z8k-tdep.o): Update dependencies.
3721 (m68hc11-tdep.o, valprint.o): Ditto.
3722 (v850-tdep.o, d10v-tdep.o): Ditto.
3723 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3724 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3725 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3726 (sh_opc_h, gdb_sim_sh_h): Define.
3727 (elf_sh_h, elf_bfd_h): Define.
3728 (opcode_m68hc11_h): Define.
3729 (OPCODES_SRC, OPCODES_DIR): define.
3730 (OPCODES): Use $(OPCODES_DIR).
3731 (gdb_sim_d10v_h): Rename sim_d10v_h.
3732 (gdb_sim_arm_h): Rename sim_arm_h.
3733
790c9cf0
KB
37342002-07-26 Kevin Buettner <kevinb@redhat.com>
3735
3736 * utils.c (host_pointer_to_address, address_to_host_pointer):
3737 Change internal_error() message to indicate function responsible
3738 for the error.
3739
9647fa49
KB
37402002-07-26 Kevin Buettner <kevinb@redhat.com>
3741
3742 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3743 calls to local_hex_string_custom().
3744
dabbe2c0
KB
37452002-07-26 Kevin Buettner <kevinb@redhat.com>
3746
3747 * irix5-nat.c: Move IRIX shared library support from here...
3748 * solib-irix.c: ...to here. Revised substantially to work with
3749 generic solib framework.
3750
b96d0a4e
KB
3751 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3752 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3753 * mips-irix-tdep.c: New file.
3754
313fb2f6
KB
3755 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3756 (mips-irix-tdep.o, solib-irix.o): New rules.
3757 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3758 solib-irix.o.
3759 * config/mips/irix6.mt (TDEPFILES): Likewise.
3760 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3761
ab2eaf26
KB
37622002-07-26 Kevin Buettner <kevinb@redhat.com>
3763
177e4768 3764 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
3765 disabled (via ``#if 0'') includes.
3766
7244546a
KB
37672002-07-26 Kevin Buettner <kevinb@redhat.com>
3768
3769 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3770 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3771 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3772 Add support for the fpscr register.
3773 * rs6000-nat.c (regmap, fetch_inferior_registers)
3774 (store_inferior_registers, fetch_core_registers): Likewise.
3775
dd7be90a
KB
37762002-07-26 Kevin Buettner <kevinb@redhat.com>
3777
3778 * rs6000-nat.c (language.h): Include.
3779 (special_regs): Delete this array.
3780 (regmap): New function.
3781 (fetch_register, store_register): Use regmap() to map gdb
3782 register numbers to ptrace register numbers. Also, use
3783 outputs from regmap() to make decisions regarding type of
3784 ptrace() call to make. In particular, don't compare against
3785 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3786 (fetch_inferior_registers, store_inferior_registers): Where
3787 possible, obtain register numbers from tdep struct. Don't
3788 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3789 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3790 (LAST_UISA_SP_REGNUM): Delete.
3791
11bf77db
KB
37922002-07-25 Kevin Buettner <kevinb@redhat.com>
3793
3794 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
3795 (fetch_registers, store_register, fetch_core_registers): Don't
3796 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
3797 regcache_collect() as appropriate.
3798 (find_toc_address): Format hex address with local_hex_string().
3799
06afebeb
AC
38002002-07-25 Andrew Cagney <ac131313@redhat.com>
3801
3802 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3803 bfd/elf32-frv.c.
3804
8c554d79
TT
38052002-07-24 Tom Tromey <tromey@redhat.com>
3806
3807 * jv-exp.y: Marked all strings with _().
3808 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3809 internal_error.
3810 (MethodInvocation, CastExpression, parse_number, yyerror,
3811 java_type_from_name, push_expression_name, yylex): Typo fixes.
3812
e4c242d9
DJ
38132002-07-24 Daniel Jacobowitz <drow@mvista.com>
3814
3815 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3816 (tee_file_flush, tee_file_write, tee_file_fputs)
3817 (tee_file_isatty): New.
3818 * ui-file.h (tee_file_new): Add prototype.
3819
ebf56fd3
AS
38202002-07-24 Aidan Skinner <aidan@velvet.net>
3821
3822 * ada-lang.c: Change k&r style function definitions to prototyped
3823 form.
3824 * ada-typeprint.c: Change k&r style function definitions to prototyped
3825 form.
3826 * ada-valprint.c: Change k&r style function definitions to prototyped
3827 form.
3828
7fb623f7
AC
38292002-07-24 Andrew Cagney <cagney@redhat.com>
3830
3831 * README: Remove reference to remote-bug.
3832 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3833 remote-bug.c.
3834 (m88k-nat.o): Delete rule.
3835 (m88k-tdep.o): Delete rule.
3836 (remote-bug.o): Delete rule.
3837 * MAINTAINERS: Mark as obsolete.
3838 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3839 * m88k-tdep.c: Make file obsolete.
3840 * config/m88k/m88k.mh: Ditto.
3841 * config/m88k/delta88v4.mh: Ditto.
3842 * config/m88k/delta88v4.mt: Ditto.
3843 * config/m88k/delta88.mt: Ditto.
3844 * config/m88k/delta88.mh: Ditto.
3845 * remote-bug.c: Ditto.
3846 * config/m88k/tm-delta88.h: Ditto.
3847 * config/m88k/nm-delta88v4.h: Ditto.
3848 * config/m88k/xm-delta88.h: Ditto.
3849 * config/m88k/xm-dgux.h: Ditto.
3850 * config/m88k/tm-m88k.h: Ditto.
3851 * config/m88k/nm-m88k.h: Ditto.
3852 * config/m88k/tm-delta88v4.h: Ditto.
3853 * m88k-nat.c: Ditto.
3854 * cxux-nat.c: Ditto.
3855 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3856 and m88*-*-* obsolete.
3857 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3858 m88*-*-* obsolete.
3859
37611a2b
AC
38602002-07-24 Andrew Cagney <cagney@redhat.com>
3861
3862 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3863 constant. Same for local pointer variables.
3864 (extract_signed_integer): Ditto.
3865 * defs.h (extract_unsigned_integer): Update.
3866 (extract_signed_integer): Update.
3867
1aaa5f99
AC
38682002-07-24 Andrew Cagney <cagney@redhat.com>
3869
3870 * regcache.c (regcache_raw_write): Change buf parameter to a
3871 constant void pointer.
3872 (regcache_raw_read): Change buf parameter to a void pointer.
3873 (legacy_write_register_gen): Change myaddr parameter a constant
3874 void pointer.
3875 (supply_register): Change val parameter to a const void pointer.
3876 * regcache.h (regcache_raw_write): Update declaration.
3877 (regcache_raw_read): Update declaration.
3878 (supply_register): Update declaration.
3879
b4f5539f
TT
38802002-07-24 Tom Tromey <tromey@redhat.com>
3881
3882 * defs.h (gdb_readline_wrapper): Declare.
3883 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3884 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3885 * top.c (gdb_readline_wrapper): New function.
3886 (command_line_input): Use it.
3887
0818c12a
AC
38882002-07-24 Andrew Cagney <cagney@redhat.com>
3889
3890 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3891 regcache_read and regcache_write.
3892 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3893 * regcache.c: Update.
3894 * sh-tdep.c (sh64_push_arguments): Update comment.
3895 (sh_pseudo_register_read): Update.
3896 (sh_pseudo_register_write): Update.
3897 (sh4_register_read): Update.
3898 (sh4_register_write): Update.
3899 (sh64_pseudo_register_read): Update.
3900 (sh64_pseudo_register_write): Update.
3901 (sh64_register_read): Update.
3902 (sh64_register_write): Update.
3903 * i386-tdep.c (i386_extract_return_value): Update.
3904 (i386_extract_struct_value_address): Update.
3905 (i386_extract_return_value): Update.
3906 * blockframe.c (generic_read_register_dummy): Update.
3907 (generic_call_dummy_register_unwind): Update
3908 * infrun.c (write_inferior_status_register): Update.
3909
f7321c06
JB
39102002-07-23 Jim Blandy <jimb@redhat.com>
3911
3912 * parser-defs.h (expression_context_pc): Make this extern.
3913 (Thanks to Michael Snyder.)
3914
2037aebb
AC
39152002-07-23 Andrew Cagney <ac131313@redhat.com>
3916
3917 GDB 5.2.1 released from 5.2 branch.
3918 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3919 * README: Update to mention 5.2.1.
3920
66504d44
MS
39212002-07-23 Mark Salter <msalter@redhat.com>
3922
3923 * remote.c (remote_read_bytes): Fix check for error.
3924
27bae383
KB
39252002-07-22 Kevin Buettner <kevinb@redhat.com>
3926
3927 * aix-thread.c (language.h): Include.
3928 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3929 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3930 Print newlines at end of debug messages.
3931 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3932 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3933
39342002-07-22 Kevin Buettner <kevinb@redhat.com>
3935
3936 * aix-thread.c (ppc-tdep.h): Include.
3937 (special_register_p): New function.
3938 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3939 (store_regs_user_thread): Use register number information from
3940 gdbarch_tdep struct instead of hardcoded offsets relative to
3941 FIRST_UISA_SP_REGNUM.
3942 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3943 special_register_p() instead of using FPLAST_REGNUM and
3944 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3945 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3946 will be MQ's register number.
3947
39482002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
3949
3950 * aix-thread.c (ops): Rename to aix_thread_ops.
3951 (base_ops): Rename to base_target.
3952 (ops_attach): Rename to aix_thread_attach.
3953 (ops_detach): Rename to aix_thread_detach.
3954 (ops_resume): Rename to aix_thread_detach.
3955 (ops_wait): Rename to aix_thread_wait.
3956 (ops_kill): Rename to aix_thread_kill.
3957 (init_ops): Rename to init_aix_thread_ops.
3958 (ops_fetch_register): Rename to aix_thread_fetch_register.
3959 (ops_store_register): Rename to aix_thread_store_register.
3960 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3961 (ops_thread_alive): Rename to aix_thread_thread_alive.
3962 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3963 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3964 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3965 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3966 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3967 (store_regs_lib): Rename to store_regs_user_thread.
3968 (store_regs_kern): Rename to store_regs_kernel_thread.
3969
27bae383 39702002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3971
3972 * aix-thread.c (ops_prepare_to_store): Eliminate.
3973 (init_ops): Don't initialize ops.prepare_to_store.
3974 (store_regs_kern): Pre-fetch register buffers from child,
3975 because some registers may not be in the cache. Copy
3976 regs from register cache only if they are cached.
3977 (store_regs_lib): Copy regs from register cache only
3978 if they are cached.
3979 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3980 fill_gprs64): Ditto.
3981
61c5da0b
KB
39822002-07-22 Kevin Buettner <kevinb@redhat.com>
3983
3984 * aix-thread.c (gdb_assert.h): Include.
3985 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3986 register sizes (from register cache) match size of buffer holding
3987 register data.
3988 (fill_sprs32): Change parameter types to match those in the ptrace()
3989 buffer.
3990 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3991 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3992
39932002-07-22 Michael Snyder <msnyder@redhat.com>
3994
3995 * aix-thread.c (supply_sprs64): Cosmetic change.
3996 (supply_sprs32): Cosmetic change.
3997 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3998 (fill_sprs64): Use regcache_collect instead of read_register.
3999 (store_regs_lib): Use regcache_collect instead of
4000 read_register. Use fill_sprs32 instead of fill_sprs64,
4001 if debugging a 32-bit architecture.
4002 (store_regs_kern): Use fill_gprs64 etc. to pull the values
4003 out of the register cache, instead of passing a pointer into
4004 the register cache directly to ptrace. Use regcache_collect
4005 insteaad of read_register.
4006 (ops_prepare_to_store): Use target_read_registers instead
4007 of read_register_bytes.
4008
36479eb1
AS
40092002-07-20 Aidan Skinner <aidan@velvet.net>
4010
4011 * MAINTAINERS: Add self under write after approval.
4012
80ae6ee2
AS
40132002-07-20 Aidan Skinner <aidan@velvet.net>
4014
4015 * ada-tasks.c: Change k&r style function definitions to prototyped
4016 form.
4017
8a8ab2b9
AC
40182002-07-19 Andrew Cagney <ac131313@redhat.com>
4019
4020 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4021 * x86-64-tdep.c: Include "objfiles.h".
4022 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4023 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4024
fb16b900
ML
40252002-07-17 Michal Ludvig <michal@suse.cz>
4026
4027 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4028 (update_context): Initialise cfa variable.
4029
0fe7bf7b
MS
40302002-07-17 Michael Snyder <msnyder@redhat.com>
4031
4032 * aix-thread.c: Shorten some long lines.
4033 Bring comments into line with code spec.
4034
488f131b
JB
40352002-07-18 Joel Brobecker <brobecker@gnat.com>
4036
4037 * infrun.c: Re-indent using gdb_indent.sh.
4038
46c415d2
JB
40392002-07-18 Joel Brobecker <brobecker@gnat.com>
4040
4041 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4042 Leave the indentation temporarily untouched, to minimize the diffs.
4043
cdecafbe
EZ
40442002-07-18 Elena Zannoni <ezannoni@redhat.com>
4045
4046 * stabsread.c: Make os9k sections of the code obsolete,
4047 for real this time.
4048 * stabsread.h: Make os9k sections of the code obsolete.
4049
7b6aa020
ML
40502002-07-18 Michal Ludvig <mludvig@suse.cz>
4051
09ec9b38
ML
4052 * linux-low.c (regsets_store_inferior_registers): Add free()
4053 at the end of a loop to prevent memory leak.
4054 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4055 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
4056 * config/sparc/tm-sp64linux.h: Make the rest of #endif
4057 line a comment.
4894ac5d 4058 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 4059
233282cd
JB
40602002-07-17 Jim Blandy <jimb@redhat.com>
4061
4062 * macrocmd.c (info_macro_command): Remove newline from error
4063 message.
4064
7b6aa020 40652002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
4066
4067 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4068 (sh_gdbarch_init): Use it for sh-dsp.
4069
f7ef9339
KB
40702002-07-16 Kevin Buettner <kevinb@redhat.com>
4071
4072 * dwarf2read.c (read_initial_length): Handle older, non-standard,
4073 64-bit DWARF2 format.
4074
8dd72958
JB
40752002-07-16 Joel Brobecker <brobecker@gnat.com>
4076
4077 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4078 <sys/proc.h> when not available.
4079
a99a9e1b
AC
40802002-07-16 Andrew Cagney <ac131313@redhat.com>
4081
4082 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4083 * stabsread.c: Make os9k sections of the code obsolete.
4084 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4085 * config/i386/i386os9k.mt: Make file obsolete.
4086 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4087 (COMMON_OBS): Remove os9kread.o
4088 (SFILES): Remove os9kread.c.
4089 (os9kread.o, remote-os9k.o): Make target obsolete.
4090 * remote-os9k.c: Make file obsolete.
4091 * os9kread.c: Make file obsolete.
4092 * Makefile.in
4093
7a3085c1
AC
40942002-07-16 Andrew Cagney <ac131313@redhat.com>
4095
4096 * NEWS: Mention that the FR30 has been made obsolete.
4097 * fr30-tdep.c: Make file obsolete.
4098 * config/fr30/tm-fr30.h: Ditto.
4099 * config/fr30/fr30.mt: Ditto.
4100 * configure.tgt: Make fr30-*-elf obsolete.
4101 * MAINTAINERS: Make fr30-elf obsolete.
4102
28a93f5a
PM
41032002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
4104
4105 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4106 found is not inside a section.
4107
be006b8b
KB
41082002-07-15 Kevin Buettner <kevinb@redhat.com>
4109
4110 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4111 strerror().
4112 (pdc_realloc): Use xrealloc() instead of realloc().
4113
14fa3751
KB
41142002-07-15 Kevin Buettner <kevinb@redhat.com>
4115
4116 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4117 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4118 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4119 macros.
4120
42cc437f
KB
41212002-07-15 Kevin Buettner <kevinb@redhat.com>
4122
4123 * aix-thread.c (ptrace_check): Eliminate goto.
4124 (sync_threadlists): Eliminate gotos. Also, fix array overrun
4125 problem.
4126
8e2c28d4
KB
41272002-07-15 Kevin Buettner <kevinb@redhat.com>
4128
4129 * aix-thread.c (gdbcmd.h): Include.
4130 (DEBUG, DBG, DBG2, dbg): Eliminate.
4131 (debug_aix_thread): New static global.
4132 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4133 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4134 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4135 invocations to DBG and DBG2 macros to test against
4136 ``debug_aix_thread'' and call fprintf_unfiltered().
4137 (_initialize_aix_thread): Add new command "set debug aix-thread".
4138
30413464
AC
41392002-07-15 Andrew Cagney <ac131313@redhat.com>
4140
4141 From Gerhard Tonn <TON@de.ibm.com>:
4142 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4143 instead of supply_register.
4144
7c43edc1
AC
41452002-07-15 Andrew Cagney <ac131313@redhat.com>
4146
4147 * dwarf2cfi.c: Include "gdb_assert.h".
4148 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4149 non-NULL.
4150 (update_context): Do not use __func__. Add missing ``break''.
4151 (update_context): Do not use __func__.
4152
9364a0ef
EZ
41532002-07-15 Elena Zannoni <ezannoni@redhat.com>
4154
4155 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4156 and its setting. Set gdbarch instruction printing functions
4157 directly. For non-rs6000 case use new function
4158 gdb_print_insn_powerpc.
4159 (gdb_print_insn_powerpc): New function.
4160
3fbeef0b
AC
41612002-07-13 Andrew Cagney <ac131313@redhat.com>
4162
92eb23c5 4163 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
4164 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4165 * configure.tgt: Mark d30v-*-* as obsolete.
4166 * d30v-tdep.c: Mark file as obsolete.
4167 * config/d30v/d30v.mt: Ditto.
4168 * config/d30v/tm-d30v.h: Ditto.
4169
aacb1f0a
AS
41702002-07-13 Aidan Skinner <aidan@velvet.net>
4171
4172 * ada-tasks.c (add_task_entry): replace calls to
4173 malloc() with xmalloc
4174 * ada-tasks.c (init_task_list): replace calls to free with xfree()
4175
4176 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4177 ada_finish_decode_line_1, all_sals_for_line
4178 ada_breakpoint_rewrite): replace calls to free() with xfree()
4179
c11d79f2
KB
41802002-07-12 Kevin Buettner <kevinb@redhat.com>
4181
4182 From Nicholas Duffek (with minor changes by Martin Hunt,
4183 Louis Hamilton, and Kevin Buettner):
4184 * aix-thread.c: New file.
4185
8e19ed76
PS
41862002-07-12 Petr Sorfa <petrs@caldera.com>
4187
4188 * dwarf2read.c (dwarf2_invalid_attrib_class): New
4189 complaint for invalid attribute class or form.
4190 (read_func_scope): DW_AT_frame_base
4191 better handling of DW_AT_block*.
4192 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4193 better handling of DW_AT_block*.
4194 (read_common_block): DW_AT_location
4195 better handling of DW_AT_block*.
4196 (read_partial_die): DW_AT_location better handling
4197 of DW_AT_block*.
4198 (new_symbol): DW_AT_external better handling of
4199 DW_AT_block*. Proper initialization of variable
4200 "addr".
4201 (attr_form_is_block): New function that returns true
4202 if the attribute's form is of DW_FORM_block*.
4203
295401f7
DJ
42042002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4205
4206 * valops.c (find_method_list): Remove comment about
4207 removed STATIC_MEMFUNCP argument.
4208 (value_find_oload_method_list): Likewise.
4209
e42dc924
KB
42102002-07-12 Kevin Buettner <kevinb@redhat.com>
4211
4212 From Nicholas Duffek:
4213 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4214 target_new_objfile_hook.
4215
6904b546
KB
42162002-07-12 Kevin Buettner <kevinb@redhat.com>
4217
4218 From Nicholas Duffek:
4219 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4220 csect.
4221
53fe9346
AC
42222002-07-12 Andrew Cagney <cagney@redhat.com>
4223
4224 * MAINTAINERS: Mention --enable-sim-build-warnings.
4225 (m68hc11-elf): Disable sim build warnings.
4226 (m32r-elf): Mark as broken obsolete candidate.
4227 (x86_64-linux-gnu): Mark as buildable with -Werror.
4228 (arm-elf): Change -w to ``,'' which enables warnings but not
4229 -Werror.
4230
af5f3db6
AC
42312002-07-12 Andrew Cagney <ac131313@redhat.com>
4232
4233 * bcache.h: Update copyright.
4234 (struct bstring, struct bcache): Move definition to "bcache.c".
4235 Replaced by opaque declaration.
4236 (bcache_xfree): Replace free_bcache.
4237 (bcache_xmalloc, bcache_memory_used): Declare.
4238
4239 * bcache.c: Update copyright.
4240 (struct bstring, struct bcache): Moved to here from "bcache.h".
4241 Update comments.
4242 (bcache_xmalloc, bcache_memory_used): New functions.
4243 (bcache_xfree): Replace function free_bcache.
4244
4245 * Makefile.in (objfiles.o): Add $(bcache_h).
4246 (objfiles_h): Remove $(bcache_h).
4247 (symfile.o): Add $(bcache_h).
4248
4249 * symmisc.c: Update copyright.
4250 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4251 (print_objfile_statistics): Use bcache_memory_used.
4252
4253 * symfile.c: Include "bcache.h".
4254 (reread_symbols): Use bcache_xfree.
4255 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4256 (add_psymbol_to_list): Pass psymbol_cache by value.
4257 (add_psymbol_with_dem_name_to_list): Ditto.
4258
4259 * objfiles.h: Update copyright.
4260 (struct bcache): Declare opaque. Do not include "bcache.h".
4261 (struct objfile): Change psymbol_cache and macro_cache to ``struct
4262 bcache'' pointers.
4263 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4264
4265 * objfiles.c: Include "bcache.h". Update copyright.
4266 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4267 macro_cache.
4268 (free_objfile): Use bcache_xfree.
4269
444199e7
GS
42702002-07-11 Grace Sainsbury <graces@redhat.com>
4271
4272 * monitor.c (monitor_fetch_register): Make name a constant.
4273 (monitor_store_register): Same.
4274
261397f8
DJ
42752002-07-11 Daniel Jacobowitz <drow@mvista.com>
4276
4277 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4278 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4279 (finish_block) For non-function blocks, hash the symbol table. For
4280 function blocks, mark the symbol table as unhashed.
4281 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4282 (msymbol_hash_iw): Likewise.
4283 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4284 value.
4285 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4286 (lookup_minimal_symbol): Likewise for both.
4287 * symtab.h (struct block): Add `hashtable' flag. Comment the
4288 hashtable.
4289 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4290 (ALL_BLOCK_SYMBOLS): Update.
4291 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4292 (struct symbol): Add `hash_next' pointer.
4293 * symtab.c (lookup_block_symbol): Search using the hash table when
4294 possible.
4295 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4296 (search_symbols, find_addr_symbol): Likewise.
4297
4298 * dstread.c (process_dst_block): Clear hashtable bit for new block.
4299 (read_dst_symtab): Likewise.
4300 * jv-lang.c (get_java_class_symtab): Likewise.
4301 * mdebugread.c: Include "gdb_assert.h".
4302 (shrink_block): Assert that the block being modified is not hashed.
4303 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4304 * symmisc.c (free_symtab_block): Walk the hash table when freeing
4305 symbols.
4306 (dump_symtab): Recognize hashed blocks.
4307 * printcmd.c (print_frame_args): Assert that function blocks do not
4308 have hashed symbol tables.
4309 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4310 (fill_in_ada_prototype, debug_print_block): Likewise.
4311 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
4312
6f0eaa01
CV
43132002-07-11 Corinna Vinschen <vinschen@redhat.com>
4314
4315 * stack.c (print_frame): Use result of frame_address_in_block()
4316 instead of fi->pc when evaluating symbols.
4317 (backtrace_command_1): Ditto.
4318
a208b0cb
AC
43192002-07-11 Andrew Cagney <cagney@redhat.com>
4320
4321 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4322 Make static.
4323
4324 * arm-tdep.c (arm_register_name): Make return type constant.
4325
a6b6b089
AC
43262002-07-10 Andrew Cagney <ac131313@redhat.com>
4327
5ae5f592
AC
4328 * win32-nat.c (has_detach_ability): Convert to strict ISO C
4329 prototype.
4330 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4331 * s390-tdep.c (s390_fp_regnum): Ditto.
4332 (s390_read_fp): Ditto.
4333 (s390_pop_frame): Ditto.
4334 (_initialize_s390_tdep): Ditto.
4335 * remote.c (get_remote_state): Ditto.
4336 * procfs.c (mappingflags): Ditto.
4337 * memattr.c (_initialize_mem): Ditto.
4338 * mcore-tdep.c (mcore_pop_frame): Ditto.
4339 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4340 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4341 * language.c (set_case_str): Ditto.
4342 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4343 * frv-tdep.c (new_variant): Ditto.
4344 (frv_stopped_data_address): Ditto.
4345 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4346 (context_alloc): Ditto.
4347 (frame_state_alloc): Ditto.
4348 (unwind_tmp_obstack_init): Ditto.
4349 (unwind_tmp_obstack_free): Ditto.
4350 (cfi_read_fp): Ditto.
4351 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4352 (cris_pop_frame): Ditto.
4353 * c-lang.c (scanning_macro_expansion): Ditto.
4354 (finished_macro_expansion): Ditto.
4355 (c_preprocess_and_parse): Ditto.
4356 * gdbarch.sh: Ditto.
4357 * gdbarch.h, gdbarch.c: Regenerate.
4358 * config/mn10200/tm-mn10200.h: Adjust indentation.
4359 * target.c: Adjust indentation.
4360 * symtab.h: Adjust indentation.
4361 * stabsread.h: Adjust indentation.
4362 * remote-es.c: Adjust indentation.
4363 * os9kread.c: Adjust indentation.
4364
43652002-07-10 Andrew Cagney <ac131313@redhat.com>
4366
a6b6b089
AC
4367 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4368 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4369
a1789893
GS
43702002-07-10 Grace Sainsbury <graces@redhat.com>
4371
4372 * NEWS: Mention m68k, mcore multi-arching.
4373 * MAINTAINERS: Change status of m68k, mcore to reflect
4374 multi-arching.
4375
02f0d45d
DJ
43762002-07-10 Daniel Jacobowitz <drow@mvista.com>
4377
4378 * valops.c (find_overload_match): Free oload_syms.
4379
f15f768e
JB
43802002-07-09 Joel Brobecker <brobecker@gnat.com>
4381
4382 Define HAVE_SYS_PROC_H if sys/proc.h exists
4383 * configure.in: Add check for sys/proc.h
4384 * config.in: Regenerate.
4385 * configure: Regenerate.
4386
902a7139
GS
43872002-07-09 Grace Sainsbury <graces@redhat.com>
4388
4389 * config/m68k/tm-m68k.h: Remove macros wrapped in
4390 #if !GDB_MULTI_ARCH.
4391
a534e424
AC
43922002-07-08 Andrew Cagney <ac131313@redhat.com>
4393
4394 * config.in, configure: Regenerate.
4395
9b94f7bf
MK
43962002-07-08 Mark Kettenis <kettenis@gnu.org>
4397
4398 * dwarf2cfi.c: Include "gcore.h".
4399 (execute_stack_op): Fix implementation of the
4400 DW_OP_deref and DW_OP_deref_size operators by letting do their
4401 lookup in the target.
4402
1d34db41
MK
44032002-07-07 Mark Kettenis <kettenis@gnu.org>
4404
4405 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4406 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4407 tdep->sc_sp_offset.
4408
79d5b63a
DJ
44092002-07-05 Daniel Jacobowitz <drow@mvista.com>
4410
4411 Fix PR gdb/595, gdb/602
4412 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4413 Don't call value_cast, just read the vtable pointer; update comments
4414 to match.
4415
3bb912e8
GS
44162002-07-05 Grace Sainsbury <graces@redhat.com>
4417
4418 * config/mcore/tm-mcore.h: Remove file.
4419 * config/mcore/mcore.mt: Remove definition of TM_FILE
4420 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4421
ca39387d
MK
44222002-07-05 Mark Kettenis <kettenis@gnu.org>
4423
4424 * i386bsd-tdep.c: Include "gdb_string.h".
4425
efdc1108
GS
44262002-07-04 Grace Sainsbury <graces@redhat.com>
4427
4428 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4429 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4430 mcore-tdep.
4431 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4432 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4433 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4434 (RETVAL_REGNUM): Move macros from tm-mcore.h
4435 (mcore_reg_struct_has_addr): New function.
4436 (mcore_gdbarch_init): Added initializations for the macros removed
4437 from tm-mcore.h.
4438
bb21884d
MK
44392002-07-04 Mark Kettenis <kettenis@gnu.org>
4440
4441 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4442 traditonal string branding within the ELF header.
4443
228c6d41
DJ
44442002-07-04 Daniel Jacobowitz <drow@mvista.com>
4445
4446 * symtab.c (remove_params): New function.
4447 (make_symbol_overload_list): Use it instead of cplus_demangle.
4448 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4449
2404952e
MK
44502002-07-04 Mark Kettenis <kettenis@gnu.org>
4451
e5e4acad
MK
4452 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4453
baadce09
MK
4454 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4455 New variables.
4456 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4457 and tdep->sigtramp_end.
4458 * i386obsd-nat.c: New file.
4459 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4460
2404952e
MK
4461 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4462 Don't call get_current_frame().
4463
9b4f1ba7
PM
44642002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4465
4466 * i386-nat.c (child_post_startup_inferior): New function
4467 calling i386_cleanup_dregs if
4468 I386_USE_GENERIC_WATCHPOINTS is defined.
4469 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4470 conditional to acknowledge that i386-nat.c has its
4471 own child_post_startup_inferior function.
4472
c0d1d883
MK
44732002-07-04 Mark Kettenis <kettenis@gnu.org>
4474
00f8375e
MK
4475 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4476 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4477 instead of MAX_REGISTER_RAW_SIZE.
4478 (i386_extract_return_value, i386_extract_struct_value_address):
4479 Convert to use regcache.
4480 (i386_gdbarch_init): Set max_register_raw_size and
4481 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4482 Set extract_return_value and extract_struct_value_address instead
4483 of their deprecated variants.
4484
c0d1d883
MK
4485 Convert i386 target to generic dummy frames.
4486 * i386-tdep.c: Include "symfile.h".
4487 (i386_frameless_signal_p): Consider a function to be frameless if
4488 the pc points at the first instruction of the function.
4489 (i386_frame_chain): Handle (generic) call dummies.
4490 (i386_frame_saved_pc): Likewise.
4491 (i386_frame_init_saved_regs): Remove code dealing with call
4492 dummies on the stack.
4493 (i386_push_dummy_frame): Removed.
4494 (i386_call_dummy_words): Removed.
4495 (i386_fix_call_dummy): Removed.
4496 (i386_push_return_address): New function.
4497 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4498 parameter, and don't call get_current_frame.
4499 (i386_pop_frame): New function.
4500 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4501 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4502 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4503 call_dummy_length to 0, set call_dummy_words to NULL, set
4504 sizeof_call_dummy_words to 0, set fix_call_dummy to
4505 generic_fix_call_dummy, set pc_in_call_dummy to
4506 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4507 generic_push_dummy_frame, set push_return_address to
4508 i386_push_return_address and set frame_chain_valid to
4509 generic_file_frame_chain_valid.
4510
049ee0e4
AC
45112002-07-03 Andrew Cagney <ac131313@redhat.com>
4512
4513 * gdbarch.sh (struct regcache): Add opaque declaration.
4514 (EXTRACT_RETURN_VALUE): New architecture method.
4515 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4516 * gdbarch.h, gdbarch.c: Regenerate.
4517 * arch-utils.c (legacy_extract_return_value): New function.
4518 * arch-utils.h (legacy_extract_return_value): Declare.
4519 * values.c (value_being_returned): Re-enable code handling
4520 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4521 deprecated_grub_regcache_for_registers call to block handling
4522 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4523 (EXTRACT_RETURN_VALUE): Do not define.
4524
4e0d9804
GS
45252002-07-03 Grace Sainsbury <graces@redhat.com>
4526
4527 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4528 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4529 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4530 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4531 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4532 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4533 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4534 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4535 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4536 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4537 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4538 argument so the function fits the prototype in the architecture
4539 vector.
4540 (mcore_pop_frame): Remove argument so the function fits the
4541 prototype. Use get_current_frame instead of the argument.
4542 (mcore_push_arguments): Change type of struct_return so the
4543 function can be used in the architecture vector.
4544 (mcore_store_struct_return): Add.
4545 (mcore_frame_init_saved_regs): Add.
4546 (mcore_gdbarch_init): Add function calls to replace the macros
4547 removed from tm-mcore.h
4548
36160dc4
AC
45492002-07-03 Andrew Cagney <ac131313@redhat.com>
4550
4551 * infcmd.c (print_return_value): Remove compatibility code calling
4552 deprecated_grub_regcache_for_registers.
4553
4554 * values.c: Include "regcache.h".
4555 (value_being_returned): Update. Use
4556 deprecated_grub_regcache_for_registers to extract the register
4557 buffer address.
4558 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4559 ``struct regcache''.
4560 * Makefile.in (values.o): Add dependency on $(regcache_h).
4561
4562 * inferior.h (run_stack_dummy): Change type of second parameter to
4563 a ``struct regcache''.
4564 * valops.c (hand_function_call): Change type of retbuf to ``struct
4565 regcache''. Allocate using regcache_xmalloc, clean using
4566 make_cleanup_regcache_xfree.
4567 * infcmd.c (run_stack_dummy): Update. Use
4568 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4569
4570 * regcache.c (do_regcache_xfree): New function.
4571 (make_cleanup_regcache_xfree): New function.
4572 * regcache.h (make_cleanup_regcache_xfree): Declare.
4573
e64d9b3d
MH
45742002-07-03 Martin M. Hunt <hunt@redhat.com>
4575
4dd79c29
MH
4576 * event-top.c (command_line_handler): Don't read past
4577 beginning of buffer.
e64d9b3d 4578
4dd79c29
MH
45792002-07-03 Martin M. Hunt <hunt@redhat.com>
4580
e64d9b3d
MH
4581 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4582 struct frame_id.
4583 (varobj_create): Store frame_id for root.
4584 (varobj_gen_name): Use xasprintf.
4585 (varobj_update): Save and restore frame using get_frame_id() and
4586 frame_find_by_id().
4587 (create_child): Use xasprintf.
4588 (new_root_variable): Initialize frame_id.
4589 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4590 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4591 to prevent memory leak.
4592
26e6c56a
AC
45932002-07-03 Andrew Cagney <ac131313@redhat.com>
4594
4595 * valops.c (hand_function_call): Move declaration of retbuf to
4596 start of function, allocate using malloc, add a cleanup but before
4597 the inf_status cleanup, cleanup the buffer. Rename local variable
4598 old_chain to inf_status_cleanup.
4599
f436dd25
MH
46002002-07-03 Martin M. Hunt <hunt@redhat.com>
4601
4602 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4603
4604 * cli/cli-decode.c (cmd_func_p): New function.
4605 (cmd_func): New function.
4606
4607 * command.h: Add cmd_func() and cmd_func_p().
4608
4cfe2084
GS
46092002-07-03 Grace Sainsbury <graces@redhat.com>
4610
4611 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4612 (REGISTER_SIZE): Remove.
4613 (MAX_REGISTER_RAW_SIZE): Remove.
4614 (REGISTER_VIRTUAL_TYPE): Remove.
4615 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4616 (REGISTER_NAME): Remove.
4617 (USE_GENERIC_DUMMY_FRAMES): Remove.
4618 (CALL_DUMMY): Remove.
4619 (CALL_DUMMY_START_OFFSET): Remove.
4620 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4621 (CALL_DUMMY_LOCATION): Remove.
4622 (FIX_CALL_DUMMY): Remove.
4623 (CALL_DUMMY_ADDRESS): Remove.
4624 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4625 (SAVE_DUMMY_FRAME_TOS): Remove.
4626 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4627 (mcore_register_virtual_type): New function.
4628 (mcore_register_byte): New function.
4629 (mcore_register_size): New function.
4630 (mcore_register_name): New function.
4631 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4632 macros removed from tm-mcore.h.
4633 (mcore_dump_tdep): Add.
4634 (_initialize_mcore_tdep): Add gdbarch_register call.
4635
4fd667e9
MK
46362002-07-03 Mark Kettenis <kettenis@gnu.org>
4637
4638 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4639 frameless_look_for_prologue, such that we actually call this
4640 function.
4641
42f99ac2
JB
46422002-07-02 Joel Brobecker <brobecker@gnat.com>
4643
4644 * frame.h (frame_address_in_block): New function.
4645
4646 * blockframe.c (frame_address_in_block): New function extracted
4647 from get_frame_block().
4648 (get_frame_block): Use frame_address_in_block().
4649 (block_innermost_frame): Use frame_address_in_block() to match
4650 the frame pc address against the block boundaries rather than
4651 the frame pc directly. This prevents a failure when a frame pc
4652 is actually a return-address pointing immediately after the end
4653 of the given block.
4654
103a1597 46552002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
4656
4657 * MAINTAINERS: Add self under write after approval.
4658
46592002-07-02 Grace Sainsbury <graces@redhat.com>
4660
103a1597
GS
4661 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4662 used in architecture vector. The default is
4663 m68k_local_breakpoint_from_pc.
4664 (m68k_local_breakpoint_from_pc): Add.
4665 (enum): Add register numbers from tm-m68k.h.
4666 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4667 vector.
4668 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4669 GDB_MULTI_ARCH_PARTIAL.
4670 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4671 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4672 m68k-tdep.c.
4673 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4674 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4675 to enum in m68k-tdep.c
4676
7a5a0534
JB
46772002-07-02 Joel Brobecker <brobecker@gnat.com>
4678
4679 * solib-osf.c (open_map): Compute the list of shared libraries
4680 loaded by the inferior, rather than the list of libraries loaded
4681 by GDB itself. Otherwise, GDB ends up reading the symbols from
4682 the wrong shared libraries...
4683
6f558d74
MK
46842002-07-02 Mark Kettenis <kettenis@gnu.org>
4685
b7d15bf7
MK
4686 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4687 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4688 macros.
4689 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4690 Remove functions.
4691 (FRAMELESS_SIGNAL): Remove function.
4692 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4693 i386_linux_saved_pc_after_call): Removed.
4694 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4695 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4696 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4697
6bff26de
MK
4698 * i386-tdep.c (i386_frameless_signal_p): New function.
4699 (i386_frame_chain): Deal with frameless signals.
4700 (i386_sigtramp_saved_sp): New function.
4701 (i386_frame_saved_pc): Deal with frameless signals.
4702 (i386_saved_pc_after_call): Make sure the correct value is
4703 returned just after entry into a sigtramp.
4704 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4705 i386fbsd4_sc_sp_offset): New variables.
4706 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4707 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4708 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4709 similiar to what we already did for sc_pc_offset.
4710 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4711 tdep->sc_sp_offset.
4712
6f558d74
MK
4713 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4714
145564b7
ML
47152002-07-02 Michal Ludvig <mludvig@suse.cz>
4716
4717 * config/i386/tm-x86-64linux.h: New.
4718 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4719 definitions.
4720 * config/i386/nm-x86-64.h: Rename to ...
4721 * config/i386/nm-x86-64linux.h: ... this one.
4722 * config/i386/x86-64linux.mh: Reflect the above change.
4723
3a1e71e3
MK
47242002-07-01 Mark Kettenis <kettenis@gnu.org>
4725
21d0e8a4
MK
4726 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4727 with sigcontext_addr. Add sc_sp_offset.
4728 (i386bsd_sigtramp_saved_pc): Remove prototype.
4729 (i386bsd_sicontext_addr): Add prototype.
4730 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4731 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4732 (i386_svr4_sigtramp_saved_pc): Removed.
4733 (i386_svr4_sigcontext_addr): New function.
4734 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4735 Initialize tdep->sigcontext_addr instead. Initialize
4736 tdep->sc_pc_offset and tdep->sc_sp_offset.
4737 (i386_gdbarch_init): Likewise.
4738 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4739 any more.
4740 (i386bsd_sigtramp_saved_pc): Remove function.
4741 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4742 Initialize tdep->sigcontext_addr instead. Initialize
4743 tdep->sc_pc_offset.
4744 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4745 of tdep->sigtramp_saved_pc.
4746 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4747 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4748 instead.
4749
3a1e71e3
MK
4750 * i386-tdep.c (i386_frameless_function_invocation,
4751 i386_frame_num_args, i386_frame_init_saved_regs,
4752 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4753 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4754 i386_extract_return_value, i386_store_return_value,
4755 i386_extract_struct_value_address, i386_register_virtual_type,
4756 i386_register_convertible, i386_register_convert_to_virtual,
4757 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4758 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4759 static.
4760
52e9098c
MK
47612002-07-01 Mark Kettenis <kettenis@gnu.org>
4762
77b13a25
MK
4763 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4764
52e9098c
MK
4765 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4766 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4767 this macro. Include "value.h".
4768
1b372fff
AS
47692002-06-30 Aidan Skinner <aidan@velvet.net>
4770
4771 * ada-exp.tab.c: remove as it's a generated file
4772 * ada-lex.c: remove as it's a generated file
4773
9c5045b5
MK
47742002-06-30 Mark Kettenis <kettenis@gnu.org>
4775
4a93c5bb
MK
4776 * config/i386/tm-i386.h (struct frame_info, struct
4777 frame_saved_regs, struct value, struct type): Remove forward
4778 declarations.
4779
322d4fe0
MK
4780 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4781 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4782 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4783 (FILL_FPXREGSET): Define.
4784
fdd8263d
MK
4785 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4786
482e577b
MK
4787 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4788 i[3456]86-*-netbsd* case.
4789 * config/i386/tm-obsd.h: Removed.
4790 * config/i386/obsd.mt: Removed.
4791 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4792 core-aout.o.
4793 (MH_CFLAGS): Add -DYYDEBUG=0.
4794
6916549a
MK
4795 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4796 i386nbsd_sc_pc_offset on OpenBSD too.
4797
9c5045b5
MK
4798 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4799 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4800 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4801 define.
4802 * i386bsd-tdep.c: Include "arch-utils.h".
4803 (i386bsd_aout_in_solib_call_trampoline): New function.
4804 (i386bsd_init_abi): Set in_solib_call_trampoline to
4805 i386bsd_aout_in_solib_call_trampoline.
4806 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4807 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4808
aa84d1bb
AC
48092002-06-28 Andrew Cagney <ac131313@redhat.com>
4810
4811 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4812 (struct obstack, struct bcache): Add opaque declarations.
4813 * Makefile.in (macrotab_h): Update
4814
b4d83933
AC
48152002-06-28 Andrew Cagney <ac131313@redhat.com>
4816
4817 * blockframe.c (generic_find_dummy_frame): Change return type to
4818 ``struct regcache''.
4819 (struct dummy_frame): Replace field ``registers'' with regcache, a
4820 struct regcache object.
4821 (generic_find_dummy_frame): Update.
4822 (generic_push_dummy_frame): Update. Use regcache_xfree,
4823 regcache_xmalloc and regcache_cpy.
4824 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4825 regcache_xfree.
4826 (deprecated_generic_find_dummy_frame): Update.
4827 (generic_read_register_dummy): Update. Use
4828 regcache_read_as_address.
4829 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4830 (generic_get_saved_register): Update. Use regcache_read.
4831
08c0b5bc
AC
48322002-06-28 Andrew Cagney <ac131313@redhat.com>
4833
4834 * Makefile.in (objfiles_h): Add $(bcache_h).
4835 * objfiles.h: Include "bcache.h".
4836
4837 * Makefile.in (symtab_h): Remove $(bcache_h).
4838 * symtab.h: Do not include "bcache.h".
4839
1f89801a
AC
48402002-06-28 Andrew Cagney <ac131313@redhat.com>
4841
4842 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4843 generic_func_frame_chain_valid.
4844
b9644b58
DB
48452002-06-28 David O'Brien <obrien@FreeBSD.org>
4846
4847 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4848 * config/i386/tm-fbsd.h: Likewise.
4849
dd486634
AC
48502002-06-28 Andrew Cagney <ac131313@redhat.com>
4851
4852 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4853 generic_unwind_get_saved_register.
4854
0b434a00
AC
48552002-06-27 Andrew Cagney <ac131313@redhat.com>
4856
4857 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4858 * regcache.c (supply_register): Add missing argument to
4859 register_buffer call.
4860
f30e5a77
AC
48612002-06-27 Andrew Cagney <ac131313@redhat.com>
4862
4863 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4864 Solaris /bin/grep does not not like it. From Peter Schauer.
4865
9f064c95
TT
48662002-06-26 Tom Tromey <tromey@redhat.com>
4867
4868 * command.h (add_setshow_cmd): Declare.
4869 (add_setshow_cmd_full): Declare.
4870 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4871 returns void. Use add_setshow_cmd_full.
4872 (add_setshow_cmd_full): New function.
4873 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4874 (add_setshow_boolean_cmd): Likewise.
4875
099c7589
JT
48762002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4877
4878 * config/vax/tm-vax.h: Protect from multiple inclusion.
4879 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4880 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4881 * config/vax/tm-vaxbsd.h: ...here. New file.
4882 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4883
1d049c5e
JT
48842002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4885
4886 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4887 (BELIEVE_PCC_PROMOTION): Remove.
4888 (AP_REGNUM): Move to...
4889 * config/vax/nm-vax.h: ...here.
4890 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4891 (vax_breakpoint_from_pc): New function.
4892 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4893 and gdbarch_believe_pcc_promotion.
4894
4791e091
JT
48952002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4896
4897 * Makefile.in (vax_tdep_h): Define.
4898 (vax-tdep.o): Use $(vax_tdep_h).
4899 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4900 (vax_dump_tdep): New function.
4901 (_initialize_vax_tdep): Register vax_dump_tdep.
4902 * vax-tdep.h: Include osabi.h.
4903 (struct gdbarch_tdep): New.
4904
da130f98
AC
49052002-06-26 Andrew Cagney <cagney@redhat.com>
4906
4907 * frame.h (deprecated_generic_find_dummy_frame): Rename
4908 generic_find_dummy_frame.
4909 * blockframe.c (generic_find_dummy_frame): Make static.
4910 (deprecated_generic_find_dummy_frame): New function.
4911 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4912 generic_find_dummy_frame with deprecated_find_dummy_frame.
4913 (sh64_nofp_frame_init_saved_regs): Ditto.
4914 (sh_fp_frame_init_saved_regs): Ditto.
4915 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4916 (s390_frame_chain): Ditto.
4917 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4918
6300c360
GS
49192002-06-26 Grace Sainsbury <graces@redhat.com>
4920
4921 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4922 gdbarch vector are at the top.
4923 (NUM_REGS): Remove.
4924 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4925 (FRAME_ARGS_ADDRESS): Remove.
4926 (FRAME_LOCALS_ADDRESS): Remove.
4927 (FRAME_NUM_ARGS): Remove.
4928 (FRAME_ARGS_SKIP): Remove.
4929 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4930 (m68k_gdbarch_init): Add gdbarch initializations for macros
4931 undefined in tm-m68k.h
4932
1c617db8
GS
49332002-06-26 Grace Sainsbury <graces@redhat.com>
4934
4935 * monitor.h: Add the function regname to monitor_ops
4936 structure. This way NUM_REGS does not have to be a constant.
4937 * monitor.c (monitor_fetch_register): Added support for regname
4938 function. The function is called if the array regnames is NULL.
4939 (monitor_store_register): Same.
da130f98
AC
4940 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4941 regnames array.
1c617db8
GS
4942 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4943 cpu32bug_cmds.regname to point to new function.
4944 * abug-rom.c (abug_regname): Same as above.
4945 (init_abug_cmds): Same.
4946 * dbug-rom.c (dbug_regname): Same as above.
4947 (init_dbug_cmds): Same.
4948 * remote-est.c (est_regname): Same.
4949 (init_est_cmds): Same.
4950 * rom68k-rom.c (rom68k_regname): Same.
4951 (init_rom68k_cmds): Same.
4952
ea9365bb
TT
49532002-06-25 Tom Tromey <tromey@redhat.com>
4954
4955 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4956
72cec141
AC
49572002-06-25 Andrew Cagney <cagney@redhat.com>
4958
4959 * infrun.c (stop_registers): Change variable's type to ``struct
4960 regcache'''.
4961 (xmalloc_inferior_status): Delete function.
4962 (free_inferior_status): Delete function.
4963 (normal_stop): Use regcache_cpy.
4964 (struct inferior_status): Change type of fields ``stop_registers''
4965 and ``registers'' to ``struct regcache''.
4966 (write_inferior_status_register): Use regcache_write.
4967 (save_inferior_status): Instead of calling
4968 xmalloc_inferior_status, allocate the inf_status buffer directly.
4969 Use regcache_dup_no_passthrough and regcache_dup to save the
4970 buffers.
4971 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4972 Replace the stop_registers regcache instead of overriding it. Use
4973 regcache_xfree. Instead of calling free_inferior_status, xfree
4974 the buffer directly.
4975 (discard_inferior_status): Use regcache_xfree. Instead of calling
4976 free_inferior_status, xfree the buffer directly.
4977 (build_infrun): Use regcache_xmalloc.
4978 (_initialize_infrun): Delete redundant call to build_infrun.
4979
4980 * Makefile.in (infcmd.o): Add $(regcache_h).
4981
4982 * infcmd.c: Include "regcache.h".
4983 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4984 obtain the address of `stop_registers' register buffer.
4985 (print_return_value): Ditto.
4986
4987 * inferior.h (struct regcache): Add opaque declaration.
4988 (stop_registers): Change variable's declared type to ``struct
4989 regcache''.
4990
defc6f8c
TT
49912002-06-24 Tom Tromey <tromey@redhat.com>
4992
c0e624e7
TT
4993 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4994 * target.c (initialize_targets): Fixed typo in
4995 trust-readonly-sections `show' documentation.
4996
defc6f8c
TT
4997 * main.c: Marked all strings with _().
4998
2b236d82
DH
49992002-06-24 Don Howard <dhoward@redhat.com>
5000
5001 * memattr.c (create_mem_region): Treat hi == 0 as a special case
5002 that means max CORE_ADDR+1.
5003 (lookup_mem_region): Ditto.
5004 (mem_info_command): Ditto.
5005
942dc0e9
GS
50062002-06-24 Grace Sainsbury <graces@redhat.com>
5007
5008 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5009 (REGISTER_BYTES_OK): Remove.
5010 (REGISTER_BYTES): Remove.
5011 (STORE_STRUCT_RETURN): Remove.
5012 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5013 (STORE_RETURN_VALUE): Remove.
5014 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5015 (FRAME_CHAIN): Remove.
5016 (FRAMELESS_FUNCTION_INVOCATION): Remove.
5017 (FRAME_SAVED_PC): Remove.
5018 * m68k-tdep.c (m68k_register_bytes_ok):Add.
5019 (m68k_store_struct_return): Add.
5020 (m68k_deprecated_extract_return_value): Add.
5021 (m68k_deprecated_extract_struct_value_address): Add.
5022 (m68k_store_return_value): Add.
5023 (m68k_frame_chain): Add.
5024 (m68k_frameless_function_invocation): Add.
5025 (m68k_frame_saved_pc): Add.
5026 (m68k_gdbarch_init): added set_gdbarch calls for new
5027 functions and deleted macros.
5028
03c30d4d
TT
50292002-06-23 Tom Tromey <tromey@redhat.com>
5030
5031 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5032 (ALLDEPFILES): Likewise.
5033 (udiheaders): Removed.
5034 (udip2soc.o): Likewise.
5035 (udi2go32.o): Likewise.
5036 (udr.o): Likewise.
5037 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5038
37e71372
AC
50392002-06-22 Andrew Cagney <ac131313@redhat.com>
5040
06a6ac57
AC
5041 * infrun.c (_initialize_infrun): Delete unnecessary call to
5042 build_infrun.
5043
37e71372
AC
5044 * regcache.h: Update comments describing the regcache_cpy family
5045 of functions.
5046 (regcache_save, regcache_restore): Delete declaration.
5047 (regcache_save_no_passthrough): Delete declaration.
5048 (regcache_restore_no_passthrough): Delete declaration.
5049 * regcache.c (regcache_save): Delete function.
5050 (regcache_save_no_passthrough): Delete function.
5051 (regcache_restore): Delete function.
5052 (regcache_restore_no_passthrough): Delete function.
5053
78f6d055
AC
50542002-06-21 Andrew Cagney <ac131313@redhat.com>
5055
5056 * config/m68k/tm-m68k.h: Fix typo.
5057 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5058 (m68k_frame_init_saved_regs): Declare.
5059
78b119cb
JB
50602002-06-21 Jim Blandy <jimb@redhat.com>
5061
5062 Remove some vestiges of Harris 88k support.
5063 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5064 register numbering quirk.
5065 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5066 odd symbols occurring in Harris 88k ELF targets.
5067
0fbb3da7
TT
50682002-06-21 Tom Tromey <tromey@redhat.com>
5069
5070 * gdb_locale.h: New file.
5071 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
5072 (defs_h): Added gdb_locale.h.
5073 * configure, config.in: Rebuilt.
5074 * configure.in (PACKAGE): Define.
5075 * defs.h: Include gdb_locale.h.
5076 * main.c (captured_main): Call setlocale, bindtextdomain,
5077 textdomain.
5078
456f8b9d
DB
50792002-06-21 Dave Brolley <brolley@redhat.com>
5080
5081 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5082 * config/frv/frv.mt: New file.
5083 * config/frv/tm-frv.h: New file.
5084 * configure.tgt: Support frv-*-*.
5085 * Makefile.in (frv-tdep.o): New target.
5086 * frv-tdep.c: New file.
5087 * NEWS: Mention frv.
5088
cdd463f9
DB
50892002-06-21 Dave Brolley <brolley@redhat.com>
5090
5091 * MAINTAINERS: Add self to "Write After Approval" list.
5092
5d3ed2e3
GS
50932002-06-21 Grace Sainsbury <graces@redhat.com>
5094
5095 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5096 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5097 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5098 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5099 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5100
5101 * m68k-tdep.c: Include arch-utils.h
5102 (m68k_register_raw_size): Add.
5103 (m68k_register_virtual_size): Add.
5104 (m68k_register_virtual_type): Add.
5105 (m68k_register_name): Add.
5106 (m68k_stack_align): Add.
5107 (m68k_register_byte): Add.
5108 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5109 tm-m68k.h.
5110
7f8e7424
GS
51112002-06-21 Grace Sainsbury <graces@redhat.com>
5112
a2c6a6d5 5113 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
5114 m68k_find_saved_regs.
5115 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 5116 references to it with frame->saved_regs.
7f8e7424
GS
5117 (m68k_gdbarch_init): Added function calls to initialize the
5118 gdbarch structure.
a2c6a6d5
GS
5119 (m68k_fix_call_dummy): Add.
5120 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5121 (CALL_DUMMY): Remove.
5122 (CALL_DUMMY_LENGTH): Remove.
5123 (CALL_DUMMY_START_OFFSET): Remove.
5124 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5125 (FIX_CALL_DUMMY): Remove.
5126 (PUSH_DUMMY_FRAME): Remove.
5127 (POP_FRAME): Remove.
7f8e7424 5128
f461f5cf
PM
51292002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5130
5131 * parse.c (parse_fprintf): New function used to avoid calls to
5132 fprintf in bison parser generated debug code.
5133 * parser-defs.h: Declaration of new parse_fprintf function.
5134 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5135 Set YYDEBUG to 1 by default.
5136 Set YYFPRINTF as parse_fprintf.
5137
7f0c12ed
ML
51382002-06-21 Michal Ludvig <mludvig@suse.cz>
5139
5140 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
5141 encoding anymore.
5142 (pointer_encoding, enum ptr_encoding): New.
5143 (execute_cfa_program): Take care about pointer encoding.
5144 (dwarf2_build_frame_info): Only call parse_frame_info for
5145 .debug_frame and .eh_frame.
5146 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5147 fixed augmentation handling, added relative addressing,
5148 ignore duplicate FDEs. Added comments.
19d833a2 5149 * dwarf2cfi.c: Reindented.
7f0c12ed 5150
87c4a039
EZ
51512002-06-20 Elena Zannoni <ezannoni@redhat.com>
5152
5153 * event-top.c (command_handler): Don't use space_at_cmd_start
5154 unless there is sbrk() on the host. Assign time and space data
5155 to union fields of the appropriate length.
5156
1cf877ad
ML
51572002-06-20 Michal Ludvig <mludvig@suse.cz>
5158
5159 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
5160 x86_64_register_name. Return type changed to 'const char *'.
5161 (x86_64_register_name2nr): Rename to x86_64_register_number.
5162 (x86_64_gdbarch_init): Update to reflect the change.
5163 * x86-64-tdep.h: Ditto.
5164 * x86-64-linux-nat.c (x86_64_fxsave_offset)
5165 (supply_fpregset): Ditto.
5166
3fadccb3
AC
51672002-06-19 Andrew Cagney <cagney@redhat.com>
5168
5169 * regcache.h: Update copyright.
5170 (struct regcache, struct gdbarch): Add opaque declarations.
5171 (current_regcache): Declare global variable.
5172 (regcache_read, regcache_write): Add gdbarch parameter.
5173 (regcache_save, regcache_save_no_passthrough)
5174 (regcache_restore, regcache_restore_no_passthrough)
5175 (regcache_dup, regcache_dup_no_passthrough)
5176 (regcache_cpy, regcache_cpy_no_passthrough)
5177 (deprecated_grub_regcache_for_registers)
5178 (deprecated_grub_regcache_for_register_valid)
5179 (regcache_valid_p): Add function declarations.
5180
5181 * regcache.c: Update copyright.
5182 (regcache_descr_handle): New global variable.
5183 (struct regcache_descr): Define.
5184 (init_legacy_regcache_descr, init_regcache_descr): New functions.
5185 (regcache_descr, xfree_regcache_descr): New functions.
5186 (struct regcache): Define.
5187 (regcache_xmalloc, regcache_xfree): New functions.
5188 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5189 (regcache_dup, regcache_dup_no_passthrough): New functions.
5190 (regcache_valid_p, regcache_read_as_address): New functions.
5191 (deprecated_grub_regcache_for_registers): New function.
5192 (deprecated_grub_regcache_for_register_valid): New function.
5193 (current_regcache): New global variable.
5194 (register_buffer): Add regcache parameter. Update calls.
5195 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
5196 (read_register_gen, write_register_gen): Update register_buffer
5197 call. Test for legacy_p instead of gdbarch_register_read_p or
5198 gdbarch_register_write_p.
5199 (regcache_collect): Update register_buffer call.
5200 (build_regcache): Rewrite. Use deprecated grub functions.
5201 (regcache_save, regcache_save_no_passthrough): New functions.
5202 (regcache_restore, regcache_restore_no_passthrough): New
5203 functions.
5204 (_initialize_regcache): Create the regcache_data_handle. Swap
5205 current_regcache global variable.
5206
5207 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5208 parameter to regcache_read and regcache_write calls.
5209 (sh4_register_read): Ditto.
5210 (sh64_pseudo_register_read): Ditto.
5211 (sh64_register_read): Ditto.
5212 (sh_pseudo_register_write): Ditto.
5213 (sh4_register_write): Ditto.
5214 (sh64_pseudo_register_write): Ditto.
5215 (sh64_register_write): Ditto.
5216
5217 * defs.h (XCALLOC): Define.
5218
152d9db6
GS
52192002-06-19 Grace Sainsbury <graces@redhat.com>
5220
5221 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5222 * m68k-tdep.c (m68k_gdbarch_init): Added.
5223 (m68k_dump_tdep): Added.
5224
170911c7
DJ
52252002-06-19 Daniel Jacobowitz <drow@mvista.com>
5226
5227 * ada-lang.c (fill_in_ada_prototype): Update comment.
5228
2e4ebe70
DJ
52292002-06-19 Daniel Jacobowitz <drow@mvista.com>
5230
5231 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5232 MIPS_ABI_LAST.
5233 (mips_abi_string, mips_abi_strings): New.
5234 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5235 (mips_gdbarch_init): Set tdep->found_abi. Don't set
5236 tdep->mips_abi_string. Honor mips_abi_string. Default to
5237 O32 if no ABI is found.
5238 (mips_dump_tdep): Use mips_abi_strings.
5239 (mips_abi_update): New function.
5240 (_initialize_mips_tdep): Initialize mips_abi_string. Add
5241 ``set mips abi'' and ``show mips abi''. Check the size of
5242 mips_abi_strings.
5243
16775908
AC
52442002-06-19 Andrew Cagney <cagney@redhat.com>
5245
5246 * i386-linux-tdep.c (i386_linux_register_name): Make return type
5247 constant.
5248
5051bfa4 52492002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 5250
5051bfa4
JB
5251 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
5252 current frame using only the first stack size adjustment. All
5253 subsequent size adjustments are not considered to be part of
5254 the "static" part of the current frame.
5255 Compute the address of the saved registers relative to the
5256 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5257 in use in this frame.
5258
56468235
DH
52592002-06-18 Don Howard <dhoward@redhat.com>
5260
5261 * valops.c (value_ind): Use value_at_lazy() when dereferencing
5262 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
5263 suggesting this solution.
5264
0b624158
AC
52652002-06-18 Andrew Cagney <ac131313@redhat.com>
5266
5267 * config/romp/xm-rtbsd.h: Delete file.
5268 * config/romp/rtbsd.mh: Delete file.
5269
221ea385
KS
52702002-06-18 Keith Seitz <keiths@redhat.com>
5271
5272 * breakpoint.c (condition_command): Post breakpoint_modify
5273 when a condition is added to an existing breakpoint.
5274 (commands_command): Likewise for commands.
5275 (set_ignore_count): Likewise for ignore counts.
5276 If no tty, do not simply return, still need to send event
5277 notification.
5278 (ignore_command): Only print a newline if the command came
5279 from a tty.
5280 Don't call breakpoints_changed, since this is now properly
5281 handled by set_ignore_count.
5282
5402eed1
AC
52832002-06-18 Andrew Cagney <cagney@redhat.com>
5284
5285 * MAINTAINERS: Note that cris-elf target can be compiled with
5286 -Werror.
5287 * cris-tdep.c (cris_register_name): Make return type constant.
5288 (cris_breakpoint_from_pc): Ditto.
5289
cc22880b
ML
52902002-06-18 Michal Ludvig <mludvig@suse.cz>
5291
5292 * frame.h (struct frame_info): Change type of context to
5293 'struct context'.
5294
fa88f677
AC
52952002-06-17 Andrew Cagney <cagney@redhat.com>
5296
5297 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5298 pointer.
5299 * gdbarch.h, gdbarch.c: Regenerate.
5300 * config/mips/tm-mips.h (mips_register_name): Update.
5301 * i386-tdep.h (i386_register_name): Update.
5302 * mips-tdep.c (mips_register_name): Update
5303 * alpha-tdep.c (alpha_register_name): Update.
5304 * arch-utils.c (legacy_register_name): Update.
5305 * arch-utils.h (legacy_register_name): Update.
5306 * avr-tdep.c (avr_register_name): Update.
5307 * ia64-tdep.c (ia64_register_name): Update.
5308 * i386-tdep.c (i386_register_name): Update.
5309 * sparc-tdep.c (sparc32_register_name): Update.
5310 (sparc64_register_name): Update.
5311 (sparclite_register_name): Update.
5312 (sparclet_register_name): Update.
5313 * sh-tdep.c (sh_generic_register_name): Update.
5314 (sh_sh_register_name): Update.
5315 (sh_sh3_register_name): Update.
5316 (sh_sh3e_register_name): Update.
5317 (sh_sh_dsp_register_name): Update.
5318 (sh_sh3_dsp_register_name): Update.
5319 (sh_sh4_register_name): Update.
5320 (sh_sh64_register_name): Update.
5321 * s390-tdep.c (s390_register_name): Update.
5322 * rs6000-tdep.c (rs6000_register_name): Update.
5323 * ns32k-tdep.c (ns32k_register_name_32082): Update.
5324 (ns32k_register_name_32382): Update.
5325 * d10v-tdep.c (d10v_ts2_register_name): Update.
5326 (d10v_ts3_register_name): Update.
5327 * xstormy16-tdep.c (xstormy16_register_name): Update.
5328 * vax-tdep.c (vax_register_name): Update.
5329 * v850-tdep.c (v850_register_name): Update.
5330 * m68hc11-tdep.c (m68hc11_register_name): Update.
5331 * mn10300-tdep.c (mn10300_generic_register_name): Update.
5332 (am33_register_name): Update.
5333
ea1e7ef6
GS
53342002-06-17 Grace Sainsbury <graces@redhat.com>
5335
5336 * m68k-tdep.c: Reindented.
5337
9b02dd1b
AC
53382002-06-17 Andrew Cagney <ac131313@redhat.com>
5339
5340 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5341 list of predefined types.
5342
8758dec1
MK
53432002-06-16 Mark Kettenis <kettenis@gnu.org>
5344
b6197528
MK
5345 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5346 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5347 REGISTER_CONVERT_TO_RAW): Remove defines.
5348 (i386_register_virtual_type, i386_register_convertible,
5349 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5350 Remove prototypes.
5351 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5352 macros mentioned above.
5353
82b47e62
MK
5354 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5355 (i386lynx_saved_pc_after_call): Remove prototype.
5356 * i386ly-tdep.c: Include "i386-tdep.h".
5357 (i386lynx_saved_pc_after_call): Make static. Use
5358 read_memory_nobpt instead of read_memory. Use
5359 read_memory_unsigned_integer instead of read_memory_integer.
5360 (i386lynx_init_abi): New function.
5361 (i386lynx_coff_osabi_sniffer): New function.
5362 (_initialize_i386bsd_tdep): New function.
5363
8758dec1
MK
5364 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5365 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5366 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5367 (i386_fix_call_dummy): Remove prototype.
5368 * i386-tdep.c (i386_call_dummy_words): New variable.
5369 (i386_gdbarch_init): Adjust for removal of the
5370 macros mentioned above.
5371
e9e68a56
AC
53722002-06-15 Andrew Cagney <ac131313@redhat.com>
5373
5374 * command.h (add_setshow_auto_boolean_cmd): Replace
5375 add_set_auto_boolean_cmd.
5376 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5377 add_set_auto_boolean_cmd.
5378 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5379 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5380 mask-address'' command.
5381 (show_mask_address): Add cmd parameter.
5382 * remote.c (add_packet_config_cmd): Update. Change type of
5383 set_func and show_func to cmd_sfunc_ftype.
5384 (_initialize_remote): Update `set remote Z-packet'
5385 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5386 (show_remote_protocol_e_packet_cmd): Ditto.
5387 (show_remote_protocol_E_packet_cmd): Ditto.
5388 (show_remote_protocol_P_packet_cmd): Ditto.
5389 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5390 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5391 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5392 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5393 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5394 (show_remote_protocol_Z_packet_cmd): Ditto.
5395 (show_remote_protocol_binary_download_cmd): Ditto.
5396 (show_remote_cmd): Pass NULL to all of above.
5397
fc08ec52
MK
53982002-06-15 Mark Kettenis <kettenis@gnu.org>
5399
5400 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5401 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5402 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5403 POP_FRAME): Remove defines.
5404 (i386_push_arguments, i386_store_struct_return,
5405 i386_extract_return_value, i386_store_return_value,
5406 i386_extract_struct_value_address, i386_push_dummy_frame,
5407 i386_pop_frame): Renove prototypes.
5408 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5409 macros mentioned above.
5410
e707bbc2
AC
54112002-06-15 Andrew Cagney <ac131313@redhat.com>
5412
5413 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5414 add_set_boolean_cmd.
5415 (add_setshow_cmd): New function.
5416 * command.h (add_setshow_boolean_cmd): Replace
5417 add_set_boolean_cmd.
5418 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5419 and ``set rdiromatzero''.
5420 * maint.c (_initialize_maint_cmds): Update commented out code.
5421 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5422 * target.c (initialize_targets): Update `set
5423 trust-readonly-sections'.
5424 * remote.c (_initialize_remote): Update `set remotebreak'.
5425
42fdc8df
MK
54262002-06-15 Mark Kettenis <kettenis@gnu.org>
5427
93924b6b
MK
5428 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5429 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5430 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5431 fit into multi-arch framework.
5432 (i386_breakpoint_from_pc): New function.
5433 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5434 above.
5435
42fdc8df
MK
5436 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5437 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5438 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5439 (i386_frameless_function_invocation, i386_frame_num_args,
5440 i386_frame_init_saved_regs): Remove prototypes.
5441 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5442 macros mentioned above.
5443
9773a94b
AC
54442002-06-15 Andrew Cagney <ac131313@redhat.com>
5445
5446 * cli/cli-decode.c (set_cmd_cfunc): Update.
5447 (set_cmd_sfunc): Update.
5448 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5449 (set_cmd_sfunc, set_cmd_cfunc): Update.
5450 * cli/cli-decode.h: Update.
5451
6e157172
MK
54522002-06-15 Mark Kettenis <kettenis@gnu.org>
5453
5454 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5455 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5456
7f19b9a2
AC
54572002-06-15 Andrew Cagney <ac131313@redhat.com>
5458
5459 * defs.h (auto_boolean): Declare enum.
5460 * command.h (cmd_auto_boolean): Delete enum.
5461 * mips-tdep.c (mask_address_var): Update.
5462 (mips_mask_address_p): Update.
5463 (show_mask_address): Update.
5464 * remote.c (struct packet_config): Update.
5465 (update_packet_config): Update.
5466 (show_packet_config_cmd): Update.
5467 (packet_ok): Update.
5468 (add_packet_config_cmd): Update.
5469 (_initialize_remote):
5470 * command.h: Update.
5471 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5472 (do_setshow_command): Update.
5473 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5474 * cli/cli-decode.h: Update.
5475
1cf88de5
MK
54762002-06-15 Mark Kettenis <kettenis@gnu.org>
5477
22ba8cf2
MK
5478 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5479 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5480 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5481 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5482 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5483 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5484
762c5349
MK
5485 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5486 list of DJGPP COFF targets.
5487
091198bb
MK
5488 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5489 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5490 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5491 (FP0_REGNUM): Remove define.
5492 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5493 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5494 (i386_register_virtual_size): Remove protoype.
5495 * i386-tdep.c (i386_register_virtual_size): Removed.
5496 (i386_extract_return_value, i386_store_return_value): Use
5497 FP0_REGNUM instead of NUM_FREGS to determine whether the
5498 floating-point registers are available.
5499 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5500 Adjust for removal of macros mentioned above.
5501
55022002-06-15 Mark Kettenis <kettenis@gnu.org>
5503
fcc9bf01
MK
5504 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5505 comments.
5506 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5507 Remove prototypes.
5508 (supply_gregset, fill_gregset): Remove use of register keyword and
5509 remove declaration for regmap. Use I386_NUM_GREGS instead of
5510 NUM_REGS and NUM_FREGS.
5511 (FPREGSET_FSAVE_OFFSET): Remove.
5512 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5513 NUM_FREGS to determine whether the floating-point registers are
5514 available.
5515
65e78234
MK
5516 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5517 gnu_store_registers): Replace usage of NUM_GREGS with
5518 I386_NUM_GREGS.
5519
98df6387
MK
5520 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5521 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5522 usage of NUM_GREGS with I386_NUM_GREGS.
5523
099a9414
MK
5524 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5525
57976e88
MK
5526 * i386bsd-nat.c: Include "i386-tdep.h".
5527 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5528 I386_NUM_GREGS.
5529
b335f4a6
MK
5530 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5531 and associated comment. They no longer make any sense, since we
5532 don't use this file anymore on Linux.
5533
1cf88de5
MK
5534 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5535 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5536 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5537 elements in these arrays.
5538 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5539 MAX_NUM_REGS.
5540
daa66587
MK
55412002-06-15 Mark Kettenis <kettenis@gnu.org>
5542
5543 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5544 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5545
26e9b323
AC
55462002-06-14 Andrew Cagney <cagney@redhat.com>
5547
5548 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5549 EXTRACT_RETURN_VALUE.
5550 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5551 EXTRACT_STRUCT_VALUE_ADDRESS.
5552 * gdbarch.h, gdbarch.c: Regenerate.
5553
5554 * values.c (value_being_returned): Handle
5555 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5556 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5557
5558 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5559 * arm-tdep.c (arm_gdbarch_init): Update.
5560 * avr-tdep.c (avr_gdbarch_init): Update.
5561 * cris-tdep.c (cris_gdbarch_init): Update.
5562 * d10v-tdep.c (d10v_gdbarch_init): Update.
5563 * ia64-tdep.c (ia64_gdbarch_init): Update.
5564 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5565 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5566 * s390-tdep.c (s390_gdbarch_init): Update.
5567 * sh-tdep.c (sh_gdbarch_init): Update.
5568 * s390-tdep.c (s390_gdbarch_init): Update.
5569 * sparc-tdep.c (sparc_gdbarch_init): Update.
5570 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5571 * v850-tdep.c (v850_gdbarch_init): Update.
5572 * vax-tdep.c (vax_gdbarch_init): Update.
5573 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5574 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5575
5576 * config/arc/tm-arc.h: Update.
5577 * config/d30v/tm-d30v.h: Update.
5578 * config/fr30/tm-fr30.h: Update.
5579 * config/h8300/tm-h8300.h: Update.
5580 * config/h8500/tm-h8500.h: Update.
5581 * config/i386/tm-i386.h: Update.
5582 * config/i386/tm-ptx.h: Update.
5583 * config/i386/tm-symmetry.h: Update.
5584 * config/i960/tm-i960.h: Update.
5585 * config/m32r/tm-m32r.h: Update.
5586 * config/m68k/tm-delta68.h: Update.
5587 * config/m68k/tm-linux.h: Update.
5588 * config/m68k/tm-m68k.h: Update.
5589 * config/m88k/tm-m88k.h: Update.
5590 * config/mcore/tm-mcore.h: Update.
5591 * config/mips/tm-mips.h: Update.
5592 * config/mn10200/tm-mn10200.h: Update.
5593 * config/pa/tm-hppa.h: Update.
5594 * config/pa/tm-hppa64.h: Update.
5595 * config/sparc/tm-sp64.h: Update.
5596 * config/sparc/tm-sparc.h: Update.
5597 * config/sparc/tm-sparclet.h: Update.
5598 * config/z8k/tm-z8k.h: Update.
5599
5179e78f
AC
56002002-06-14 Andrew Cagney <cagney@redhat.com>
5601
5602 * Makefile.in (i386_linux_tdep_h): Define.
5603 (i386_tdep_h, i387_tdep_h): Define.
5604 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5605 $(i386_tdep_h) and $(i387_tdep_h).
5606 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5607
8201327c
MK
56082002-06-14 Mark Kettenis <kettenis@gnu.org>
5609
edf393ac
MK
5610 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5611 Already covered by the default.
5612
896fb97d
MK
5613 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5614 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5615 (i386_gdbarch_init): Initialize long_double_format and long_double
5616 bit.
5617
8201327c
MK
5618 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5619 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5620 Move these to ...
5621 * config/i386/i386sol2.mh: ... here.
5622 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5623 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5624 (SIGCONTEXT_PC_OFFSET): Remove define.
5625 (IN_SIGTRAMP): Remove define.
5626 * i386-sol2-tdep.c: New file.
5627
5628 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5629 * config/i386/tm-i386nw.h: Removed.
5630
5631 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5632 USE_STRUCT_CONVENTION): Remove defines.
5633 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5634 (get_longjmp_target): Remove prototype.
5635 (IN_SIGTRAMP): Remove define.
5636 (i386bsd_in_sigtramp): Remove prototype.
5637 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5638 function. Update comment accordingly
5639 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5640 (FRAME_SAVED_PC): Remove define.
5641 (i386bsd_frame_saved_pc): Remove prototype.
5642 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5643 GET_LONGJMP_TARGET): Remove defines.
5644 (get_longjmp_target): Remove prototype.
5645 (IN_SIGTRAMP): Remove define.
5646 (i386bsd_in_sigtramp): Remove prototype.
5647 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5648 function. Update comment accordingly
5649 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5650 (FRAME_SAVED_PC): Remove define.
5651 (i386bsd_frame_saved_pc): Remove prototype.
5652 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5653 Remove prototype.
5654 (USE_STRUCT_CONVENTION): Remove prototype.
5655 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5656 declaration.
5657 (_initialize_i386bsd_nat): Revise logic to determine some
5658 constants at compile time when compiling a native GDB. Warn if
5659 things don't match up with what we expect.
5660 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5661 Remove variables.
5662 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5663 to use date stored in `struct gdbarch_tdep'.
5664 (i386bsd_sigcontext_offset): Remove varaible.
5665 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5666 stored in `struct gdbarch_tdep'.
5667 (i386bsd_frame_saved_pc): Make static.
5668 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5669 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5670 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5671 i386fbsd4_sc_pc_offset): New variables.
5672 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5673 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5674 functions.
5675 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5676 functions.
5677 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5678 Modify the value of i386fbsd_sigtramp_start and
5679 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5680 i386fbsd_sigtramp_end.
5681 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5682 function.
5683
5684 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5685 define to i386-linux-tdep.h.
5686 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5687 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5688 defines.
5689 (i386_linux_register_name, i386_linux_register_byte,
5690 i386_linux_register_raw_size): Remove prototypes.
5691 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5692 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5693 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5694 TARGET_WRITE_PC): Remove defines.
5695 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5696 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5697 i386_linux_write_pc): Remove prototypes.
5698 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5699 (get_longjmp_target): Remove prototype.
5700 * i386-linux-tdep.h: New file.
5701 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5702 * i386-linux-tdep.c: Include "i386-tdep.h" and
5703 "i386-linux-tdep.h".
5704 (i386_linux_register_name, i386_linux_register_byte,
5705 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5706 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5707 Make static.
5708 (i386_linux_init_abi): New function.
5709 (_initialize_i386_linux_tdep): New function.
5710
5711 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5712 (i386_saved_pc_after_call): Remove prototype.
5713 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5714 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5715 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5716 (i386_register_name, i386_stab_reg_to_regnum,
5717 i386_dwarf_reg_to_regnum): Remove prototypes.
5718 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5719 SIZEOF_SSE_REGS): Remove defines.
5720 (REGISTER_BYTES): Remove define.
5721 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5722 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5723 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5724 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5725 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5726 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5727 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5728 (get_longjmp_target): Remove prototype.
5729 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5730 (sigtramp_saved_pc): Remove define.
5731 (i386v4_sigtramp_saved_pc): Remove prototype.
5732 * config/i386/tm-go32.h (FRAME_CHAIN,
5733 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5734 (i386go32_frame_saved_pc): Remove prototype.
5735 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5736 (get_longjmp_target): Remove prototype.
5737 * i386-tdep.h: Include "osabi.h".
5738 (enum i386_abi): Removed.
5739 (enum struct_return): New enum.
5740 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5741 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5742 sc_pc_offset members.
5743 (i386_gdbarch_register_os_abi): Remove prototype.
5744 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5745 I386_SSE_NUM_REGS): New defines.
5746 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5747 I386_SSE_SIZEOF_REGS): New defines.
5748 (i386_register_name, i386_register_byte, i386_register_raw_size):
5749 New prototypes.
5750 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5751 (i386bsd_sigtramp_saved_pc): New prototype.
5752 * i386-tdep.c: Don't include "elf-bfd.h".
5753 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5754 i386_frame_chain, i386_saved_pc_after_call): Make static.
5755 (i386_frame_saved_pc): Rewrite to call architecture dependent
5756 function to deal with signal handlers. Make static.
5757 (i386go32_frame_saved_pc): Removed.
5758 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5759 Removed.
5760 (i386_get_longjmp_target): New function.
5761 (default_struct_convention, pcc_struct_convention,
5762 reg_struct_convention, valid_conventions, struct_convention): New
5763 variables.
5764 (i386_use_struct_convention): New function.
5765 (i386v4_sigtramp_saved_pc): Renamed to
5766 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5767 (i386_pc_in_sigtramp): New function.
5768 (i386_abi_names): Removed.
5769 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5770 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5771 Removed.
5772 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5773 i386_gdbarch_register_os_abi): Removed.
5774 (struct i386_abi_handler): Removed.
5775 (i386_abi_handler_list): Removed.
5776 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5777 functions.
5778 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5779 i386_nw_init_abi): New functions.
5780 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5781 Use set_gdbarch_xxx() calls instead of relying on macros for a
5782 number of calls.
5783 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5784 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5785 Register the various architecture variants defined in this file.
5786
ad2f7632
DJ
57872002-06-14 Daniel Jacobowitz <drow@mvista.com>
5788
5789 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5790 (struct main_type): Remove arg_types member. Update comments for
5791 struct field.
5792 (TYPE_ARG_TYPES): Remove.
5793 (TYPE_FN_FIELD_ARGS): Update.
5794 (smash_to_method_type): Update prototype.
5795
5796 * c-typeprint.c (cp_type_print_method_args): Take method type
5797 instead of argument list. Use new argument layout. Simplify.
5798 (c_type_print_args): Use new argument layout. Simplify.
5799 (c_type_print_base): Update call to cp_type_print_method_args.
5800 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5801 argument; use die->type instead. Update call to
5802 smash_to_method_type.
5803 (read_structure_scope): Update call to dwarf2_add_member_fn.
5804 * gdbtypes.c (allocate_stub_method): Update comment.
5805 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5806 Use new argument layout.
5807 (check_stub_method): Use new argument layout. Don't count
5808 void as an argument.
5809 (print_arg_types): Update comments. Use new argument layout.
5810 (recursive_dump_type): Don't print arg_types member.
5811 * hpread.c (hpread_read_struct_type): Use new argument layout.
5812 (fixup_class_method_type): Likewise.
5813 (hpread_type_lookup): Likewise.
5814 * stabsread.c (read_type): Update calls to read_args and
5815 smash_to_method_type.
5816 (read_args): Use new argument layout. Simplify.
5817 * valops.c (typecmp): Use new argument layout. Update parameters
5818 and comments. Simplify.
5819 (hand_function_call): Use new argument layout.
5820 (search_struct_method): Update call to typecmp.
5821 (find_overload_match): Use new argument layout.
5822
6da02953
DJ
58232002-06-13 Daniel Jacobowitz <drow@mvista.com>
5824
5825 * NEWS: Mention multithreaded debug support for gdbserver.
5826
519b2366
DJ
58272002-06-13 Daniel Jacobowitz <drow@mvista.com>
5828
5829 * MAINTAINERS: Mention NEWS.
5830
6c0d6680
DJ
58312002-06-13 Daniel Jacobowitz <drow@mvista.com>
5832
5833 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5834 (struct mips_objfile_private, compare_pdr_entries): New.
5835 (non_heuristic_proc_desc): Read the ".pdr" section if it
5836 is present.
5837
6529d2dd
AC
58382002-06-12 Andrew Cagney <ac131313@redhat.com>
5839
5840 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5841 (arm_debug): New static variable.
5842 (_initialize_arm_tdep): Add ``set debug arm'' command.
5843
26216b98
AC
58442002-06-12 Andrew Cagney <ac131313@redhat.com>
5845
5846 * Makefile.in (sim_arm_h): Define.
5847 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5848 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5849 (arm_register_sim_regno): New function, map an internal REGNUM
5850 onto a simulator register number.
5851 (arm_gdbarch_init): Set register_sim_regno.
5852
814b3ba0
AH
58532002-06-09 Aldy Hernandez <aldyh@redhat.com>
5854
5855 * MAINTAINERS: Add self.
5856
475b0867
JB
58572002-06-11 Jim Blandy <jimb@redhat.com>
5858
919d772c
JB
5859 * source.c (source_info): Mention whether the symtab has
5860 information about preprocessor macros.
5861
475b0867
JB
5862 Call the command `info macro', not `show macro'.
5863 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5864 Fix error message.
5865 (_initialize_macrocmd): Register `info_macro_command' in
5866 `infolist', not `showlist'.
5867
9e364162
DJ
58682002-06-11 Daniel Jacobowitz <drow@mvista.com>
5869
5870 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5871 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5872 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5873 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5874 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5875 unconditionally.
5876 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5877 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5878 (_initialize_mips_tdep): Remove dead code.
5879 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5880 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5881 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5882 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5883 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5884 MIPS_LAST_FP_ARG_REGNUM): Remove.
5885
23aa4c72
ML
58862002-06-11 Michal Ludvig <mludvig@suse.cz>
5887
5888 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5889 (unwind_tmp_obstack_free, parse_frame_info)
5890 (update_context, cfi_read_fp, cfi_write_fp)
5891 (cfi_frame_chain, cfi_init_extra_frame_info)
5892 (cfi_virtual_frame_pointer): Use the above function.
264d1763 5893 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 5894
70eb15a4
CV
58952002-06-11 Corinna Vinschen <vinschen@redhat.com>
5896
5897 * v850-tdep.c (v850_type_is_scalar): New function.
5898 (v850_use_struct_convention): Match current gcc implementation
5899 as close as possible.
5900 (v850_push_arguments): Fix stack_offset handling. Don't write
5901 struct_addr into register. This is done by v850_store_struct_return.
5902 (v850_extract_return_value): Care for structs.
5903 (v850_store_return_value): Ditto.
5904 (v850_store_struct_return): Actually write address.
5905
482a4d06
ML
59062002-06-11 Michal Ludvig <mludvig@suse.cz>
5907
5908 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5909 without debug information too.
5910
d855c300
AC
59112002-06-10 Andrew Cagney <ac131313@redhat.com>
5912
5913 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5914 Make multi-arch pure.
5915 * gdbarch.h, gdbarch.c: Re-generate.
5916 * arm-tdep.c (arm_print_float_info): Update.
5917 * arch-utils.h (default_print_float_info): Update.
5918 * arch-utils.c (default_print_float_info): Update.
5919 * infcmd.c (float_info): Update call.
5920
dd12a101
AC
59212002-06-10 Andrew Cagney <ac131313@redhat.com>
5922
5923 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5924 the front of the initialize list.
5925
101dcfbe
AC
59262002-06-10 Andrew Cagney <ac131313@redhat.com>
5927
5928 * infrun.c (struct inferior_status): Replace fields
5929 selected_frame_address and selected_level with field
5930 selected_frame_id.
5931 (save_inferior_status): Update. Use get_frame_id.
5932 (struct restore_selected_frame_args): Delete.
5933 (restore_selected_frame): Update. Use frame_find_by_id.
5934 (restore_inferior_status): Update.
5935
5936 * breakpoint.h (struct breakpoint): Change type of
5937 watchpoint_frame to frame_id.
5938 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5939 call to get_current_frame.
5940 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5941 get_current_frame.
5942 (watchpoint_check): Use frame_find_by_id.
5943
5944 * frame.h (record_selected_frame): Delete declaration.
5945 * stack.c (record_selected_frame): Delete function.
5946
5947 * frame.h (struct frame_id): Define.
5948 (get_frame_id): Declare.
5949 (frame_find_by_id): Declare.
5950 * frame.c (frame_find_by_id): New function.
5951 (get_frame_id): New function.
5952
304270b6
AV
59532002-06-10 Andrey Volkov <avolkov@transas.com>
5954
5955 * ser-e7kpc.c: Fix duplicated define and call of
5956 _initialize_ser_e7000pc
5957
2f2cf184
DJ
59582002-06-09 Daniel Jacobowitz <drow@mvista.com>
5959
5960 * signals/signals.c (target_signal_from_host): Fix #ifdef
5961 SIGRTMIN case.
5962 (do_target_signal_to_host): Likewise.
5963
caaa3122
DJ
59642002-06-09 Daniel Jacobowitz <drow@mvista.com>
5965
5966 * mips-tdep.c (mips_find_abi_section): New function.
5967 (mips_gdbarch_init): Call it.
5968
6ac5df3a
MK
59692002-06-09 Mark Kettenis <kettenis@gnu.org>
5970
5971 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5972 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5973 after Andrew's 2002-06-08 gdbarch change.
5974
82ea117a
MK
59752002-06-09 Mark Kettenis <kettenis@gnu.org>
5976
5977 * i386-linux-nat.c (suppy_gregset): Don't supply
5978 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5979 register cache.
5980 (fill_gregset): Don't fetch it under the same circumstances.
5981
3c25f8c7
AC
59822002-06-09 Andrew Cagney <cagney@redhat.com>
5983
5984 * Makefile.in (callback_h): Define.
5985 (remote_sim_h): Update path to remote-sim.h.
5986 (remote-rdp.o): Add $(callback_h).
5987 (remote-sim.o): Use $(callback_h).
5988 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5989 * remote-rdp.c: Include "gdb/callback.h".
5990
1029b7fa
MK
59912002-06-09 Mark Kettenis <kettenis@gnu.org>
5992
5993 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5994 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5995
616675d3
AC
59962002-06-08 Andrew Cagney <ac131313@redhat.com>
5997
a3efda28
AC
5998 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5999 * rdi-share/serpardr.c: Ditto.
6000 * rdi-share/unixcomm.c: Ditto.
6001 * rdi-share/serdrv.c: Ditto.
6002 * rdi-share/hostchan.h: Ditto.
6003 * rdi-share/hostchan.c: Ditto.
6004 * rdi-share/host.h: Ditto.
6005 * rdi-share/devsw.c: Ditto.
6006
c5f10366
AC
6007 * objfiles.h: Change type of obj_private to void pointer.
6008 * pa64solib.c: Update copyright. Don't include "assert.h", use
6009 strcmp instead of STREQ, use LONGEST, do not use PTR
6010 * somsolib.c: Ditto.
6011
616675d3
AC
6012 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6013 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6014 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6015
e4b415d9
AC
60162002-06-08 Andrew Cagney <ac131313@redhat.com>
6017
6018 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6019 (default_get_saved_register): Delete function.
6020 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6021 generic_unwind_get_saved_register.
6022 * gdbarch.h, gdbarch.c: Re-generate.
6023
ca0d0b52
AC
60242002-06-08 Andrew Cagney <ac131313@redhat.com>
6025
6026 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6027 generic_func_frame_chain_valid.
6028 * gdbarch.h, gdbarch.c: Re-generate.
6029 * blockframe.c (generic_func_frame_chain_valid): Only check
6030 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
6031 passing FP to PC_IN_CALL_DUMMY.
6032 Fix PR gdb/360.
6033
76860b5f
AC
60342002-06-08 Andrew Cagney <ac131313@redhat.com>
6035
6036 * gdbarch.sh (struct gdbarch_data): Add field init_p.
6037 (register_gdbarch_data): Initialize init_p.
6038 (gdbarch_data): Initialize data pointer using the init function.
6039 (init_gdbarch_data): Delete function.
6040 (gdbarch_update_p): Update.
6041 (initialize_non_multiarch): Update.
6042 (struct gdbarch): Add field initialized_p.
6043 * gdbarch.h, gdbarch.c: Re-generate.
6044
8dda9770
ML
60452002-06-07 Michal Ludvig <mludvig@suse.cz>
6046
6047 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6048 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6049 better do the things actually here.
6050 * x86-64-tdep.c (x86_64_register_name2nr): New.
6051 (x86_64_register_name): Renamed to x86_64_register_nr2name.
6052 (x86_64_gdbarch_init): Respect the above change.
6053 * x86-64-tdep.h (x86_64_register_name2nr)
6054 (x86_64_register_nr2name): Add prototypes.
6055 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6056
3d79a47c
MS
60572002-06-06 Michael Snyder <msnyder@redhat.com>
6058
7bd91a28
MS
6059 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6060 Delete extra braces and re-indent.
6061 (d10v_store_return_value): Char return values
3d79a47c
MS
6062 must be shifted over by one byte in R0.
6063 (d10v_extract_return_value): Delete extra braces, re-indent.
6064
095a4c96
EZ
60652002-06-06 Elena Zannoni <ezannoni@redhat.com>
6066
6067 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6068 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
6069 (d10v_integer_to_address): Rewrite.
6070 (d10v_frame_init_saved_regs): When reading fp and sp registers use
6071 the d10v specific functions which take care of converting to the
6072 correct space.
6073
e8a77ca4
EZ
60742002-06-06 Elena Zannoni <ezannoni@redhat.com>
6075
6076 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6077 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6078
4f2e4a4f
AC
60792002-06-02 Andrew Cagney <ac131313@redhat.com>
6080
6081 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6082 includes.
6083 * config/tm-linux.h: Ditto.
6084 * config/alpha/tm-alphalinux.h: Ditto.
6085 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6086 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6087 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6088 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6089 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6090 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6091 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6092 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6093 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6094 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6095 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6096 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6097 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6098 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6099 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6100 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6101 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6102 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6103 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6104 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6105 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6106 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6107 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6108 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6109 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6110 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6111 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6112 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6113 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6114 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6115 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6116 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6117 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6118 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6119 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6120 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6121 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6122
ae2ab2ce
AS
61232002-05-04 Aidan Skinner <aidan@velvet.net>
6124
6125 * ada-exp.tab.c: New file
6126 * ada-exp.y: New file
6127 * ada-lang.c: New file
6128 * ada-lang.h: New file
6129 * ada-lex.c: New file
6130 * ada-lex.l: New file
6131 * ada-tasks.c: New file
6132 * ada-typeprint.c: New file
6133 * ada-valprint.c: New file
6134
0ddd0135
JT
61352002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6136
6137 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6138 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6139
750fbacc
JT
61402002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6141
6142 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6143 insetead of ppc-linux-tdep.o.
6144 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6145 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6146
df94e18a
AC
61472002-06-02 Andrew Cagney <ac131313@redhat.com>
6148
6149 2002-05-07 Christian Groessler <chris@groessler.org>
6150 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6151 bit register contents for little endian hosts.
6152
1a38ab75
AC
61532002-06-01 Andrew Cagney <ac131313@redhat.com>
6154
6155 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6156 any maintainer.
6157
8b1632ac
AC
61582002-06-01 Andrew Cagney <ac131313@redhat.com>
6159
6160 * gdbarch.h: Regenerate.
6161
627054c8
AC
61622002-06-01 Andrew Cagney <ac131313@redhat.com>
6163
6164 * MAINTAINERS: Add everyone to write-after-approval list.
6165
4f460812
AC
61662002-06-01 Andrew Cagney <ac131313@redhat.com>
6167
6168 * stack.c (frame_info): Use frame_register_unwind instead of
6169 saved_regs. Mention when the SP is on the stack or in a register.
6170
6171 * frame.h (frame_register_unwind_ftype): Define. Document.
6172 (struct frame_info): Add field register_unwind and
6173 register_unwind_cache.
6174 (frame_register_unwind): Declare.
6175 (generic_unwind_get_saved_register): Declare.
6176
6177 * frame.c (frame_register_unwind): New function.
6178 (generic_unwind_get_saved_register): New function.
6179
6180 * blockframe.c (generic_call_dummy_register_unwind): New function.
6181 (frame_saved_regs_register_unwind): New function.
6182 (set_unwind_by_pc): New function.
6183 (create_new_frame): New function.
6184 (get_prev_frame): New function.
6185
de888f76
AC
61862002-05-30 Andrew Cagney <ac131313@redhat.com>
6187
6188 * a29k-share/: Delete directory.
6189 * remote-vx29k.c: Delete file.
6190
2f2c3626
JT
61912002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6192
6193 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6194 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6195
9ce5c36a
JT
61962002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6197
6198 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6199 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6200 (sparc64nbsd-nat.o)
6201 (sparcnbsd-nat.o)
6202 (sparcnbsd-tdep.o): New dependency lists.
6203 * NEWS: Note new UltraSPARC NetBSD native configuration.
6204 * configure.host (sparc64-*-netbsd*): New host.
6205 * configure.tgt (sparc-*-netbsdelf*)
6206 (sparc-*-netbsd*): Set gdb_target to nbsd.
6207 (sparc64-*-netbsd*): New target.
6208 * sparc64nbsd-nat.c: New file.
6209 * sparcnbsd-nat.c: New file.
6210 * sparcnbsd-tdep.c: New file.
6211 * sparcnbsd-tdep.h: New file.
6212 * config/sparc/nbsd.mt: New file.
6213 * config/sparc/nbsd64.mh: New file.
6214 * config/sparc/nbsd64.mt: New file.
6215 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6216 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6217 (HOST_IPC): Remove.
6218 * config/sparc/nbsdaout.mt: Remove.
6219 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6220 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6221 (HOST_IPC): Remove.
6222 * config/sparc/nbsdelf.mt: Remove.
6223 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
6224 sparc-nat.c compatiblity defines.
6225 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
6226 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6227 * config/sparc/tm-nbsd64.h: New file.
6228 * config/sparc/tm-nbsdaout.h: Remove.
6229 * config/sparc/xm-nbsd.h: Remove.
6230
ef3cf062
JT
62312002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6232
6233 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6234 * sparc-tdep.c: Include osabi.h.
6235 (gdbarch_tdep): Add osabi member.
6236 (_initialize_sparc_tdep): Use gdbarch_register.
6237 (sparc_gdbarch_init): Use generic OS ABI framework.
6238 (sparc_dump_tdep): New function.
6239
ee8ff470
KB
62402002-05-30 Kevin Buettner <kevinb@redhat.com>
6241
6242 * corefile.c (do_captured_read_memory_integer): Return non-zero
6243 result.
6244 (safe_read_memory_integer): Copy result of memory read when
6245 status is non-zero. Also, add comments.
6246
7b112f9c
JT
62472002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
6248
6249 * Makefile.in (ppc_tdep_h): Define.
6250 (ppc-linux-nat.o)
6251 (ppc-linux-tdep.o)
6252 (rs6000-tdep.o): Use $(ppc_tdep_h).
6253 (ppc-sysv-tdep.o)
6254 (ppcnbsd-nat.o)
6255 (ppcnbsd-tdep.o): New dependency lists.
6256 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
6257 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6258 (ppc_linux_init_abi): New functions.
7b112f9c
JT
6259 (ppc_sysv_abi_broken_use_struct_convention)
6260 (ppc_sysv_abi_use_struct_convention)
6261 (ppc_sysv_abi_push_arguments): Move to...
6262 * ppc-sysv-tdep.c: ...here.
6263 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6264 * rs6000-tdep.c (process_note_abi_tag_sections)
6265 (get_elfosabi): Remove.
6266 (rs6000_gdbarch_init): Use generic OS ABI framework.
6267 (rs6000_dump_tdep): New function.
6268 (_initialize_rs6000_tdep): Use gdbarch_register.
6269 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6270 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6271 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6272 of ppc-linux-tdep.o.
6273 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6274 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6275 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6276 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6277 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6278 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6279
480dd42a
JB
62802002-05-29 Jim Blandy <jimb@redhat.com>
6281
6282 * macroscope.c (default_macro_scope): Put `void' in empty argument
6283 list.
6284
4182591f
AC
62852002-05-29 Andrew Cagney <ac131313@redhat.com>
6286
6287 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6288 * arch-utils.c: Include "sim-regno.h".
6289 * gdbarch.sh: Don't include "sim-regno.h".
6290 * gdbarch.h, gdbarch.c: Regenerate.
6291 * sim-regno.h (legacy_register_sim_regno): Move declaration from
6292 here.
6293 * arch-utils.h (legacy_register_sim_regno): To here.
6294 * remote-sim.c (legacy_register_sim_regno): Move function from
6295 here.
6296 * arch-utils.c (legacy_register_sim_regno): To here.
6297
8238d0bf
AC
62982002-05-28 Andrew Cagney <ac131313@redhat.com>
6299
6300 * sim-regno.h: New file.
6301 * Makefile.in (sim_regno_h): Define.
6302 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6303 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6304 (legacy_register_sim_regno): New function.
6305 (one2one_register_sim_regno): New function.
6306 (gdbsim_fetch_register): Rewrite.
6307 (gdbsim_store_register): Only store a register when
6308 REGISTER_SIM_REGNO is valid.
6309 * d10v-tdep.c: Include "sim-regno.h".
6310 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6311 (d10v_ts3_register_sim_regno): Ditto.
6312 * gdbarch.sh: Include "sim-regno.h".
6313 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6314 * gdbarch.h, gdbarch.c: Regenerate.
6315 * arch-utils.h (default_register_sim_regno): Delete declaration.
6316 * arch-utils.c (default_register_sim_regno): Delete function.
6317
485721b1
JT
63182002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6319
6320 * ppcnbsd-nat.c: Rewrite.
6321 * ppcnbsd-tdep.c: New file.
6322 * ppcnbsd-tdep.h: New file.
6323 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6324 solib.o, and solib-svr4.o.
6325 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6326 nbsd-tdep.o, and corelow.o.
6327
697f244d
AC
63282002-05-28 Andrew Cagney <ac131313@redhat.com>
6329
6330 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6331 `tr' and `sed'. Mention that `broken' targets are not expected to
6332 build.
6333
f08caad1 63342002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
6335
6336 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6337 Let PC point right after the prologue before looking up symbols.
6338
3139facc
MH
63392002-05-27 Martin M. Hunt <hunt@redhat.com>
6340
6341 * i386-tdep.c (i386_register_virtual_type): Return
6342 builtin_type_vec128i for SSE registers.
6343
6344 * gdbtypes.h (builtin_type_vec128i): Declare.
6345
6346 * gdbtypes.c (build_builtin_type_vec128i): New function.
6347 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6348 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6349 (build_gdbtypes): Initialize new builtin vector types.
6350 (_initialize_gdbtypes): Register new vector types with gdbarch.
6351
6e3ba3b8
JT
63522002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6353
6354 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6355 since it has been multi-arch'd.
6356 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6357 Move Alpha and VAX multi-arch news entries to same section
6358 as other multi-arch news.
6359
93d5585d
JT
63602002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6361
6362 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6363 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6364 static. Rename some register numbers to put them in ns32k-tdep
6365 private namespace.
6366 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6367 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6368 functions.
6369 (_initialize_ns32k_tdep): Use gdbarch_register.
6370 * ns32k-tdep.h: New file.
6371 * ns32knbsd-tdep.c: New file.
6372 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6373 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6374 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6375 REGISTER_BYTES, REGISTER_BYTE): Remove.
6376 * config/ns32k/tm-ns32k.h: New file.
6377 * config/ns32k/tm-umax.h: Remove.
6378
efb2c70e
JT
63792002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6380
6381 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6382 ns32k_store_struct_return, ns32k_extract_return_value,
6383 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6384 functions.
6385 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6386 ns32k_saved_pc_after_call.
6387 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6388 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6389 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6390 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6391 ns32k_extract_struct_value_address.
6392
7bcc927b
JT
63932002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6394
6395 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6396 ns32k_fix_call_dummy): New.
6397 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6398 ns32k_call_dummy_words.
6399 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6400 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6401 CALL_DUMMY_NARGS): Remove.
6402 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6403
78f9d765
JT
64042002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6405
6406 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6407 ns32k_frame_saved_pc, ns32k_frame_args_address,
6408 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6409 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6410 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6411 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6412 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6413 (BREAKPOINT): Remove..
6414 (FRAME_CHAIN): Define as ns32k_frame_chain.
6415 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6416 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6417 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6418 (FRAME_FIND_SAVED_REGS): Remove.
6419 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6420 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6421 (POP_FRAME): Define as ns32k_pop_frame.
6422
f2c762e0
JT
64232002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6424
6425 * ns32k-tdep.c (ns32k_register_byte_32082,
6426 ns32k_register_byte_32382, ns32k_register_raw_size,
6427 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6428 functions.
6429 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6430 ns32k_register_byte_32382.
6431 * config/ns32k/tm-umax.h: Update copyright years.
6432 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6433 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6434 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6435 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6436 (ns32k_get_enter_addr): Fix prototype.
6437
af137673
JT
64382002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6439
6440 * ns32k-tdep.c: Update copyright years.
6441 (ns32k_register_name_32082): New function.
6442 (ns32k_register_name_32382): Ditto.
6443 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6444 (REGISTER_NAME): Define as ns32k_register_name_32382.
6445 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6446 (REGISTER_NAME): Define as ns32k_register_name_32082.
6447
a8bc7b56
JB
64482002-05-24 Jim Blandy <jimb@redhat.com>
6449
6450 * dwarf2read.c (free_line_header): Use xfree, not free.
6451
83a45910
JT
64522002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6453
6454 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6455 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6456
0db71247
AC
64572002-05-23 Andrew Cagney <ac131313@redhat.com>
6458
6459 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6460
b9e5e4dd
AC
64612002-05-23 Andrew Cagney <ac131313@redhat.com>
6462
6463 From Ross Alexander at NEC Europe:
6464 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6465
de530e84
MS
64662002-05-23 Michael Snyder <msnyder@redhat.com>
6467
6468 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6469 for input, rather than parse_and_eval_address.
6470
b91b96f4
AC
64712002-05-23 Andrew Cagney <ac131313@redhat.com>
6472
6473 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6474 * Makefile.in (sim_d10v_h): Update definition.
6475
8b279e7a
AC
64762002-05-24 Andrew Cagney <cagney@redhat.com>
6477
6478 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6479 change `2002-05-22 Michael Snyder' below.
6480 (d10v_push_arguments): Ditto.
6481 (d10v_extract_return_value): Ditto.
6482
0a3d0425
JB
64832002-05-23 Jim Blandy <jimb@redhat.com>
6484
6485 * macrotab.c (check_for_redefinition): Don't complain if the new
6486 definition is the same as the previous one. Take more arguments
6487 to allow the comparison.
6488 (macro_define_object, macro_define_function): Pass more arguments
6489 to check_for_redefinition.
6490
78eac43e
MS
64912002-05-22 Michael Snyder <msnyder@redhat.com>
6492
6493 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6494 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6495 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6496 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6497 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6498 Add a temp variable to save a call (and a memory read).
6499 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6500 if possible (so that PC_IN_CALL_DUMMY will work).
6501
9bc1edb8
CV
65022002-05-22 Corinna Vinschen <vinschen@redhat.com>
6503
6504 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6505
005ef3d2
ML
65062002-05-22 Michal Ludvig <mludvig@suse.cz>
6507
6508 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6509 fde->cie_ptr.
6510 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6511 (dwarf2_build_frame_info): Add offset to fde->initial_location
6512 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
6513 (execute_stack_op): Change type of 'result' from ULONGEST to
6514 CORE_ADDR.
005ef3d2 6515
fcf4f891
JT
65162002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6517
6518 * config/alpha/tm-nbsd.h: Include solib.h.
6519
cfef91e4
JT
65202002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6521
6522 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6523 assumptions about the host's byte order.
6524
9964235a
JT
65252002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6526
6527 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6528 to dependency list.
6529 * alphanbsd-tdep.c: Include solib-svr4.h.
6530 * shnbsd-tdep.c: Ditto.
6531
9eeef8ef
JT
65322002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6533
6534 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6535 nbsd-tdep.h to dependency list.
6536 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6537 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6538 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6539 nbsdaout.mh and nbsdelf.mh consistently.
6540 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6541 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6542 nbsdaout.mt and nbsdelf.mh consistently.
6543 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6544 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6545 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6546 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6547 a.out shared library stuff from here...
6548 * config/nm-nbsdaout.h: ...to here.
6549 * config/tm-nbsd.h: Remove.
6550 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6551 * config/arm/nbsd.mh: Remove.
6552 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6553 nbsd-tdep.o.
6554 * config/arm/nbsdaout.mh: New file.
6555 * config/arm/nbsdelf.mh: New file.
6556 * config/arm/nm-nbsdaout.h: New file.
6557 * config/i386/nbsd.mh: Remove.
6558 * config/i386/nbsd.mt: Remove.
6559 * config/i386/nbsdaout.mh: New file.
6560 * config/i386/nbsdaout.mt: New file.
6561 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6562 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6563 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6564 i386_register_u_addr): Remove.
6565 * config/i386/nm-nbsdaout.h: New file.
6566 * config/i386/nm-nbsdelf.h: Remove.
6567 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6568 (USE_STRUCT_CONVENTION): Remove.
6569 * config/i386/tm-nbsdaout.h: New file.
6570 * config/i386/tm-nbsdelf.h: Remove.
6571 * config/m68k/nbsd.mh: Remove.
6572 * config/m68k/nbsd.mt: Remove.
6573 * config/m68k/nbsdaout.mh: New file.
6574 * config/m68k/nbsdaout.mt: New file.
6575 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6576 * config/m68k/nm-nbsdaout.h: New file.
6577 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6578 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6579 * config/ns32k/nbsd.mh: Remove.
6580 * config/ns32k/nbsd.mt: Remove.
6581 * config/ns32k/nbsdaout.mh: New file.
6582 * config/ns32k/nbsdaout.mt: New file.
6583 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6584 * config/ns32k/nm-nbsdaout.h: New file.
6585 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6586 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6587 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6588 (SVR4_SHARED_LIBS): Remove.
6589 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6590 * config/sparc/nbsd.mh: Remove.
6591 * config/sparc/nbsd.mt: Remove.
6592 * config/sparc/nbsdaout.mh: New file.
6593 * config/sparc/nbsdaout.mt: New file.
6594 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6595 * config/sparc/nbsdelf.mt: New file.
6596 * config/sparc/nm-nbsdaout.h: New file.
6597 * config/sparc/nm-nbsdelf.h: Remove.
6598 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6599 * config/sparc/tm-nbsdaout.h: New file.
6600
257ce470
JT
66012002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6602
6603 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6604 mipsnbsd-tdep.c
6605 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6606
76a6d5fe
JT
66072002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6608
6609 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6610 shnbsd-nat.c.
6611 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6612
45888261
JT
66132002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6614
6615 * NEWS: Note new MIPS NetBSD native configuration.
6616 * configure.host (mips*-*-netbsd*): New host.
6617 * configure.tgt (mips*-*-netbsd*): New target.
6618 * mipsnbsd-nat.c: New file.
6619 * mipsnbsd-tdep.c: New file.
6620 * mipsnbsd-tdep.h: New file.
6621 * config/mips/nbsd.mh: New file.
6622 * config/mips/nbsd.mt: New file.
6623 * config/mips/nm-nbsd.h: New file.
6624 * config/mips/tm-nbsd.h: New file.
6625
70f80edf
JT
66262002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6627
6628 * Makefile.in (SFILES): Add osabi.c.
6629 (COMMON_OBS): Add osabi.o.
6630 (osabi.o): New dependency list.
6631 * osabi.c: New file.
6632 * osabi.h: New file.
6633 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6634
6635 * Makefile.in (alpha_tdep_h): Define and use instead of
6636 alpha-tdep.h.
6637 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6638 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6639 Remove.
6640 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6641 * alpha-tdep.h: Include osabi.h.
6642 (alpha_abi): Remove.
6643 (gdbarch_tdep): Use generic OS ABI framework.
6644 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6645 gdbarch_register_osabi.
6646 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6647 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6648 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6649
6650 * Makefile.in (sh_tdep_h): Add osabi.h.
6651 * sh-tdep.h (sh_osabi): Remove.
6652 (gdbarch_tdep): Use generic OS ABI framework.
6653 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6654 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6655 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6656 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6657
6658 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6659 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6660 gdbarch_register_osabi.
6661 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6662 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6663 (get_elfosabi): Rename to...
6664 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6665 ABI framework support routines.
6666 (arm_gdbarch_init): Use generic OS ABI framework.
6667 (arm_dump_tdep): Likewise.
6668 (_initialize_arm_tdep): Likewise.
6669 * arm-tdep.h: Include osabi.h.
6670 (arm_abi): Remove.
6671 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6672 osabi member.
6673 (arm_gdbarch_register_os_abi): Remove prototype.
6674 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6675 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6676
6677 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6678 * mips-tdep.c: Include osabi.h.
6679 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6680 OS ABI framework.
6681
d194345b
KH
66822002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6683
6684 * h8300-tdep.c: Fix formatting.
6685
70c6b0d1
EZ
66862002-05-20 Elena Zannoni <ezannoni@redhat.com>
6687
6688 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6689 printing vector registers.
6690
165b8e33
AC
66912002-05-19 Andrew Cagney <ac131313@redhat.com>
6692
6693 From Fernando Nasser:
6694 * remote.c (remote_async_open_1): Re-throw the exception when the
6695 connection fails.
6696 (remote_cisco_open): Ditto.
6697 (remote_open_1): Ditto.
6698
36918e70
AC
66992002-05-19 Andrew Cagney <ac131313@redhat.com>
6700
6701 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6702 (remote_start_remote): Add uiout parameter. Pass through to
6703 remote_start_remote_dummy.
6704 (remote_open_1): Use catch_exception instead of catch_errors.
6705 (remote_async_open_1): Ditto.
6706 (remote_cisco_open): Ditto.
6707
ae44c0c4
AC
67082002-05-19 Andrew Cagney <ac131313@redhat.com>
6709
6710 * remote.c (remote_start_remote): Replace PTR with void pointer.
6711 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6712 static.
6713
8efe637d
AC
67142002-05-18 Andrew Cagney <ac131313@redhat.com>
6715
6716 * gdb_indent.sh: Allow the script to be run in the sim directory.
6717
2f1b5984
MK
67182002-05-18 Mark Kettenis <kettenis@gnu.org>
6719
f0f625e2
MK
6720 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6721 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6722
2f1b5984
MK
6723 * corelow.c (core_open): Only call set_gdbarch_from_file if
6724 exec_bfd is NULL.
6725
fc974602
AV
67262002-05-17 Andrey Volkov <avolkov@transas.com>
6727
6728 * h8300-tdep.c: Add support of EXR register
6729 * config/h8300/tm-h8300.h: Ditto.
6730
906709f4
AV
67312002-05-17 Andrey Volkov <avolkov@transas.com>
6732
6733 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6734
6e591d68
AV
67352002-05-17 Andrey Volkov <avolkov@transas.com>
6736
6737 * h8300-tdep.c: Change literal regnums to REGNO.
6738
84f0252a
JB
67392002-05-17 Jim Blandy <jimb@redhat.com>
6740
e0e9281e
JB
6741 * NEWS: Note addition of macro support.
6742
84f0252a
JB
6743 Expand preprocessor macros in C expressions.
6744 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6745 (scan_macro_expansion, scanning_macro_expansion,
6746 finished_macro_expansion): New function declarations.
6747 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6748 variable declarations.
6749 * parser-defs.h (expression_context_pc): New declaration.
6750 * parse.c (expression_context_pc): New variable.
6751 (parse_exp_1): Set expression_context_pc, as well as
6752 expression_context_block.
6753 * c-exp.y (yylex): If we're not already reading the result of a
6754 macro expansion, try to macro-expand the next token. When we're
6755 done scanning a macro expansion, switch back to the mainline text.
6756 Commas and `if's in a macro's expansion don't terminate the input.
6757 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6758 (macro_original_text, macro_expanded_text,
6759 expression_macro_lookup_func, expression_macro_lookup_baton): New
6760 variables.
6761 (scan_macro_expansion, scanning_macro_expansion,
6762 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6763 c_preprocess_and_parse): New functions.
6764 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6765 c_preprocess_and_parse, instead of c_parse.
6766 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6767 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6768
1c509ca8
JR
6769Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6770
6771 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6772 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6773 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6774
2250ee0c
CV
67752002-05-17 Corinna Vinschen <vinschen@redhat.com>
6776
6777 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6778
ab3b8126
JT
67792002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6780
6781 * Makefile.in (sh_tdep_h): Define and use.
6782 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6783 register enum): Move to...
6784 * * sh-tdep.h: ...here.
6785 * sh-tdep.c: Include sh-tdep.h.
6786 * sh3-rom.c: Likewise.
6787 * shnbsd-tdep.c: Likewise.
6788
ed9d4749
MS
67892002-05-16 Michael Snyder <msnyder@redhat.com>
6790
6791 * arm-tdep.c: Spelling fix in comment.
6792
2e276125
JB
67932002-05-16 Jim Blandy <jimb@redhat.com>
6794
6821892e
JB
6795 Add commands for manually expanding macros and showing their
6796 definitions.
6797 * macrocmd.c, macroscope.c, macroscope.h: New files.
6798 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6799 (macroscope_h): New variable.
6800 (HFILES_NO_SRCDIR): Add macroscope.h.
6801 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6802 (macroscope.o, macrocmd.o): New rules.
6803
2e276125
JB
6804 Teach the Dwarf 2 reader to read macro information.
6805 * dwarf2read.c: #include "macrotab.h".
6806 (dwarf_macinfo_buffer): New variable.
6807 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6808 dwarf_macinfo_size.
6809 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6810 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6811 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6812 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6813 dwarf2_macro_spaces_in_definition): New complaints.
6814 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6815 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6816 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6817 the partial symbol table.
6818 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6819 from what's recorded in the partial symbol table.
6820 (read_file_scope): If the compilation unit has a
6821 `DW_AT_macro_info' attribute, read its macro information.
6822 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6823
2f53fe6c
DJ
68242002-05-16 Daniel Jacobowitz <drow@mvista.com>
6825
6826 Fix PR gdb/546
6827 * ser-tcp.c: Don't include <netinet/udp.h>.
6828
2be99286
SC
68292002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6830
6831 * MAINTAINERS: Update my email address.
6832
c9af212b 68332002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
6834
6835 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6836 include file of the same name.
6837
bf5f1a52
CV
68382002-05-16 Corinna Vinschen <vinschen@redhat.com>
6839
6840 * configure.tgt: Mark v850 as multi-arched.
6841 * config/v850/tm-v850.h: Remove file.
6842 * config/v850/v850.mt: Eliminate TM_FILE.
6843
435e042a
CV
68442002-05-16 Corinna Vinschen <vinschen@redhat.com>
6845
6846 * v850-tdep.c: Full multi-arch.
6847 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6848 Define GDB_MULTI_ARCH to 2.
6849
9819c6c8
PM
68502002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6851
6852 * p-exp.y (current_type): New static variable.
6853 Carries the type of the expression at the position that is parsed.
6854 (push_current_type, pop_current_type): Two new functions. Used
6855 to store/restore current_type in expression on specific tokens.
c9af212b
RE
6856 (search_field): New static variable. Set to one after parsing a point
6857 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
6858 (FIELDNAME): New token. After a point only a token belonging to
6859 current_type type definition is allowed.
6860 (all over token rules): reset and change current_type according
6861 to rules.
6862 (exp '[' rule): insert implicit array index field if
6863 exp is a pascal string type.
6864
3a06899a
CV
68652002-05-16 Corinna Vinschen <vinschen@redhat.com>
6866
6867 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6868 frame info. Use frame_info's saved_regs instead of matching member
6869 in extra_frame_info throughout.
6870 (v850_frame_init_saved_regs): New function.
6871 (v850_init_extra_frame_info): Move most functionality into
6872 v850_frame_init_saved_regs().
6873 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6874 (v850_frame_find_saved_regs): Remove declaration.
6875 (FRAME_FIND_SAVED_REGS): Remove definition.
6876 (v850_frame_init_saved_regs): Add declaration.
6877 (FRAME_INIT_SAVED_REGS): Add definition.
6878
6ed14b0e
CV
68792002-05-16 Corinna Vinschen <vinschen@redhat.com>
6880
6881 * v850-tdep.c: Begin multi-arch'ing v850.
6882 (v850_target_architecture_hook): Remove function.
6883 (v850_gdbarch_init): New function. Add code previously in
6884 v850_target_architecture_hook().
6885 (_initialize_v850_tdep): Don't set target_architecture_hook.
6886 Call register_gdbarch_init() instead.
6887
42725910
DJ
68882002-05-16 Daniel Jacobowitz <drow@mvista.com>
6889
6890 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6891 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6892 (fixup_class_method_type): Likewise.
6893
99d9066e
JB
68942002-05-15 Jim Blandy <jimb@redhat.com>
6895
6896 Add macro structures to GDB's symbol tables. Nobody puts anything
6897 in them yet.
6898 * symtab.h (struct symtab): New member: `macro_table'.
6899 * buildsym.h (pending_macros): New global variable.
6900 * buildsym.c: #include "macrotab.h".
6901 (buildsym_init): Initialize `pending_macros'.
6902 (end_symtab): If we found macro information while reading a CU's
6903 debugging info, do build a symtab structure for it. Make the
6904 symtab point to the macro information, and clear the
6905 `pending_macros' pointer which held it while we were reading the
6906 debug info.
6907 (really_free_pendings): Free any pending macro table.
6908 * objfiles.h (struct objfile): New member: `macro_cache'.
6909 * objfiles.c (allocate_objfile): Set allocate and free functions
6910 for the macro cache's objstack.
6911 (free_objfile): Empty the macro cache's obstack.
6912 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6913 set new allocate and free functions for it.
6914 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6915 free functions for the macro cache's objstack. (Why is this
6916 function building its own objfile?)
6917 * symmisc.c (print_objfile_statistics): Print statistics on the
6918 macro bcache.
6919 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6920
c899585b
RE
69212002-05-15 Richard Earnshaw <rearnsha@arm.com>
6922
6923 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6924 (REGISTER_U_ADDR): Delete definition.
6925 (arm_register_u_addr): Delete declaration.
6926
a6cdd8c5
RE
69272002-05-15 Richard Earnshaw <rearnsha@arm.com>
6928
6929 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6930 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6931
c97dcfc7
AC
69322002-05-14 Andrew Cagney <ac131313@redhat.com>
6933
6934 * regcache.c (register_valid): Revise comments refering to "Not
6935 available" and "unavailable".
6936 * frame.c (frame_register_read): Ditto.
6937 * findvar.c (value_of_register): Ditto.
6938
93021b7d
AC
69392002-05-15 Andrew Cagney <cagney@redhat.com>
6940
6941 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6942 (remote-sim.o): Update dependencies.
6943 (d10v-tdep.o): Specify dependencies.
6944 (sim_d10v_h): Define.
6945
a86bc61c
JB
69462002-05-14 Jim Blandy <jimb@redhat.com>
6947
6948 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6949 * macrotab.c (macro_lookup_inclusion, find_definition,
6950 new_macro_table): Same.
6951
6952 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6953 not `! strcmp ()'. This is a dubious improvement.
6954 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6955
6956 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6957 although it's not necessary, to avoid a warning.
6958
2fdde8f8
DJ
69592002-05-14 Daniel Jacobowitz <drow@mvista.com>
6960
6961 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6962 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6963 TYPE_INSTANCE_FLAGS.
6964 (struct main_type): New.
6965 (struct type): Move most members to struct main_type. Change
6966 cv_type and as_type to new type_chain member. Add instance_flags.
6967 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6968 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6969 (finish_cv_type): Remove prototype.
6970 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6971 Set TYPE_CHAIN.
6972 (alloc_type_instance): New function.
6973 (smash_type): New function.
6974 (make_pointer_type, make_reference_type, make_function_type)
6975 (smash_to_member_type, smash_to_method_type): Call smash_type.
6976 (make_qualified_type): New function.
6977 (make_type_with_address_space): Call make_qualified_type.
6978 (make_cv_type): Likewise.
6979 (finish_cv_type): Remove unnecessary function.
6980 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6981 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6982 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6983 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6984 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6985 * hpread.c (hpread_read_struct_type): Likewise.
6986 * stabsread.c (read_struct_type): Likewise.
6987
843fedf4
EZ
69882002-05-14 Elena Zannoni <ezannoni@redhat.com>
6989
6990 * configure.tgt: Add a catch all sh* target, for cases like
6991 sh[2,3,4]-elf and sh-hms.
6992
05a6c72c
KS
69932002-05-14 Keith Seitz <keiths@redhat.com>
6994
6995 * event-loop.c (create_file_handler): Don't do anything but
6996 update data when we are given a fd which we are already
6997 monitoring.
6998
5d085aaf
ML
69992002-05-14 Michal Ludvig <mludvig@suse.cz>
7000
7001 * dwarf2cfi.c (context_cpy): Copy registers correctly.
7002 (update_context): Use __func__ in warnings.
7003
9db8d71f
DJ
70042002-05-14 Daniel Jacobowitz <drow@mvista.com>
7005
7006 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
7007 and tcp_close to net_open and net_close.
7008 (net_open): Accept "udp:" and "tcp:" specifications. Connect
7009 using UDP if requested. Don't try to disable Nagle on UDP
7010 sockets.
7011 * remote.c (remote_serial_open): New function. Warn about UDP.
7012 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7013
5dbc6baa
EZ
70142002-05-13 Elena Zannoni <ezannoni@redhat.com>
7015
7016 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7017
cc3023f7
EZ
70182002-05-13 Elena Zannoni <ezannoni@redhat.com>
7019
7020 * configure.tgt: Remove sh-hms target.
7021 * MAINTAINERS: Don't list sh-hms as a separate target.
7022
ec2bcbe7
JB
70232002-05-13 Jim Blandy <jimb@redhat.com>
7024
7025 Add first preprocessor macro-expansion files.
7026 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7027 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7028 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7029 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7030 (COMMON_OBS): Add macrotab.o, macroexp.o.
7031 (macroexp.o, macrotab.o): New rules.
7032
6d531722
AC
70332002-05-13 Andrew Cagney <ac131313@redhat.com>
7034
7035 * config/m88k/tm-m88k.h: Update copyright.
7036 (m88k_target_write_pc): Declare
7037 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7038 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7039 (SHIFT_INST_REGS): Update definition.
7040 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
7041 using old definition of TARGET_WRITE_PC.
7042 * regcache.c (generic_target_write_pc): Delete code handling
7043 NNPC_REGNUM.
7044 * gdbarch.sh (NNPC_REGNUM): Delete.
7045 * gdbarch.h, gdbarch.c: Regenerate.
7046
3e3f2739
RE
70472002-05-13 Richard Earnshaw <rearnsha@arm.com>
7048
7049 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7050 builtin reg number.
7051
0004e5a2
DJ
70522002-05-13 Daniel Jacobowitz <drow@mvista.com>
7053
7054 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7055 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7056 (gen_address_of, gen_struct_ref, gen_repeat): Use type
7057 access macros.
7058 * c-typeprint.c (cp_type_print_method_args): Likewise.
7059 (c_type_print_args): Likewise.
7060 * d10v-tdep.c (d10v_push_arguments): Likewise.
7061 (d10v_extract_return_value): Likewise.
7062 * expprint.c (print_subexp): Likewise.
7063 * gdbtypes.c (lookup_primitive_typename): Likewise.
7064 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7065 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7066 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7067 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7068 (TYPE_VECTOR): Likewise.
7069 * hpread.c (hpread_read_struct_type)
7070 (fix_static_member_physnames, fixup_class_method_type)
7071 (hpread_type_lookup): Likewise.
7072 * mdebugread.c (parse_symbol, parse_type): Likewise.
7073 * p-lang.c (is_pascal_string_type): Likewise.
7074 * valops.c (hand_function_call): Likewise.
7075 * x86-64-tdep.c (classify_argument): Likewise.
7076
7077 * hpread.c (hpread_read_function_type)
7078 (hpread_read_doc_function_type): Call replace_type.
7079 * dstread.c (create_new_type): Delete.
7080 (decode_dst_structure, process_dst_function): Call alloc_type.
7081 Use type access macros.
7082
dff95cc7
MK
70832002-05-12 Mark Kettenis <kettenis@gnu.org>
7084
7085 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7086 the're not supported by the current architecture.
7087 (i387_fill_fxsave): Likewise.
7088
bbcd32ad
FF
70892002-05-12 Fred Fish <fnf@redhat.com>
7090
7091 * symfile.c (default_symfile_offsets): Arrange for uninitialized
7092 sect_index_xxx members to index the first slot in section_offsets
7093 if all of the section_offsets are zero.
7094
89cf4787
MK
70952002-05-12 Mark Kettenis <kettenis@gnu.org>
7096
7097 * configure.tgt (sparc-*openbsd): Remove entry accidentially
7098 checked in with last change.
7099
1f77ffc5
MK
71002002-05-12 Mark Kettenis <kettenis@gnu.org>
7101
7102 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7103 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
7104 config.sub.
7105
89b8b4a9
DJ
71062002-05-12 Daniel Jacobowitz <drow@mvista.com>
7107
7108 * Makefile.in: Update dependencies.
7109
14a5e767
AC
71102002-05-11 Andrew Cagney <ac131313@redhat.com>
7111
7112 * language.c (local_hex_string_custom): Simplify. Do not depend
7113 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7114
7115 * memattr.c (mem_info_command): Replace calls to
7116 longest_local_hex_string and longest_local_hex_string_custom.
7117 * buildsym.c (make_blockvector): Ditto.
7118 * solib.c (info_sharedlibrary_command): Ditto.
7119 * tracepoint.c (tracepoints_info): Ditto.
7120 * symtab.c (print_msymbol_info): Ditto.
7121
7122 * language.c (local_hex_string): Delete.
7123 (local_hex_string_custom): Delete.
7124 (longest_local_hex_string): Rename to local_hex_string.
7125 (longest_local_hex_string_custom): Rename to
7126 local_hex_string_custom.
7127 * language.h (local_hex_string): Change parameter type to LONGEST.
7128 (local_hex_string_custom): Ditto.
7129 (longest_local_hex_string): Delete declaration.
7130 (longest_local_hex_string_custom): Ditto.
7131
7132 * solib.c: Update copyright.
7133 * memattr.c: Update copyright.
7134
13d01224
AC
71352002-05-11 Andrew Cagney <ac131313@redhat.com>
7136
7137 * arch-utils.h (legacy_register_to_value): Declare.
7138 (legacy_value_to_register): Declare.
7139 (legacy_convert_register_p): Declare.
7140 * arch-utils.c (legacy_register_to_value): New function.
7141 (legacy_value_to_register): New function.
7142 (legacy_convert_register_p): New function.
7143
7144 * gdbarch.sh (REGISTER_TO_VALUE): Define.
7145 (VALUE_TO_REGISTER): Define.
7146 (CONVERT_REGISTER_P): Define.
7147 * gdbarch.h, gdbarch.c: Regenerate.
7148
7149 * valops.c (value_assign): Use CONVERT_REGISTER_P and
7150 VALUE_TO_REGISTER.
7151 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7152 CONVERT_REGISTER_P.
7153
4a1970e4
DJ
71542005-05-11 Daniel Jacobowitz <drow@mvista.com>
7155 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7156
7157 * Makefile.in: Update dependencies for valops.c.
7158 * valops.c: Include "gdb_assert.h".
7159 (typecmp): Skip THIS parameter to methods.
7160 (find_method_list): Remove static_memfuncp argument,
7161 update callers. Check for stub methods.
7162 (find_value_oload_method_list): Don't set *static_memfuncp.
7163 (find_overload_match): Don't check for stub methods. Assert
7164 that methods are not stubbed. Handle static methods.
7165 (value_find_oload_method_list): Remove static_memfuncp argument.
7166 * gdbtypes.c (check_stub_method): Do not add THIS pointer
7167 to the argument list for static stub methods.
7168 * value.h (value_find_oload_method_list): Update prototype.
7169
b2e75d78
AC
71702002-05-11 Andrew Cagney <ac131313@redhat.com>
7171
7172 * arch-utils.h (generic_register_size): Declare.
7173 (generic_register_raw_size, generic_register_virtual_size): Delete
7174 declarations.
7175 * arch-utils.c (generic_register_raw_size): Delete.
7176 (generic_register_size): New function.
7177 (generic_register_virtual_size): Delete.
7178
7179 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7180 default generic_register_size.
7181 * gdbarch.h, gdbarch.c: Re-generate.
7182
7183 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7184 register_virtual_size.
7185 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7186 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7187
451fbdda
AC
71882002-05-11 Andrew Cagney <ac131313@redhat.com>
7189
7190 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7191 * gdbarch.h, gdbarch.c: Regenerate.
7192 * gnu-v3-abi.c: Update copyright.
7193 (vtable_address_point_offset): Update.
7194 (gnuv3_rtti_type): Update.
7195 (gnuv3_baseclass_offset): Update.
7196 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7197 (init_fetch_link_map_offsets): Update.
7198 * remote.c (get_remote_state): Update.
7199
6d2f5cea
DJ
72002002-05-11 Daniel Jacobowitz <drow@mvista.com>
7201
7202 * TODO: Remove value_headof/value_from_vtable_info comment.
7203 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7204 * values.c (value_headof, value_from_vtable_info): Delete.
7205 * value.h (value_from_vtable_info): Delete prototype.
7206
d2324da4
AC
72072002-05-11 Andrew Cagney <ac131313@redhat.com>
7208
7209 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7210 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7211 $(gdb_regex_h).
7212 (gdb_assert_h): Define.
7213 (gdb_wait_h): Define.
7214 (gdb_regex_h): Define.
7215
5c717440
DJ
72162002-05-11 Daniel Jacobowitz <drow@mvista.com>
7217
7218 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7219 * linespec.c (find_methods): Handle GCC 3.x template constructors.
7220
6c7861b3
JT
72212002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7222
7223 * nbsd-tdep.c: Fix comment.
7224
ea5bc2a6
JT
72252002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7226
7227 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7228 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7229 (nbsd-tdep.o): New dependency list.
7230 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
7231 nbsd-tdep.h.
7232 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7233 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7234 * nbsd-tdep.c: New file.
7235 * nbsd-tdep.h: New file.
7236 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
7237 nbsd-tdep.h.
7238 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7239 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7240 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7241 * config/sh/nbsd.mt (TDEPFILES): Ditto.
7242
b28da865
JT
72432002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7244
7245 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7246 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7247 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7248 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7249 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7250 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7251
4b8ff1fa
JT
72522002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7253
7254 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7255 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7256 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7257 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7258 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7259 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7260 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7261
dfe6eb1f
JT
72622002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7263
7264 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
7265 fetch_elfcore_registers to...
7266 * i386nbsd-tdep.c: ...here.
7267 (i386nbsd_use_struct_convention): Rename to...
7268 (i386nbsd_aout_use_struct_convention): ...this.
7269 (i386nbsd_supply_reg): New function.
7270 (i386nbsd_fill_reg): New function.
7271 (fetch_core_registers): Use i386nbsd_supply_reg.
7272 (fetch_elfcore_registers): Likewise.
7273 (_initialize_i386nbsd_tdep): New function.
7274 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7275 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7276 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7277 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7278 (i386nbsd_aout_use_struct_convention): ...this.
7279
20cb8cda
JT
72802002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7281
7282 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7283 (store_inferior_registers): Use shnbsd_fill_reg.
7284 * shnbsd-tdep.c (sh_nbsd_supply_registers,
7285 sh_nbsd_supply_register): Collapse into...
7286 (shnbsd_supply_reg): ...this.
7287 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7288 (shnbsd_fill_reg): ...this.
7289 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7290 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7291 (fetch_core_registers): Use shnbsd_supply_reg.
7292 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7293 (sh_nbsd_core_fns): Rename to...
7294 (shnbsd_core_fns): ...this.
7295 (sh_nbsd_elfcore_fns): Rename to...
7296 (shnbsd_elfcore_fns): ...this.
7297 (sh_nbsd_init_abi): Rename to...
7298 (shnbsd_init_abi): ...this.
7299 (_initialize_sh_nbsd_tdep): Rename to...
7300 (_initialize_shnbsd_tdep): ...this.
7301 * shnbsd-tdep.h (sh_nbsd_supply_registers,
7302 sh_nbsd_supply_register, sh_nbsd_fill_registers,
7303 sh_nbsd_fill_register): Remove prototypes.
7304 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7305
e750d25e
JT
73062002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7307
7308 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7309 (i387-nat.o): Delete dependency list.
7310 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7311 (x86-64-linux-nat.o): Likewise.
7312 * i387-nat.c: Delete file, moving contents to...
7313 * i387-tdep.c: ...here.
7314 * i387-nat.h: Rename...
7315 * i387-tdep.h: ...to this.
7316 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7317 * i386-linux-nat.c: Likewise.
7318 * i386bsd-nat.c: Likewise.
7319 * i386gnu-nat.c: Likewise.
7320 * i386nbsd-nat.c: Likewise.
7321 * i386v4-nat.c: Likewise.
7322 * x86-64-linux-nat.c: Likewise.
7323 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7324 * config/i386/go32.mh (NATDEPFILES): Likewise.
7325 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7326 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7327 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7328 * config/i386/linux.mh (NATDEPFILES): Likewise.
7329 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7330 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7331 * config/i386/obsd.mh (NATDEPFILES): Likewise.
7332 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7333
1aee598a
JT
73342002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7335
7336 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7337 (alphanbsd-nat.o): Remove dependency list.
7338 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7339 * alphanbsd-nat.c: Delete. Contents moved to...
7340 * alphanbsd-tdep.c: ...here.
7341 (_initialize_alphanbsd_tdep): Register core functions.
7342 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7343
12bcb0fe
JT
73442002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7345
7346 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7347 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7348 (alphanbsd-nat.o): Likewise.
7349 (alphabsd-tdep.o): New dependency list.
7350 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7351 (fill_gregset): Use alphabsd_fill_reg.
7352 (supply_fpregset): Use alphabsd_supply_fpreg.
7353 (fill_fpregset): Use alphabsd_fill_fpreg.
7354 (fetch_inferior_registers): Use struct reg and struct fpreg
7355 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7356 and alphabsd_supply_fpreg.
7357 (store_inferior_registers): Use struct reg and struct fpreg
7358 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7359 and alphabsd_fill_fpreg.
7360 * alphabsd-tdep.c: New file.
7361 * alphabsd-tdep.h: New file.
7362 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7363 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7364 alphabsd_supply_fpreg.
7365 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7366 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7367
361d1df0
EC
73682002-05-11 Eric Christopher <echristo@redhat.com>
7369
7370 * mips-tdep.c (mips_double_register_type): Fix thinko.
7371 (mips_single_register_type): Ditto.
7372 * MAINTAINERS: Add self.
7373
92dd7cee
MK
73742002-05-11 Mark Kettenis <kettenis@gnu.org>
7375
7376 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7377 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7378 right thing on architectures with different endianness and/or
7379 integer sizes.
7380
e27da16d
JT
73812002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7382
7383 From Christian Limpach <chris@Pin.LU>
7384 * configure.in: Change sed expression which comments out
7385 NATDEPFILES to also comment out continuation lines.
7386 * configure: Regenerate.
7387
ddde02bd
EZ
73882002-05-10 Elena Zannoni <ezannoni@redhat.com>
7389
7390 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7391 big patch.
7392
1c922164
EZ
73932002-05-10 Elena Zannoni <ezannoni@redhat.com>
7394
7395 * sh-tdep.c: Include correct file.
7396
283150cd
EZ
73972002-05-10 Elena Zannoni <ezannoni@redhat.com>
7398
7399 New support for sh64-elf (sh5) target.
7400
7401 * configure.tgt: For sh64-elf target, default to sh-elf.
7402
7403 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7404 (struct gdbarch_tdep): Add new fields for new registers and ABI
7405 info.
361d1df0 7406
283150cd
EZ
7407 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7408 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7409 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7410 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7411 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7412 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7413 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7414 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7415 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7416 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7417 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7418 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7419 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7420 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7421 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7422 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7423 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7424 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7425 sign_extend, sh64_nofp_frame_init_saved_regs,
7426 sh64_init_extra_frame_info, sh64_get_saved_register,
7427 sh64_extract_struct_value_address, sh64_pop_frame,
7428 sh64_push_arguments, sh64_extract_return_value,
7429 sh64_store_return_value, sh64_show_media_regs,
7430 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7431 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7432 sh_sh64_register_virtual_type,
7433 sh_sh64_register_convert_to_virtual,
7434 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7435 sh64_register_read, sh64_pseudo_register_write,
7436 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7437 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7438 sh64_do_pseudo_register, sh_compact_do_registers_info,
7439 sh64_do_registers_info, sh_gdbarch_init): New functions.
7440
3117ed25
EZ
74412002-05-10 Elena Zannoni <ezannoni@redhat.com>
7442
7443 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7444
2654e6d4
DJ
74452002-05-10 Daniel Jacobowitz <drow@mvista.com>
7446
7447 * linespec.c (decode_line_1): Check for a double quote after
7448 a filename correctly.
7449
9ab3e532
JB
74502002-05-10 Jim Blandy <jimb@redhat.com>
7451
7452 Properly track the size of the current objfile's .debug_line section.
7453 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7454 (DWARF_LINE_SIZE): New macro.
7455 (dwarf2_build_psymtabs_hard): Record the line section's size in
7456 the partial symbol table.
7457 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7458 symbol table.
7459
126fa72d
PS
74602002-05-10 Petr Sorfa <petrs@caldera.com>
7461
7462 * ia64-tdep.c: Handle breakpoints on L instruction type
7463 in MLX instruction bundle by moving the breakpoint to
7464 the third slot (X instruction type) as L holds only data.
7465
1f077a3e
KB
74662002-05-10 Kevin Buettner <kevinb@redhat.com>
7467
7468 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7469 (process_one_symbol): Complain about discarding local symbols
7470 due to a misplaced N_LBRAC entry.
7471
8120c9d5 74722002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
7473
7474 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
7475 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7476 decrease the depth we are at, in the case of templates.
361d1df0 7477
67b2c998
DJ
74782002-05-09 Daniel Jacobowitz <drow@mvista.com>
7479
7480 * mips-tdep.c (mips_float_register_type): New function.
7481 (mips_double_register_type): New function.
7482 (mips_print_register): Use them.
7483 (do_fp_register_row): Likewise.
7484
fd326606
DJ
74852002-05-09 Daniel Jacobowitz <drow@mvista.com>
7486
6609d9af 7487 * signals/signals.c (signals): Remove conditional compilation around
fd326606 7488 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 7489 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 7490
bef35864
MS
74912002-05-09 Michael Snyder <msnyder@redhat.com>
7492
7493 * remote-rdp.c (remote_rdp_can_run): Remove.
7494
c55a3f73
TT
74952002-05-09 Tom Tromey <tromey@redhat.com>
7496
7497 * jv-valprint.c (java_val_print): Handle `char' as a special case
7498 of TYPE_CODE_INT.
7499
b8d5e71d
MS
75002002-05-09 Michael Snyder <msnyder@redhat.com>
7501
7502 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7503 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 7504 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 7505 str r(0123),[sp,#nn].
361d1df0 7506 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
7507 order-independent by placing it in a loop.
7508
e2cd42dd
MS
75092002-05-06 Michael Snyder <msnyder@redhat.com>
7510
7511 * stabsread.c (read_type): Add recognition for new attribute:
7512 "@V;" means that an array type is actually a vector.
7513 This is analogous to the vector flag that's been added to dwarf2.
7514
3ce1502b
MK
75152002-05-09 Mark Kettenis <kettenis@gnu.org>
7516
7517 * i386-tdep.h (i386_abi): New enum.
7518 (struct gdbarch_tdep): Replace os_ident member with abi.
7519 (i386_gdbarch_register_os_abi): New prototype.
7520 * i386-tdep.c (i386_abi_names): New array.
7521 (process_note_abi_tag_sections): Removed.
7522 (process_note_sections): New function.
7523 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7524 (struct i386_abi_handler): New struct.
7525 (i386_abi_handler_list): New variable.
7526 (i386_gdbarch_register_os_abi): New function.
7527 (i386_gdbarch_init): Adapt for the changes given above.
7528
084c156a
DJ
75292002-05-08 Daniel Jacobowitz <drow@mvista.com>
7530
7531 * gregset.h: Say "GNU/Linux".
7532
6599f021
EZ
75332002-05-08 Elena Zannoni <ezannoni@redhat.com>
7534
7535 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7536 (build_gdbtypes): Build builtin_type_v2_float.
7537 (_initialize_gdbtypes): Register new builtin type.
7538
40af4b0c
AC
75392002-05-08 Andrew Cagney <ac131313@redhat.com>
7540
7541 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7542 (clear_gdbarch_swap): New function.
7543 (initialize_non_multiarch): Call.
7544 (gdbarch_update_p): Before calling init(), swap out and clear the
7545 existing architecture.
7546 * gdbarch.c: Regenerate.
7547
4fe84f46
JT
75482002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7549
7550 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7551 alphanbsd-tdep.c.
7552
4015edd1
JT
75532002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7554
7555 * sh-nbsd-nat.c: Rename to...
7556 * shnbsd-nat.c: ...this.
7557 * sh-nbsd-tdep.c: Rename to...
7558 * shnbsd-tdep.c: ...this.
7559 * sh-nbsd-tdep.h: Rename to...
7560 * shnbsd-tdep.h: ...this.
7561 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7562 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7563
0e2bd219
RE
75642002-05-08 Richard Earnshaw <rearnsha@arm.com>
7565
7566 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7567 concatenation for command help messages.
7568
13a38d45
JT
75692002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7570
7571 * NEWS: Note new sh*-*-netbsdelf* configuration.
7572 * configure.host: Set gdb_host_cpu to sh for all sh*.
7573 (sh*-*-netbsdelf*): New host.
7574 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7575 (sh*-*-netbsdelf*): New target.
7576 * sh-nbsd-nat.c: New file.
7577 * sh-nbsd-tdep.c: New file.
7578 * sh-nbsd-tdep.h: New file.
7579 * config/sh/nbsd.mh: New file.
7580 * config/sh/nbsd.mt: New file.
7581 * config/sh/nm-nbsd.h: New file.
7582 * config/sh/tm-nbsd.h: New file.
7583
d658f924
JT
75842002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7585
7586 * sh-tdep.c (sh_osabi_names): Declare.
7587 (process_note_abi_tag_sections): New function.
7588 (get_elfosabi): Ditto.
7589 (sh_gdbarch_register_os_abi): Ditto.
7590 (sh_dump_tdep): Ditto.
7591 _initialize_sh_tdep): Use gdbarch_register to register
7592 sh_gdbarch_init and sh_dump_tdep.
7593 * config/sh/tm-sh.h (sh_osabi): Declare.
7594 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7595
848cfffb
AC
75962002-05-07 Andrew Cagney <ac131313@redhat.com>
7597
7598 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7599 (thumb_scan_prologue): Ditto.
7600 (arm_find_callers_reg): Ditto.
7601 (arm_frame_chain): Ditto.
7602 (arm_init_extra_frame_info): Ditto.
7603 (arm_frame_saved_pc): Ditto.
7604 (arm_pop_frame): Ditto.
7605 (arm_push_return_address): New function.
7606 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7607 call_dummy_location, call_dummy_breakpoint_offset_p,
7608 call_dummy_breakpoint_offset, call_dummy_p,
7609 call_dummy_stack_adjust_p, call_dummy_words,
7610 sizeof_call_dummy_words, call_dummy_start_offset,
7611 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7612 call_dummy_address, push_return_address and push_dummy_frame for
7613 generic dummy frames.
7614
e7d717c0
JT
76152002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7616
7617 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7618 size computation for alloca.
7619 (sh_fp_frame_init_saved_regs): Likewise.
7620
7bbcf283
RE
76212002-05-07 Richard Earnshaw <rearnsha@arm.com>
7622
7623 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7624 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 7625 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
7626 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7627 * remote-rdp.c (remote_rdp_fetch_register): Use
7628 ARM_MAX_REGISTER_RAW_SIZE.
7629 (remote_rdp_store_register): Likewise.
7630
4657573b
ML
76312002-05-07 Michal Ludvig <mludvig@suse.cz>
7632
361d1df0 7633 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
7634 added default labels to switch {} statements.
7635 * x86-64-tdep.c: Ditto.
7636 * x86-64-linux-nat.c: Ditto.
7637
010f3b2f
JT
76382002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7639
7640 * solib.h: Protect against multiple inclusion.
7641
debd256d
JB
76422002-05-06 Jim Blandy <jimb@redhat.com>
7643
9ab3e532
JB
7644 Add first preprocessor macro-expansion files.
7645 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7646 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7647 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7648 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7649 (COMMON_OBS): Add macrotab.o, macroexp.o.
7650 (macroexp.o, macrotab.o): New rules.
7651
debd256d
JB
7652 Separate the job of reading the line number info statement program
7653 header (...expialidocious) out into its own function.
7654 * dwarf2read.c (struct line_head, struct filenames, struct
7655 directories): Replace with...
7656 (struct line_header): New structure, containing the full
7657 contents of the statement program header, including the
7658 include directory and file name tables.
7659 (read_file_scope): If we have line number info, instead of just
7660 calling dwarf_decode_lines to do all the work, call
7661 dwarf_decode_line_header first to get a `struct line_header'
7662 containing the data in the statement program header, and then
7663 pass that to dwarf_decode_lines, which will pick up where that
7664 left off. Be sure to clean up the `struct line_header' object.
7665 (dwarf_decode_line_header, free_line_header, add_include_dir,
7666 add_file_name): New functions.
7667 (dwarf_decode_lines): Move all the code to read the statement
7668 program header into dwarf_decode_line_header. Take the line
7669 header it built as the first argument, instead of the offset to
7670 the compilation unit's line number info. Use the new `struct
7671 line_header' type instead of the old structures. No need to do
7672 cleanups here now, since we don't allocate anything.
7673 (dwarf2_statement_list_fits_in_line_number_section,
7674 dwarf2_line_header_too_long): New complaints.
7675
ac3aafc7
EZ
76762002-05-06 Elena Zannoni <ezannoni@redhat.com>
7677
7678 * gdbtypes.c (init_vector_type): New function.
7679 (build_builtin_type_vec128): Simplify the representation of SIMD
7680 registers.
7681 (build_gdbtypes): Initialize new builtin vector types.
7682 (_initialize_gdbtypes): Register new vector types with gdbarch.
7683 (builtin_type_v4_float, builtin_type_v4_int32,
7684 builtin_type_v8_int16, builtin_type_v16_int8,
7685 builtin_type_v2_int32, builtin_type_v4_int16,
7686 builtin_type_v8_int8): New (renamed) SIMD types.
7687
13e49980
MK
76882002-05-06 Mark Kettenis <kettenis@gnu.org>
7689
7690 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7691 (i387_fill_fxsave): Likewise.
7692
997b20b8
AO
76932002-05-05 Alexandre Oliva <aoliva@redhat.com>
7694
7695 * alpha-tdep.c (alpha_extract_return_value): Don't use
7696 non-constant array size in prototype.
7697
535c96ce
AC
76982002-05-04 Andrew Cagney <ac131313@redhat.com>
7699
7700 From Brian Taylor <briant at model dot com>:
7701 * ui-out.c (ui_out_field_core_addr): Use the function
7702 longest_local_hex_string_custom'to format addresses > 32 bits
7703 wide.
7704
7705 * ui-out.c (ui_out_field_core_addr): Update comment.
7706
bedfa57b
AC
77072002-05-04 Andrew Cagney <ac131313@redhat.com>
7708
7709 * stack.c (select_and_print_frame): Make static. Delete the
7710 parameter `level'.
7711 (func_command): Update call.
7712 (select_frame_command): Delete code computing the frame level.
7713 * frame.h (select_and_print_frame): Delete declaration.
7714
f621c63e
AC
77152002-05-04 Andrew Cagney <ac131313@redhat.com>
7716
7717 * sparc-tdep.c (sparc_get_saved_register): Comment why
7718 get_prev_frame call is safe.
7719
0f7d239c
AC
77202002-05-04 Andrew Cagney <ac131313@redhat.com>
7721
7722 * frame.h (select_frame): Delete level parameter.
7723 * stack.c (select_frame): Update. Use frame_relative_level to
7724 obtain the frame's level.
7725 (select_and_print_frame): Update call.
7726 (select_frame_command): Ditto.
7727 (up_silently_base): Ditto.
7728 (down_silently_base): Ditto.
7729 * ocd.c (ocd_start_remote): Ditto.
7730 * remote-rdp.c (remote_rdp_open): Ditto.
7731 * remote-mips.c (mips_initialize): Ditto.
7732 (common_open): Ditto.
7733 * remote-e7000.c (e7000_start_remote): Ditto.
7734 * m3-nat.c (select_thread): Ditto.
7735 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7736 (child_get_current_exception_event): Ditto.
7737 * varobj.c (varobj_create): Ditto.
7738 (varobj_update): Ditto.
7739 (c_value_of_root): Ditto.
7740 * tracepoint.c (finish_tfind_command): Ditto.
7741 * corelow.c (core_open): Ditto.
7742 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7743 * thread.c (info_threads_command): Ditto.
7744 (switch_to_thread): Ditto.
7745 * infrun.c (normal_stop): Ditto.
7746 (restore_selected_frame): Ditto.
7747 (restore_inferior_status): Ditto.
7748 * breakpoint.c (insert_breakpoints): Ditto.
7749 (watchpoint_check): Ditto.
7750 (bpstat_stop_status): Ditto.
7751 (do_enable_breakpoint): Ditto.
7752 * blockframe.c (flush_cached_frames): Ditto.
7753 (reinit_frame_cache): Ditto.
7754
71d6c7b1
AC
77552002-05-04 Andrew Cagney <ac131313@redhat.com>
7756
7757 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7758 maintainer.
7759
cda6c68a
JB
77602002-05-04 Jim Blandy <jimb@redhat.com>
7761
7762 * gdbtypes.c (replace_type): Doc fix.
7763
5c1c87f0
AC
77642002-05-04 Andrew Cagney <ac131313@redhat.com>
7765
7766 * valprint.c (strcat_longest): Delete commented out function.
7767 Update copyright.
7768
cd9bfe15
AC
77692002-05-04 Andrew Cagney <ac131313@redhat.com>
7770
7771 * MAINTAINERS: Mark a29k as deleted.
7772 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7773 Move new configurations to the top.
7774 * configure.tgt: Remove a29k.
7775 * config/a29k/tm-vx29k.h: Delete.
7776 * config/a29k/vx29k.mt: Delete.
7777 * config/a29k/tm-a29k.h: Delete.
7778 * config/a29k/a29k-udi.mt: Delete.
7779 * config/a29k/a29k.mt: Delete.
7780 * a29k-tdep.c: Delete.
7781 * remote-udi.c: Delete.
7782 * remote-mm.c: Delete.
7783 * remote-eb.c: Delete.
7784 * remote-adapt.c: Delete.
7785 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
7786 * config/s390/s390x.mt: Ditto.
7787 * config/s390/s390.mt: Ditto.
7788 * config/sparc/sparclynx.mh: Ditto.
7789 * config/sparc/linux.mh: Ditto.
7790 * config/pa/hppaosf.mh: Ditto.
7791 * config/pa/hppabsd.mh: Ditto.
7792 * config/ns32k/nbsd.mt: Ditto.
7793 * config/mips/vr5000.mt: Ditto.
7794 * config/m68k/sun3os4.mh: Ditto.
7795 * config/m68k/nbsd.mt: Ditto.
7796 * config/m68k/m68klynx.mh: Ditto.
7797 * config/m32r/m32r.mt: Ditto.
7798 * config/i386/x86-64linux.mt: Ditto.
7799 * config/i386/nbsdelf.mt: Ditto.
7800 * config/i386/nbsd.mt: Ditto.
7801 * config/i386/i386lynx.mh: Ditto.
7802
bf0c5130
AC
78032002-05-04 Andrew Cagney <ac131313@redhat.com>
7804
7805 * target.c (debug_print_register): New function. Handle oversize
7806 registers.
7807 (debug_to_fetch_registers): Call.
7808 (debug_to_store_registers): Call.
7809
2ae1c2d2
JB
78102002-05-03 Jim Blandy <jimb@redhat.com>
7811
13a393b0
JB
7812 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7813 (read_type): Doc fix.
7814 * gdbtypes.c (replace_type): Doc fix.
7815
2ae1c2d2
JB
7816 * stabsread.c (multiply_defined_struct): New complaint.
7817 (read_struct_type): If the type we were passed isn't empty, or
7818 incomplete, don't read the new struct type into it; complain,
7819 and return the original type unchanged. Take a new `type_code'
7820 argument, which is the type code for the new type.
7821 (read_type): Rather than storing the type's type code here, pass
7822 it as an argument to read_struct_type, and let that take care of
7823 storing it. That way, we don't overwrite the original type code,
7824 so read_struct_type can use it to decide whether we're overwriting
7825 something we shouldn't.
7826 (complain_about_struct_wipeout): New function.
7827
8de9bdc4
AC
78282002-05-03 Andrew Cagney <ac131313@redhat.com>
7829
7830 * gdbarch.sh: Assert that gdbarch is non-NULL.
7831 * gdbarch.c: Regenerate.
7832
f773fdbb
JM
78332002-05-03 Jason Merrill <jason@redhat.com>
7834
7835 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7836 and return NULL.
7837
0e04a514
ML
78382002-05-03 Michal Ludvig <mludvig@suse.cz>
7839
7840 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7841 (x86_64_dwarf2gdb_regno_map_length),
7842 (x86_64_dwarf2_reg_to_regnum): Added.
7843 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7844 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7845 (_initialize_x86_64_tdep): Synced with the change above.
7846 (x86_64_skip_prologue): Reformulated message.
7847
065432a8
PM
78482002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7849
7850 * f-exp.y: Also use new prev_lexptr variable
7851 to improve error reporting. Based on Michael Snyder
7852 2002-04-24 dated patch to c-exp.y.
7853 * jv-exp.y: Likewise.
7854 * m2-exp.y: Likewise.
7855
a3162708
EZ
78562002-05-02 Elena Zannoni <ezannoni@redhat.com>
7857
7858 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7859 we are dealing with vectors.
7860
03620c38
PM
78612002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7862
7863 * config/m68k/tm-nbsd.h: Obvious fix,
7864 correct machine name.
7865
6604db2e
PM
78662002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7867
7868 * p-typeprint.c (pascal_type_print_base): Add support
7869 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7870
0906b739
PM
78712002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7872
7873 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7874 for fondamental pascal 'char' type.
7875
e2625b33
PM
78762002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7877
7878 * p-lang.h (is_pascal_string_type): Declaration changed,
7879 new sixth argument of type char ** added.
361d1df0 7880 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
7881 changed. Args length_pos, length_size, string_pos, char_size
7882 can now be NULL. New argument arrayname set to the field
7883 name of the char array. Return value set to char array
7884 field index plus one.
361d1df0 7885 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
7886 is_pascal_string_type function.
7887
cf17c188
AC
78882002-05-02 Andrew Cagney <cagney@redhat.com>
7889
7890 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7891 <cagney@redhat.com> change.
7892 * gdbarch.c: Regenerate.
7893
52bca491
AC
78942002-05-02 Andrew Cagney <cagney@redhat.com>
7895
7896 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7897 before probing for a new one. Detect errorenous gdbarch_init
7898 functions.
7899 * gdbarch.c: Regenerate.
7900
d5e72505
AC
79012002-05-01 Andrew Cagney <cagney@redhat.com>
7902
7903 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7904 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7905 * config/v850/tm-v850.h: Ditto. Update copyright.
7906
af566d9f
AC
79072002-04-30 Andrew Cagney <ac131313@redhat.com>
7908
7909 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7910 current_gdbarch.
7911
880d85fa
MS
79122002-04-30 Michael Snyder <msnyder@redhat.com>
7913
94c30b78
MS
7914 * arm-tdep.c: Whitespace clean-ups.
7915 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7916 should have been removed as part of 4/24 change.
7917
6f5987a6
KB
79182002-04-30 Kevin Buettner <kevinb@redhat.com>
7919
7920 * rs6000-tdep.c: Added comment describing how fpscr register
7921 numbers were chosen.
7922
1a113c93
MS
79232002-04-30 Michael Snyder <msnyder@redhat.com>
7924
7925 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7926
9a6f53fe
EZ
79272002-04-29 Elena Zannoni <ezannoni@redhat.com>
7928
7929 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7930 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7931 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7932
11ed25ac
KB
79332002-04-29 Kevin Buettner <kevinb@redhat.com>
7934
7935 From Louis Hamilton <hamilton@redhat.com>:
7936 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7937 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7938 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7939 not bfd-private xcoff data, to determine wordsize.
7940 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7941
ae232405
AC
79422002-04-29 Andrew Cagney <ac131313@redhat.com>
7943
7944 GDB 5.2 released from 5.2 branch.
7945
91fd20f7
ML
79462002-04-29 Michal Ludvig <mludvig@suse.cz>
7947
7948 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7949 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7950 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7951
2dc5091b
EZ
79522002-04-29 Elena Zannoni <ezannoni@redhat.com>
7953
7954 * rs6000-tdep.c (rs6000_extract_return_value,
7955 rs6000_store_return_value): Handle returning vectors.
7956 (rs6000_gdbarch_init): Use
7957 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7958 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7959 New function.
7960 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7961 vectors.
7962 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7963 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7964
2b9848d8
PM
79652002-04-24 Pierre Muller <ics.u-strasbg.fr>
7966
7967 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7968 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7969 with fprintf_unfiltered (gdb_stderr,...).
7970
f8d17dc5
PM
79712002-04-24 Pierre Muller <ics.u-strasbg.fr>
7972
7973 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7974 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7975 Replace fprintf (stderr,...
7976 with fprintf_unfiltered (gdb_stderr,....
7977 * remote-es.c: Likewise.
7978 * remote-os9k.c: Likewise.
7979 * remote-st.c: Likewise.
7980
2f2f1ad1
AS
79812002-04-28 Andreas Schwab <schwab@suse.de>
7982
7983 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7984 linux-proc.o and gcore.o.
7985
b6779aa2
AC
79862002-04-26 Michal Ludvig <mludvig@suse.cz>
7987
7988 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7989 code without frame pointers.
7990
7e57f5f4
AC
79912002-04-26 Andrew Cagney <ac131313@redhat.com>
7992
7993 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7994 ON_STACK is needed.
7995
2ceb85d0
BE
79962002-04-26 Ben Elliston <bje@redhat.com>
7997
7998 * target.c (do_xfer_memory): Correct reference to the new option
7999 "trust-readonly-sections".
8000
f5f8a009
EZ
80012002-04-26 Elena Zannoni <ezannoni@redhat.com>
8002
8003 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8004 * gdbtypes.c (recursive_dump_type): Output the vector flag.
8005 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8006 vectors.
8007 (read_array_type): Record the fact that this array type is really a
8008 vector (i.e. are passed in by value).
8009
5868c862
JT
80102002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
8011
8012 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8013 * alpha-tdep.c (alpha_sigcontext_addr): New function.
8014 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8015 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8016 * alpha-linux-tdep.c: Include frame.h.
8017 (alpha_linux_sigcontext_addr): New function.
8018 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8019 alpha_linux_sigcontext_addr.
8020 * alpha-osf1-tdep.c: Include gdbcore.h.
8021 (alpha_osf1_sigcontext_addr): New function.
8022 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8023 alpha_osf1_sigcontext_addr.
8024 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8025 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8026
bfb01f37
AC
80272002-04-26 Andrew Cagney <ac131313@redhat.com>
8028
361d1df0 8029 * stack.c (selected_frame_level):
bfb01f37
AC
8030 (select_frame): Do not set selected_frame_level.
8031 * frame.h (selected_frame_level): Delete declaration.
8032
15813d3f
AC
80332002-04-26 Andrew Cagney <ac131313@redhat.com>
8034
8035 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8036 convert_from_func_ptr-addr when AIX / PowerOpen.
8037
6096c27a
AC
80382002-04-25 Andrew Cagney <ac131313@redhat.com>
8039
8040 * valops.c (hand_function_call): Call
8041 generic_save_call_dummy_addr.
8042 * frame.h (generic_save_call_dummy_addr): Declare.
8043 * blockframe.c (struct dummy_frame): Add fields call_lo and
8044 call_hi.
8045 (generic_find_dummy_frame): Check for PC in range call_lo to
8046 call_hi instead of entry_point_address.
8047 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8048 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
8049 (generic_save_call_dummy_addr): New function.
8050
f510d44e
DM
80512002-04-24 David S. Miller <davem@redhat.com>
8052
8053 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8054 sparc_skip_prologue.
8055 (sparc_skip_prologue): Kill frameless_p arg, and use line number
8056 information to find prologue when possible.
8057 (sparc_prologue_frameless_p): Call examine_prologue directly.
8058 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8059 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8060 second argument.
8061 (SKIP_PROLOGUE): Likewise.
8062
15d72a92
JT
80632002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8064
8065 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8066 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8067 indicate that the condition it was testing is always true.
8068 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
8069 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8070 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8071
accc6d1f
JT
80722002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8073
8074 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8075 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8076 tdep->jb_pc and tdep->jb_elt_size.
8077 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8078 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8079 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8080 * alpha-nat.c (get_longjmp_target): Remove.
8081 (JB_ELEMENT_SIZE): Ditto.
8082 (JB_PC): Ditto.
8083 * alpha-tdep.c (alpha_get_longjmp_target): New function.
8084 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
8085 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8086 to alpha_get_longjmp_target.
8087 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8088 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8089 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8090
1bfdc549
AC
80912002-04-25 Andrew Cagney <ac131313@redhat.com>
8092
8093 * README: Update to GDB 5.2.
8094
1bd316f0
AC
80952002-04-25 Andrew Cagney <ac131313@redhat.com>
8096
8097 * gdbarch.sh (LC_ALL): Set to `c'.
8098
2e5ff58c
TR
80992002-04-25 Theodore A. Roth <troth@verinet.com>
8100
8101 * avr-tdep.c: Ran through gdb_indent.sh.
8102
e33ce519
TR
81032002-04-25 Theodore A. Roth <troth@verinet.com>
8104
8105 * MAINTAINERS: Add myself as AVR maintainer.
8106 * NEWS: Note new target avr.
8107
8818c391
TR
81082002-04-25 Theodore A. Roth <troth@verinet.com>
8109
8110 * Makefile.in: Add support for AVR target.
8111 * configure.tgt: Add support for AVR target.
8112 * avr-tdep.c: New file
8113 * config/avr/avr.mt: New file.
8114
79509c2d
TR
81152002-04-25 Theodore A. Roth <troth@verinet.com>
8116
8117 * MAINTAINERS: Add myself to write-after-approval.
8118
dac8068e
PM
81192002-04-24 Pierre Muller <ics.u-strasbg.fr>
8120
8121 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8122 with fprintf_unfiltered (gdb_stderr,....
8123
25bf3106
PM
81242002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8125
8126 Fix PR gdb/508.
8127 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8128
24467a86
PM
81292002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8130
8131 * p-exp.y: Also use new prev_lexptr variable
8132 to improve error reporting. Based on Michael Snyder
8133 2002-04-24 dated patch to c-exp.y.
8134
95b80706
JT
81352002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8136
8137 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8138 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8139 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
8140 to 0.
8141 * config/alpha/tm-alpha.h: Remove forward decls of struct type
8142 and struct value.
8143 (FUNCTION_START_OFFSET): Remove.
8144 (BREAKPOINT): Ditto.
8145
e90cc612
JT
81462002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8147
8148 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8149 * NEWS: Ditto.
8150
6c72f9f9
JT
81512002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8152
8153 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8154 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8155 alpha_linux_pc_in_sigtramp.
8156 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8157 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8158 alpha_osf1_pc_in_sigtramp.
8159 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8160 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8161 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8162 alphafbsd_pc_in_sigtramp.
8163 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8164 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8165 alphanbsd_pc_in_sigtramp.
8166 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8167 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8168
5e4f3379
JT
81692002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8170
8171 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8172
da8ca43d
JT
81732002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8174
8175 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8176 alphanbsd-tdep.c.
8177 (alphanbsd-nat.o): New dependency list.
8178 (alphanbsd-tdep.o): Ditto.
8179 * NEWS: Note new native NetBSD/alpha configuration.
8180 * alphanbsd-nat.c: New file.
8181 * alphanbsd-tdep.c: Ditto.
8182 * configure.host (alpha*-*-netbsd*): New host.
8183 * configure.tgt (alpha*-*-netbsd*): New target.
8184 * config/alpha/nbsd.mh: New file.
8185 * config/alpha/nbsd.mt: Ditto.
8186 * config/alpha/nm-nbsd.h: Ditto.
8187 * config/alpha/tm-nbsd.h: Ditto.
8188
36a6271d
JT
81892002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8190
8191 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8192 (alpha-osf1-tdep.o): New dependency list.
8193 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8194 and skip_sigtramp_frame members.
8195 * alpha-linux-tdep.c: Include gdbcore.h.
8196 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8197 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8198 * alpha-osf1-tdep.c: New file.
8199 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8200 alpha-osf1-dep.c.
8201 (alpha_frame_past_sigtramp_frame): New function.
8202 (alpha_dynamic_sigtramp_offset): Ditto.
8203 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8204 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8205 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8206 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8207 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8208 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8209 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8210 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8211 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8212 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8213 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
8214 to find_solib_trampoline_target.
8215 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8216 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8217 (SKIP_TRAMPOLINE_CODE): Remove.
8218 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8219 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8220 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8221 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8222 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8223 (PROC_SIGTRAMP_MAGIC): Ditto.
8224 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8225 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8226 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8227 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8228 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8229
2f4bc57b
JT
82302002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8231
8232 * NEWS: Note that Alpha targets are now multi-arch.
8233
665132f9
MS
82342002-04-24 Michael Snyder <msnyder@redhat.com>
8235
8236 * parser-defs.h (prev_lexptr): New external variable.
8237 * parse.c (parse_exp_1): Set prev_lexptr to null before
8238 calling the language-specific parser.
8239 * c-exp.y (yylex): Set prev_lexptr to start of current token.
8240 (yyerror): Use prev_lexptr in error reporting.
8241
32872fa7
DJ
82422002-04-24 Daniel Jacobowitz <drow@mvista.com>
8243
8244 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8245 * gregset.h: If FILL_FPXREGSET is defined, provide
8246 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8247 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8248 is defined, call fill_fpxregset.
8249
57e76fac
MS
82502002-04-24 Roland McGrath <roland@frob.com>
8251
8252 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8253 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8254 (supply_gregset, supply_fpregset): New functions.
8255
8256 * gnu-nat.c (gnu_find_memory_regions): New function.
8257 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8258 (gnu_xfer_memory): Add a cast.
8259
f43845b3
MS
82602002-04-24 Michael Snyder <msnyder@redhat.com>
8261
361d1df0 8262 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
8263 loop. Add handling for "str lr, [sp, #-4]!" and for saves
8264 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 8265 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
8266 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
8267 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8268
a0abec03
AC
8269Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
8270
8271 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8272 NUM_PSEUDO_REGS can be used.
8273
d7bd68ca
AC
82742002-04-24 Andrew Cagney <ac131313@redhat.com>
8275
8276 * arch-utils.h: Update copyright.
8277
8278 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8279 * gdbarch.h, gdbarch.c: Re-generate.
8280
8281 * inferior.h (IN_SIGTRAMP): Delete definition.
8282 * arch-utils.c (legacy_pc_in_sigtramp): New function.
8283 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8284
8285 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8286 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8287 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
8288 (find_proc_framesize): Ditto.
8289 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8290 (alpha_init_extra_frame_info): Ditto.
8291 * infrun.c (handle_inferior_event): Ditto.
8292 (handle_inferior_event): Ditto.
8293 (check_sigtramp2): Ditto.
8294 * blockframe.c (create_new_frame): Ditto.
8295 (get_prev_frame): Ditto.
8296 * ppc-linux-tdep.c: Update comments.
8297 * i386-linux-tdep.c: Update comments.
8298 * breakpoint.c (bpstat_what): Update comment.
8299
4867e41e
DM
83002002-04-24 David S. Miller <davem@redhat.com>
8301
21d83aa5
DM
8302 * i960-tdep.c (register_in_window_p): New function.
8303 (i960_find_saved_register): Use it instead of
8304 REGISTER_IN_WINDOW_P.
8305 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8306
4867e41e
DM
8307 * symtab.h (find_stab_function_addr): Kill extern.
8308 * minsyms.c (find_stab_function_addr): Remove from here...
8309 * dbxread.c: ... to here, and mark it static.
8310
69cdf6a2
DM
83112002-04-20 David S. Miller <davem@redhat.com>
8312
8313 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8314 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8315
5a595886
DM
83162002-04-21 David S. Miller <davem@redhat.com>
8317
8318 * remote-vxsparc.c (vx_read_register): Fix typo, we want
8319 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8320 (vx_write_register): Likewise.
8321
1da1a192
JB
83222002-04-23 J. Brobecker <brobecker@gnat.com>
8323
8324 * source.c (is_regular_file): New function.
8325 (openp): Check wether file to open is a regular file
8326 to avoid opening directories.
8327
baa6f10b
JT
83282002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8329
8330 * findvar.c (extract_signed_integer): Cast printf argument
8331 to suppress format warning.
8332 (extract_unsigned_integer): Likewise.
8333 * infcmd.c (registers_info): Likewise.
8334 * top.c (get_prompt_1): Likewise.
8335 * valops.c (value_assign): Likewise.
8336 * valprint.c (print_decimal): Likewise.
8337
b2c4da81
L
83382002-04-22 H.J. Lu (hjl@gnu.org)
8339
8340 * c-exp.y (typebase): Support
361d1df0 8341
b2c4da81
L
8342 [long|long long|short] [signed|unsigned] [int|]
8343
8344 and
8345
8346 signed [long|long long|short] int
8347
f267bd6a
JT
83482002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8349
8350 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8351 and vax-tdep.h.
8352 * vax-tdep.h: New file.
8353 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8354 Make several routines static.
8355 (vax_get_saved_register): New function.
8356 (vax_gdbarch_init): New function.
8357 (_initialize_vax_tdep): Register vax_gdbarch_init.
8358 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8359 Remove macros now under the control of gdbarch.
8360
da3c6d4a
MS
83612002-04-22 Michael Snyder <msnyder@redhat.com>
8362
11d3b27d
MS
8363 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8364 Some whitespace and coding standards tweaks.
da3c6d4a 8365
a33f7558
JT
83662002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8367
8368 * vax-tdep.c: Include regcache.h.
8369 (vax_call_dummy_words): New.
8370 (sizeof_vax_call_dummy_words): New.
8371 (vax_fix_call_dummy): New function.
8372 (vax_saved_pc_after_call): Ditto.
8373 * config/vax/tm-vax.h: Don't include regcache.h.
8374 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8375 (CALL_DUMMY): Remove.
8376 (CALL_DUMMY_WORDS): Define.
8377 (SIZEOF_CALL_DUMMY_WORDS): Define.
8378 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8379
47a73475
MS
83802002-04-18 Michael Snyder <msnyder@redhat.com>
8381
8382 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8383
52efde73
JT
83842002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8385
8386 * vax-tdep.c (vax_frame_chain): New function.
8387 (vax_push_dummy_frame): Ditto.
8388 (vax_pop_frame): Ditto.
8389 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8390 (FRAMELESS_FUNCTION_INVOCATION): Use
8391 generic_frameless_function_invocation_not.
8392 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8393 (POP_FRAME): Use vax_pop_frame.
8394
ea74468c
JT
83952002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8396
8397 * vax-tdep.c (vax_store_struct_return): New function.
8398 (vax_extract_return_value): Ditto.
8399 (vax_store_return_value): Ditto.
8400 (vax_extract_struct_value_address): Ditto.
8401 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8402 vax_store_struct_return.
8403 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8404 (STORE_RETURN_VALUE): Use vax_store_return_value.
8405 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8406
5516aa92
JT
84072002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8408
8409 * vax-tdep.c (vax_frame_saved_pc): New function.
8410 (vax_frame_args_address_correct): Ditto.
8411 (vax_frame_args_address): Ditto.
8412 (vax_frame_locals_address): Ditto.
8413 (vax_frame_num_args): Move code to be in proximity to
8414 other frame-related functions.
8415 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8416 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8417 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8418 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8419 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8420
36af0b35
L
84212002-04-22 H.J. Lu (hjl@gnu.org)
8422
8423 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8424 includedir.
8425
ab62c900
JT
84262002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8427
8428 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8429 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8430 (FRAME_INIT_SAVED_REGS): New macro.
8431
7232b100
JT
84322002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8433
8434 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8435
b70d2aee
JT
84362002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8437
8438 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8439 where needed.
8440 (fetch_osf_core_registers): Likewise.
8441 (supply_gregset): Likewise.
8442
a0e8a2d1 84432002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 8444
a0e8a2d1
JB
8445 * symfile.h (get_section_index): Define.
8446 * symfile.c (get_section_index): New function.
8447 * mdebugread.c (SC_IS_SBSS): New macro.
8448 (SC_IS_BSS): Return true for the scBss storage class only, as
8449 the scSBss storage class refers to the .sbss section.
8450 (parse_partial_symbols): Discard the symbols which associated
8451 section does not exist.
8452 Make sure to use the .sbss section index for symbols which
8453 storage class is scBss, rather than using the .bss section index.
8454
51eb8b08
JT
84552002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8456
8457 * vax-tdep.c: Update copyright years.
8458 (vax_register_name): New function.
8459 (vax_register_byte): Ditto.
8460 (vax_register_raw_size): Ditto.
8461 (vax_register_virtual_size): Ditto.
8462 (vax_register_virtual_type): Ditto.
8463 * config/vax/tm-vax.h: Update copyright years.
8464 (REGISTER_NAMES): Remove.
8465 (REGISTER_NAME): Define.
8466 (REGISTER_BYTE): Use vax_register_byte.
8467 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8468 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8469 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8470
6cc1c0a8
AC
84712002-04-21 Andrew Cagney <ac131313@redhat.com>
8472
8473 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8474 declaration
8475 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8476
9319a2fe
DM
84772002-04-21 David S. Miller <davem@redhat.com>
8478
8479 * arch-utils.c (generic_prologue_frameless_p): Kill
8480 SKIP_PROLOGUE_FRAMELESS_P code.
8481 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8482 references.
8483 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8484 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8485 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8486 references.
8487 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8488 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8489 (sparc_gdbarch_init): Pass it to
8490 set_gdbarch_prologue_frameless_p.
a0e8a2d1 8491
e9ed6d01
JT
84922002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8493
8494 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8495 (alphabsd-nat.o): New dependency list.
8496
36012033
JT
84972002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8498
8499 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8500 alphafbsd-tdep.c.
8501 (alpha-linux-tdep.o): New dependency list.
8502 (alphafbsd-tdep.o): Likewise.
8503
3379287a
JT
85042002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8505
8506 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8507 to here...
8508 * alpha-tdep.c: ...from here.
8509 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8510
4bcbd6cb
JT
85112002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8512
8513 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8514 prototype from here...
8515 * alpha-tdep.h: ...to here.
8516
b31da25e
AC
85172002-04-21 Andrew Cagney <ac131313@redhat.com>
8518
8519 * frame.h (selected_frame_level): Document as deprecated.
8520 (frame_relative_level): Declare.
8521 * stack.c (frame_relative_level): New function.
8522 (selected_frame_level): Document as deprecated.
8523 (select_frame): Do not set the selected_frame_level.
8524
8525 * stack.c (frame_info, record_selected_frame): Update.
8526 (frame_command, current_frame_command): Update.
8527 (up_silently_base, up_command, down_silently_base): Update.
8528 (down_command): Update.
8529 * inflow.c (kill_command): Update.
8530 * tracepoint.c (finish_tfind_command): Update.
8531 * corelow.c (core_open): Update.
8532 * thread.c (info_threads_command): Update.
8533 (do_captured_thread_select): Update.
8534 * infcmd.c (finish_command): Update.
8535 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8536
9c1d6fe5
JT
85372002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8538
8539 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8540
ab89facf
AC
85412002-04-21 Andrew Cagney <ac131313@redhat.com>
8542
8543 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8544 type const.
8545
82a4efa1
JT
85462002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8547
8548 * alphafbsd-tdep.c: Update copyright years. Include
8549 alpha-tdep.h.
8550 (alphafbsd_use_struct_convention): Make static.
8551 (alphafbsd_init_abi): New function.
8552 (_initialize_alphafbsd_tdep): New function.
8553 * config/alpha/tm-fbsd.h: Update copyright years.
8554 (USE_STRUCT_CONVENTION): Remove.
8555
44dffaac
JT
85562002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8557
8558 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8559 an Alpha ABI variant.
8560 (alpha_abi_handler_list): Declare.
8561 (alpha_gdbarch_register_os_abi): New function.
8562 (alpha_gdbarch_init): Give registered ABI variant handlers a
8563 chance to tweak the gdbarch once we have set up defaults.
8564 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8565
65585be4
JT
85662002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8567
8568 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8569 to standard_coerce_float_to_double.
8570 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8571
d9b023cc
JT
85722002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8573
8574 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8575 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8576 from gdbarch_tdep rather than a constant.
8577 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8578 the default text address for all Alpha Unix ABIs.
8579 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8580 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8581
dc129d82
JT
85822002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8583
8584 * alpha-tdep.h: New file. Includes several Alpha target constants
8585 taken from...
8586 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8587 let gdbarch deal with.
8588 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8589 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8590 to dependency list.
8591 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8592 Alpha target register names.
8593 * alphabsd-nat.c: Likewise.
8594 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8595 Alpha target register names. Make serveral routines static.
8596 (alpha_get_saved_register): New function.
8597 (alpha_abi_names): New.
8598 (process_note_abi_tag_sections): New function.
8599 (get_elfosabi): New function.
8600 (alpha_gdbarch_init): New function.
8601 (alpha_dump_tdep): New function.
8602 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8603
d49d1e0a
AC
86042002-04-21 Andrew Cagney <ac131313@redhat.com>
8605
8606 * frame.c (find_saved_register): Delete #ifdef
8607 HAVE_REGISTER_WINDOWS code.
8608 * config/sparc/tm-sparc.h: Update comments.
8609 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8610
92e8c9ed
AC
86112002-04-21 Andrew Cagney <ac131313@redhat.com>
8612
8613 * i960-tdep.c (i960_find_saved_register): New function.
8614 (i960_get_saved_register): New function.
8615 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8616 (i960_get_saved_register): Declare.
8617 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8618
e1925118
DM
86192002-04-20 David S. Miller <davem@redhat.com>
8620
8621 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8622
29673b29
AC
86232002-04-20 Andrew Cagney <ac131313@redhat.com>
8624
8625 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8626 instead of NUM_PSEUDO_REGS.
8627
6c86dcd5
DM
86282002-04-20 David S. Miller <davem@redhat.com>
8629
8630 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8631 GDB_MULTI_ARCH_PARTIAL
8632 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8633 define, let tm-sp64.h do it.
8634
aa40ec90
JT
86352002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8636
8637 * frame.c (find_saved_register): Avoid a NULL pointer
8638 dereference and actually walk the frame list.
8639
0f79675b
AC
86402002-04-20 Andrew Cagney <ac131313@redhat.com>
8641
8642 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8643 sorted in most most-recent-used order. Document.
8644 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8645
f91305dd 86462002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
8647
8648 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8649 instead of ->prev.
8650 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8651 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8652 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8653 instead of ->prev.
8654
73d322b1
EZ
86552002-04-19 Elena Zannoni <ezannoni@redhat.com>
8656
8657 Fix PR gdb/471.
8658 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8659 (build_builtin_type_vec128): Ditto.
8660 (append_composite_type_field): Fix calculation of type length in
8661 union case.
8662
ccd9a834
EZ
86632002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8664
8665 * config/djgpp/README: Update.
8666
8667 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8668 compiler warnings.
8669
a57f9e49
JT
86702002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8671
8672 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8673 (alpha_setup_arbitrary_frame): ...to this.
8674 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8675 for alpha_setup_arbitrary_frame.
8676
f4f9705a
AC
86772002-04-18 Andrew Cagney <cagney@redhat.com>
8678
8679 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8680 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8681
f4f9705a
AC
8682 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8683 * target.h (memory_breakpoint_from_pc): Update declaration.
8684 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8685
8686 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8687 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8688 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8689 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8690 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8691 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8692 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8693 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8694 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8695 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8696 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8697 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8698
8699 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8700 const pointer.
8701 * monitor.c (monitor_insert_breakpoint): Ditto.
8702 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8703
8704 * config/mcore/tm-mcore.h: Update copyright.
8705 * mem-break.c: Ditto.
8706 * xstormy16-tdep.c: Ditto.
8707
29f319b8
PM
87082002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8709
8710 * p-exp.y: Add precedence rule for '^' token.
8711 This removes the shift/reduce conflicts.
8712 Remove the comment concerning these shift/reduce conflicts.
8713
ebeac11a
EZ
87142002-04-18 Elena Zannoni <ezannoni@redhat.com>
8715
8716 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8717 (registers_powerpc_nofp): New register set for processors
8718 without floating point unit.
8719
27c31547
DM
87202002-04-18 David S. Miller <davem@redhat.com>
8721
8722 * MAINTAINERS: Add myself to write-after-approval.
8723
47a73475
MS
87242002-04-17 Michael Snyder <msnyder@redhat.com>
8725
8726 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8727
953836b2
AC
87282002-04-17 Andrew Cagney <ac131313@redhat.com>
8729
8730 * rs6000-tdep.c (frame_initial_stack_address): Use
8731 frame_register_read to read the alloca_reg.
8732
8b0d4340
AC
87332002-04-17 Andrew Cagney <ac131313@redhat.com>
8734
8735 * frame.c (find_saved_register): Find saved registers in the next
8736 not prev frame.
8737 Fix PR gdb/365.
8738
d8864532
AC
87392002-04-17 Andrew Cagney <ac131313@redhat.com>
8740
8741 * gdbarch.sh (LANG): Set to ``c''.
8742
36cc83a3 87432002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 8744
36cc83a3 8745 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 8746
2f4150cc 87472002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
8748
8749 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8750 Update copyright.
8751
628703c6 8752 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 8753 Also fix PR gdb/391.
361d1df0 8754
56157b4a
AC
87552002-04-14 Andrew Cagney <ac131313@redhat.com>
8756
8757 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8758 * aclocal.m4, configure: Re-generate.
8759 Fix PR gdb/391.
361d1df0 8760
6d1e3329
EZ
87612002-04-14 Elena Zannoni <ezannoni@redhat.com>
8762
8763 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8764 instead of tm_print_insn.
8765
cb06fa07
EZ
87662002-04-14 Elena Zannoni <ezannoni@redhat.com>
8767
8768 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8769
f208ba17
AC
87702002-04-14 Andrew Cagney <ac131313@redhat.com>
8771
8772 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8773 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8774 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8775
20f01a46
DH
87762002-04-12 Don Howard <dhoward@redhat.com>
8777
8778 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8779 max_user_call_depth.
8780 (init_cmd_lists): Initialize the new value;
8781 * cli/cli-script.c (execute_user_command): Limit the call depth of
8782 user defined commands. This avoids a core-dump when user commands
8783 are infinitly recursive.
8784
a88376a3
KB
87852002-04-12 Kevin Buettner <kevinb@redhat.com>
8786
8787 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8788 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8789 from tdep struct instead of DEFAULT_LR_SAVE.
8790 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8791 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8792 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8793
f2172603
MS
87942002-04-12 Michael Snyder <msnyder@redhat.com>
8795
694f61fb 8796 * Remote.c: Spelling fix.
20fe79c8
MS
8797 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8798 If no symbol found for "sbrk", try "_sbrk".
8799 (make_output_phdrs): Use bfd_section_name.
8800 (gcore_copy_callback): Use bfd_section_name.
62995fc4 8801 * eval.c: Indentation fix-ups.
169a7369
MS
8802 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8803 in case it gets applied to an address that is already
8804 in the instruction space.
de74f71f
MS
8805 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8806 * symfile.c: Fix indentation, long lines.
f2172603
MS
8807 * source.c: White space fix-up.
8808
cda5a58a
AC
88092002-04-12 Andrew Cagney <cagney@redhat.com>
8810
8811 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8812 * frame.c (frame_register_read): New function. Return non-zero on
8813 success.
8814 (read_relative_register_raw_bytes_for_frame): Delete.
8815 (read_relative_register_raw_bytes): Delete.
8816 * frame.h (frame_register_read): Declare.
8817 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8818 * sh-tdep.c: Ditto.
8819 * infcmd.c (do_registers_info): Ditto.
8820 * hppa-tdep.c: Ditto.
8821 * rs6000-tdep.c: Ditto.
8822 * h8500-tdep.c: Ditto.
8823 * mips-tdep.c: Ditto.
8824 * h8300-tdep.c: Ditto.
8825 * z8k-tdep.c: Ditto.
8826
2ea5f656
KB
88272002-04-12 Kevin Buettner <kevinb@redhat.com>
8828
8829 From Jimi X <jimix@watson.ibm.com>:
8830 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8831 64-bit SysV ABI.
8832
27b15785
KB
88332002-04-12 Kevin Buettner <kevinb@redhat.com>
8834
8835 From Jimi X <jimix@watson.ibm.com>:
8836 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8837 bfd info.
8838
5d57ee30
KB
88392002-04-12 Kevin Buettner <kevinb@redhat.com>
8840
8841 From Jimi X <jimix@watson.ibm.com>:
8842 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8843 register sets for these processor variants.
8844
bc1e36ca
DJ
88452002-04-11 Daniel Jacobowitz <drow@mvista.com>
8846
bc1e36ca
DJ
8847 * regformats/reg-ppc.dat: Support FPSCR.
8848
e3f36dbd
KB
88492002-04-11 Kevin Buettner <kevinb@redhat.com>
8850
8851 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8852 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8853 Add fpscr as an invalid/unfetchable register.
8854 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8855 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8856 (fill_fpregset): Add support for register fpscr.
8857 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8858 (fill_gregset): Account for the fact that register ``mq'' might
8859 not exist.
8860 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8861 (registers_power): Add fpscr to register set at slot 71.
8862 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8863 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8864
943c9c25
MS
88652002-04-11 Michael Snyder <msnyder@redhat.com>
8866
8867 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8868 * configure: Regenerate.
8869 * config.in: Regenerate.
8870 * acconfig.h: Add define for _SYSCALL32.
8871 * core-sol2.c: Remove #define _SYSCALL32.
8872 * solib-legacy.c: Remove #define _SYSCALL32.
8873
d8c0a2e7
AC
88742002-04-10 Andrew Cagney <ac131313@redhat.com>
8875
8876 * stack.c (select_frame): Cleanup internal error message, do not
8877 use %p.
8878
7cc19214
AC
88792002-04-10 Andrew Cagney <ac131313@redhat.com>
8880
8881 * stack.c (select_frame): Check that selected_frame and the
8882 specified level are as expected.
8883 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8884 Update copyright.
8885 * frame.h (struct frame_info): Add field `level'. Update
8886 copyright.
8887 Work-in-progress PR gdb/464.
8888
67a2b77e
AC
88892002-04-10 Andrew Cagney <ac131313@redhat.com>
8890
8891 * maint.c (maint_print_section_info): Rename print_section_info.
8892 (print_bfd_section_info, print_objfile_section_info): Update.
8893 * inferior.h (struct gdbarch): Add opaque declaration.
8894 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8895 * gdbarch.h: Regenerate.
8896
8cfda98c
ML
88972002-04-10 Michal Ludvig <mludvig@suse.cz>
8898
8899 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8900 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8901 (kernel_u_size): Added.
8902 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8903 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8904
ca439ad2 89052002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 8906
ca439ad2
JI
8907 * valarith.c (find_size_for_pointer_math): New function, either returns
8908 the size for a pointer's target, returns 1 for void *, or errors for
8909 incomplete types.
8910 (value_add, value_sub): use find_size_for_pointer_math.
8911
2f2893d9
DJ
89122002-04-09 Daniel Jacobowitz <drow@mvista.com>
8913
8914 * linux-low.c (linux_look_up_symbols): New hook.
8915 (linux_target_ops): Add linux_look_up_symbols.
8916 * remote-utils.c (decode_address): New function.
8917 (look_up_one_symbol): New function.
8918 * server.c (handle_query): Call target look_up_symbols hook.
8919 * server.h (look_up_one_symbol): Add prototype.
8920 * target.h (struct target_ops): Add look_up_symbols hook.
8921
96cb11df
AC
89222002-04-09 Andrew Cagney <ac131313@redhat.com>
8923
8924 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8925 override FP_REGNUM with frame->fp. Update copyright.
8926 * parse.c (num_std_regs, std_regs): Delete.
8927 (target_map_name_to_register): Do not search std_regs. Update
8928 function description.
8929 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8930 declarations. Update copyright.
8931 Fix PR gdb/251.
361d1df0 8932
97658e92
DJ
89332002-04-09 Daniel Jacobowitz <drow@mvista.com>
8934
8935 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8936 after the last symbol in a block.
8937
6044e3eb
PM
89382002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8939
8940 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8941 is non zero as a found symbol.
8942
0406ec40
AC
89432002-04-08 Andrew Cagney <ac131313@redhat.com>
8944
8945 * findvar.c: Include "builtin-regs.h".
8946 (value_of_register): Call value_of_builtin_reg when applicable.
8947 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8948 (target_map_name_to_register): Call
8949 builtin_reg_map_name_to_regnum.
8950 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8951 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8952 (builtin_regs_h): Define.
8953 (builtin-regs.o): New target.
8954 (findvar.o): Add $(builtin_regs_h).
8955 * builtin-regs.c, builtin-regs.h: New files.
8956 * std-regs.c: New file.
8957 Partial fix for PR gdb/251.
8958
56a6dfb9
KB
89592002-04-08 Kevin Buettner <kevinb@redhat.com>
8960
8961 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8962 it's no longer required.
8963
3a808432
AC
89642002-04-08 Andrew Cagney <ac131313@redhat.com>
8965
8966 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8967
7c40d541
KB
89682002-04-08 Kevin Buettner <kevinb@redhat.com>
8969
8970 From Jimi X <jimix@watson.ibm.com>:
8971 * rs6000-tdep.c (rs6000_software_single_step): Use
8972 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8973 and size. Use target_insert_breakpoint() and
8974 target_remove_breakpoint() to insert and remove breakpoints
8975 instead of explicit memory reads and writes.
8976
cc9836a8
KB
89772002-04-08 Kevin Buettner <kevinb@redhat.com>
8978
8979 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8980 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8981 ELF_OBJECT_FORMAT ifdef.
8982
7495d1dc
KB
89832002-04-08 Kevin Buettner <kevinb@redhat.com>
8984
8985 From Jimi X <jimix@watson.ibm.com>:
8986 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8987
4288e836
KB
89882002-04-08 Kevin Buettner <kevinb@redhat.com>
8989
8990 From Jimi X <jimix@watson.ibm.com>:
8991 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8992 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8993
a4e4e501
MK
89942002-04-07 Mark Kettenis <kettenis@gnu.org>
8995
8996 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8997 s/asprintf/xasprintf/.
8998 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8999
006defba
AC
90002002-04-07 Andrew Cagney <ac131313@redhat.com>
9001
9002 I believe Jeff Law denies responsability for this one:
9003 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9004 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9005 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9006 Work-around for PR gdb/366.
9007
7aa83cac
EZ
90082002-04-07 Elena Zannoni <ezannoni@redhat.com>
9009
9010 * remote-e7000.c (write_small, e7000_read_inferior_memory,
9011 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9012 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9013
cf1fcca1
EZ
90142002-04-07 Elena Zannoni <ezannoni@redhat.com>
9015
9016 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9017 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9018 information.
9019
3f289e6f
AC
90202002-04-07 Andrew Cagney <ac131313@redhat.com>
9021
9022 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9023 maintainer.
9024
129188f6
AC
90252002-04-07 Andrew Cagney <ac131313@redhat.com>
9026
9027 * README (Reporting Bugs in GDB): Document the bug web page as the
9028 prefered way of submitting bugs.
9029 Fix PR gdb/402.
9030
1200cd6e
AC
90312002-04-06 Andrew Cagney <ac131313@redhat.com>
9032
9033 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9034 -1. Update comment.
9035 * gdbarch.h, gdbarch.c: Re-generate.
9036
2853c33c
AS
90372002-04-07 Andreas Schwab <schwab@suse.de>
9038
9039 * m68klinux-nat.c (fill_fpregset): Properly pass address of
9040 buffer to regcache_collect.
9041
c2169756
AC
90422002-04-06 Andrew Cagney <ac131313@redhat.com>
9043
9044 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9045 * gdbarch.c, gdbarch.h: Re-generate.
9046
25f1b008
AC
90472002-04-06 Andrew Cagney <ac131313@redhat.com>
9048
9049 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9050 declaration. Fix -Werror.
9051
59263426
DJ
90522002-04-05 Daniel Jacobowitz <drow@mvista.com>
9053
9054 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9055 * gdbarch.c: Regenerate.
9056
f5db4da3
MS
90572002-04-05 Michael Snyder <msnyder@redhat.com>
9058
80f8a6eb
MS
9059 * breakpoint.c (clear_command): Rewrite middle section to
9060 combine two loops with identical control conditions.
9061 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
9062 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9063
ad3dcc5c
L
90642002-04-05 H.J. Lu (hjl@gnu.org)
9065
9066 * solib-svr4.c (bkpt_names): Add "__start".
9067
f32e7a74
AC
90682002-04-04 Andrew Cagney <ac131313@redhat.com>
9069
9070 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9071 as test for 64 bit target.
9072
8227c0ff
AC
90732002-04-05 Andrew Cagney <ac131313@redhat.com>
9074
9075 * h8500-tdep.c (h8500_write_fp): Delete function.
9076 * dwarf2cfi.c (cfi_write_fp): Document as not used.
9077 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9078 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9079 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9080 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9081 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9082 (s390_write_fp):
9083 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9084 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9085 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9086 (d10v_write_fp): Delete function.
9087 * inferior.h (write_fp, generic_target_write_fp): Delete
9088 declarations.
9089 * regcache.c (generic_target_write_fp): Delete function.
9090 (write_fp): Delete function.
9091 * gdbarch.sh (TARGET_WRITE_FP): Delete.
9092 * gdbarch.h, gdbarch.c: Regenerate.
9093 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9094 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9095 (sparc64_write_fp): Delete declaration.
9096 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9097 (h8500_write_fp): Delete declaration.
9098
2757dd86
AC
90992002-04-04 Andrew Cagney <ac131313@redhat.com>
9100
9101 * sparc-tdep.c (sparc64_write_fp): Delete.
9102 (sparc_push_dummy_frame): Replace write_fp call with code to store
9103 the FP directly.
9104 (sparc_gdbarch_init): Do not initialize write_fp.
9105
c69255e1
KB
91062002-04-05 Kevin Buettner <kevinb@redhat.com>
9107
9108 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9109 clause.
9110
ae767bfb
JB
91112002-03-29 Jim Blandy <jimb@redhat.com>
9112
9113 * stack.c (get_selected_block): Add new argument `addr_in_block',
9114 used to return the exact code address we used to select the block,
9115 not just the block.
9116 * blockframe.c (get_frame_block, get_current_block): Same.
9117 * frame.h (get_frame_block, get_current_block,
9118 get_selected_block): Update declarations.
9119 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9120 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9121
84d2ac95
MS
91222002-04-05 Michael Snyder <msnyder@redhat.com>
9123
9124 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9125 warning message.
9126
596aa3bf
JB
91272002-04-05 J. Brobecker <brobecker@gnat.com>
9128
9129 * utils.c (xfullpath): New function.
9130 * defs.h (xfullpath): Add declaration.
9131 * source.c (openp): Use xfullpath in place of gdb_realpath to
9132 avoid resolving the basename part of filenames when the
9133 associated file is a symbolic link. This fixes a potential
9134 inconsistency between the filenames known to GDB and the
9135 filenames it prints in the annotations.
9136 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9137 to be able to match a filename with either the real filename, or
9138 the name of any symbolic link to this file.
9139 (lookup_partial_symtab): Ditto.
9140
c02f5703
MS
91412002-04-04 Michael Snyder <msnyder@redhat.com>
9142
9143 * breakpoint.c: Add support for hardware breakpoints in overlays.
9144 (overlay_events_enabled): New state variable.
9145 (insert_breakpoints): Use overlay_events_enabled to decide
9146 whether to attempt to set a breakpoint at the overlay load addr.
9147 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9148 (remove_breakpoint): Use overlay_events_enabled to decide
9149 whether breakpoints need to be removed from overlay load addr.
9150 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9151 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 9152 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
9153 disable_overlay_breakpoints): Update overlay_events_enabled.
9154
5fb290d7
DJ
91552002-04-04 Daniel Jacobowitz <drow@mvista.com>
9156
9157 * dwarf2read.c (struct function_range): New.
9158 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9159 (check_cu_functions): New.
9160 (read_file_scope): Initialize global function lists.
9161 Call dwarf_decode_line after processing children.
9162 (read_func_scope): Add to global function list.
9163 (dwarf_decode_lines): Call check_cu_functions everywhere
9164 record_line is called. Call record_line with a linenumber
9165 of 0 to mark sequence ends.
9166
7b3fabf0
ML
91672002-04-04 Michal Ludvig <mludvig@suse.cz>
9168
361d1df0 9169 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
9170 change sync with glibc.
9171
bce58c09
JB
91722002-04-03 Jim Blandy <jimb@redhat.com>
9173
9174 * configure.in: Call AC_C_INLINE.
9175 * configure: Regenerated.
361d1df0 9176
2fccf04a
DJ
91772002-04-01 Daniel Jacobowitz <drow@mvista.com>
9178
9179 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9180 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9181
2d1bfe2e
MK
91822002-03-31 Mark Kettenis <kettenis@gnu.org>
9183
a5941fbf
MK
9184 * NEWS: Mention gcore support on FreeBSD/i386.
9185
a90cd31d
MK
9186 * fbsd-proc.c: New file.
9187 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9188 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9189
2d1bfe2e
MK
9190 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9191 while statement.
9192
9eb6e5a1
JB
91932002-03-29 Jim Blandy <jimb@redhat.com>
9194
9195 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9196 unescaped newlines in string literals, but newer ones don't. So
9197 escape them.
9198
f02df580
MS
91992002-03-26 Michael Snyder <msnyder@redhat.com>
9200 Andrew Cagney <cagney@redhat.com>
9201
361d1df0 9202 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
9203 restore file to memory.
9204 * cli/cli-dump.h: New file.
9205 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 9206 * NEWS: Mention new commands.
f02df580 9207
109f874e
MS
92082002-03-28 Michael Snyder <msnyder@redhat.com>
9209
9210 * symfile.c (symbol_file_add): Move test for null symbols to later.
9211
520f6ade
AC
92122002-03-27 Andrew Cagney <ac131313@redhat.com>
9213
9214 From veksler at il.ibm.com:
9215 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9216 the xstrduped original path.
9217 Fix PR gdb/417.
9218
d4654627
MS
92192002-03-27 Michael Snyder <msnyder@redhat.com>
9220
9221 * breakpoint.c (_initialize_breakpoint): Clean up help string.
9222 * infcmd.c (_initialize_infcmd): Ditto.
9223 * language.c (_initialize_language): Ditto.
9224 * symfile.c (_initialize_symfile): Ditto.
9225 * top.c (_init_main): Ditto.
9226 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9227
6be8bc0c
EZ
92282002-03-27 Elena Zannoni <ezannoni@redhat.com>
9229
9230 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9231 vector registers handling.
9232 (skip_prologue): Handle new AltiVec instructions. Fill in new
9233 fields of frame data.
9234 (frame_get_saved_regs): Fill in information for AltiVec registers.
9235
12af6855
JB
92362002-03-27 Jim Blandy <jimb@redhat.com>
9237
9238 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9239 a function; leave this macro here to invoke that function.
9240 (symbol_init_mangled_name): Declaration for that function.
9241 * symtab.c (symbol_init_mangled_name): New function.
9242
dc672865
AC
92432002-03-27 Andrew Cagney <ac131313@redhat.com>
9244
9245 * valarith.c: Replace strerror with safe_strerror.
9246 * tracepoint.c: Ditto.
9247 * lin-lwp.c: Ditto.
9248 * go32-nat.c: Ditto.
9249 * inflow.c: Ditto.
9250 * gnu-nat.c: Ditto.
9251
d96429cd
AS
92522002-03-27 Andreas Schwab <schwab@suse.de>
9253
9254 * event-top.c (command_line_handler): Remove useless if.
9255
7e336ba1
AJ
92562002-03-27 Andreas Jaeger <aj@suse.de>
9257
9258 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9259 comment.
9260
de220d0f
ML
92612002-03-27 Michal Ludvig <mludvig@suse.cz>
9262
9263 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9264 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9265 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9266 (x86_64_linux_dr_get_status, supply_gregset),
9267 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9268 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9269 (x86_64_register_info_table): Add.
9270 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9271 (x86_64_register_raw_size, x86_64_register_virtual_type),
9272 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9273 general x86_64_register_info_table.
9274 (i386_gdbarch_init): gdbarch_register_bytes is now set
9275 dynamicaly during initialization.
9276 * regformats/reg-x86-64.dat: Synced with changes to registers above.
9277 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 9278
0e98d0a7
DJ
92792002-03-27 Daniel Jacobowitz <drow@mvista.com>
9280
9281 * gdbserver/server.c (main): Call target_signal_to_host_p
9282 and target_signal_to_host on signals received from the remote.
9283 * gdbserver/remote-utils.c (prepare_resume_reply): Call
9284 target_signal_from_host on signals sent to the remote.
9285 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
9286 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
9287
3130066b
DJ
92882002-03-27 Daniel Jacobowitz <drow@mvista.com>
9289
9290 * signals/signals.c: Include "server.h" in gdbserver build.
9291 (target_signal_from_name): Don't use STREQ.
9292 (_initialize_signals): Likewise. Don't include function in
9293 gdbserver build.
9294
9aedf4f4
DJ
92952002-03-27 Daniel Jacobowitz <drow@mvista.com>
9296
9297 * signals.c: Moved to...
9298 * signals/signals.c: Here.
7e336ba1 9299 * Makefile (signals.o): Update.
9aedf4f4 9300
3fa41cdb
JL
93012002-03-26 Jeff Law (law@redhat.com)
9302
9303 * somread.c (som_symtab_read): Remove some commented out code and
9304 updated related comments. Do not set the minimal symbol table to
9305 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9306 in a dynamic executable.
9307 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9308 where we are unable to find the minimal symbol for the given
9309 PC value.
9310
ee677e8d
MS
93112002-03-25 Jeff Law (law@redhat.com)
9312
9313 * linux-proc.c (read_mapping): Scan up to end of line for filename.
9314
e76e1718
ML
93152002-03-25 Michal Ludvig <mludvig@suse.cz>
9316
9317 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9318
18a642a1
AC
93192002-03-23 Andrew Cagney <ac131313@redhat.com>
9320
9321 * command.h: Update copyright.
9322 (struct cmd_list_element): Replace definition with opaque
9323 declaration.
9324 (enum cmd_types): Document that it will eventually be moved to
9325 cli/cli-decode.h
9326 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9327 (MALLOCED_REPLACEMENT): Delete macro.
9328 * Makefile.in (cli_decode_h): Add $(command_h).
9329 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 9330 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
9331 * completer.c: Include "cli/cli-decode.h".
9332 * maint.c: Include "cli/cli-decode.h".
9333 * cli/cli-decode.h: Include "command.h".
9334 (enum command_class): Delete.
9335 (enum cmd_types): Comment out.
9336 (enum cmd_auto_boolean): Delete.
9337 (enum var_types): Delete.
9338
b2875cc0
AC
93392002-03-23 Andrew Cagney <ac131313@redhat.com>
9340
9341 * cli/cli-decode.c: Include "gdb_assert.h".
9342 (add_set_or_show_cmd): New static function.
9343 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9344 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9345 all fields, such as func, from the set command.
9346
3b45974e
AC
93472002-03-23 Andrew Cagney <ac131313@redhat.com>
9348
9349 * MAINTAINERS (sh-elf): Change warning flag to -w.
9350
823ca731
AC
93512002-03-23 Andrew Cagney <cagney@redhat.com>
9352
9353 * defs.h (error): Add printf format attribute.
9354 * thread-db.c (thread_from_lwp): Fix error format string.
9355 * stack.c (parse_frame_specification): Ditto.
9356 * cli/cli-decode.c (undef_cmd_error): Ditto.
9357 * scm-lang.c (scm_lookup_name): Ditto.
9358 * tracepoint.c (trace_error): Ditto.
9359 * remote-utils.c (usage): Ditto.
9360 * remote.c (compare_sections_command): Ditto.
9361 Fix PR gdb/328.
9362
0e101458
AC
93632002-03-22 Andrew Cagney <ac131313@redhat.com>
9364
9365 * gdbtypes.c (append_composite_type_field): New function.
9366 (init_composite_type): New function.
9367 * gdbtypes.h (append_composite_type_field): Declare.
9368 (init_composite_type): Ditto.
9369
8e0662df
EZ
93702002-03-22 Elena Zannoni <ezannoni@redhat.com>
9371
9372 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 9373 function.
8e0662df
EZ
9374 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9375 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9376 structure returning convention for SYSV ABI case, but not
9377 for GNU/Linux, FreeBSD, or NetBSD.
9378
3121eff0
DJ
93792002-03-22 Daniel Jacobowitz <drow@mvista.com>
9380
9381 * symtab.h (lookup_block_symbol): Add mangled_name argument
9382 to prototype.
9383
9384 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9385 with new mangled_name argument.
9386 * linespec.c (decode_line_1): Likewise.
9387 * valops (value_of_this): Likewise.
9388 * symtab.c (lookup_transparent_type): Likewise.
9389 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9390 (lookup_symbol): If we are given a mangled name, pass it down
9391 to lookup_symbol_aux.
9392 (lookup_block_symbol): If we are given a mangled name to check
9393 against, only return symbols which match it.
9394
349b409f
CF
93952002-03-22 Christopher Faylor <cgf@redhat.com>
9396
9397 * win32-nat.c (child_create_inferior): Check for proper shell to use
9398 here, in case the user changes it on the fly.
9399 (_initialize_inftarg): Remove shell path considerations.
9400
2a873819
EZ
94012002-03-21 Elena Zannoni <ezannoni@redhat.com>
9402
9403 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9404 for gdbarch_max_register_raw_size and max_register_virtual_size.
9405 Adjust copyright year.
9406
a1b9830c
DJ
94072002-03-21 Daniel Jacobowitz <drow@mvista.com>
9408
9409 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9410 in a function to cover the entire beginning of the function
9411 as well if it does not already.
9412
8b5790f2
TR
94132002-03-21 Tom Rix <trix@redhat.com>
9414
9415 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9416 (rs6000_ptrace64): Renamed from ptrace64.
9417
bdbe5747
MH
94182002-03-20 Martin M. Hunt <hunt@redhat.com>
9419
9420 * gdbserver/remote-utils.c (remote_open): Don't call
9421 getprotobyname, we're all using TCP here so just use
9422 IPPROTO_TCP.
7e336ba1 9423 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
9424
94252002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 9426
bdbe5747
MH
9427 * regcache.c (_initialize_regcache): No need to call
9428 build_regcache() at this time; it gets called whenever
9429 the gdbarch changes.
9430
7781cd62
DB
94312002-03-20 David O'Brien <obrien@FreeBSD.org>
9432
9433 * sparc-nat.c: Include sys/param.h where possible.
9434
f65ca430
DJ
94352002-03-20 Daniel Jacobowitz <drow@mvista.com>
9436
9437 Fix PR gdb/422.
9438 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9439 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9440 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9441 complex types.
9442 * stabsread.c (rs6000_builtin_type): Likewise.
9443 (read_sun_floating_type): Likewise.
9444
0c867556
PS
94452002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9446
9447 * stabsread.c (read_member_functions): Remove skip code for duplicate
9448 constructor/destructor methods. Use standard parsing for these
9449 methods and just do not chain them to the list of methods after
9450 parsing.
9451
12b9c64f
AO
94522002-03-19 Alexandre Oliva <aoliva@redhat.com>
9453
9454 * coffread.c: Remove redundant static declarations. Replace
9455 occurrences of `PTR' with `void *'.
9456 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9457 * top.h (quit_cover): Likewise.
9458 * defs.h (catch_errors): Likewise.
9459
349c5d5f
AC
94602002-03-18 Andrew Cagney <ac131313@redhat.com>
9461
9462 * defs.h (XMALLOC): Define.
9463 * gdb-events.sh (XMALLOC): Delete macro.
9464 * gdb-events.c, gdb-events.h: Regenerate.
9465 * gdbarch.sh (XMALLOC): Delete macro.
9466 * gdbarch.c: Regenerate.
9467 * serial.c (XMALLOC): Delete macro.
9468 * ui-file.c (XMALLOC): Ditto.
9469 * ser-unix.h (XMALLOC): Ditto.
9470 * sh-tdep.c (XMALLOC): Ditto.
9471 * ui-out.c (XMALLOC): Ditto.
9472 * utils.c (XMALLOC): Ditto.
9473 * i386-tdep.c (XMALLOC): Ditto.
9474 * gdb-events.c (XMALLOC): Ditto.
9475 * d10v-tdep.c (XMALLOC): Ditto.
9476 * cli-out.c (XMALLOC): Ditto.
9477
9478 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9479 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9480 * ui-file.c, ui-out.c: Ditto.
9481
7d0766f3
AC
94822002-03-18 Andrew Cagney <ac131313@redhat.com>
9483
9484 * command.h (struct cmd_list_element): Add field context.
9485 (set_cmd_context, get_cmd_context): Declare.
9486 * cli/cli-decode.h: Ditto.
9487 * cli/cli-decode.c (get_cmd_context): New function.
9488 (set_cmd_context): New function.
9489 (add_cmd): Initialize context.
9490 Part of fixing PR gdb/145 and PR gdb/146.
9491
5913bcb0
AC
94922002-03-17 Andrew Cagney <ac131313@redhat.com>
9493
1868c04e
AC
9494 * cli/cli-decode.c (cmd_type): New function.
9495 * command.h (cmd_type): Declare.
9496 * infrun.c (set_schedlock_func): Call function cmd_type.
9497 * kod.c (kod_set_os): Call cmd_type.
9498 * cris-tdep.c (cris_version_update): Use function cmd_type.
9499 (cris_mode_update, cris_abi_update): Ditto.
9500
5913bcb0
AC
9501 * command.h: (execute_cmd_post_hook): Declare.
9502 (execute_cmd_pre_hook): Declare.
9503 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9504 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9505 functions. Execute pre/post hook while ensuring that afterwords
9506 hook_in is cleared.
9507 * top.c (execute_command): Use execute_cmd_post_hook, and
9508 execute_cmd_pre_hook to execute pre/post commands.
9509 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9510 hook_stop_stub.
9511 (hook_stop_stub): Call execute_cmd_pre_hook.
9512
b51450c9
AC
95132002-03-17 Andrew Cagney <ac131313@redhat.com>
9514
9515 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9516 set'' and this leads to a core dump. Move xstrdup of
9517 operating_system to after check that it is not NULL.
9518
f66c9f11
AC
95192002-03-17 Andrew Cagney <ac131313@redhat.com>
9520
8e694ecf
AC
9521 * kod.c (kod_set_os): Remove unnecessary check that
9522 ``command->type'' is set_cmd.
9523
f66c9f11
AC
9524 * valprint.c (set_input_radix): Use input_radix.
9525 (set_output_radix): Use output_radix.
9526 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9527 isn't reverted.
9528
9d01611c
AC
95292002-03-16 Andrew Cagney <ac131313@redhat.com>
9530
9531 * value.h (struct value): Delete field ``substring_addr''. Change
9532 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
9533 force_core_addr_align and force_pointer_aligh.
9534
9535 * value.h (struct value): Fix typo in above change.
9d01611c 9536
4156bb53
PS
95372002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9538
9539 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9540 to fix internal_error from ``maintenance print architecture''.
9541
0e5e3ea6
PS
95422002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9543
9544 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9545 for gcc versions after gcc-2.8.1.
9546
9b013045
PS
95472002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9548
9549 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9550 for method resolution. Restore adjustment of ``this'' pointer after
9551 calling value_struct_elt, which was accidentally removed during the
9552 HP merge.
9553
376c9600
AC
95542002-03-15 Andrew Cagney <ac131313@redhat.com>
9555
9556 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9557 value_of_register.
9558 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9559 get_saved_register.
9560 * value.h (value_of_register): Update.
9561
a4db0f07
RH
95622002-03-14 Richard Henderson <rth@redhat.com>
9563
9564 * configure.in: Detect declaration for canonicalize_file_name.
9565 * utils.c (canonicalize_file_name): Declare, if needed.
9566 (gdb_realpath): Prefer realpath if available and usable.
9567 * config.in, configure: Rebuild.
9568
96383835
RH
95692002-03-14 Richard Henderson <rth@redhat.com>
9570
9571 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9572 a constant array bound.
9573
9574 * MAINTAINERS: Add myself to write-after-approval.
9575
75245b24
MS
95762002-03-14 Michael Snyder <msnyder@redhat.com>
9577
9578 * symfile.c (syms_from_objfile): Return immediately if no syms.
9579 (symbol_file_add): Return immediately if no syms.
9580 (find_sym_fns): Return immediately if no syms.
9581
e641a1ca
ML
95822002-03-13 Michal Ludvig <mludvig@suse.cz>
9583
9584 * gdbserver/remote-util.c (remote_open): Print remote-side's
9585 IP address when remote debugging over the network.
7e336ba1 9586
df08bfec
DB
95872002-03-12 David O'Brien <obrien@FreeBSD.org>
9588
9589 * config/sparc/fbsd.mh: Fix copyright.
9590 * config/sparc/fbsd.mt: Likewise.
9591
9a57864f
RE
95922002-03-11 Richard Earnshaw <rearnsha@arm.com>
9593
9594 * MAINTAINERS: Fix typo in name of gdb warnings option.
9595 (x86-64): Fix formating so that this can be parsed by awk.
9596
dd7bf85e
DJ
95972002-03-10 Daniel Jacobowitz <drow@mvista.com>
9598
9599 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9600 * defs.h: Include "gdb/signals.h".
9601 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9602
33a0a2ac
ML
96032002-03-10 Michal Ludvig <mludvig@suse.cz>
9604
9605 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 9606 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
9607 from x86-64-tdep.h
9608
dd824b04
DJ
96092002-03-10 Daniel Jacobowitz <drow@mvista.com>
9610 Don Howard <dhoward@redhat.com>
9611
9612 * mips-tdep.c (ST0_FR): Define.
9613 (mips2_fp_compat): New function, temporarily disabled.
9614 (mips_read_fp_register_single): New function.
9615 (mips_read_fp_register_double): New function.
9616 (mips_print_register): Use them.
9617 (do_fp_register_row): Likewise.
9618
6a41ff59
AC
96192002-03-09 Andrew Cagney <ac131313@redhat.com>
9620
9621 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9622 approval''.
9623
4ea09c10
PS
96242002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9625
9626 * stabsread.c (read_member_functions): Fix is_stub test for
9627 static member functions, improve comment.
9628
6ccc741d
RE
96292002-03-07 Richard Earnshaw <rearnsha@arm.com>
9630
9631 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9632 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9633 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9634 commands that set boolean values.
9635 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9636 (arm_rdi_resume): Always initialize PC.
9637 (arm_rdi_open): Don't use rslt as a boolean.
9638 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9639 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9640 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9641 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9642
438013df
AO
96432002-03-06 Alexandre Oliva <aoliva@redhat.com>
9644
9645 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9646 * configure: Rebuilt.
9647
70ed8774
SC
96482002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9649
9650 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9651 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9652
5ba2abeb
AC
96532002-03-06 Andrew Cagney <ac131313@redhat.com>
9654
9655 * cli/cli-decode.c (set_cmd_completer): New function.
9656 * command.h (set_cmd_completer): Declare.
9657 * cli/cli-decode.h (set_cmd_completer): Ditto.
9658
9659 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9660 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9661 * win32-nat.c (_initialize_inftarg): Ditto.
9662 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9663 * proc-api.c (_initialize_proc_api): Ditto.
9664 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9665 * source.c (_initialize_source): Ditto.
9666 * exec.c (_initialize_exec): Ditto.
9667 * solib.c (_initialize_solib): Ditto.
9668 * top.c (init_main): Ditto.
9669 * tracepoint.c (_initialize_tracepoint): Ditto.
9670 * symfile.c (_initialize_symfile): Ditto.
9671 * printcmd.c (_initialize_printcmd): Ditto.
9672 * infcmd.c (_initialize_infcmd): Ditto.
9673 * corefile.c (_initialize_core): Ditto.
9674
f779ca99
AC
96752002-03-05 Andrew Cagney <ac131313@redhat.com>
9676
9677 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9678
01a3934b
AC
96792002-03-05 Andrew Cagney <ac131313@redhat.com>
9680
9681 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9682
37057839
AC
96832002-03-05 Andrew Cagney <ac131313@redhat.com>
9684
9685 * NEWS: Update headings, 5.2 has branched.
9686
c6ecbae5
DJ
96872002-03-04 Daniel Jacobowitz <drow@mvista.com>
9688
9689 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9690 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9691 (register_addr, REGISTER_RAW_SIZE): Likewise.
9692 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9693 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9694
e9f30c21
ML
96952002-03-03 Michal Ludvig <mludvig@suse.cz>
9696
9697 * MAINTAINERS (x86-64): Add myself.
9698 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9699 changed value_ptr -> struct value *
9700
54394ac3
DB
97012002-03-01 David O'Brien <obrien@FreeBSD.org>
9702
9703 * configure.host (sparc64-*-freebsd): Add.
9704 * configure.tgt: Likewise.
9705 * config/sparc/fbsd.mh: New file.
9706 * config/sparc/fbsd.mt: Likewise.
9707 * config/sparc/nm-fbsd.h: Likewise.
9708 * config/sparc/tm-fbsd.h: Likewise.
9709
bfe95955
DJ
97102002-03-01 Daniel Jacobowitz <drow@mvista.com>
9711
9712 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9713 regformats/reg-s390x.dat.
9714
f33c6cbf
AC
97152002-03-01 Andrew Cagney <ac131313@redhat.com>
9716
9717 * utils.c: Add FIXME explaining true/false problem.
9718
5ecaa7dd
AC
97192002-02-28 Andrew Cagney <ac131313@redhat.com>
9720
9721 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9722
2a251cc2
MC
97232002-02-28 Michael Chastain <mec@shout.net>
9724
9725 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9726
6a8031a3 97272002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
9728
9729 * gdbserver/linux-s390-low.c: New file.
9730 * regformats/reg-s390.dat: New file.
9731 * regformats/reg-s390x.dat: New file.
9732 * gdbserver/configure.srv: Add S/390.
9733 * gdbserver/Makefile.in: Add S/390.
9734 * configure.tgt: Enable gdbserver for S/390.
9735
ac469903
EZ
97362002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9737
9738 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9739 first line of the doc string for "info dos", except at the end of
9740 the sentence, since the short help stops at the first period.
9741
985cb1a3
JM
97422002-02-28 Jason Merrill <jason@redhat.com>
9743
9744 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9745
c570663e
FF
97462002-02-27 Fred Fish <fnf@redhat.com>
9747
9748 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9749 comment (dumy -> dummy).
9750
43630227
PS
97512002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9752
9753 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9754
b84911e8
RB
97552002-02-27 Rodney Brown <rbrown64@csc.com.au>
9756
9757 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9758
58caa3dc
DJ
97592002-02-27 Daniel Jacobowitz <drow@mvista.com>
9760
9761 * gdbserver/acconfig.h: New file.
9762 * gdbserver/i387-fp.c: New file.
9763 * gdbserver/i387-fp.h: New file.
9764 * gdbserver/linux-x86-64.c: New file.
9765 * regformats/reg-x86-64.dat: New file.
9766 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9767 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9768 * gdbserver/configure.in: Add support for regsets.
9769 * gdbserver/config.in: Regenerate.
9770 * gdbserver/configure: Regenerate.
9771 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9772 * gdbserver/linux-low.h: New file.
9773 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9774 for regsets.
9775 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9776 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9777 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9778 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9779 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9780 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9781 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9782 "i387-fp.h". Add PTRACE_GETREGS and friends.
9783 * gdbserver/regcache.c (supply_register): New function.
9784 (supply_register_by_name): New function.
9785 (collect_register): New function.
9786 (collect_register_by_name): New function.
9787
93652174
DJ
97882002-02-27 Daniel Jacobowitz <drow@mvista.com>
9789
9790 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9791 (config.status): Add configure.srv dependency.
9792 (server_h): Add config.h dependency.
9793
a02e4a61
DJ
97942002-02-27 Daniel Jacobowitz <drow@mvista.com>
9795
9796 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9797 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9798 * gdbserver/configure.srv: Change i386-*-linux* to use
9799 reg-i386-linux.o.
9800
ce0eebec
AC
98012002-02-26 Andrew Cagney <ac131313@redhat.com>
9802
9803 * x86-64-tdep.c: Re-indent. Update copyright date.
9804
82dbc5f7
AC
98052002-02-26 Andrew Cagney <ac131313@redhat.com>
9806
9807 From Michal Ludvig <mludvig@suse.cz>:
9808 * x86-64-tdep.c (value.h): Delete.
9809 (gdb_assert.h): Include.
9810 (x86_64_register_convert_to_virtual,
9811 x86_64_register_convert_to_raw ): Add check which lets only
9812 floating-point values to be converted.
9813 (value_push): Delete.
9814 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9815 (i386_gdbarch_init): Number of register_bytes fixed.
9816
e4621584
AC
98172002-02-26 Andrew Cagney <ac131313@redhat.com>
9818
9819 * MAINTAINERS: Add x86-64 target.
9820
81a9a963
AC
98212002-02-26 Andrew Cagney <ac131313@redhat.com>
9822
9823 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9824 * osfsolib.c (solib_map_sections): Ditto.
9825 * irix5-nat.c (solib_map_sections): Ditto.
9826 * corelow.c (gdb_check_format): Ditto.
9827 * symfile.c (symfile_bfd_open): Ditto.
9828 * solib.c (solib_map_sections): Ditto.
9829 Fix PR gdb/354.
7e336ba1 9830
0f017ab9
AC
98312002-02-26 Andrew Cagney <ac131313@redhat.com>
9832
9833 * remote.c (_initialize_remote): By default, disable ``e'' and
9834 ``E'' step out-of-range packets.
9835
75738c29
AS
98362002-02-26 Andreas Schwab <schwab@suse.de>
9837
9838 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9839 m68k_linux_frame_saved_pc.
9840 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9841 in_sigtramp.
9842 (SIGCONTEXT_PC_OFFSET): Remove.
9843 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9844 m68k_linux_sigtramp_saved_pc): New functions.
9845 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9846 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9847 (UCONTEXT_PC_OFFSET): Define.
9848 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9849 non-RT and RT signal trampolines.
9850
7e8ed687
RE
98512002-02-26 Richard Earnshaw <rearnsha@arm.com>
9852
9853 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9854 (TARGET_NBPG, STACK_END_ADDR): Delete
9855 (VARIABLES_INSIDE_BLOCK): Delete.
9856
6972bc8b
AC
98572002-02-25 Andrew Cagney <ac131313@redhat.com>
9858
9859 * utils.c (perror_with_name): Make string parameter constant.
9860 (print_sys_errmsg): Ditto.
9861 (query): Ditto.
9862 * defs.h (perror_with_name): Update.
9863 (print_sys_errmsg): Update.
9864 (query): Update.
9865
aa32f823
DJ
98662002-02-25 Daniel Jacobowitz <drow@mvista.com>
9867
9868 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9869 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9870
19caaa45
PS
98712002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9872
9873 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9874 if it already matches the current architecture from the exec file.
9875 Include arch-utils.h for gdbarch_info_init prototype.
9876 * Makefile.in (rs6000-nat.o): Update dependencies.
9877
d951901f
EZ
98782002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9879
9880 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9881 list of exported variables.
9882
7ea81414
DJ
98832002-02-24 Daniel Jacobowitz <drow@mvista.com>
9884
9885 * gdbserver/configure.srv: New file.
9886 * gdbserver/configure.in: Use configure.srv instead
9887 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9888 from it.
9889 * gdbserver/configure: Regenerated.
9890 * gdbserver/terminal.h: New file.
9891 * gdbserver/Makefile.in: Update for configure changes. Remove
9892 more unneeded include paths.
9893
080fe24b
AC
98942002-02-24 Andrew Cagney <ac131313@redhat.com>
9895
9896 From wiz at danbala:
9897 * config/sparc/tm-sp64.h: Fix grammar and typos.
9898 Fix PR gdb/287.
9899
8605d56e
AC
99002002-02-24 Andrew Cagney <ac131313@redhat.com>
9901
9902 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
9903 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9904 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9905 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
9906 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9907 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9908 * s390-tdep.c: Ditto.
92362027
AC
9909 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9910 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9911 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9912 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9913 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9914 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9915 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9916 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9917 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9918 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9919 Fix PR gdb/378.
7e336ba1 9920
8ed32cc0
AC
99212002-02-23 Andrew Cagney <ac131313@redhat.com>
9922
a3007b6f
AC
9923 * lin-thread.c: Delete file.
9924 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9925 to gdb_proc_service.h.
9926 * configure: Re-generate.
9927
50a9e2f1
AC
9928 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9929 * serial.c (serial_open): Delete check for "ocd".
9930 Fix PR gdb/349.
9931
8b6e7932
AC
9932 * Makefile.in (linux-thread.o): Delete target.
9933 * linux-thread.c: Delete file.
9934
d155c46b
AC
9935 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9936 renamed SH files to be consistent.
9937
8ed32cc0
AC
9938 * symtab.c (sort_search_symbols): Use xfree.
9939
0e18d038
RE
99402002-02-23 Richard Earnshaw <rearnsha@arm.com>
9941
9942 * arm-linux-tdep.c (arm_linux_init_abi): Register
9943 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9944 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9945 definition with undef, since we don't want the sysvr4 definition.
9946 (SKIP_TRAMPOLINE_CODE): Likewise.
9947
27aac7ff
AC
99482002-02-23 Andrew Cagney <ac131313@redhat.com>
9949
9950 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9951
9952 * configure.in: (AC_CHECK_FUNCS) Added test for
9953 canonicalize_file_name Regenerated.
9954 * config.in, configure: Regenerated.
9955 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9956 defined use canonicalize_file_name.
7e336ba1 9957
65a6e0ee
MC
99582002-02-23 Michael Chastain <mec@shout.net>
9959
9960 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9961
47b95330
AC
99622002-02-23 Andrew Cagney <ac131313@redhat.com>
9963
9964 * README: Remove references to cygnus.com.
9965 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9966 dot com'' form. Remove references to cygnus.com and sourceware.
9967
696f451b
AC
99682002-02-23 Andrew Cagney <ac131313@redhat.com>
9969
9970 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9971 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9972 1003.1-2001 no longer allows "head -1".
9973 * gdb/Makefile.in (version.c): Likewise.
9974 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9975 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9976 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9977
bbaca940
AC
99782002-02-23 Andrew Cagney <ac131313@redhat.com>
9979
9980 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9981 * command.h (cmd_cfunc_eq): Declare.
9982 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9983
9984 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9985 ``struct cmd_list_element *''.
9986 * cli/cli-cmds.c (is_complete_command): Update. Use
9987 cmd_cfunc_eq.
9988 * top.c (execute_command): Pass the command to
9989 is_complete_command.
9990 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9991
b8b8b047
AC
99922002-02-23 Andrew Cagney <ac131313@redhat.com>
9993
9994 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9995 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9996 architecture defines.
9997 * s390-tdep.c (s390_gdbarch_init): Likewise.
9998
19d3fc80
RE
99992002-02-23 Richard Earnshaw <rearnsha@arm.com>
10000
10001 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10002 (arm_linux_push_arguments): Likewise.
10003 (arm_linux_init_abi): Register them. Also register linux-specific
10004 call_dummy_words.
10005 (find_minsym_and_objfile): Use strcmp, not STREQ.
10006 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10007 (arm_linux_call_dummy_words): Delete declaration.
10008 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10009 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10010 declarations.
10011 (LOWEST_PC): Delete.
10012
3ab13650
PS
100132002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10014
10015 * maint.c (print_section_info): Do not prepend `0x' to filepos
10016 output, it will be handled by local_hex_string_custom.
10017
19d3fc80 100182002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
10019
10020 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10021 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10022 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10023
d85a5daf
JB
100242002-02-22 Jim Blandy <jimb@redhat.com>
10025
10026 Indicate that the bcache functions don't change the strings
10027 they're passed.
10028 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10029 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10030
eeb25b8a
PM
100312002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
10032
10033 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10034
6badb179
CF
100352002-02-21 Christopher Faylor <cgf@redhat.com>
10036
10037 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10038 find the complete path to a loaded DLL.
10039
e8717518
FF
100402002-02-21 Fred Fish <fnf@redhat.com>
10041
10042 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10043 that marks the end of the range of a function, enter a line number
10044 entry that has a line number of zero and a PC offset that matches
10045 the end of the function. This starts a range of PC's for which no
10046 line number information is known.
10047 * symtab.c (find_pc_sect_line): If our best fit is in a range of
10048 PC's for which no line number info is found (line number is zero)
10049 then we didn't find any valid line information.
10050 * symtab.h: Document use of zero line number entry.
10051
9abe5450
EZ
100522002-02-21 Elena Zannoni <ezannoni@redhat.com>
10053
10054 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10055 (have_ptrace_getvrregs): Define for run time checks.
10056 (gdb_vrregset_t): New type for Altivec register handling.
10057 (fetch_register, store_register): Fetch/store altivec register
10058 when needed.
10059 (fetch_altivec_register, store_altivec_register): New functions.
10060 (supply_vrregset, fill_vrregset): New functions.
10061 (fetch_altivec_registers, store_altivec_registers): New functions.
10062 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10063 registers as well.
10064
aaa38bb5
AJ
100652002-02-21 Jiri Smid <smid@suse.cz>
10066
10067 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10068
b34db576
RE
100692002-02-21 Richard Earnshaw <rearnsha@arm.com>
10070
10071 * Makefile.in (armnbsd-nat.o): Update dependencies.
10072 * armnbsd-nat.c (supply_gregset): New function. Common code to
10073 supply the integer register set.
10074 (supply_fparegset): New function. Similar for FPA registers.
10075 (fetch_regs, fetch_fp_regs): Use them.
10076 (fetch_core_registers): Likewise.
10077 (fetch_elfcore_registers): New function.
10078 (arm_netbsd_elfcore_fns): New core-file type specification.
10079 (_initialize_arm_netbsd_nat): Register it.
10080
3e56fc4b
RE
100812002-02-21 Richard Earnshaw <rearnsha@arm.com>
10082
10083 * armnbsd-nat.c: Include gdbcore.h.
10084 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10085 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10086 'void' to declaration, to shut up ARI.
10087 (fetch_core_registers): Make static. Rewrite using supply_register.
10088 (arm_netbsd_core_fns): New core-file type specification.
10089 (_initialize_arm_netbsd_nat): New function.
10090
097f6b0b
CF
100912002-02-21 Christopher Faylor <cgf@redhat.com>
10092
10093 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10094 value.
10095
c914e0cc
CF
100962002-02-20 Christopher Faylor <cgf@redhat.com>
10097
10098 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10099 fails.
10100
385fa495
DJ
101012002-02-20 Daniel Jacobowitz <drow@mvista.com>
10102
10103 * jv-exp.y (parse_number): Change type of implicit longs
10104 to builtin_type_uint64.
10105
e5f1222d
DJ
101062002-02-20 Daniel Jacobowitz <drow@mvista.com>
10107
10108 * gdbserver/linux-low.c (mywait): Change argument to waitpid
10109 to be an integer instead of a `union wait'.
10110
75c9abc6
DJ
101112002-02-20 Daniel Jacobowitz <drow@mvista.com>
10112
10113 * mips-linux-nat.c: Call the operating system GNU/Linux.
10114 * mips-linux-tdep.c: Likewise.
10115 * mips-tdep.c: Likewise.
10116
551792a5
DJ
101172002-02-20 Daniel Jacobowitz <drow@mvista.com>
10118
10119 Fix PR gdb/265.
10120 * jv-exp.y (parse_number): Handle 64-bit integers.
10121
ee6e2b82
DJ
101222002-02-20 Daniel Jacobowitz <drow@mvista.com>
10123
10124 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
10125 AC_STDC_HEADERS to AC_HEADER_STDC.
10126 * gdbserver/configure: Regenerated.
10127
a48442a0
RE
101282002-02-20 Richard Earnshaw <rearnsha@arm.com>
10129
10130 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10131 is defined.
10132 * sparc-tdep.c (get_longjmp_target): Likewise.
10133
fe419ffc
RE
101342002-02-20 Richard Earnshaw <rearnsha@arm.com>
10135
10136 * News: Add news about ARM and Multi-arch. Mention the new target
10137 arm*-*-netbsd*.
10138
5832ed7e
JB
101392002-02-19 Jim Blandy <jimb@redhat.com>
10140
10141 * stabsread.c (error_type_complaint): Improve error message.
10142
84563040
DJ
101432002-02-19 Daniel Jacobowitz <drow@mvista.com>
10144
10145 * gdbserver/README: Update documentation.
10146 * gdbserver/configure.in: Update configury to match documentation.
10147 * gdbserver/Makefile.in: Likewise.
10148 * gdbserver/configure: Regenerated.
10149 * gdbserver/aclocal.m4: New file, generated by aclocal.
10150 * gdbserver/config.in: New file, generated by autoheader.
10151
375fd65b
RE
101522002-02-19 Richard Earnshaw <rearnsha@arm.com>
10153
10154 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10155 armnbsd-nat.c.
10156
08216dd7
RE
101572002-02-19 Richard Earnshaw <rearnsha@arm.com>
10158
10159 * arm-tdep.h (enum arm_float_model): New enum.
10160 (struct gdbarch_tdep): Add fp_model.
10161 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
10162 up floating-point conversions until we know the floating-point model
10163 in use by the inferior. Don't complain about being unable to
10164 determine the ABI of the inferior when we don't have one.
10165 (arm_extract_return_value): Support different floating-point models.
10166 (arm_store_return_value): Likewise.
aaa38bb5 10167 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
10168 ARM_FLOAT_SOFT.
10169 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10170
65d6d66a
PS
101712002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10172
10173 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10174 of ``current_gdbarch''.
10175
47221191
RE
101762002-02-19 Richard Earnshaw <rearnsha@arm.com>
10177
10178 * armnbsd-nat.c : ANSIfy all function declarations.
10179 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10180 (fetch_inferior_registers): Re-implement in terms of above.
10181 (store_register, store_regs, store_fp_register, store_fp_regs): New.
10182 (store_inferior_registers): Re-implement in terms of above.
10183
fdf39c9a
RE
101842002-02-19 Richard Earnshaw <rearnsha@arm.com>
10185
aaa38bb5 10186 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
10187 kernel.
10188 * arm-linux-tdep.c: Likewise.
10189 * config/arm/tm-linux.h: Likewise.
10190
93247f88
RE
101912002-02-19 Richard Earnshaw <rearnsha@arm.com>
10192
10193 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10194 * config/arm/nbsd.mt (TM_FILE): Delete.
10195 * config/arm/tm-nbsd.h: Delete.
10196
d7b486e7
RE
101972002-02-19 Richard Earnshaw <rearnsha@arm.com>
10198
10199 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10200 Initialize CALL_DUMMY_LENGTH.
10201
41d39a95
RE
102022002-02-19 Richard Earnshaw <rearnsha@arm.com>
10203
10204 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10205 function.
10206 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 10207 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
10208 defines one thing and that is incorrect for this port.
10209 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10210
e1195560
PM
102112002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10212
10213 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10214
c1748f97
PM
102152002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10216
10217 * win32-nat.c (display_selector): New function. Displays information
10218 about the information returned by GetThreadSelectorEntry API function.
10219 (display_selectors): New function. Displays the infomation of
10220 the selector given as argument, or of CS, DS ans FS selectors
10221 if no argument is given.
10222 ( _initialize_inftarg): Add "w32" as info prefix command.
10223 Add "info w32 selector" as command calling display_selectors.
10224
e41e6bbf
PM
102252002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
10226
10227 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10228 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10229 if not defined.
10230
0d3a9f48
RE
102312002-02-18 Richard Earnshaw <rearnsha@arm.com>
10232
10233 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10234
3fb4b924
RE
102352002-02-18 Richard Earnshaw <rearnsha@arm.com>
10236
10237 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10238 (arm_fix_call_dummy): Call it.
10239 (arm_call_dummy_breakpoint_offset): Delete.
10240 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10241 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10242
7f55af32
AC
102432002-02-18 Andrew Cagney <ac131313@redhat.com>
10244
10245 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10246 Default to func_frame_chain_valid.
10247 * gdbarch.h, gdbarch.c: Re-generate.
10248 * frame.h (FRAME_CHAIN_VALID): Delete definition.
10249
05f13b9c
EZ
102502002-02-18 Elena Zannoni <ezannoni@redhat.com>
10251
10252 * ppc-linux-nat.c: Update copyright.
10253 (fetch_register, store_register): Add tid parameter, don't compute
10254 tid here.
10255 (fetch_ppc_registers, store_ppc_registers): Add tid
10256 parameter. Pass it along to callees.
10257 (fetch_inferior_registers, store_inferior_registers): Compute tid
10258 here, and pass it to calleed functions.
10259 (fill_gregset, supply_fpregset): Clean up formatting.
10260
d7afb4c9
RE
102612002-02-18 Richard Earnshaw <rearnsha@arm.com>
10262
10263 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10264 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10265
9df628e0
RE
102662002-02-18 Richard Earnshaw <rearnsha@arm.com>
10267
10268 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10269 * gdbarch.c gdbarch.h: Regenerate.
10270 * breakpoint.c (create_longjmp_breakpoint): Always compile this
10271 function.
10272 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10273 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10274 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10275
10276 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10277 * arm-tdep.c (arm_get_longjmp_target): New function.
10278 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
10279 this to a positive value register arm_get_longjmp_target as the
10280 longjmp handler.
10281 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10282 (arm_linux_init_abi): Set up longjmp description in tdep.
10283 * armnbsd-nat.c (get_longjmp_target): Delete.
10284 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10285 description in tdep.
10286 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10287 (get_longjmp_target): Delete declaration.
10288 (GET_LONGJMP_TARGET): Delete.
10289 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10290 (GET_LONGJMP_TARGET): Delete.
10291
57bc8964
KB
102922002-02-17 Kevin Buettner <kevinb@redhat.com>
10293
10294 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
10295 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10296 of ``current_gdbarch''.
10297
83d31a92
TT
102982002-02-17 Tom Tromey <tromey@redhat.com>
10299
10300 * cli/cli-cmds.c (compare_strings): New function.
10301 (complete_command): Only print each unique item once.
10302 * completer.h (complete_line): Declare.
10303 * completer.c (complete_line): New function.
10304 (line_completion_function): Use it.
10305
17ef5d92
AC
103062002-02-16 Andrew Cagney <ac131313@redhat.com>
10307
10308 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10309 * gdbarch.h, gdbarch.c: Re-generate.
10310
491b8946
DJ
103112002-02-16 Daniel Jacobowitz <drow@mvista.com>
10312
10313 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10314
103152002-02-16 Daniel Jacobowitz <drow@mvista.com>
10316
10317 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10318 * valops.c (value_arg_coerce): Don't take the address of a reference
10319 to convert an argument to a reference.
10320
dfe7f3ac
CF
103212002-02-15 Christopher Faylor <cgf@redhat.com>
10322
10323 * win32-nat.c (get_image_name): New function.
10324 (handle_load_dll): Use get_image_name function.
10325 (get_child_debug_event): Avoid registering debug events until possibly
10326 execed process is started.
10327 (child_create_inferior): Allow invocation via shell so that command
10328 line redirection, etc. works ok.
10329 (_initialize_inftarg): Add new command: "set shell" to control whether
10330 a shell is used to start a process.
10331
1d33e73a
DJ
103322002-02-15 Daniel Jacobowitz <drow@mvista.com>
10333
10334 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10335 instead of find_register_by_number.
10336 (cannot_store_register): Likewise.
10337
48cd0caa
PM
103382002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
10339
aaa38bb5 10340 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
10341 fprintf_unfiltered (gdb_stderr, ...).
10342
8656e7d8
DJ
103432002-02-15 Daniel Jacobowitz <drow@mvista.com>
10344
10345 * gdbserver/gdbserver.1: Document --attach.
10346
66e810cd
RE
103472002-02-15 Richard Earnshaw <rearnsha@arm.com>
10348
10349 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10350 descriptions.
10351 * arm-tdep.c (arm_default_arm_le_breakpoint)
10352 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10353 (arm_default_thumb_be_breakpoint): New. Initialize them from
10354 traditional breakpoint defines.
10355 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10356 (arm_gdbarch_init): Initialize new breakpoint variables.
10357 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10358 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10359 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10360 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10361 code out to ...
10362 (arm_netbsd_init_abi_common): ... here; new function.
10363 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10364 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10365 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10366 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10367
97e03143
RE
103682002-02-15 Richard Earnshaw <rearnsha@arm.com>
10369
10370 * arm-tdep.h (enum arm_abi): New enum.
10371 (struct gdbarch_tdep): New structure.
10372 (LOWEST_PC): Provide a default.
10373 (arm_gdbarch_register_os_abi): Declare new function.
10374 * arm-tdep.c (arm_abi_names): New array.
10375 (process_note_abi_tag_sections): New function.
10376 (get_elfosabi): New function.
10377 (arm_gdbarch_register_os_abi): New function.
10378 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10379 support for that ABI has been built in, then call the appropriate
10380 configuration routine. Use gdbarch_num_regs() to get the number
10381 of registers.
10382 (arm_dump_tdep): New function.
10383 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10384 place-holder functions.
10385 (_initialize_arm_tdep): Register them.
10386 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10387
10388 * armnbsd-tdep.c: New file.
10389 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10390 * config/arm/nbsd.mt (TDEPFILES): Add it.
10391 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10392
10393 * armnbsd-nat.c: Include regcache.h.
10394 * Makefile.in (armnbsd-nat.o): Update dependency list.
10395
10396 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10397
ad68be46
DJ
103982002-02-14 Daniel Jacobowitz <drow@mvista.com>
10399
10400 * gdbserver/Makefile.in: Fix typos in target rules.
10401
003d6d1d
DJ
104022002-02-14 Daniel Jacobowitz <drow@mvista.com>
10403
aaa38bb5 10404 Fix part of PR gdb/267.
003d6d1d
DJ
10405 * linespec.c (find_methods): Handle constructors specially for now.
10406
6b230f1b
CV
104072002-02-14 Corinna Vinschen <vinschen@redhat.com>
10408
10409 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10410 handling.
10411 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10412 standard_coerce_float_to_double().
10413
1ea98d12
CF
104142002-02-14 Christopher Faylor <cgf@redhat.com>
10415
10416 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10417 GDBINIT_FILENAME.
10418
dd47e6fd
EZ
104192002-02-14 Elena Zannoni <ezannoni@redhat.com>
10420
10421 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10422 find_variant_by_name, because it confuses the multiarch
10423 framework. Return NULL if there isn't an architecture with the
10424 user supplied name, instead of forcing a different one without
10425 recording the change with the multiarch machinery.
10426 (find_variant_by_name): Delete.
10427
d7e39b9e
PS
104282002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10429
10430 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10431 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10432
76e42a4f
MH
104332002-02-13 Martin M. Hunt <hunt@redhat.com>
10434
aaa38bb5 10435 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
10436 print_frame_info_listing_hook, set current_source_symtab.
10437
0a30fbc4
DJ
104382002-02-14 Daniel Jacobowitz <drow@mvista.com>
10439
10440 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10441 and remove unused $(INCLUDE_DIR).
10442 Add regcache.c to OBS.
10443 Add generated register protocol files to clean target.
10444 Update dependencies for new objects, obsolete old target code.
10445
10446 * gdbserver/linux-low.c: Remove all platform-specific code to
10447 new files. Remove various dead code. Update to use regcache
10448 functionality.
10449 * gdbserver/remote-utils.c (fromhex): Add return statement
10450 to quiet warning.
10451 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10452 constant.
10453 (input_interrupt): Add integer parameter to match prototype
10454 of a signal handler.
10455 (outreg): Use register_data ().
10456 (prepare_resume_reply): Use gdbserver_expedite_regs.
10457 * gdbserver/server.c (main): Dynamically allocate own_buf because
10458 PBUFSIZ is no longer constant. Use registers_to_string () and
10459 registers_from_string ().
10460 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10461 for error (), fatal (), and warning (). Update definition of
10462 PBUFSIZ to use regcache functionality. Add include guard.
10463 * gdbserver/utils.c (fatal): Add missing ``const''.
10464 (warning): New function.
10465
10466 * regformats/regdat.sh: Include "regcache.h" in generated files.
10467 Provide init_registers () function.
10468 * regformats/regdef.h: Add prototype for set_register_cache ().
10469 Add include guard.
10470
10471 * gdbserver/linux-arm-low.c: New file.
10472 * gdbserver/linux-i386-low.c: New file.
10473 * gdbserver/linux-ia64-low.c: New file.
10474 * gdbserver/linux-m68k-low.c: New file.
10475 * gdbserver/linux-mips-low.c: New file.
10476 * gdbserver/linux-ppc-low.c: New file.
10477 * gdbserver/linux-sh-low.c: New file.
10478
10479 * gdbserver/regcache.c: New file.
10480 * gdbserver/regcache.h: New file.
10481
10482 * gdbserver/low-linux.c: Removed obsolete file.
10483
4cc841d0
DJ
104842002-02-14 Daniel Jacobowitz <drow@mvista.com>
10485
10486 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10487 * config/i386/linux.mt: Likewise.
10488 * config/ia64/linux.mt: Likewise.
10489 * config/m68k/linux.mh: Likewise.
10490 * config/powerpc/linux.mh: Likewise.
10491 * config/mips/linux.mt: Likewise.
10492
10493 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10494
10495 * config/i386/i386lynx.mh: Mark gdbserver variables
10496 as (currently) obsolete for this target.
10497 * config/i386/nbsd.mt: Likewise.
10498 * config/i386/nbsdelf.mt: Likewise.
10499 * config/m32r/m32r.mt: Likewise.
10500 * config/m68k/m68klynx.mh: Likewise.
10501 * config/m68k/nbsd.mt: Likewise.
10502 * config/m68k/sun3os4.mh: Likewise.
10503 * config/mips/vr5000.mt: Likewise.
10504 * config/ns32k/nbsd.mt: Likewise.
10505 * config/pa/hppabsd.mh: Likewise.
10506 * config/pa/hppaosf.mh: Likewise.
10507 * config/powerpc/nbsd.mt: Likewise.
10508 * config/rs6000/rs6000lynx.mh: Likewise.
10509 * config/s390/s390.mt: Likewise.
10510 * config/s390/s390x.mt: Likewise.
10511 * config/sparc/sparclynx.mh: Likewise.
10512 * config/sparc/sun4os4.mh: Likewise.
10513 * config/i386/x86-64linux.mt: Likewise.
10514 * config/sparc/linux.mh: Likewise.
10515
a85f51e7
DJ
105162002-02-14 Daniel Jacobowitz <drow@mvista.com>
10517
10518 * configure.tgt: Configure gdbserver only for known working
10519 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10520 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10521 SUBDIRS if it is configured. Update comment for ${nativefile}.
10522 * configure: Regenerated.
10523
65554fef
MS
105242002-02-13 Michael Snyder <msnyder@redhat.com>
10525
670a52db
MS
10526 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10527
6dbdc4a3
MS
10528 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10529 (default_gcore_mach): Just return 0, work around a problem in bfd.
10530 (default_gcore_target): OK to return NULL if exec_bfd is null.
10531 (make_mem_sec): Use a cast, avoid a warning.
10532
10533 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 10534 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
10535 sizeof (host pointer) != sizeof (target pointer)).
10536 (procfs_make_note_section): Avoid overflow in psargs string.
10537
aaa38bb5 10538 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
10539 implementation return an error.
10540
105412002-02-13 Rodney Brown <rbrown64@csc.com.au>
10542
10543 * procfs.c (procfs_make_note_section): Provide a default definition
10544 (for alpha-dec-osf4.0f). Fix typos.
10545
1e4d76e7
EZ
105462002-02-13 Elena Zannoni <ezannoni@redhat.com>
10547
10548 * linux-proc.c: Add include of regcache.h.
10549 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10550
b6d1a1d5
AC
105512002-02-13 Andrew Cagney <ac131313@redhat.com>
10552
10553 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
10554 * memattr.c (create_mem_region): Disallow useless empty region.
10555 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 10556 non-overlapping.
b6d1a1d5 10557
6c6ea35e
MC
105582002-02-13 Michael Chastain <mec@shout.net>
10559
10560 * defs.h: Kill CONST_PTR.
10561 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10562 * c-lang.c (c_builtin_types): Likewise.
10563 * ch-lang.c (ch_builtin_types): Likewise.
10564 * f-lang.c (f_builtin_types): Likewise.
10565 * language.c (unknown_builtin_types): Likewise.
10566 * m2-lang.c (m2_builtin_types): Likewise.
10567 * p-lang.c (pascal_builtin_types): Likewise.
10568 * scm-lang.c (c_builtin_types): Likewise.
10569
3e0b0f48
KS
105702002-02-13 Keith Seitz <keiths@redhat.com>
10571
10572 * arm-tdep.h (arm_get_next_pc): Add declaration.
10573
67255d04
RE
105742002-02-13 Richard Earnshaw <rearnsha@arm.com>
10575
10576 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10577 with other related struct-returning functions.
10578 (arm_extract_struct_value_address): New function.
10579 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10580 initialize float_format, double_format and long_double_format as
10581 appropriate to the endianness of the target.
10582 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10583 (arm_use_struct_convention): Delete declaration.
10584 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10585
079777f6
KS
105862002-02-13 Keith Seitz <keiths@redhat.com>
10587
10588 * defs.h (core_addr_to_string_nz): New function.
10589
34588f23
MK
105902002-02-13 Mark Kettenis <kettenis@gnu.org>
10591
10592 Apply missing bits of 2002-01-15 patch.
10593 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10594 (fill_fpregset): Use i387_fill_fsave.
10595
49b563f9
KS
105962002-02-12 Keith Seitz <keiths@redhat.com>
10597
49b563f9
KS
10598 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10599 (core_addr_to_string_nz): New function.
10600
aeb98c60
RE
106012002-02-11 Richard Earnshaw <rearnsha@arm.com>
10602
10603 * arm-linux-nat.c: Really include arm-tdep.h.
10604 * config/arm/tm-linux.h (struct type, struct value): Declare.
10605
65554fef
MS
106062002-02-11 Michael Snyder <msnyder@redhat.com>
10607
10608 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10609 (gcore section): Ifdef for Solaris and Unixware only.
10610 (procfs_do_thread_registers): Unixware needs one lwpstatus
10611 per thread (not one prstatus or pstatus).
10612 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10613 not over all gdb threads. For unixware, call elfcore_write_pstatus
10614 once before iterating over threads.
10615
34e8f22d
RE
106162002-02-11 Richard Earnshaw <rearnsha@arm.com>
10617
10618 * arm-tdep.h: New file.
10619 * arm-tdep.c: Include arm-tdep.h.
10620 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10621 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10622 (arm_print_float_info, arm_register_type, convert_to_extended)
10623 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10624 (arm_extract_return_value, arm_register_name): Make static.
10625 (arm_software_single_step): Similarly. Fix types in declaration.
10626 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10627 (arm_store_return_value, arm_store_struct_return): New functions.
10628 (arm_gdbarch_init): Register the above functions. Also register
10629 call_dummy_start_offset, sizeof_call_dummy_words,
10630 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10631 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 10632 max_register_virtual_size, register_size. Set up
34e8f22d
RE
10633 prologue_cache.saved_regs here, rather than ...
10634 (_initialize_arm_tdep): ... here.
10635 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10636 declarations.
10637 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10638 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10639 (arm_print_float_info, arm_register_type, convert_to_extended)
10640 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10641 (arm_extract_return_value, arm_register_name): Delete declarations.
10642 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10643 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10644 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10645 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10646 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10647 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10648 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10649 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10650 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10651 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10652 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10653 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10654 interface.
10655 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10656 * remote-rdi.c remote-rdp.c: Likewise.
10657 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10658 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10659 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10660 definition.
10661
10662 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10663 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10664 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10665 from non-ARM_ prefixed definitions.
10666 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10667 all uses of above.
10668 * remote-rdi.c remote-rdp.c: Likewise.
10669 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10670
148754e5
RE
106712002-02-11 Richard Earnshaw <rearnsha@arm.com>
10672
10673 * arm-tdep.c (arm_frameless_function_invocation)
10674 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10675 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10676 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10677 (arm_pop_frame, arm_get_next_pc): Make static.
10678 (arm_gdbarch_init): Register above in gdbarch structure.
10679 (arm_read_fp): Renamed from arm_target_read_fp.
10680 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10681 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10682 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10683 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10684 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10685 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10686 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
10687 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10688 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10689 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10690 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 10691
434d2d4f
DJ
106922002-02-10 Daniel Jacobowitz <drow@mvista.com>
10693
10694 * symtab.c (compare_search_syms): New function.
10695 (sort_search_symbols): New function.
10696 (search_symbols): Sort symbols after searching rather than
10697 before.
10698
55241689
AC
106992002-02-10 Andrew Cagney <ac131313@redhat.com>
10700
10701 * NEWS: Linux -> GNU/Linux.
10702
028c194b
AC
107032002-02-10 Andrew Cagney <ac131313@redhat.com>
10704
10705 * gdbarch.sh: For for level one methods, disallow a definition
10706 when partially multi-arched. Add comments explaining rationale.
10707 * gdbarch.h: Re-generate.
10708
6acf50cd
AC
107092002-02-10 Andrew Cagney <ac131313@redhat.com>
10710
10711 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10712 multi-arch partial.
aaa38bb5 10713
50248794
AC
107142002-02-10 Andrew Cagney <ac131313@redhat.com>
10715
10716 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10717 field. Use diff -u.
10718 * gdbarch.c: Re-generate.
10719
c30e0066
AC
107202002-02-10 Andrew Cagney <ac131313@redhat.com>
10721
9b56c5f3 10722 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
10723 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10724 partial.
10725
6e6d6484
AC
107262002-02-10 Andrew Cagney <ac131313@redhat.com>
10727
10728 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10729 multi-arch partial.
10730 (PUSH_ARGUMENTS): Switch to using predefault.
10731 * gdbarch.c: Regenerate.
10732
c203844d
AC
107332002-02-10 Andrew Cagney <ac131313@redhat.com>
10734
10735 * valops.c (PUSH_ARGUMENTS): Delete definition.
10736 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10737 partial. Default to default_push_arguments.
10738 * gdbarch.h, gdbarch.c: Regenerate.
10739
b5a2688f
AC
107402002-02-09 Andrew Cagney <ac131313@redhat.com>
10741
10742 * defs.h (throw_exception): Rename return_to_top_level. Update
10743 comments.
10744 * utils.c (error_stream, internal_verror, quit): Ditto.
10745 * top.c (throw_exception, catcher): Ditto.
10746 * sparclet-rom.c (sparclet_load): Ditto.
10747 * remote.c (interrupt_query, minitelnet): Ditto.
10748 * remote-sds.c (interrupt_query): Ditto.
10749 * remote-mips.c (mips_error, mips_kill): Ditto.
10750 * ocd.c (interrupt_query): Ditto.
10751 * monitor.c (monitor_interrupt_query): Ditto.
10752 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10753 * target.h: Update comment.
aaa38bb5 10754
b5a2688f 10755 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 10756
2fa5c1e0
AC
107572002-02-09 Andrew Cagney <ac131313@redhat.com>
10758
10759 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10760 default_double_format.
10761 * gdbarch.h, gdbarch.c: Re-generate.
10762 * findvar.c (floatformat_unknown): Delete variable definition.
10763 * doublest.h (floatformat_unknown): Delete variable declaration.
10764
da966255
JB
107652002-02-09 Jim Blandy <jimb@redhat.com>
10766
10767 * stabsread.c (read_type): Add code to parse Sun's syntax for
10768 prototyped function types.
10769
123a4891
AC
107702002-02-09 Andrew Cagney <ac131313@redhat.com>
10771
10772 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10773 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10774
fb39c8f3
PS
107752002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10776
10777 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10778 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10779 now _initialize_xcoffsolib gets called again and overrides the
10780 commands from solib.c in a native configuration.
10781
0b87a11d
MK
107822002-02-09 Mark Kettenis <kettenis@gnu.org>
10783
10784 * doublest.c (store_typed_floating): Don't try to return a value.
10785 Fixes PR gdb/290.
10786
bdc2fc72
JB
107872002-02-08 Jim Blandy <jimb@redhat.com>
10788
10789 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10790 is prototyped and has no arguments, print its argument list as
10791 `(void)'.
10792
da69bbcf
CD
107932002-02-08 Chris Demetriou <cgd@broadcom.com>
10794
10795 * MAINTAINERS (write-after-approval): Add myself.
10796 (paper-trail): I've escaped!
aaa38bb5 10797
b69571f5
CF
107982002-02-08 Christopher Faylor <cgf@redhat.com>
10799
10800 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10801 changes.
10802 (_initialize_check_for_gdb_ini): Ditto.
10803
f6871398
MH
108042002-02-08 Martin M. Hunt <hunt@redhat.com>
10805
10806 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10807 xaprintf -> xasprintf.
10808
4e52d31c
PM
108092002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10810
10811 * win32-nat.c: Remove use of printf and sprintf functions.
10812
39bbf761
RE
108132002-02-08 Richard Earnshaw <rearnsha@arm.com>
10814
10815 * arm-tdep.c (arm_frame_chain_valid): Make static.
10816 (arm_push_arguments): Likewise.
10817 (arm_gdbarch_init): New function.
10818 (_initialize_arm_tdep): Call it.
10819 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10820 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10821 (FRAME_CHAIN_VALID): Delete.
10822 (arm_frame_chain_valid): Delete declaration.
10823 (PUSH_ARGUMENTS): Delete.
10824 (arm_push_arguments): Delete declaration.
10825 (CALL_DUMMY_P): Delete.
10826
9c9532c9
CV
108272002-02-08 Andrew Cagney <ac131313@redhat.com>
10828 Corinna Vinschen <vinschen@redhat.com>
10829
10830 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10831 on builtin float types.
10832
4e8f7a8b
DJ
108332002-02-08 Daniel Jacobowitz <drow@mvista.com>
10834
10835 * utils.c: Include <curses.h> before "bfd.h".
10836 * tui/tui-hooks.c: Likewise.
10837 * tui/tui.c: Likewise.
10838 * tui/tuiCommand.c: Likewise.
10839 * tui/tuiData.c: Likewise.
10840 * tui/tuiDataWin.c: Likewise.
10841 * tui/tuiDisassem.c: Likewise.
10842 * tui/tuiGeneralWin.c: Likewise.
10843 * tui/tuiIO.c: Likewise.
10844 * tui/tuiLayout.c: Likewise.
10845 * tui/tuiRegs.c: Likewise.
10846 * tui/tuiSource.c: Likewise.
10847 * tui/tuiSourceWin.c: Likewise.
10848 * tui/tuiStack.c: Likewise.
10849 * tui/tuiWin.c: Likewise.
10850
cd4bffcf
EZ
108512002-02-07 Elena Zannoni <ezannoni@redhat.com>
10852
10853 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10854 to include space for pseudoregs as well. Update loops accordingly.
10855 (sh_fp_frame_init_saved_regs): Ditto.
10856 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10857
26806ce2
AC
108582002-02-07 Andrew Cagney <ac131313@redhat.com>
10859
10860 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10861 Add Richard Earnshaw to Arm maintainers.
10862
97fdab62
AC
108632002-02-07 Andrew Cagney <ac131313@redhat.com>
10864
a6b98203
AC
10865 * defs.h (warning_begin): Delete declaration.
10866
97fdab62
AC
10867 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10868 Delete macro.
10869
78b29b40
MS
108702002-02-07 Michael Snyder <msnyder@redhat.com>
10871
aaa38bb5 10872 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
10873 Logic bug, remove misplaced else.
10874
d8849953
KD
108752002-02-07 Klee Dienes <klee@apple.com>
10876
10877 * fork-inferior.c (fork_inferior): Add '!' to the list of
10878 characters that need to be quoted when building a string for the
10879 shell. Quote '!' specifically with a backslash, since CSH chokes
10880 when trying to evaluate "str!str".
aaa38bb5 10881
095778a0
NC
108822002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10883
10884 * rdi-share/host.h: Only provide a typedef for bool if it is not
10885 defined.
10886
1900040c
MS
108872002-02-04 Michael Snyder <msnyder@redhat.com>
10888
10889 * breakpoint.h (enum bptype): Add new overlay event bp type.
10890 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 10891
1900040c
MS
10892 * breakpoint.c (create_internal_breakpoint): New function.
10893 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10894 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10895 (create_thread_event_breakpoint): Ditto.
10896 (create_solib_event_breakpoint): Ditto.
10897 (create_overlay_event_breakpoint): New function.
10898 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10899 (update_breakpoints_after_exec): Delete and re-initialize
10900 overlay event breakpoints after an exec. Add FIXME comment
10901 about longjmp breakpoint.
10902 (print_it_typical): Ignore overlay event breakpoints.
10903 (print_one_breakpoint): Ditto.
10904 (mention): Ditto.
10905 (bpstat_what): Do not stop for overlay event breakpoints.
10906 (delete_breakpoint): Don't delete overlay event breakpoints.
10907 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10908 (breakpoint_re_set): Re-create overlay event breakpoint.
10909
10910 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10911 (overlay_manual_command): Disable overlay breakpoints.
10912 (overlay_off_command): Disable overlay breakpoints.
10913
082fc60d
RE
109142002-02-06 Richard Earnshaw <rearnsha@arm.com>
10915
10916 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10917 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10918 to here from config/tm-arm.h.
10919 (coff_sym_is_thumb): Make static.
10920 (arm_elf_make_msymbol_special): New function.
10921 (arm_coff_make_msymbol_special): New function.
10922 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10923 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10924 (coff_sym_is_thumb): Delete declaration.
10925 (arm_elf_make_msymbol_special): Declare.
10926 (arm_coff_make_msymbol_special): Declare.
10927 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10928 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10929
039c5766
RE
109302002-02-06 Richard Earnshaw <rearnsha@arm.com>
10931
10932 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10933
109342002-02-06 Richard Earnshaw <rearnsha@arm.com>
10935
10936 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10937 * gdbarch.c gdbarch.h: Regenerate.
10938 * arch-utils.c (default_print_float_info): New function.
10939 * arch-utils.h (default_print_float_info): Prototype it.
10940 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10941 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10942 (PRINT_FLOAT_INFO): Document it.
10943
10944 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10945 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10946 (PRINT_FLOAT_INFO): Define.
10947
58fa08f0
PM
109482002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10949
aaa38bb5 10950 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10951 Add typecast to sprintf argument to suppress a warning.
10952
7393af7c
PM
109532002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10954
58fa08f0 10955 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10956 to allow easier handling of pass state.
10957 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10958 that gives exception name and address.
10959 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10960 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10961 exceptions added.
aaa38bb5
AJ
10962 (child_continue): Correctly report continue_status.
10963 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10964 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10965 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10966 the exception should be passed to debuggee or not.
10967
6af4589c
MS
109682002-02-05 Michael Snyder <msnyder@redhat.com>
10969
10970 * regcache.c (fetch_register): Call target_fetch_register
10971 only if we don't call FETCH_PSEUDO_REGISTER.
10972 (store_register): Call target_store_register only if we
10973 don't call STORE_PSEUDO_REGISTER.
10974
a2cf933a
EZ
109752002-02-05 Elena Zannoni <ezannoni@redhat.com>
10976
10977 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10978 ELF_MAKE_MSYMBOL_SPECIAL.
10979 * gdbarch.c, gdbarch.h: Regenerate.
10980 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10981 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10982 * elfread.c (elf_symtab_read): Compile use of
10983 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10984 multiarched.
10985 * coffread.c (coff_symtab_read): Ditto, for
10986 COFF_MAKE_MSYMBOL_SPECIAL.
10987
6bb7be43
JB
109882002-02-05 Jim Blandy <jimb@redhat.com>
10989
10990 * solib-svr4.c (svr4_truncate_ptr): New function.
10991 (svr4_relocate_section_addresses): Do the address arithmetic with
10992 the appropriate truncation for target addresses, even when
10993 CORE_ADDR is larger than a target address.
10994
e18651ec
DJ
109952002-02-05 Daniel Jacobowitz <drow@mvista.com>
10996
10997 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10998 to (int *).
10999
6b2725be
DJ
110002002-02-05 Daniel Jacobowitz <drow@mvista.com>
11001
11002 * gdbserver/linux-low.c (kill_inferior): Remove commented out
11003 code.
11004
fca9e603
DJ
110052002-02-05 Daniel Jacobowitz <drow@mvista.com>
11006
11007 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11008
6c537a52
DJ
110092002-02-05 Daniel Jacobowitz <drow@mvista.com>
11010
11011 * gdbserver/linux-low.c: Remove unused include files.
11012
d844cde6
DJ
110132002-02-05 Daniel Jacobowitz <drow@mvista.com>
11014
11015 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11016 (read_inferior_memory): Use it.
11017 (write_inferior_memory): Likewise.
11018
d07c63e7
DJ
110192002-02-05 Daniel Jacobowitz <drow@mvista.com>
11020
11021 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11022 grubbing through sys_errlist.
11023
da6d8c04
DJ
110242002-02-05 Daniel Jacobowitz <drow@mvista.com>
11025
11026 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11027
5b421780
PM
110282002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11029 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11030
9f60d481
AC
110312002-02-04 Andrew Cagney <ac131313@redhat.com>
11032
11033 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11034 (do_sfunc, set_cmd_sfunc): New functions.
11035
11036 * command.h (struct cmd_list_element): Add field func.
11037 * cli/cli-decode.h (struct cmd_list_element): Ditto.
11038 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11039 * cli/cli-decode.h: Ditto.
11040
11041 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11042 (help_all, help_cmd_list): Ditto.
11043 (find_cmd, complete_on_cmdlist): Ditto.
11044 * top.c (execute_command): Ditto.
11045
11046 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11047 function.sfunc.
11048
11049 * infcmd.c (notice_args_read): Fix function signature.
11050
11051 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11052 * cli/cli-decode.c (add_set_cmd): Ditto.
11053 * utils.c (initialize_utils): Ditto.
11054 * maint.c (_initialize_maint_cmds): Ditto.
11055 * infrun.c (_initialize_infrun): Ditto.
11056 * demangle.c (_initialize_demangler): Ditto.
11057 * remote.c (add_packet_config_cmd): Ditto.
11058 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11059 * cris-tdep.c (_initialize_cris_tdep): Ditto.
11060 * proc-api.c (_initialize_proc_api): Ditto.
11061 * kod.c (_initialize_kod): Ditto.
11062 * valprint.c (_initialize_valprint): Ditto.
11063 * top.c (init_main): Ditto.
11064 * infcmd.c (_initialize_infcmd): Ditto.
11065 * corefile.c (_initialize_core): Ditto.
11066 * arm-tdep.c (_initialize_arm_tdep): Ditto.
11067 * arch-utils.c (initialize_current_architecture): Ditto.
11068 (_initialize_gdbarch_utils): Ditto.
11069 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
11070
11071 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
11072 * wince.c (_initialize_inftarg): Ditto.
11073 * symfile.c (_initialize_symfile): Ditto.
11074 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11075 * language.c (_initialize_language): Ditto.
11076 * arc-tdep.c (_initialize_arc_tdep): Ditto.
11077
f9ba0717
MS
110782002-02-04 Michael Snyder <msnyder@redhat.com>
11079
11080 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11081
0c74b2a7
DJ
110822002-02-04 Daniel Jacobowitz <drow@mvista.com>
11083
11084 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11085 Add rules for building the register data files.
11086
c638789f
DJ
110872002-02-04 Daniel Jacobowitz <drow@mvista.com>
11088
11089 * regformats/regdat.sh: Add braces to the definition of
11090 expedite_regs_${arch}.
11091
db253027
DJ
110922002-02-04 Daniel Jacobowitz <drow@mvista.com>
11093
11094 * regformats/regdef.h (struct reg): Add comment describing the
11095 requirements for offset and size fields.
11096
206be19c
AS
110972002-02-04 Andreas Schwab <schwab@suse.de>
11098
11099 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11100 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11101
181c1381
RE
111022002-02-04 Richard Earnshaw <rearnsha@arm.com>
11103
11104 * gdbarch.sh (copyright): Update years in generated header.
11105 (SMASH_TEXT_ADDRESS): Add rule.
db253027 11106 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
11107 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11108 * dbxread.c: Likewise.
11109 * dwarfread.c: Likewise.
11110 * elfread.c: Likewise.
11111 * somread.c: Likewise.
11112
11113 * arm-tdep.c (arm_smash_text_address): New function.
11114 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11115
fa4ba8da
PM
111162002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11117
11118 Add support for hardware watchpoints on win32 native.
aaa38bb5 11119 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 11120 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 11121 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
11122 of debug registers.
11123 (debug_registers_changed): New variable. Reflects when debug registers
11124 are changed and need to be written to inferior.
aaa38bb5 11125 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
11126 was set, used when new threads are created.
11127 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11128 i386-nat code.
11129 (thread_rec): Set dr array if id is the thread of current_event .
11130 (child_continue, child_resume): Change the debug registers for all
11131 threads if debug_registers_changed.
11132 (child_add_thread): Change the debug registers if debug_registers_used.
11133 * config/i386/cygwin.mh: Add use of i386-nat.o file.
11134 Link nm.h to new nm-cygwin.h file.
11135 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11136 of hardware registers.
11137
a73c86fb
AC
111382002-02-03 Andrew Cagney <ac131313@redhat.com>
11139
11140 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11141 Restore behavour broken by 2002-01-20 Andrew Cagney
11142 <ac131313@redhat.com> IEEE_FLOAT removal.
11143
acf5ed49
DJ
111442002-02-03 Daniel Jacobowitz <drow@mvista.com>
11145
11146 * c-valprint.c (c_val_print): Pass a proper valaddr to
11147 cp_print_class_method.
11148 * valops.c (search_struct_method): If there is only one method
11149 and args is NULL, return that method.
11150
493d28d5
DJ
111512002-02-03 Daniel Jacobowitz <drow@mvista.com>
11152
11153 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11154 accessing tag_name directly.
11155
7495dfdb
DJ
111562002-02-03 Daniel Jacobowitz <drow@mvista.com>
11157
11158 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11159 of accessing tag_name directly.
11160
dd6bda65
DJ
111612002-02-03 Daniel Jacobowitz <drow@mvista.com>
11162
11163 PR gdb/280
11164 * gdbtypes.c (replace_type): New function.
11165 * gdbtypes.h (replace_type): Add prototype.
11166 * stabsread.c (read_type): Use replace_type.
11167
88fe217c
RE
111682002-02-03 Richard Earnshaw <rearnsha@arm.com>
11169
11170 * Makefile.in (memattr.o): Add missing dependencies rule.
11171
e5d66720
PS
111722002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11173
11174 * breakpoint.c (break_at_finish_command): Really export.
11175 (break_at_finish_at_depth_command): Ditto.
11176 (tbreak_at_finish_command): Ditto.
11177 * hppa-tdep.c: Include completer.h.
11178 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11179 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11180
fffee0be
AC
111812002-02-01 Andrew Cagney <ac131313@redhat.com>
11182
11183 * utils.c (do_write): New function.
11184 (error_stream): Rewrite combining the code from error_begin and
11185 verror.
11186 (verror): Rewrite using error_stream.
11187 (error_begin): Delete function.
11188
255e7dbf
AC
111892002-02-01 Andrew Cagney <ac131313@redhat.com>
11190
11191 * utils.c (error_begin): Make static.
11192 * defs.h (error_begin): Delete declaration.
11193
11194 * linespec.c (cplusplus_error): Replace cplusplus_hint.
11195 (decode_line_1): Use cplusplus_error instead of error_begin,
11196 cplusplus_hint and return_to_top_level.
11197 * coffread.c (coff_symfile_read): Use error instead of error_begin
11198 and return_to_top_level.
11199 * infrun.c (default_skip_permanent_breakpoint): Ditto.
11200
ddfe3c15
AC
112012002-02-01 Andrew Cagney <ac131313@redhat.com>
11202
11203 * language.h (type_error, range_error): Make string parameter
11204 constant.
11205 * language.c (warning_pre_print): Delete extern declaration.
11206 * dwarfread.c (warning_pre_print): Ditto.
11207 * language.c (type_error, range_error): Rewrite to use verror and
11208 vwarning instead of warning_begin.
11209
03ac34d5
MS
112102002-02-01 Michael Snyder <msnyder@redhat.com>
11211
261c4ca2
MS
11212 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11213 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 11214
e00d1dc8
AC
112152002-02-01 Andrew Cagney <ac131313@redhat.com>
11216
11217 * command.h (NO_FUNCTION): Delete macro.
11218 * cli/cli-decode.h (NO_FUNCTION): Ditto.
11219 * top.c (execute_command): Replace NO_FUNCTION with NULL.
11220 * tracepoint.c (_initialize_tracepoint): Ditto.
11221 * cli/cli-decode.c (add_set_cmd): Ditto.
11222 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 11223
76b79d6e
DJ
112242002-02-01 Daniel Jacobowitz <drow@mvista.com>
11225
11226 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11227 Update ``this'' pointer when calling virtual functions.
11228
799f9e91
MS
112292002-02-01 Michael Snyder <msnyder@redhat.com>
11230
c7bd442c 11231 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
11232 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11233
3cf384d4
DJ
112342002-02-01 Daniel Jacobowitz <drow@mvista.com>
11235
11236 * regformats/reg-arm.dat: New file.
11237 * regformats/reg-i386.dat: New file.
11238 * regformats/reg-ia64.dat: New file.
11239 * regformats/reg-m68k.dat: New file.
11240 * regformats/reg-mips.dat: New file.
11241 * regformats/reg-ppc.dat: New file.
11242 * regformats/reg-sh.dat: New file.
11243 * regformats/regdef.h: New file.
11244 * regformats/regdat.sh: New file.
11245
0defa245
RE
112462002-02-01 Richard Earnshaw <reanrsha@arm.com>
11247
11248 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11249 (arm_frame_args_address, arm_frame_locals_address): New functions.
11250 (arm_frame_num_args): New function.
11251 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11252 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11253 (FRMA_NUM_ARGS): Call arm_frame_num_args.
11254
405f26e6
MS
112552002-01-31 Michael Snyder <msnyder@redhat.com>
11256
502fd408
MS
11257 * breakpoint.c (break_at_finish_command): Export.
11258 (break_at_finish_at_depth_command): Export.
11259 (tbreak_at_finish_command): Export.
d6020d45 11260 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 11261 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 11262 "txbreak" commands, which are HPPA specific.
502fd408 11263
7d35e135
MS
11264 * printcmd.c (disassemble_command): Remove an ancient
11265 artifact of an old merge.
11266
aaa38bb5 11267 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
11268 Define enum constant values for overlay mode.
11269 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
11270 (overlay_is_mapped, overlay_auto_command,
11271 overlay_manual_command): Ditto.
d874f1e2 11272
aaa38bb5
AJ
11273 * breakpoint.c (insert_breakpoints, remove_breakpoint,
11274 breakpoint_here_p, breakpoint_inserted_here_p,
11275 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
11276 describe_other_breakpoints, check_duplicates, clear_command):
11277 Coding standard fixes.
11278
8add0441 11279 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 11280 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
11281 code: check bfd SEC_READONLY flag for section.
11282
e351066e
AC
112832002-01-31 Andrew Cagney <ac131313@redhat.com>
11284
7d35e135 11285 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 11286
8a48e967
DJ
112872002-01-30 Daniel Jacobowitz <drow@mvista.com>
11288
11289 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11290 data symbols, since we search based on textlow and texthigh.
11291 (find_pc_sect_symtab): Likewise.
11292
f5a96129
AC
112932002-01-30 Andrew Cagney <ac131313@redhat.com>
11294
11295 * defs.h (vwarning): Declare.
f5a96129
AC
11296 * utils.c (vwarning): New function.
11297 (warning): Call vwarning.
11298 (warning_begin): Delete function.
11299
11300 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11301 the warning message.
11302 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11303 warning_begin.
11304
cefd4ef5
MS
113052002-01-30 Michael Snyder <msnyder@redhat.com>
11306
1a703748
MS
11307 * NEWS: Mention "set trust-readonly-sections" command.
11308 Mention generate-core-file command.
cefd4ef5 11309
3a11626d
MS
113102002-01-15 Michael Snyder <msnyder@redhat.com>
11311
11312 * target.c: New command, "set trust-readonly-sections on".
11313 (do_xfer_memory): Honor the suggestion to trust readonly sections
11314 by reading them from the object file instead of from the target.
11315 (initialize_targets): Register command "set trust-readonly-sections".
11316
d1c7e53b
AC
113172002-01-29 Andrew Cagney <ac131313@redhat.com>
11318
11319 * parse.c (target_map_name_to_register): Simplify, search regs and
11320 pseudo-regs using a single loop.
11321
e2c9a72c
AC
113222002-01-30 Andrew Cagney <ac131313@redhat.com>
11323
11324 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11325
69824b4e
MK
113262002-01-15 Rodney Brown <rbrown64@csc.com.au>
11327
11328 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11329 * config/i386/i386v42mp.mh: Add i387-nat.o .
11330 * i386v4-nat.c: Include i387-nat.h.
11331 (supply_fpregset): Use i387_supply_fsave.
11332 (fill_fpregset): Use i387_fill_fsave.
11333
6eb69eab
RE
113342002-01-30 Richard Earnshaw <rearnsha@arm.com>
11335
11336 * arm-tdep.c (arm_call_dummy_words): Define.
11337 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11338 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11339 (CALL_DUMMY_WORDS): Define.
11340 (arm_call_dummy_words): Declare.
11341 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11342 (arm_linux_call_dummy_words): Declare.
11343
9852326a
AS
113442002-01-30 Andreas Schwab <schwab@suse.de>
11345
11346 * m68klinux-nat.c: Fix last change to use regcache_collect
11347 instead of referencing registers[] directly.
11348
977a3030
AC
113492002-01-29 Andrew Cagney <ac131313@redhat.com>
11350
11351 * parse.c (target_map_name_to_register): Delete code wrapped in
11352 #ifdef REGISTER_NAME_ALIAS_HOOK.
11353
2076c72b
MS
113542002-01-28 Michael Snyder <msnyder@redhat.com>
11355
11356 * regcache.c (legacy_read_register_gen): Need to be able to
11357 read pseudo-register as well as real register.
11358 (legacy_write_register_gen): Ditto.
11359
8fcc723b
AC
113602002-01-28 Andrew Cagney <ac131313@redhat.com>
11361
11362 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11363 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11364 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11365 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11366 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11367 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11368 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11369 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11370 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11371 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11372 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11373 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11374 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11375 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11376 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11377 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11378 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11379 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11380 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11381 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11382
afe64c1a
AC
113832002-01-28 Andrew Cagney <ac131313@redhat.com>
11384
11385 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11386 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11387 (initialize_current_architecture): Update target_byte_order using
11388 information from BFD.
aaa38bb5 11389 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
11390 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11391
75bc7ddf
AC
113922002-01-28 Andrew Cagney <ac131313@redhat.com>
11393
11394 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11395 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11396
11397 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11398 #ifdef INVALID_FLOAT.
11399 * infcmd.c (do_registers_info): Ditto.
11400 * values.c (unpack_double): Ditto. Add comment.
11401
11402 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11403 already commented out.
11404
0280a90a
AS
114052002-01-26 Andreas Schwab <schwab@suse.de>
11406
11407 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11408 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11409 registers and add support for PTRACE_GETREGS.
11410
7072a954
AC
114112002-01-24 Andrew Cagney <ac131313@redhat.com>
11412
11413 GDB 5.1.1 released from 5.1 branch.
11414 * NEWS: Add 5.1.1 news.
11415 * README: Sync with 5.1 branch.
11416
86f902e0
FF
114172002-01-23 Fred Fish <fnf@redhat.com>
11418
11419 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11420 stabstring on initial malloc. Reallocing will copy it for us,
11421 if necessary.
11422
8af51c36
EZ
114232002-01-23 Elena Zannoni <ezannoni@redhat.com>
11424
aaa38bb5 11425 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
11426 (HFILES_NO_SRCDIR): Remove hpread.h.
11427 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11428 (hpread.o): Update dependencies.
11429 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11430
11431 * hp-psymtab-read.c: Remove file.
11432 * hp-symtab-read.c: Remove file.
11433 * hpread.h: Remove file.
11434
11435 * hpread.c: Merge all contents of hp-psymtab-read.c,
11436 hp-symtab-read.c and hpread.h into this file, as it was prior to
11437 January 1999.
11438
11439 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 11440 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
11441 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11442 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11443
dc5cfeb6
EZ
114442002-01-23 Elena Zannoni <ezannoni@redhat.com>
11445
11446 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11447 fill_gregset): Call gdbarch_tdep() just once, assign result to
11448 variable and use that, instead of calling the function several
11449 times.
11450
ea87b71b
AO
114512002-01-24 Alexandre Oliva <aoliva@redhat.com>
11452
11453 * configure.host: Accept sparcv9 as alias for sparc64.
11454 * configure.tgt: Likewise.
11455
13fc0c2f
KB
114562002-01-22 Kevin Buettner <kevinb@redhat.com>
11457
11458 * solib-aix5.c (build_so_list_from_mapfile)
11459 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11460 arguments is not reversed.
11461 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11462 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 11463
7bd872fe
EZ
114642002-01-22 Elena Zannoni <ezannoni@redhat.com>
11465
11466 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11467 modified version of obsolete sh_fetch_pseudo_register.
11468 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11469 (sh4_register_read): New function.
11470 (sh_pseudo_register_write): New function. Renamed and modified
11471 version of obsolete sh_store_pseudo_register.
11472 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11473 (sh4_register_write): New function.
11474 (sh_gdbarch_init): Remove setting of gdbarch function
11475 fetch_pseudo_register and store_pseudo_register. Remove setting of
11476 register_convert_to_raw, register_convert_to_virtual,
11477 register_convertible.
11478 (sh_sh4_register_convertible): Delete. No longer needed. All is
11479 taken care by architecture specific functions
11480 register_read/register_write.
11481 (sh_sh4_register_convert_to_virtual): Make static.
11482 (sh_sh4_register_convert_to_raw): Ditto.
11483
069e84fd
AC
114842002-01-22 Andrew Cagney <ac131313@redhat.com>
11485
11486 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11487 (floatformat_is_nan, floatformat_mantissa): Ditto.
11488
11489 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11490 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11491 builtin_type_ieee_double_little,
11492 builtin_type_ieee_double_littlebyte_bigword,
11493 builtin_type_m68881_ext, builtin_type_i960_ext,
11494 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11495 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11496 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11497 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11498
211a4f69
CV
114992002-01-22 Corinna Vinschen <vinschen@redhat.com>
11500
11501 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11502 parameter. Set frameless flag if it exists and depended of
11503 whether the scanned function is frameless or not.
11504 (xstormy16_skip_prologue): If function is frameless, return
11505 result of xstormy16_scan_prologue().
11506 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11507 call.
11508
f81353e4
EZ
115092002-01-21 Elena Zannoni <ezannoni@redhat.com>
11510
11511 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11512 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11513 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11514 sh_sh4_register_byte, sh_sh4_register_raw_size,
11515 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11516 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11517 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11518 sh_store_pseudo_register, sh_do_pseudo_register): Call
11519 gdbarch_tdep() just once, assign result to variable and use that,
11520 instead of calling the function several times.
11521
63c73a17
MK
115222002-01-20 Mark Kettenis <kettenis@gnu.org>
11523
11524 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11525 macros instead of LAST_FPU_CTRL_REGNUM.
11526 (store_register): Likewise.
11527
39ad761d
JB
115282002-01-21 Jim Blandy <jimb@redhat.com>
11529
11530 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11531 is up-to-date before running the program, not just when a program
11532 exits.
11533
3d74b771
FF
115342002-01-21 Fred Fish <fnf@redhat.com>
11535
11536 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11537 when we have found all instructions we are looking for.
11538
966fbf70
RE
115392002-01-21 Richard Earnshaw <rearnsha@arm.com>
11540
11541 * arm-tdep.c (arm_register_name): New function.
11542 (arm_registers_names): Make static.
11543 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11544 (arm_register_name): Declare.
11545 (REGISTER_NAME): Use it.
11546
c3b4394c
RE
115472002-01-21 Richard Earnshaw <rearnsha@arm.com>
11548 Kevin Buettner <kevinb@redhat.com>
11549
11550 Convert arm targets to new FRAME interface.
11551 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11552 (arm_frame_find_save_regs): Delete.
11553 (arm_frame_init_saved_regs): New.
11554 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11555 Allocate extra_info as required. Convert all uses of fsr.regs
11556 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11557 to use extra_info.
11558 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11559 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11560 (check_prologue_cache, save_prologue_cache): Likewise.
11561 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11562 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11563 (FRAME_FIND_SAVED_REGS): Delete.
11564 (arm_frame_find_saved_regs): Delete prototype.
11565 (arm_frame_init_saved_regs): New prototype.
11566 (FRAME_INIT_SAVED_REGS): Define.
11567
61d99182
AC
115682002-01-20 Andrew Cagney <ac131313@redhat.com>
11569
11570 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11571
6aaea291
AC
115722002-01-20 Andrew Cagney <ac131313@redhat.com>
11573
11574 From Jeff Law <law@redhat.com>:
11575 * infttrace.c: Include <sys/pstat.h>.
11576 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11577 exec file if the ttrace equivalent fails.
11578
15f698d2
AC
115792002-01-20 Andrew Cagney <ac131313@redhat.com>
11580
11581 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11582 (closeLogFile): Ditto.
11583
f86ddd7c
MC
115842002-01-20 Michael Chastain <mec@shout.net>
11585
11586 * top.c (print_gdb_version): Bump copyright year to 2002.
11587
904507ce
AC
115882002-01-20 Andrew Cagney <ac131313@redhat.com>
11589
11590 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11591 Zannoni and Eli Zaretskii.
11592
d7f0b9ce
DJ
115932002-01-20 Daniel Jacobowitz <drow@mvista.com>
11594
11595 * buildsym.c: Update copyright years.
11596 * c-typeprint.c: Likewise.
11597 * dwarf2read.c: Likewise.
11598 * f-typeprint.c: Likewise.
11599 * gdbtypes.c: Likewise.
11600 * gdbtypes.h: Likewise.
11601 * hp-symtab-read.c: Likewise.
11602 * hpread.c: Likewise.
11603 * mdebugread.c: Likewise.
11604 * p-typeprint.c: Likewise.
11605
3fd3d7d2
AC
116062002-01-20 Andrew Cagney <ac131313@redhat.com>
11607
11608 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11609 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11610 byte-order selectable.
11611 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11612 * arch-utils.c: Ditto.
11613 (set_endian): Ditto.
11614 (set_endian_from_file): Ditto.
11615 * gdbserver/low-sim.c (create_inferior): Ditto.
11616 * gdbarch.sh: Ditto.
11617 * gdbarch.h: Re-generate.
aaa38bb5
AJ
11618 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11619 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11620 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11621 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11622 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11623 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11624 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
11625 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11626 macro definition.
11627 * config/mips/tm-wince.h: Remove #undef of macro
11628 TARGET_BYTE_ORDER_SELECTABLE.
11629 * config/sh/tm-wince.h: Ditto.
11630
b02dede2
DJ
116312002-01-20 Daniel Jacobowitz <drow@mvista.com>
11632
11633 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11634 member function fields. Add accessor macro
11635 TYPE_FN_FIELD_ARTIFICIAL.
11636 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11637 * c-typeprint.c (c_type_print_base): Skip artificial member
11638 functions.
11639
c3643761
DJ
116402002-01-20 Daniel Jacobowitz <drow@mvista.com>
11641
11642 * f-typeprint.c: Delete unused function f_type_print_args.
11643 * p-typeprint.c: Delete unused function pascal_type_print_args.
11644
8176bb6d
DJ
116452002-01-20 Daniel Jacobowitz <drow@mvista.com>
11646
11647 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11648 comment. Add ``artificial'' to ``union field_location''.
11649
11650 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11651
11652 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11653 * mdebugread.c (parse_symbol): Likewise.
11654 * stabsread.c (define_symbol): Likewise.
11655 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11656 initializing TYPE_FIELD_BITPOS to n (obsolete).
11657 (hpread_doc_function_type): Likewise.
11658 * hpread.c (hpread_function_type): Likewise.
11659
7fd60527
AC
116602002-01-20 Andrew Cagney <ac131313@redhat.com>
11661
11662 * configure.in (host_makefile_frag): Only require a host makefile
11663 fragment when a native build.
11664 * configure: Re-generate.
11665
c2f05ac9
AC
116662002-01-20 Andrew Cagney <ac131313@redhat.com>
11667
11668 * doublest.h (floatformat_from_type): Declare.
11669 * doublest.c (floatformat_from_type): New function.
11670 (convert_typed_floating): Use.
11671
11672 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11673 call to function floatformat_from_type.
11674
11675 * gdbarch.sh (IEEE_FLOAT): Delete.
11676 * gdbarch.h, gdbarch.c: Re-generate.
11677 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11678 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11679 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11680 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11681 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11682 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11683 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11684 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11685 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11686 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11687 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
11688 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11689
11690 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11691 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11692 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11693 * sh-tdep.c (sh_gdbarch_init): Ditto.
11694 * mips-tdep.c (mips_gdbarch_init): Ditto.
11695 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11696 * cris-tdep.c (cris_gdbarch_init): Ditto.
11697
abf22e64
AJ
116982002-01-20 Jiri Smid <smid@suse.cz>
11699
11700 * configure.host, configure.tgt: Support x86-64.
11701 * NEWS: Note new target x86-64.
11702
b7c4cbf8
AJ
11703 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11704 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11705 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11706 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11707 x86-64-linux-nat.o): Fix dependencies.
11708
82600034
AC
117092002-01-19 Andrew Cagney <ac131313@redhat.com>
11710
11711 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11712 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11713 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11714 * config/sparc/xm-sun4os4.h: Delete file.
11715 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 11716
bbe5c628
AC
117172002-01-19 Andrew Cagney <ac131313@redhat.com>
11718
11719 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11720 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11721 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11722 * config/i386/i386lynx.mh (XM_FILE): Delete.
11723 * config/rs6000/xm-rs6000ly.h: Delete file.
11724 * config/sparc/xm-sparclynx.h: Delete file.
11725 * config/m68k/xm-m68klynx.h: Delete file.
11726 * config/i386/xm-i386lynx.h: Delete file.
11727 * config/xm-lynx.h: Delete file.
11728 * config/djgpp/fnchange.lst: Update.
11729
f8453e34
JT
117302002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11731
11732 * alpha-tdep.c (alpha_register_byte): New function.
11733 (alpha_register_raw_size): Ditto.
11734 (alpha_register_virtual_size): Ditto.
11735 (alpha_skip_prologue_internal): Renamed from
11736 alpha_skip_prologue.
11737 (alpha_skip_prologue): New version that calls
11738 alpha_skip_prologue_internal.
11739 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11740 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11741 second argument from alpha_skip_prologue.
11742 (REGISTER_BYTE): Use alpha_register_byte.
11743 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11744 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11745 (FRAMELESS_FUNCTION_INVOCATION): Use
11746 generic_frameless_function_invocation_not.
11747 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11748 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11749
52d9e613
AC
117502002-01-19 Andrew Cagney <ac131313@redhat.com>
11751
11752 * config/mips/xm-news-mips.h: Delete file.
11753 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11754
11755 * config/m88k/xm-m88k.h: Delete file.
11756 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11757 * config/m88k/xm-delta88v4.h: Ditto.
11758 * config/m88k/xm-delta88.h: Ditto.
11759
11760 * config/alpha/xm-fbsd.h: Delete file.
11761 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11762
11763 * config/sparc/xm-sparc.h: Delete file.
11764 * Makefile.in (xm-sun4os4.h): Delete dependency.
11765 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11766 * config/sparc/xm-sun4os4.h: Ditto.
11767 * config/sparc/xm-linux.h: Ditto.
11768
11769 * config/i386/xm-windows.h: Delete file.
11770
2d1b2124
AC
117712002-01-19 Andrew Cagney <ac131313@redhat.com>
11772
11773 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11774 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11775
ee1f65f0
JT
117762002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11777
11778 * alpha-tdep.c (alpha_call_dummy_words): New.
11779 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11780 (CALL_DUMMY_P): Define.
11781 (CALL_DUMMY_WORDS): Define.
11782 (SIZEOF_CALL_DUMMY_WORDS): Define.
11783
98081e55
PB
117842002-01-19 Per Bothner <per@bothner.com>
11785
11786 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11787 isn't NULL, which can happen with some gcj-3.x-produced code.
11788
0d056799
JT
117892002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11790
11791 * alpha-tdep.c (alpha_register_virtual_type): New function.
11792 (alpha_init_frame_pc_first): Ditto.
11793 (alpha_fix_call_dummy): Ditto.
11794 (alpha_store_struct_return): Ditto.
11795 (alpha_extract_struct_value_address): Ditto.
11796 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11797 alpha_register_virtual_type.
11798 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11799 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11800 alpha_extract_struct_value_address.
11801 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11802 (INIT_FRAME_PC): Use init_frame_pc_noop.
11803 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11804
4604bcad
MK
118052002-01-19 Mark Kettenis <kettenis@gnu.org>
11806
11807 * i386gnu-nat.c: Include "i386-tdep.h".
11808 (fetch_fpregs): Simplify code dealing with uninitialized floating
11809 point states such that it doesn't require FP7_REGNUM.
11810
140f9984
JT
118112002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11812
abf22e64
AJ
11813 * alpha-tdep.c (frame_extra_info): New.
11814 (alpha_find_saved_regs): Make static. Use
140f9984
JT
11815 frame->extra_info.
11816 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
11817 (alpha_frame_saved_pc): Use frame->extra_info.
11818 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11819 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
11820 (init_extra_frame_info): Rename to...
11821 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 11822 (alpha_print_extra_frame_info): New function.
140f9984
JT
11823 (alpha_frame_locals_address): Ditto.
11824 (alpha_frame_args_address): Ditto.
abf22e64 11825 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
11826 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11827 alpha_frame_args_address.
abf22e64 11828 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 11829 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
11830 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11831 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
11832 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11833 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11834
d734c450
JT
118352002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11836
11837 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11838 (alpha_cannot_fetch_register): Ditto.
11839 (alpha_cannot_store_register): Ditto.
11840 (alpha_register_convertible): Ditto.
11841 (alpha_use_struct_convention): Ditto.
11842 * config/alpha/tm-alpha.h: Update copyright years.
11843 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11844 (INNER_THAN): Use core_addr_lessthan.
11845 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11846 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11847 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11848 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11849 (FRAME_CHAIN): Remove unnecessary cast.
11850
b4ceaee6
AC
118512002-01-18 Andrew Cagney <ac131313@redhat.com>
11852
11853 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11854 obsolete.
11855
0a65a603
AC
118562002-01-18 Andrew Cagney <ac131313@redhat.com>
11857
11858 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11859 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11860 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11861 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11862 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11863 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11864 * x86-64-linux-nat.c: Ditto.
11865
636a6dfc
JT
118662002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11867
abf22e64 11868 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
11869 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11870 (REGISTER_NAME): Define.
11871
acceddb6
JT
118722002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11873
11874 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11875
ec32e4be
JT
118762002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11877
11878 * alpha-tdep.c: Update copyright years.
11879 (alpha_next_pc): New function.
11880 (alpha_software_single_step): Ditto.
11881 * config/alpha/tm-alpha.h: Add prototype for
11882 alpha_software_single_step.
11883
e771a871
JT
118842002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11885
11886 * alphabsd-nat.c: Update copyright years.
11887 (fill_gregset): Use regcache_collect.
11888 (fill_fpregset): Likewise.
11889 (fetch_inferior_registers): Only fetch integer registers
11890 if requested to do so.
11891 (store_inferior_registers): Only store integer registers
11892 if requested to do so.
11893
7708fa01
AC
118942002-01-17 Andrew Cagney <ac131313@redhat.com>
11895
11896 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11897 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11898 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11899 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11900 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11901 * config/arm/linux.mh (XDEPFILES): Delete.
11902 * config/arm/nbsd.mh (XDEPFILES): Delete.
11903 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11904 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11905 * config/i386/i386m3.mh (XDEPFILES): Delete.
11906 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11907 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11908 * config/i386/fbsd.mh (XDEPFILES): Delete.
11909 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11910 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11911 * config/i386/i386v4.mh (XDEPFILES): Delete.
11912 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11913 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11914 * config/i386/i386aix.mh (XDEPFILES): Delete.
11915 * config/i386/go32.mh (XDEPFILES): Delete.
11916 * config/i386/cygwin.mh (XDEPFILES): Delete.
11917 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11918 * config/i386/i386mach.mh (XDEPFILES): Delete.
11919 * config/i386/i386v32.mh (XDEPFILES): Delete.
11920 * config/i386/linux.mh (XDEPFILES): Delete.
11921 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11922 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11923 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11924 * config/i386/i386sco.mh (XDEPFILES): Delete.
11925 * config/i386/i386v.mh (XDEPFILES): Delete.
11926 * config/i386/nbsd.mh (XDEPFILES): Delete.
11927 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11928 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11929 * config/i386/symmetry.mh (XDEPFILES): Delete.
11930 * config/i386/obsd.mh (XDEPFILES): Delete.
11931 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11932 * config/ia64/linux.mh (XDEPFILES): Delete.
11933 * config/ia64/aix.mh (XDEPFILES): Delete.
11934 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11935 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11936 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11937 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11938 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11939 * config/m68k/linux.mh (XDEPFILES): Delete.
11940 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11941 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11942 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11943 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11944 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11945 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11946 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11947 * config/m88k/delta88.mh (XDEPFILES): Delete.
11948 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11949 * config/m88k/m88k.mh (XDEPFILES): Delete.
11950 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11951 * config/mips/linux.mh (XDEPFILES): Delete.
11952 * config/mips/irix6.mh (XDEPFILES): Delete.
11953 * config/mips/irix5.mh (XDEPFILES): Delete.
11954 * config/mips/irix4.mh (XDEPFILES): Delete.
11955 * config/mips/irix3.mh (XDEPFILES): Delete.
11956 * config/mips/decstation.mh (XDEPFILES): Delete.
11957 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11958 (NATDEPFILES): Move core-aout.o to here.
11959 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11960 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11961 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11962 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11963 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11964 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11965 * config/pa/hpux11.mh (XDEPFILES): Delete.
11966 * config/powerpc/aix.mh (XDEPFILES): Delete.
11967 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11968 * config/powerpc/linux.mh (XDEPFILES): Delete.
11969 * config/romp/rtbsd.mh: Rename XDEPFILES.
11970 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11971 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11972 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11973 * config/s390/s390.mh (XDEPFILES): Delete.
11974 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11975 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11976 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11977 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11978 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11979 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11980 * config/sparc/linux.mh (XDEPFILES): Delete.
11981 * config/vax/vaxult.mh (XDEPFILES): Delete.
11982 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11983 * Makefile.in (DEPFILES): Remove XDEPFILES.
11984
375fc983
AC
119852002-01-17 Andrew Cagney <ac131313@redhat.com>
11986
11987 * utils.c (internal_verror): Fix comments, default is yes not no.
11988 Update queries to match. Default to quit and dump core.
11989
8926118c
AC
119902002-01-17 Andrew Cagney <ac131313@redhat.com>
11991
11992 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11993 copyright.
11994 * defs.h, event-top.c, gdbcmd.h: Ditto.
11995 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11996 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11997 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11998 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11999 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12000 * mi/mi-main.c:Ditto.
12001
12002 * stack.c, symfile.c: Update copyright.
12003
45b7b345
DJ
120042002-01-17 Daniel Jacobowitz <drow@mvista.com>
12005
db728ff7
DJ
12006 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12007 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12008 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12009 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 12010
db728ff7
DJ
120112002-01-17 Daniel Jacobowitz <drow@mvista.com>
12012
12013 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12014 * gdbserver/low-lynx.c (myattach): Likewise.
12015 * gdbserver/low-nbsd.c (myattach): Likewise.
12016 * gdbserver/low-sim.c (myattach): Likewise.
12017 * gdbserver/low-sparc.c (myattach): Likewise.
12018 * gdbserver/low-sun3.c (myattach): Likewise.
12019
12020 * gdbserver/low-linux.c (myattach): New function.
45b7b345 12021
db728ff7 12022 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
12023 (main): Handle "--attach".
12024
8de3c354
AC
120252002-01-16 Andrew Cagney <ac131313@redhat.com>
12026
12027 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12028 maintainer.
12029
b0129042
DJ
120302002-01-15 Daniel Jacobowitz <drow@mvista.com>
12031
12032 * c-typeprint.c (is_type_conversion_operator): Add additional
12033 check for non-conversion operators.
12034
ba8679fb 120352002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
12036
12037 * linux-proc.c: Add "info proc" command, a la procfs.c.
12038 (read_mapping): New function, abstract and re-use code.
12039 (linux_find_memory_regions): Use new func read_mapping.
12040 (linux_info_proc_cmd): New function, implement "info proc".
12041 (_initialize_linux_proc): Add new command "info proc".
12042
e4f9b4d5
MS
120432002-01-15 Michael Snyder <msnyder@redhat.com>
12044
12045 * symfile.c (generic_load): Use bfd_map_over_sections method
12046 instead of manipulating bfd structure members directly.
12047 (add_section_size_callback): New function, bfd sections callback
12048 used by generic_load.
12049 (load_sections_callback): New function, bfd sections callback
12050 used by generic_load.
12051
08cf96df
EZ
120522002-01-15 Elena Zannoni <ezannoni@redhat.com>
12053
abf22e64 12054 [Based on work by Jim Blandy]
08cf96df
EZ
12055 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12056 (builtin_type_vec128): Export.
12057 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12058 types.
12059 (builtin_type_vec128): New builtin type for 128 bit vector
12060 registers.
12061 (build_gdbtypes): Initialize builtin_type_v16qi and
12062 builtin_type_v8hi. Create the vec128 register builtin type
12063 structure.
12064 (build_builtin_type_vec128): New function.
abf22e64 12065 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
12066 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12067 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12068 AltiVec register to new builtin type.
12069
d7242108
DJ
120702001-01-15 Daniel Jacobowitz <drow@mvista.com>
12071
12072 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12073 to make_cv_type.
12074
4ee3352d
AC
120752002-01-14 Andrew Cagney <ac131313@redhat.com>
12076
12077 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12078 CLEAN_UP_REGISTER_VALUE.
12079 * regcache.c (supply_register): Update only call.
12080
f015b2e7
AC
120812002-01-14 Andrew Cagney <ac131313@redhat.com>
12082
12083 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12084 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12085 a29k-*-vxworks* targets as obsolete.
12086
356ae49d
MS
120872002-01-14 Michael Snyder <msnyder@redhat.com>
12088
12089 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12090 until we can resolve portability issues.
12091 * gregset.h: Remove references to fpxregs.
12092 * gcore.c (gcore_command): Initialize note_sec to NULL.
12093
ade8f45e
AC
120942002-01-13 Andrew Cagney <ac131313@redhat.com>
12095
12096 * signals.c (target_signal_to_name): Rewrite. Only use
12097 signals[].name when in bounds and non-NULL.
abf22e64 12098
89c49e7a
AC
120992002-01-13 Andrew Cagney <ac131313@redhat.com>
12100
12101 From Petr Ledvina <ledvinap@kae.zcu.cz>:
12102 * signals.c (target_signal_to_name): Verify that SIG is within the
12103 bounds of the signals array.
12104
4daa9f9f
AC
121052002-01-13 Andrew Cagney <ac131313@redhat.com>
12106
12107 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12108
ba4bbdcb
KS
121092002-01-13 Keith Seitz <keiths@redhat.com>
12110
12111 * stack.c (print_frame_info_base): Print the frame's pc
12112 only if when print_frame_info_listing_hook is not defined.
12113
575bbeb6
KS
121142002-01-13 Keith Seitz <keiths@redhat.com>
12115
12116 * varobj.c (varobj_set_value): Make sure that there were no
12117 errors evaluating the object before attempting to set its
12118 value.
12119 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12120 so this offset adjustment is no longer necessary.
12121 (create_child): Don't set the error flag if the child is
12122 a CPLUS_FAKE_CHILD.
12123 (value_of_child): If value_fetch_lazy fails, return NULL
12124 so that callers will be notified that an error occurred.
12125 (c_value_of_variable): Delay check of variable's validity
12126 until later. We actually want all structs and unions to have
12127 the value "{...}".
12128 Do not return "???" for variables which could not be evaluated.
12129 This error condition must be returned to the caller so that it
12130 can get the error condition from gdb.
12131 (cplus_name_of_child): Adjust index for vptr before figuring
12132 out the name of the child.
12133 (cplus_value_of_child): If a child's (real) parent is not valid,
12134 don't even bother trying to give a value for it. Just return
12135 an error. Change all instances in this function.
12136 (cplus_type_of_child): If our parent is one of the "fake"
12137 parents, we need to get at the type of the real parent, and
12138 derive the child's true type using this information.
12139
b76898ab
AC
121402002-01-13 Andrew Cagney <ac131313@redhat.com>
12141
12142 From 2002-01-09 John Marshall <johnm@falch.net>:
12143 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12144 sources.redhat.com, and tweak some related URLs which had
12145 suffered from linkrot.
12146
b6649e88
AC
121472002-01-13 Andrew Cagney <ac131313@redhat.com>
12148
12149 From Jeff law:
12150 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12151 structures passed in registers.
12152
82cc5033
EZ
121532002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
12154
12155 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12156 white space which prevented compilation. Reported by DSK
12157 <dsk@student.unsw.edu.au>.
12158
ba5f2f8a
MS
121592002-01-11 Michael Snyder <msnyder@redhat.com>
12160
fbd35540
MS
12161 * symfile.c (build_section_addr_info_from_section_tab):
12162 Use bfd access method instead of manipulating bfd directly.
12163 (syms_from_objfile): Ditto.
12164 (simple_overlay_update_1): Ditto.
12165 (simple_overlay_update): Ditto.
12166 (generic_load): Ditto.
12167 (overlay_unmapped_address): FIXME comment, bfd access methods.
12168 (sections_overlap): FIXME comment, bfd access methods.
12169 (pc_in_mapped_range): FIXME comment, bfd access methods.
12170 (pc_in_unmapped_range): FIXME comment, bfd access methods.
12171 (section_is_mapped): FIXME comment, bfd access methods.
12172 (section_is_overlay): FIXME comment, bfd access methods.
12173
ba5f2f8a
MS
12174 * symfile.c (generic_load): Whitespace and long line cleanups.
12175 Remove duplicate variable, change several local variables to
12176 more appropriate data types.
12177 (print_transfer_performance): Use %lu instead of %ld for ulongs.
12178
17df2af6
AC
121792002-01-12 Andrew Cagney <ac131313@redhat.com>
12180
12181 From Peter Schauer:
12182 * language.c (longest_local_hex_string_custom): Use phex_nz to
12183 convert NUM to a hex string.
12184
ec920329
EZ
121852002-01-12 Elena Zannoni <ezannoni@redhat.com>
12186
12187 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12188 the function.
538a76d6 12189 Update Copyright year.
ec920329 12190
3abd2e01
AC
121912002-01-12 Andrew Cagney <ac131313@redhat.com>
12192
12193 * language.c (longest_raw_hex_string): Delete unused function.
12194
b21b22e0
PS
121952002-01-11 Petr Sorfa <petrs@caldera.com>
12196
12197 * MAINTAINERS (write-after-approval): Add myself.
12198 * dwarf2read.c (read_tag_string_type): Handling of
12199 DW_AT_byte_size.
12200 (read_tag_string_type): FORTRAN fix to prevent propagation of
12201 first string size.
12202 (set_cu_language): Handling of DW_LANG_Fortran95
12203
747fe712
RE
122042002-01-11 Richard Earnshaw <rearnsha@arm.com>
12205
12206 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12207 GETPID(inferior_ptid).
12208 (store_inferior_registers): Likewise.
12209
f1bea926
JM
122102002-01-10 Jason Merrill <jason@redhat.com>
12211
12212 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12213 Fix DW_OP_minus.
12214
ae940673
AC
122152002-01-10 Andrew Cagney <ac131313@redhat.com>
12216
12217 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12218 and bfd/elf32-sh-nbsd.c.
12219
00546b04
MS
122202002-01-10 Michael Snyder <msnyder@redhat.com>
12221
352ed7b4
MS
12222 * NEWS: Mention --pid and corefile/proc-id behavior change.
12223
c18be923
MS
12224 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12225 * gcore.c: Include cli/cli-decode.h instead of command.h.
12226
00546b04
MS
12227 * main.c (captured_main): Add new command line option "--pid".
12228 If the second command line argument (following the symbol-file)
12229 begins with a digit, try to attach to it before trying to open
12230 it as a corefile.
12231 (print_gdb_help): Document the "--pid" argument.
12232
db60ec62
EZ
122332002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
12234
12235 * completer.c (command_completer): New function.
12236
12237 * completer.h <command_completer>: Add prototype.
12238
12239 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12240 completer for the "help" command.
12241
39c22d1a
JM
122422002-01-09 Jason Merrill <jason@redhat.com>
12243
12244 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12245
c564377f
MS
122462002-01-09 Michael Snyder <msnyder@redhat.com>
12247
975aec09
MS
12248 * i386-linux-nat.c (fill_fpxregset): Make global.
12249 (store_fpxregset): Ditto.
12250
db4a10fa
MS
12251 * gregset.h (gdb_fpxregset_t): Define.
12252 (supply_fpxregset): Prototype.
12253 (fill_fpxregset): Prototype.
12254
c564377f
MS
12255 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12256
c3d45d70
RE
122572002-01-09 Richard Earnshaw <rearnsha@arm.com>
12258
12259 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12260 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12261 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12262
fcc87af1
AC
122632002-01-09 Andrew Cagney <ac131313@redhat.com>
12264
12265 * MAINTAINERS: Update target maintainer rules so that any
12266 Maintainer can approve a tested patch for a maintenance-only
12267 target.
12268
dd96c05b
RE
122692002-01-09 Richard Earnshaw <rearnsha@arm.com>
12270
d4297db9 12271 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 12272
d4297db9 12273 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
12274 IN_SIGTRAMP.
12275
145fdc6e
MS
122762002-01-08 Michael Snyder <msnyder@redhat.com>
12277
12278 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12279 real name of the executable, rather than the /proc name.
12280
be4d1333
MS
122812002-01-03 Michael Snyder <msnyder@redhat.com>
12282
12283 Implement a "generate-core-file" command in gdb, save target state.
12284 * gcore.c: New file. Implement new command 'generate-core-file'.
12285 Save a corefile image of the current state of the inferior.
12286 * linux-proc.c: Add linux-specific code for saving corefiles.
12287 * target.h (struct target_ops): Add new target vectors for saving
12288 corefiles; to_find_memory_regions and to_make_corefile_notes.
12289 (target_find_memory_regions): New macro.
12290 (target_make_corefile_notes): New macro.
12291 * target.c (update_current_target): Inherit new target methods.
12292 (dummy_find_memory_regions): New place-holder method.
12293 (dummy_make_corefile_notes): New place-holder method.
12294 (init_dummy_target): Initialize new dummy target vectors.
12295 * exec.c (exec_set_find_memory_regions): New function.
12296 Allow the exec_ops vector for memory regions to be taken over.
12297 (exec_make_note_section): New function, target vector method.
12298 * defs.h (exec_set_find_memory_regions): Export prototype.
12299 * procfs.c (proc_find_memory_regions): New function, corefile method.
12300 (procfs_make_note_section): New function, corefile method.
12301 (init_procfs_ops): Set new target vector pointers.
12302 (find_memory_regions_callback): New function.
12303 (procfs_do_thread_registers): New function.
12304 (procfs_corefile_thread_callback): New function.
12305 * sol-thread.c (sol_find_memory_regions): New function.
12306 (sol_make_note_section): New function.
12307 (init_sol_thread_ops): Initialize new target vectors.
12308 * inftarg.c (inftarg_set_find_memory_regions): New function.
12309 Allow to_find_memory_regions vector to be taken over.
12310 (inftarg_set_make_corefile_notes): New function.
12311 Allow to_make_corefile_notes vector to be taken over.
12312 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12313 interface layer if not target_has_execution (may be a corefile).
12314 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12315 * config/sparc/sun4sol2.mh: Ditto.
12316 * config/alpha/alpha-linux.mh: Ditto.
12317 * config/arm/linux.mh: Ditto.
12318 * config/i386/x86-64linux.mh: Ditto.
12319 * config/ia64/linux.mh: Ditto.
12320 * config/m68k/linux.mh: Ditto.
12321 * config/mips/linux.mh: Ditto.
12322 * config/powerpc/linux.mh: Ditto.
12323 * config/sparc/linux.mh: Ditto.
12324
c6b92abd
MS
123252002-01-07 Michael Snyder <msnyder@redhat.com>
12326
12327 * arm-linux-nat.c: Remove references to regcache.c internal data
12328 (registers[] and register_valid[]).
12329
4b09dc8c
MS
123302002-01-07 Michael Snyder <msnyder@redhat.com>
12331
abf22e64
AJ
12332 * linux-proc.c: New file. Implement child_pid_to_exec_file,
12333 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
12334 symbol file and shlibs.
12335 * Makefile.in: Add rule for linux-proc.o.
12336 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12337 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12338 * config/arm/linux.mh: Ditto.
12339 * config/i386/linux.mh: Ditto.
12340 * config/i386/x86-64linux.mh: Ditto.
12341 * config/ia64/linux.mh: Ditto.
12342 * config/m68k/linux.mh: Ditto.
12343 * config/mips/linux.mh: Ditto.
12344 * config/powerpc/linux.mh: Ditto.
12345 * config/sparc/linux.mh: Ditto.
12346
c25b74ac
PM
123472002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12348
12349 * win32-nat.c: Add i386-tdep.h dependency.
12350
94cd915f
MS
123512002-01-07 Michael Snyder <msnyder@redhat.com>
12352
c7cccb76
MS
12353 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12354 instead of bfd_get_arch_size. Don't bail out just because
12355 there's no exec_bfd.
abf22e64 12356
34c0bd93
MS
12357 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12358 * p-valprint.c (pascal_object_print_value): Ditto.
12359 * somread.c (som_symtab_read): Ditto.
12360 * symfile.c (simple_free_overlay_region_table): Ditto.
12361 * valops.c (value_assign): Ditto.
12362
21c1c920
MS
12363 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12364 use tilde_expand and strerror for opening save-tracepoints file.
12365
5bbd998e
MS
12366 * thread-db.c (thread_db_new_objfile): Indendation fix.
12367
94cd915f
MS
12368 * infptrace.c (GDB_MAX_ALLOCA): New define.
12369 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 12370 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
12371 can be overridden with whatever value is appropriate to the host).
12372 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12373 alloca to allocate potentially large buffer.
12374 * rs6000-nat.c (child_xfer_memory): Ditto.
12375 * symm-nat.c (child_xfer_memory): Ditto.
12376 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12377
494e8a93
JSC
123782002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12379
12380 From Nick Clifton <nickc@redhat.com>
12381 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12382
d0e1d48e
MS
123832002-01-07 Michael Snyder <msnyder@redhat.com>
12384
abf22e64 12385 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
12386 Don't use exec_bfd if it's NULL.
12387
290b2c7a
MK
123882002-01-06 Mark Kettenis <kettenis@gnu.org>
12389
abf22e64 12390 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 12391
aef21287
AC
123922002-01-06 Andrew Cagney <ac131313@redhat.com>
12393
12394 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12395 * gnu-nat.c: Ditto.
12396
30efa627
AC
123972002-01-06 Andrew Cagney <ac131313@redhat.com>
12398
12399 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12400 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12401 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12402 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12403 z8k-coff have not been multi-arched. Update z8k-coff build
12404 status.
12405
9b4ff276
AC
124062002-01-06 Andrew Cagney <ac131313@redhat.com>
12407
12408 * MAINTAINERS: Mark a29k target as obsolete.
12409 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12410 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12411 comments.
12412 * NEWS: Note that a29k targets are obsolete.
12413 * a29k-tdep.c: Mark as obsolete.
12414 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12415 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12416 a29k-*-vxworks* targets as obsolete.
12417 * remote-adapt.c: Obsolete.
12418 * remote-eb.c: Obsolete.
12419 * remote-mm.c: Obsolete.
12420 * remote-udi.c: Obsolete.
12421 * config/a29k/a29k-udi.mt: Obsolete.
12422 * config/a29k/a29k.mt: Obsolete.
12423 * config/a29k/tm-a29k.h: Obsolete.
12424 * config/a29k/tm-vx29k.h: Obsolete.
12425 * config/a29k/vx29k.mt: Obsolete.
12426
a9011d31
AC
124272002-01-05 Andrew Cagney <ac131313@redhat.com>
12428
12429 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12430 with BFD_ENDIAN_BIG.
12431
9299404e
AC
124322002-01-05 Andrew Cagney <ac131313@redhat.com>
12433
12434 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12435 * configure, config.in: Re-generate.
12436 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12437 * defs.h: Do not include <endian.h>.
12438
7e89e357
JT
124392002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12440
12441 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12442 * config.in: Regenerate.
12443 * configure.in: Update copyright years.
12444 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12445 * configure: Regenerate.
12446 * i386bsd-nat.c: Update copyright years.
12447 (fill_gregset): Use regcache_collect.
12448 (fetch_inferior_registers): Only fetch integer registers
12449 if requested to do so. Add support for XMM registers
12450 using PT_GETXMMREGS.
12451 (store_inferior_registers): Only store integer registers
12452 if requested to do so. Add support for XMM registers
12453 using PT_SETXMMREGS.
12454 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12455 (store_inferior_registers): Remove.
12456 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12457 (fetch_elfcore_registers): New function.
12458 (i386nbsd_elfcore_fns): New.
12459 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12460 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12461 i386bsd-nat.o.
12462 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12463 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12464 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12465 * config/i386/tm-nbsd.h: Update copyright years.
12466 (HAVE_SSE_REGS): Define.
12467 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12468 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12469 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12470 (SIGCONTEXT_PC_OFFSET): Remove.
12471 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12472
a752853e
AC
124732002-01-05 Andrew Cagney <ac131313@redhat.com>
12474
12475 * configure.tgt: Remove powerpc-*-macos* target.
12476 * config/m68k/xm-mpw.h: Delete file.
12477 * config/xm-mpw.h: Delete file.
12478 * ser-mac.c: Delete file.
12479 * mpw-make.sed: Delete file.
12480 * mpw-config.in: Delete file.
12481 * mac-xdep.c: Delete file.
12482 * mac-gdb.r: Delete file.
12483 * mac-defs.h: Delete file.
12484 * mac-nat.c: Delete file.
12485 * config/powerpc/macos.mh: Delete file.
12486 * config/powerpc/macos.mt: Delete file.
12487 * config/powerpc/nm-macos.h: Delete file.
12488 * config/powerpc/tm-macos.h: Delete file.
12489 * source.c (openp, open_source_file): Remove obsolete code.
12490 * top.c (gdb_readline): Ditto.
12491 * utils.c (query): Ditto.
12492 * event-top.c (display_gdb_prompt): Ditto.
12493 * Makefile.in (ser-mac.o): Delete obsolete target.
12494 * NEWS: Update.
12495
d7449b42
AC
124962002-01-04 Andrew Cagney <ac131313@redhat.com>
12497
12498 * defs.h (BIG_ENDIAN): Delete macro definition.
12499 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12500 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12501 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12502 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12503 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12504 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12505 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12506 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12507 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12508 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12509 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12510 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12511 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12512 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12513 * gdbarch.c: Re-generate.
12514
356374e8
DJ
125152002-01-04 Daniel Jacobowitz <drow@mvista.com>
12516
12517 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12518 for core files.
12519
a2b8f8f8
JT
125202002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12521
12522 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12523
12466af9
AC
125242002-01-04 Andrew Cagney <ac131313@redhat.com>
12525
12526 * value.h (value_ptr): Delete typedef.
12527
3549ab40
JT
125282002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12529
12530 * i386nbsd-nat.c: Update copyright years.
12531 Include i386-tdep.h.
12532
fedbd091
EZ
125332002-01-04 Elena Zannoni <ezannoni@redhat.com>
12534
12535 * stabsread.c: Update copyright years.
12536
12537 From Debashis Mahata <debashis.mahata@wipro.com>:
12538 (read_struct_fields): Deal with Sun C compiler erroneous stab
12539 output for structs and unions.
fec8b34f 12540 Fix PR gdb/269.
fedbd091 12541
eb43544b
DJ
125422002-01-04 Daniel Jacobowitz <drow@mvista.com>
12543
12544 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12545 prototype.
12546
1514d34e
DJ
125472002-01-04 Daniel Jacobowitz <drow@mvista.com>
12548
12549 * cp-abi.c: Fix whitespace.
12550 (baseclass_offset): New wrapper function.
12551 * cp-abi.h (baseclass_offset): Add prototype.
12552 (struct cp_abi_ops): Add baseclass_offset pointer.
12553
12554 * valops.c (vb_match): Move to...
12555 * gnu-v2-abi.c (vb_match): here.
12556 * valops.c (baseclass_offset): Move to...
12557 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12558
12559 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12560
12561 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12562 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12563 * hpacc-abi.c (init_hpacc_ops): Likewise.
12564
7f8c9282
DJ
125652002-01-04 Daniel Jacobowitz <drow@mvista.com>
12566
12567 * valops.c (find_overload_match): Accept obj as a
12568 reference parameter. Update it before returning.
12569 * value.h (find_overload_match): Update prototype.
12570 * eval.c (evaluate_subexp_standard): Pass object to
12571 find_overload_match by reference.
12572
f23631e4
AC
125732002-01-03 Andrew Cagney <ac131313@redhat.com>
12574
12575 * valarith.c: Replace value_ptr with struct value pointer. Remove
12576 register attribute from value declarations.
12577 * valops.c: Ditto.
12578 * value.h: Ditto.
12579 * scm-lang.c (scm_lookup_name): Ditto.
12580
79e10fab 125812002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 12582
79e10fab
AC
12583 Abstract the functionality of iterating over mapped memory
12584 regions into a general purpose iterator function.
abf22e64 12585 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
12586 iterator for memory sections.
12587 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12588 (solib_mappings_callback): New function, callback for above.
12589 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12590 (info_mappings_callback): New function, callback for above.
12591
12592 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12593
c5ad026a
MK
125942002-01-01 Mark Kettenis <kettenis@gnu.org>
12595
d2a7c97a
MK
12596 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12597 * i386-tdep.c: Include "elf-bfd.h".
12598 (process_note_abi_tag_sections): New function.
12599 (i386_gdbarch_init): Add code to recognize various OS/ABI
12600 combinations.
12601
c5ad026a
MK
12602 * maint.c (_initialize_maint_cmds): Add missing \ in
12603 string-literal.
12604
a1a5b71e 12605For older changes see ChangeLog-2001
c906108c
SS
12606\f
12607Local Variables:
12608mode: change-log
12609left-margin: 8
12610fill-column: 74
12611version-control: never
12612End:
This page took 0.895884 seconds and 4 git commands to generate.