* alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
2
3 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
4 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5 tdep->jb_pc and tdep->jb_elt_size.
6 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9 * alpha-nat.c (get_longjmp_target): Remove.
10 (JB_ELEMENT_SIZE): Ditto.
11 (JB_PC): Ditto.
12 * alpha-tdep.c (alpha_get_longjmp_target): New function.
13 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
14 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
15 to alpha_get_longjmp_target.
16 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
17 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
18 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
19
20 2002-04-25 Andrew Cagney <ac131313@redhat.com>
21
22 * README: Update to GDB 5.2.
23
24 2002-04-25 Andrew Cagney <ac131313@redhat.com>
25
26 * gdbarch.sh (LC_ALL): Set to `c'.
27
28 2002-04-25 Theodore A. Roth <troth@verinet.com>
29
30 * avr-tdep.c: Ran through gdb_indent.sh.
31
32 2002-04-25 Theodore A. Roth <troth@verinet.com>
33
34 * MAINTAINERS: Add myself as AVR maintainer.
35 * NEWS: Note new target avr.
36
37 2002-04-25 Theodore A. Roth <troth@verinet.com>
38
39 * Makefile.in: Add support for AVR target.
40 * configure.tgt: Add support for AVR target.
41 * avr-tdep.c: New file
42 * config/avr/avr.mt: New file.
43
44 2002-04-25 Theodore A. Roth <troth@verinet.com>
45
46 * MAINTAINERS: Add myself to write-after-approval.
47
48 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
49
50 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
51 with fprintf_unfiltered (gdb_stderr,....
52
53 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
54
55 Fix PR gdb/508.
56 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
57
58 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
59
60 * p-exp.y: Also use new prev_lexptr variable
61 to improve error reporting. Based on Michael Snyder
62 2002-04-24 dated patch to c-exp.y.
63
64 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
65
66 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
67 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
68 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
69 to 0.
70 * config/alpha/tm-alpha.h: Remove forward decls of struct type
71 and struct value.
72 (FUNCTION_START_OFFSET): Remove.
73 (BREAKPOINT): Ditto.
74
75 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
76
77 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
78 * NEWS: Ditto.
79
80 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
81
82 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
83 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
84 alpha_linux_pc_in_sigtramp.
85 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
86 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
87 alpha_osf1_pc_in_sigtramp.
88 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
89 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
90 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
91 alphafbsd_pc_in_sigtramp.
92 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
93 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
94 alphanbsd_pc_in_sigtramp.
95 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
96 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
97
98 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
99
100 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
101
102 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
103
104 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
105 alphanbsd-tdep.c.
106 (alphanbsd-nat.o): New dependency list.
107 (alphanbsd-tdep.o): Ditto.
108 * NEWS: Note new native NetBSD/alpha configuration.
109 * alphanbsd-nat.c: New file.
110 * alphanbsd-tdep.c: Ditto.
111 * configure.host (alpha*-*-netbsd*): New host.
112 * configure.tgt (alpha*-*-netbsd*): New target.
113 * config/alpha/nbsd.mh: New file.
114 * config/alpha/nbsd.mt: Ditto.
115 * config/alpha/nm-nbsd.h: Ditto.
116 * config/alpha/tm-nbsd.h: Ditto.
117
118 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
119
120 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
121 (alpha-osf1-tdep.o): New dependency list.
122 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
123 and skip_sigtramp_frame members.
124 * alpha-linux-tdep.c: Include gdbcore.h.
125 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
126 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
127 * alpha-osf1-tdep.c: New file.
128 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
129 alpha-osf1-dep.c.
130 (alpha_frame_past_sigtramp_frame): New function.
131 (alpha_dynamic_sigtramp_offset): Ditto.
132 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
133 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
134 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
135 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
136 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
137 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
138 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
139 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
140 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
141 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
142 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
143 to find_solib_trampoline_target.
144 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
145 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
146 (SKIP_TRAMPOLINE_CODE): Remove.
147 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
148 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
149 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
150 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
151 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
152 (PROC_SIGTRAMP_MAGIC): Ditto.
153 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
154 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
155 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
156 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
157 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
158
159 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
160
161 * NEWS: Note that Alpha targets are now multi-arch.
162
163 2002-04-24 Michael Snyder <msnyder@redhat.com>
164
165 * parser-defs.h (prev_lexptr): New external variable.
166 * parse.c (parse_exp_1): Set prev_lexptr to null before
167 calling the language-specific parser.
168 * c-exp.y (yylex): Set prev_lexptr to start of current token.
169 (yyerror): Use prev_lexptr in error reporting.
170
171 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
172
173 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
174 * gregset.h: If FILL_FPXREGSET is defined, provide
175 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
176 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
177 is defined, call fill_fpxregset.
178
179 2002-04-24 Roland McGrath <roland@frob.com>
180
181 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
182 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
183 (supply_gregset, supply_fpregset): New functions.
184
185 * gnu-nat.c (gnu_find_memory_regions): New function.
186 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
187 (gnu_xfer_memory): Add a cast.
188
189 2002-04-24 Michael Snyder <msnyder@redhat.com>
190
191 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
192 loop. Add handling for "str lr, [sp, #-4]!" and for saves
193 of argument regs ("str r(0123), [r11, #-nn"]).
194 (arm_skip_prologue): Better handling for frameless functions.
195 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
196 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
197
198 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
199
200 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
201 NUM_PSEUDO_REGS can be used.
202
203 2002-04-24 Andrew Cagney <ac131313@redhat.com>
204
205 * arch-utils.h: Update copyright.
206
207 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
208 * gdbarch.h, gdbarch.c: Re-generate.
209
210 * inferior.h (IN_SIGTRAMP): Delete definition.
211 * arch-utils.c (legacy_pc_in_sigtramp): New function.
212 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
213
214 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
215 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
216 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
217 (find_proc_framesize): Ditto.
218 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
219 (alpha_init_extra_frame_info): Ditto.
220 * infrun.c (handle_inferior_event): Ditto.
221 (handle_inferior_event): Ditto.
222 (check_sigtramp2): Ditto.
223 * blockframe.c (create_new_frame): Ditto.
224 (get_prev_frame): Ditto.
225 * ppc-linux-tdep.c: Update comments.
226 * i386-linux-tdep.c: Update comments.
227 * breakpoint.c (bpstat_what): Update comment.
228
229 2002-04-24 Michal Ludvig <mludvig@suse.cz>
230
231 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
232 (regsets_store_inferior_registers): Removed cast to int from
233 ptrace() calls.
234 * gdbserver/regcache.h: Added declaration of struct inferior_info.
235
236 2002-04-24 David S. Miller <davem@redhat.com>
237
238 * i960-tdep.c (register_in_window_p): New function.
239 (i960_find_saved_register): Use it instead of
240 REGISTER_IN_WINDOW_P.
241 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
242
243 * symtab.h (find_stab_function_addr): Kill extern.
244 * minsyms.c (find_stab_function_addr): Remove from here...
245 * dbxread.c: ... to here, and mark it static.
246
247 2002-04-20 David S. Miller <davem@redhat.com>
248
249 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
250 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
251
252 2002-04-21 David S. Miller <davem@redhat.com>
253
254 * remote-vxsparc.c (vx_read_register): Fix typo, we want
255 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
256 (vx_write_register): Likewise.
257
258 2002-04-23 J. Brobecker <brobecker@gnat.com>
259
260 * source.c (is_regular_file): New function.
261 (openp): Check wether file to open is a regular file
262 to avoid opening directories.
263
264 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
265
266 * findvar.c (extract_signed_integer): Cast printf argument
267 to suppress format warning.
268 (extract_unsigned_integer): Likewise.
269 * infcmd.c (registers_info): Likewise.
270 * top.c (get_prompt_1): Likewise.
271 * valops.c (value_assign): Likewise.
272 * valprint.c (print_decimal): Likewise.
273
274 2002-04-22 H.J. Lu (hjl@gnu.org)
275
276 * c-exp.y (typebase): Support
277
278 [long|long long|short] [signed|unsigned] [int|]
279
280 and
281
282 signed [long|long long|short] int
283
284 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
285
286 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
287 and vax-tdep.h.
288 * vax-tdep.h: New file.
289 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
290 Make several routines static.
291 (vax_get_saved_register): New function.
292 (vax_gdbarch_init): New function.
293 (_initialize_vax_tdep): Register vax_gdbarch_init.
294 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
295 Remove macros now under the control of gdbarch.
296
297 2002-04-22 Michael Snyder <msnyder@redhat.com>
298
299 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
300 Some whitespace and coding standards tweaks.
301
302 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
303
304 * vax-tdep.c: Include regcache.h.
305 (vax_call_dummy_words): New.
306 (sizeof_vax_call_dummy_words): New.
307 (vax_fix_call_dummy): New function.
308 (vax_saved_pc_after_call): Ditto.
309 * config/vax/tm-vax.h: Don't include regcache.h.
310 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
311 (CALL_DUMMY): Remove.
312 (CALL_DUMMY_WORDS): Define.
313 (SIZEOF_CALL_DUMMY_WORDS): Define.
314 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
315
316 2002-04-18 Michael Snyder <msnyder@redhat.com>
317
318 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
319
320 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
321
322 * vax-tdep.c (vax_frame_chain): New function.
323 (vax_push_dummy_frame): Ditto.
324 (vax_pop_frame): Ditto.
325 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
326 (FRAMELESS_FUNCTION_INVOCATION): Use
327 generic_frameless_function_invocation_not.
328 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
329 (POP_FRAME): Use vax_pop_frame.
330
331 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
332
333 * vax-tdep.c (vax_store_struct_return): New function.
334 (vax_extract_return_value): Ditto.
335 (vax_store_return_value): Ditto.
336 (vax_extract_struct_value_address): Ditto.
337 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
338 vax_store_struct_return.
339 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
340 (STORE_RETURN_VALUE): Use vax_store_return_value.
341 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
342
343 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
344
345 * vax-tdep.c (vax_frame_saved_pc): New function.
346 (vax_frame_args_address_correct): Ditto.
347 (vax_frame_args_address): Ditto.
348 (vax_frame_locals_address): Ditto.
349 (vax_frame_num_args): Move code to be in proximity to
350 other frame-related functions.
351 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
352 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
353 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
354 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
355 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
356
357 2002-04-22 H.J. Lu (hjl@gnu.org)
358
359 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
360 includedir.
361
362 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
363
364 * vax-tdep.c (vax_frame_init_saved_regs): New function.
365 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
366 (FRAME_INIT_SAVED_REGS): New macro.
367
368 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
369
370 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
371
372 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
373
374 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
375 where needed.
376 (fetch_osf_core_registers): Likewise.
377 (supply_gregset): Likewise.
378
379 2002-04-22 J. Brobecker <brobecker@gnat.com>
380
381 * symfile.h (get_section_index): Define.
382 * symfile.c (get_section_index): New function.
383 * mdebugread.c (SC_IS_SBSS): New macro.
384 (SC_IS_BSS): Return true for the scBss storage class only, as
385 the scSBss storage class refers to the .sbss section.
386 (parse_partial_symbols): Discard the symbols which associated
387 section does not exist.
388 Make sure to use the .sbss section index for symbols which
389 storage class is scBss, rather than using the .bss section index.
390
391 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
392
393 * vax-tdep.c: Update copyright years.
394 (vax_register_name): New function.
395 (vax_register_byte): Ditto.
396 (vax_register_raw_size): Ditto.
397 (vax_register_virtual_size): Ditto.
398 (vax_register_virtual_type): Ditto.
399 * config/vax/tm-vax.h: Update copyright years.
400 (REGISTER_NAMES): Remove.
401 (REGISTER_NAME): Define.
402 (REGISTER_BYTE): Use vax_register_byte.
403 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
404 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
405 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
406
407 2002-04-21 Andrew Cagney <ac131313@redhat.com>
408
409 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
410 declaration
411 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
412
413 2002-04-21 David S. Miller <davem@redhat.com>
414
415 * arch-utils.c (generic_prologue_frameless_p): Kill
416 SKIP_PROLOGUE_FRAMELESS_P code.
417 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
418 references.
419 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
420 * arc-tdep.c (arc_prologue_frameless_p): Implement.
421 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
422 references.
423 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
424 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
425 (sparc_gdbarch_init): Pass it to
426 set_gdbarch_prologue_frameless_p.
427
428 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
429
430 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
431 (alphabsd-nat.o): New dependency list.
432
433 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
434
435 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
436 alphafbsd-tdep.c.
437 (alpha-linux-tdep.o): New dependency list.
438 (alphafbsd-tdep.o): Likewise.
439
440 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
441
442 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
443 to here...
444 * alpha-tdep.c: ...from here.
445 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
446
447 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
448
449 * config/alpha/tm-alpha.h: Move alpha_software_single_step
450 prototype from here...
451 * alpha-tdep.h: ...to here.
452
453 2002-04-21 Andrew Cagney <ac131313@redhat.com>
454
455 * frame.h (selected_frame_level): Document as deprecated.
456 (frame_relative_level): Declare.
457 * stack.c (frame_relative_level): New function.
458 (selected_frame_level): Document as deprecated.
459 (select_frame): Do not set the selected_frame_level.
460
461 * stack.c (frame_info, record_selected_frame): Update.
462 (frame_command, current_frame_command): Update.
463 (up_silently_base, up_command, down_silently_base): Update.
464 (down_command): Update.
465 * inflow.c (kill_command): Update.
466 * tracepoint.c (finish_tfind_command): Update.
467 * corelow.c (core_open): Update.
468 * thread.c (info_threads_command): Update.
469 (do_captured_thread_select): Update.
470 * infcmd.c (finish_command): Update.
471 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
472
473 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
474
475 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
476
477 2002-04-21 Andrew Cagney <ac131313@redhat.com>
478
479 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
480 type const.
481
482 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
483
484 * alphafbsd-tdep.c: Update copyright years. Include
485 alpha-tdep.h.
486 (alphafbsd_use_struct_convention): Make static.
487 (alphafbsd_init_abi): New function.
488 (_initialize_alphafbsd_tdep): New function.
489 * config/alpha/tm-fbsd.h: Update copyright years.
490 (USE_STRUCT_CONVENTION): Remove.
491
492 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
493
494 * alpha-tdep.c (alpha_abi_handler): New structure to describe
495 an Alpha ABI variant.
496 (alpha_abi_handler_list): Declare.
497 (alpha_gdbarch_register_os_abi): New function.
498 (alpha_gdbarch_init): Give registered ABI variant handlers a
499 chance to tweak the gdbarch once we have set up defaults.
500 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
501
502 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
503
504 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
505 to standard_coerce_float_to_double.
506 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
507
508 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
509
510 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
511 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
512 from gdbarch_tdep rather than a constant.
513 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
514 the default text address for all Alpha Unix ABIs.
515 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
516 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
517
518 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
519
520 * alpha-tdep.h: New file. Includes several Alpha target constants
521 taken from...
522 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
523 let gdbarch deal with.
524 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
525 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
526 to dependency list.
527 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
528 Alpha target register names.
529 * alphabsd-nat.c: Likewise.
530 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
531 Alpha target register names. Make serveral routines static.
532 (alpha_get_saved_register): New function.
533 (alpha_abi_names): New.
534 (process_note_abi_tag_sections): New function.
535 (get_elfosabi): New function.
536 (alpha_gdbarch_init): New function.
537 (alpha_dump_tdep): New function.
538 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
539
540 2002-04-21 Andrew Cagney <ac131313@redhat.com>
541
542 * frame.c (find_saved_register): Delete #ifdef
543 HAVE_REGISTER_WINDOWS code.
544 * config/sparc/tm-sparc.h: Update comments.
545 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
546
547 2002-04-21 Andrew Cagney <ac131313@redhat.com>
548
549 * i960-tdep.c (i960_find_saved_register): New function.
550 (i960_get_saved_register): New function.
551 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
552 (i960_get_saved_register): Declare.
553 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
554
555 2002-04-20 David S. Miller <davem@redhat.com>
556
557 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
558
559 2002-04-20 Andrew Cagney <ac131313@redhat.com>
560
561 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
562 instead of NUM_PSEUDO_REGS.
563
564 2002-04-20 David S. Miller <davem@redhat.com>
565
566 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
567 GDB_MULTI_ARCH_PARTIAL
568 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
569 define, let tm-sp64.h do it.
570
571 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
572
573 * frame.c (find_saved_register): Avoid a NULL pointer
574 dereference and actually walk the frame list.
575
576 2002-04-20 Andrew Cagney <ac131313@redhat.com>
577
578 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
579 sorted in most most-recent-used order. Document.
580 * gdbarch.h, gdbarch.c: Regenerate.
581
582 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
583
584 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
585 (add_inferior): Call create_register_cache.
586 (clear_inferiors): Call free_register_cache.
587 (inferior_regcache_data, set_inferior_regcache_data): New functions.
588 * gdbserver/regcache.c (struct inferior_regcache_data): New.
589 (registers): Remove.
590 (get_regcache): New function.
591 (create_register_cache, free_register_cache): New functions.
592 (set_register_cache): Don't initialize the register cache here.
593 (registers_to_string, registers_from_string, register_data): Call
594 get_regcache.
595 * gdbserver/regcache.h: Add prototypes.
596 * gdbserver/server.h: Likewise.
597
598 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
599
600 * gdbserver/mem-break.c: New file.
601 * gdbserver/mem-break.h: New file.
602 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
603 dependencies.
604 * gdbserver/inferiors.c (struct inferior_info): Add target_data
605 member.
606 (clear_inferiors): Free target_data member if set.
607 (inferior_target_data, set_inferior_target_data): New functions.
608 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
609 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
610 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
611 (struct inferior_linux_data): New.
612 (linux_create_inferior): Use set_inferior_target_data.
613 (linux_attach): Likewise. Call add_inferior.
614 (linux_wait_for_one_inferior): New function.
615 (linux_wait): Call it.
616 (linux_write_memory): Add const.
617 (initialize_low): Call set_breakpoint_data.
618 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
619 handling members.
620 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
621 call.
622 * gdbserver/server.h: Include mem-break.h. Update inferior.c
623 prototypes.
624 * gdbserver/target.c (read_inferior_memory)
625 (write_inferior_memory): New functions.
626 * gdbserver/target.h (read_inferior_memory)
627 (write_inferior_memory): Change macros to prototypes.
628 (struct target_ops): Update comments. Add const to write_memory
629 definition.
630
631 2002-04-19 Andrew Cagney <ac131313@redhat.com>
632
633 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
634 instead of ->prev.
635 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
636 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
637 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
638 instead of ->prev.
639
640 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
641
642 Fix PR gdb/471.
643 * gdbtypes.c (init_simd_type): Rewrite using new functions.
644 (build_builtin_type_vec128): Ditto.
645 (append_composite_type_field): Fix calculation of type length in
646 union case.
647
648 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
649
650 * config/djgpp/README: Update.
651
652 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
653 compiler warnings.
654
655 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
656
657 * alpha-tdep.c (setup_arbitrary_frame): Rename...
658 (alpha_setup_arbitrary_frame): ...to this.
659 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
660 for alpha_setup_arbitrary_frame.
661
662 2002-04-18 Andrew Cagney <cagney@redhat.com>
663
664 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
665 * gdbarch.h, gdbarch.c: Regenerate.
666
667 * defs.h (breakpoint_from_pc_fn): Delete type definition.
668 * target.h (memory_breakpoint_from_pc): Update declaration.
669 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
670
671 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
672 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
673 * mem-break.c (memory_breakpoint_from_pc): Ditto.
674 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
675 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
676 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
677 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
678 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
679 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
680 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
681 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
682 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
683
684 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
685 const pointer.
686 * monitor.c (monitor_insert_breakpoint): Ditto.
687 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
688
689 * config/mcore/tm-mcore.h: Update copyright.
690 * mem-break.c: Ditto.
691 * xstormy16-tdep.c: Ditto.
692
693 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
694
695 * p-exp.y: Add precedence rule for '^' token.
696 This removes the shift/reduce conflicts.
697 Remove the comment concerning these shift/reduce conflicts.
698
699 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
700
701 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
702 (registers_powerpc_nofp): New register set for processors
703 without floating point unit.
704
705 2002-04-18 David S. Miller <davem@redhat.com>
706
707 * MAINTAINERS: Add myself to write-after-approval.
708
709 2002-04-17 Michael Snyder <msnyder@redhat.com>
710
711 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
712
713 2002-04-17 Andrew Cagney <ac131313@redhat.com>
714
715 * rs6000-tdep.c (frame_initial_stack_address): Use
716 frame_register_read to read the alloca_reg.
717
718 2002-04-17 Andrew Cagney <ac131313@redhat.com>
719
720 * frame.c (find_saved_register): Find saved registers in the next
721 not prev frame.
722 Fix PR gdb/365.
723
724 2002-04-17 Andrew Cagney <ac131313@redhat.com>
725
726 * gdbarch.sh (LANG): Set to ``c''.
727
728 2002-04-15 Andrew Cagney <ac131313@redhat.com>
729
730 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
731
732 2002-04-15 Andrew Cagney <ac131313@redhat.com>
733
734 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
735 Update copyright.
736
737 * hpread.c (hpread_get_lntt): Add declaration.
738 Also fix PR gdb/391.
739
740 2002-04-14 Andrew Cagney <ac131313@redhat.com>
741
742 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
743 * aclocal.m4, configure: Re-generate.
744 Fix PR gdb/391.
745
746 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
747
748 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
749 instead of tm_print_insn.
750
751 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
752
753 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
754
755 2002-04-14 Andrew Cagney <ac131313@redhat.com>
756
757 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
758 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
759 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
760
761 2002-04-12 Don Howard <dhoward@redhat.com>
762
763 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
764 max_user_call_depth.
765 (init_cmd_lists): Initialize the new value;
766 * cli/cli-script.c (execute_user_command): Limit the call depth of
767 user defined commands. This avoids a core-dump when user commands
768 are infinitly recursive.
769
770 2002-04-12 Kevin Buettner <kevinb@redhat.com>
771
772 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
773 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
774 from tdep struct instead of DEFAULT_LR_SAVE.
775 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
776 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
777 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
778
779 2002-04-12 Michael Snyder <msnyder@redhat.com>
780
781 * Remote.c: Spelling fix.
782 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
783 If no symbol found for "sbrk", try "_sbrk".
784 (make_output_phdrs): Use bfd_section_name.
785 (gcore_copy_callback): Use bfd_section_name.
786 * eval.c: Indentation fix-ups.
787 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
788 in case it gets applied to an address that is already
789 in the instruction space.
790 * cli/cli-decode.c (help_list): Allow long lines to wrap.
791 * symfile.c: Fix indentation, long lines.
792 * source.c: White space fix-up.
793
794 2002-04-12 Andrew Cagney <cagney@redhat.com>
795
796 * defs.h (read_relative_register_raw_bytes): Delete declaration.
797 * frame.c (frame_register_read): New function. Return non-zero on
798 success.
799 (read_relative_register_raw_bytes_for_frame): Delete.
800 (read_relative_register_raw_bytes): Delete.
801 * frame.h (frame_register_read): Declare.
802 * d30v-tdep.c: Update Copyright. Use frame_register_read.
803 * sh-tdep.c: Ditto.
804 * infcmd.c (do_registers_info): Ditto.
805 * hppa-tdep.c: Ditto.
806 * rs6000-tdep.c: Ditto.
807 * h8500-tdep.c: Ditto.
808 * mips-tdep.c: Ditto.
809 * h8300-tdep.c: Ditto.
810 * z8k-tdep.c: Ditto.
811
812 2002-04-12 Kevin Buettner <kevinb@redhat.com>
813
814 From Jimi X <jimix@watson.ibm.com>:
815 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
816 64-bit SysV ABI.
817
818 2002-04-12 Kevin Buettner <kevinb@redhat.com>
819
820 From Jimi X <jimix@watson.ibm.com>:
821 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
822 bfd info.
823
824 2002-04-12 Kevin Buettner <kevinb@redhat.com>
825
826 From Jimi X <jimix@watson.ibm.com>:
827 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
828 register sets for these processor variants.
829
830 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
831
832 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
833 registers which are allowed to fail to store.
834 * gdbserver/linux-low.h (linux_target_ops): Likewise.
835 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
836 (ppc_cannot_store_register): FPSCR may not be storable.
837 * regformats/reg-ppc.dat: Support FPSCR.
838
839 2002-04-11 Kevin Buettner <kevinb@redhat.com>
840
841 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
842 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
843 Add fpscr as an invalid/unfetchable register.
844 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
845 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
846 (fill_fpregset): Add support for register fpscr.
847 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
848 (fill_gregset): Account for the fact that register ``mq'' might
849 not exist.
850 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
851 (registers_power): Add fpscr to register set at slot 71.
852 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
853 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
854
855 2002-04-11 Michael Snyder <msnyder@redhat.com>
856
857 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
858 * configure: Regenerate.
859 * config.in: Regenerate.
860 * acconfig.h: Add define for _SYSCALL32.
861 * core-sol2.c: Remove #define _SYSCALL32.
862 * solib-legacy.c: Remove #define _SYSCALL32.
863
864 2002-04-10 Andrew Cagney <ac131313@redhat.com>
865
866 * stack.c (select_frame): Cleanup internal error message, do not
867 use %p.
868
869 2002-04-10 Andrew Cagney <ac131313@redhat.com>
870
871 * stack.c (select_frame): Check that selected_frame and the
872 specified level are as expected.
873 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
874 Update copyright.
875 * frame.h (struct frame_info): Add field `level'. Update
876 copyright.
877 Work-in-progress PR gdb/464.
878
879 2002-04-10 Andrew Cagney <ac131313@redhat.com>
880
881 * maint.c (maint_print_section_info): Rename print_section_info.
882 (print_bfd_section_info, print_objfile_section_info): Update.
883 * inferior.h (struct gdbarch): Add opaque declaration.
884 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
885 * gdbarch.h: Regenerate.
886
887 2002-04-10 Michal Ludvig <mludvig@suse.cz>
888
889 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
890 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
891 (kernel_u_size): Added.
892 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
893 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
894
895 2002-04-04 Jim Ingham <jingham@apple.com>
896
897 * valarith.c (find_size_for_pointer_math): New function, either returns
898 the size for a pointer's target, returns 1 for void *, or errors for
899 incomplete types.
900 (value_add, value_sub): use find_size_for_pointer_math.
901
902 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
903
904 * linux-low.c (linux_look_up_symbols): New hook.
905 (linux_target_ops): Add linux_look_up_symbols.
906 * remote-utils.c (decode_address): New function.
907 (look_up_one_symbol): New function.
908 * server.c (handle_query): Call target look_up_symbols hook.
909 * server.h (look_up_one_symbol): Add prototype.
910 * target.h (struct target_ops): Add look_up_symbols hook.
911
912 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
913
914 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
915 * ChangeLog: Correct paths in last ChangeLog entry.
916
917 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
918
919 * gdbserver/linux-low.h: Remove obsolete prototypes.
920 (struct linux_target_ops): New.
921 (extern the_low_target): New.
922 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
923 (register_addr): Use the_low_target explicitly.
924 (fetch_register): Likewise.
925 (usr_fetch_inferior_registers): Likewise.
926 (usr_store_inferior_registers): Likewise.
927 * gdbserver/linux-arm-low.c (num_regs): Remove.
928 (arm_num_regs): Define.
929 (arm_regmap): Renamed from regmap, made static.
930 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
931 made static.
932 (arm_cannot_store_register): Renamed from cannot_store_register,
933 made static.
934 (the_low_target): New.
935 * gdbserver/linux-i386-low.c (num_regs): Remove.
936 (i386_num_regs): Define.
937 (i386_regmap): Renamed from regmap, made static.
938 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
939 made static.
940 (i386_cannot_store_register): Renamed from cannot_store_register,
941 made static.
942 (the_low_target): New.
943 * gdbserver/linux-ia64-low.c (num_regs): Remove.
944 (ia64_num_regs): Define.
945 (ia64_regmap): Renamed from regmap, made static.
946 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
947 made static.
948 (ia64_cannot_store_register): Renamed from cannot_store_register,
949 made static.
950 (the_low_target): New.
951 * gdbserver/linux-m68k-low.c (num_regs): Remove.
952 (m68k_num_regs): Define.
953 (m68k_regmap): Renamed from regmap, made static.
954 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
955 made static.
956 (m68k_cannot_store_register): Renamed from cannot_store_register,
957 made static.
958 (the_low_target): New.
959 * gdbserver/linux-mips-low.c (num_regs): Remove.
960 (mips_num_regs): Define.
961 (mips_regmap): Renamed from regmap, made static.
962 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
963 made static.
964 (mips_cannot_store_register): Renamed from cannot_store_register,
965 made static.
966 (the_low_target): New.
967 * gdbserver/linux-ppc-low.c (num_regs): Remove.
968 (ppc_num_regs): Define.
969 (ppc_regmap): Renamed from regmap, made static.
970 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
971 made static.
972 (ppc_cannot_store_register): Renamed from cannot_store_register,
973 made static.
974 (the_low_target): New.
975 * gdbserver/linux-s390-low.c (num_regs): Remove.
976 (s390_num_regs): Define.
977 (s390_regmap): Renamed from regmap, made static.
978 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
979 made static.
980 (s390_cannot_store_register): Renamed from cannot_store_register,
981 made static.
982 (the_low_target): New.
983 * gdbserver/linux-sh-low.c (num_regs): Remove.
984 (sh_num_regs): Define.
985 (sh_regmap): Renamed from regmap, made static.
986 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
987 made static.
988 (sh_cannot_store_register): Renamed from cannot_store_register,
989 made static.
990 (the_low_target): New.
991 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
992 (the_low_target): New.
993
994 2002-04-09 Andrew Cagney <ac131313@redhat.com>
995
996 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
997 override FP_REGNUM with frame->fp. Update copyright.
998 * parse.c (num_std_regs, std_regs): Delete.
999 (target_map_name_to_register): Do not search std_regs. Update
1000 function description.
1001 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
1002 declarations. Update copyright.
1003 Fix PR gdb/251.
1004
1005 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1006
1007 * gdbserver/Makefile.in: Add stamp-h target.
1008 * gdbserver/configure.in: Create stamp-h.
1009 * gdbserver/configure: Regenerated.
1010
1011 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1012
1013 * gdbserver/inferiors.c: New file.
1014 * gdbserver/target.c: New file.
1015 * gdbserver/target.h: New file.
1016 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
1017 dependencies.
1018 * gdbserver/linux-low.c (inferior_pid): New static variable,
1019 moved from server.c.
1020 (linux_create_inferior): Renamed from create_inferior.
1021 Call add_inferior. Return 0 on success instead of a PID.
1022 (linux_attach): Renamed from myattach.
1023 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1024 (linux_thread_alive): Renamed from mythread_alive.
1025 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1026 child dies.
1027 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1028 (regsets_store_inferior_registers): Correct error message.
1029 Add missing ``return 0''.
1030 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1031 (linux_store_registers): Renamed from store_inferior_registers.
1032 (linux_read_memory): Renamed from read_inferior_memory.
1033 (linux_write_memory): Renamed from write_inferior_memory.
1034 (linux_target_ops): New structure.
1035 (initialize_low): Call set_target_ops ().
1036 * gdbserver/remote-utils.c (unhexify): New function.
1037 (hexify): New function.
1038 (input_interrupt): Send signals to ``signal_pid''.
1039 * gdbserver/server.c (inferior_pid): Remove.
1040 (start_inferior): Update create_inferior call.
1041 (attach_inferior): Call add_inferior.
1042 (handle_query): New function.
1043 (main): Call handle_query for `q' packets.
1044 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
1045 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1046
1047 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1048
1049 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
1050 dependencies.
1051 * gdbserver/configure.in: Check for <string.h>
1052 * gdbserver/configure: Regenerate.
1053 * gdbserver/config.in: Regenerate.
1054 * gdbserver/gdbreplay.c: Include needed system headers.
1055 (remote_open): Remove strchr prototype.
1056 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1057 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
1058 (supply_register_by_name): Likewise.
1059 (collect_register): Change buf argument to void *.
1060 (collect_register_by_name): Likewise.
1061 * gdbserver/regcache.h: Add missing prototypes.
1062 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1063 * gdbserver/server.c (handle_query): New function.
1064 (attached): New static variable, moved out of main.
1065 (main): Quiet longjmp clobber warnings.
1066 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1067 * gdbserver/utils.c (error): Remove NORETURN.
1068 (fatal): Likewise.
1069
1070 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1071
1072 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
1073 after the last symbol in a block.
1074
1075 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
1076
1077 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
1078 is non zero as a found symbol.
1079
1080 2002-04-08 Andrew Cagney <ac131313@redhat.com>
1081
1082 * findvar.c: Include "builtin-regs.h".
1083 (value_of_register): Call value_of_builtin_reg when applicable.
1084 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
1085 (target_map_name_to_register): Call
1086 builtin_reg_map_name_to_regnum.
1087 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
1088 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
1089 (builtin_regs_h): Define.
1090 (builtin-regs.o): New target.
1091 (findvar.o): Add $(builtin_regs_h).
1092 * builtin-regs.c, builtin-regs.h: New files.
1093 * std-regs.c: New file.
1094 Partial fix for PR gdb/251.
1095
1096 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1097
1098 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
1099 it's no longer required.
1100
1101 2002-04-08 Andrew Cagney <ac131313@redhat.com>
1102
1103 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
1104
1105 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1106
1107 From Jimi X <jimix@watson.ibm.com>:
1108 * rs6000-tdep.c (rs6000_software_single_step): Use
1109 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
1110 and size. Use target_insert_breakpoint() and
1111 target_remove_breakpoint() to insert and remove breakpoints
1112 instead of explicit memory reads and writes.
1113
1114 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1115
1116 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
1117 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
1118 ELF_OBJECT_FORMAT ifdef.
1119
1120 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1121
1122 From Jimi X <jimix@watson.ibm.com>:
1123 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
1124
1125 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1126
1127 From Jimi X <jimix@watson.ibm.com>:
1128 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
1129 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
1130
1131 2002-04-07 Mark Kettenis <kettenis@gnu.org>
1132
1133 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
1134 s/asprintf/xasprintf/.
1135 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
1136
1137 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1138
1139 I believe Jeff Law denies responsability for this one:
1140 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
1141 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
1142 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
1143 Work-around for PR gdb/366.
1144
1145 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
1146
1147 * remote-e7000.c (write_small, e7000_read_inferior_memory,
1148 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
1149 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
1150
1151 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
1152
1153 * sh-tdep.c (sh_fp_frame_init_saved_regs,
1154 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
1155 information.
1156
1157 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1158
1159 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
1160 maintainer.
1161
1162 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1163
1164 * README (Reporting Bugs in GDB): Document the bug web page as the
1165 prefered way of submitting bugs.
1166 Fix PR gdb/402.
1167
1168 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1169
1170 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
1171 -1. Update comment.
1172 * gdbarch.h, gdbarch.c: Re-generate.
1173
1174 2002-04-07 Andreas Schwab <schwab@suse.de>
1175
1176 * m68klinux-nat.c (fill_fpregset): Properly pass address of
1177 buffer to regcache_collect.
1178
1179 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1180
1181 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
1182 * gdbarch.c, gdbarch.h: Re-generate.
1183
1184 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1185
1186 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
1187 declaration. Fix -Werror.
1188
1189 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
1190
1191 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
1192 * gdbarch.c: Regenerate.
1193
1194 2002-04-05 Michael Snyder <msnyder@redhat.com>
1195
1196 * breakpoint.c (clear_command): Rewrite middle section to
1197 combine two loops with identical control conditions.
1198 Add a cleanup to eliminate a memory leak.
1199 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
1200
1201 2002-04-05 H.J. Lu (hjl@gnu.org)
1202
1203 * solib-svr4.c (bkpt_names): Add "__start".
1204
1205 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1206
1207 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
1208 as test for 64 bit target.
1209
1210 2002-04-05 Andrew Cagney <ac131313@redhat.com>
1211
1212 * h8500-tdep.c (h8500_write_fp): Delete function.
1213 * dwarf2cfi.c (cfi_write_fp): Document as not used.
1214 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
1215 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
1216 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
1217 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
1218 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
1219 (s390_write_fp):
1220 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
1221 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
1222 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
1223 (d10v_write_fp): Delete function.
1224 * inferior.h (write_fp, generic_target_write_fp): Delete
1225 declarations.
1226 * regcache.c (generic_target_write_fp): Delete function.
1227 (write_fp): Delete function.
1228 * gdbarch.sh (TARGET_WRITE_FP): Delete.
1229 * gdbarch.h, gdbarch.c: Regenerate.
1230 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
1231 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
1232 (sparc64_write_fp): Delete declaration.
1233 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
1234 (h8500_write_fp): Delete declaration.
1235
1236 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1237
1238 * sparc-tdep.c (sparc64_write_fp): Delete.
1239 (sparc_push_dummy_frame): Replace write_fp call with code to store
1240 the FP directly.
1241 (sparc_gdbarch_init): Do not initialize write_fp.
1242
1243 2002-04-05 Kevin Buettner <kevinb@redhat.com>
1244
1245 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
1246 clause.
1247
1248 2002-03-29 Jim Blandy <jimb@redhat.com>
1249
1250 * stack.c (get_selected_block): Add new argument `addr_in_block',
1251 used to return the exact code address we used to select the block,
1252 not just the block.
1253 * blockframe.c (get_frame_block, get_current_block): Same.
1254 * frame.h (get_frame_block, get_current_block,
1255 get_selected_block): Update declarations.
1256 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
1257 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
1258
1259 2002-04-05 Michael Snyder <msnyder@redhat.com>
1260
1261 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
1262 warning message.
1263
1264 2002-04-05 J. Brobecker <brobecker@gnat.com>
1265
1266 * utils.c (xfullpath): New function.
1267 * defs.h (xfullpath): Add declaration.
1268 * source.c (openp): Use xfullpath in place of gdb_realpath to
1269 avoid resolving the basename part of filenames when the
1270 associated file is a symbolic link. This fixes a potential
1271 inconsistency between the filenames known to GDB and the
1272 filenames it prints in the annotations.
1273 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
1274 to be able to match a filename with either the real filename, or
1275 the name of any symbolic link to this file.
1276 (lookup_partial_symtab): Ditto.
1277
1278 2002-04-04 Michael Snyder <msnyder@redhat.com>
1279
1280 * breakpoint.c: Add support for hardware breakpoints in overlays.
1281 (overlay_events_enabled): New state variable.
1282 (insert_breakpoints): Use overlay_events_enabled to decide
1283 whether to attempt to set a breakpoint at the overlay load addr.
1284 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1285 (remove_breakpoint): Use overlay_events_enabled to decide
1286 whether breakpoints need to be removed from overlay load addr.
1287 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1288 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
1289 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
1290 disable_overlay_breakpoints): Update overlay_events_enabled.
1291
1292 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
1293
1294 * dwarf2read.c (struct function_range): New.
1295 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
1296 (check_cu_functions): New.
1297 (read_file_scope): Initialize global function lists.
1298 Call dwarf_decode_line after processing children.
1299 (read_func_scope): Add to global function list.
1300 (dwarf_decode_lines): Call check_cu_functions everywhere
1301 record_line is called. Call record_line with a linenumber
1302 of 0 to mark sequence ends.
1303
1304 2002-04-04 Michal Ludvig <mludvig@suse.cz>
1305
1306 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
1307 change sync with glibc.
1308
1309 2002-04-03 Jim Blandy <jimb@redhat.com>
1310
1311 * configure.in: Call AC_C_INLINE.
1312 * configure: Regenerated.
1313
1314 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
1315
1316 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
1317 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
1318
1319 2002-03-31 Mark Kettenis <kettenis@gnu.org>
1320
1321 * NEWS: Mention gcore support on FreeBSD/i386.
1322
1323 * fbsd-proc.c: New file.
1324 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
1325 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
1326
1327 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
1328 while statement.
1329
1330 2002-03-29 Jim Blandy <jimb@redhat.com>
1331
1332 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
1333 unescaped newlines in string literals, but newer ones don't. So
1334 escape them.
1335
1336 2002-03-26 Michael Snyder <msnyder@redhat.com>
1337 Andrew Cagney <cagney@redhat.com>
1338
1339 * cli/cli-dump.c: New file. Dump memory to file,
1340 restore file to memory.
1341 * cli/cli-dump.h: New file.
1342 * Makefile.in: Add rules, dependencies for cli-dump.o.
1343 * NEWS: Mention new commands.
1344
1345 2002-03-28 Michael Snyder <msnyder@redhat.com>
1346
1347 * symfile.c (symbol_file_add): Move test for null symbols to later.
1348
1349 2002-03-27 Andrew Cagney <ac131313@redhat.com>
1350
1351 From veksler at il.ibm.com:
1352 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
1353 the xstrduped original path.
1354 Fix PR gdb/417.
1355
1356 2002-03-27 Michael Snyder <msnyder@redhat.com>
1357
1358 * breakpoint.c (_initialize_breakpoint): Clean up help string.
1359 * infcmd.c (_initialize_infcmd): Ditto.
1360 * language.c (_initialize_language): Ditto.
1361 * symfile.c (_initialize_symfile): Ditto.
1362 * top.c (_init_main): Ditto.
1363 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1364
1365 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
1366
1367 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
1368 vector registers handling.
1369 (skip_prologue): Handle new AltiVec instructions. Fill in new
1370 fields of frame data.
1371 (frame_get_saved_regs): Fill in information for AltiVec registers.
1372
1373 2002-03-27 Jim Blandy <jimb@redhat.com>
1374
1375 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
1376 a function; leave this macro here to invoke that function.
1377 (symbol_init_mangled_name): Declaration for that function.
1378 * symtab.c (symbol_init_mangled_name): New function.
1379
1380 2002-03-27 Andrew Cagney <ac131313@redhat.com>
1381
1382 * valarith.c: Replace strerror with safe_strerror.
1383 * tracepoint.c: Ditto.
1384 * lin-lwp.c: Ditto.
1385 * go32-nat.c: Ditto.
1386 * inflow.c: Ditto.
1387 * gnu-nat.c: Ditto.
1388
1389 2002-03-27 Andreas Schwab <schwab@suse.de>
1390
1391 * event-top.c (command_line_handler): Remove useless if.
1392
1393 2002-03-27 Andreas Jaeger <aj@suse.de>
1394
1395 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
1396 comment.
1397
1398 2002-03-27 Michal Ludvig <mludvig@suse.cz>
1399
1400 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
1401 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
1402 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
1403 (x86_64_linux_dr_get_status, supply_gregset),
1404 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
1405 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
1406 (x86_64_register_info_table): Add.
1407 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
1408 (x86_64_register_raw_size, x86_64_register_virtual_type),
1409 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
1410 general x86_64_register_info_table.
1411 (i386_gdbarch_init): gdbarch_register_bytes is now set
1412 dynamicaly during initialization.
1413 * regformats/reg-x86-64.dat: Synced with changes to registers above.
1414 * gdbserver/linux-x86-64-low.c: Ditto.
1415
1416 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1417
1418 * gdbserver/server.c (main): Call target_signal_to_host_p
1419 and target_signal_to_host on signals received from the remote.
1420 * gdbserver/remote-utils.c (prepare_resume_reply): Call
1421 target_signal_from_host on signals sent to the remote.
1422 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
1423 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
1424
1425 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1426
1427 * signals/signals.c: Include "server.h" in gdbserver build.
1428 (target_signal_from_name): Don't use STREQ.
1429 (_initialize_signals): Likewise. Don't include function in
1430 gdbserver build.
1431
1432 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1433
1434 * signals.c: Moved to...
1435 * signals/signals.c: Here.
1436 * Makefile (signals.o): Update.
1437
1438 2002-03-26 Jeff Law (law@redhat.com)
1439
1440 * somread.c (som_symtab_read): Remove some commented out code and
1441 updated related comments. Do not set the minimal symbol table to
1442 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
1443 in a dynamic executable.
1444 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
1445 where we are unable to find the minimal symbol for the given
1446 PC value.
1447
1448 2002-03-25 Jeff Law (law@redhat.com)
1449
1450 * linux-proc.c (read_mapping): Scan up to end of line for filename.
1451
1452 2002-03-25 Michal Ludvig <mludvig@suse.cz>
1453
1454 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
1455
1456 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1457
1458 * command.h: Update copyright.
1459 (struct cmd_list_element): Replace definition with opaque
1460 declaration.
1461 (enum cmd_types): Document that it will eventually be moved to
1462 cli/cli-decode.h
1463 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
1464 (MALLOCED_REPLACEMENT): Delete macro.
1465 * Makefile.in (cli_decode_h): Add $(command_h).
1466 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
1467 * top.c: Include "cli/cli-decode.h".
1468 * completer.c: Include "cli/cli-decode.h".
1469 * maint.c: Include "cli/cli-decode.h".
1470 * cli/cli-decode.h: Include "command.h".
1471 (enum command_class): Delete.
1472 (enum cmd_types): Comment out.
1473 (enum cmd_auto_boolean): Delete.
1474 (enum var_types): Delete.
1475
1476 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1477
1478 * cli/cli-decode.c: Include "gdb_assert.h".
1479 (add_set_or_show_cmd): New static function.
1480 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
1481 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
1482 all fields, such as func, from the set command.
1483
1484 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1485
1486 * MAINTAINERS (sh-elf): Change warning flag to -w.
1487
1488 2002-03-23 Andrew Cagney <cagney@redhat.com>
1489
1490 * defs.h (error): Add printf format attribute.
1491 * thread-db.c (thread_from_lwp): Fix error format string.
1492 * stack.c (parse_frame_specification): Ditto.
1493 * cli/cli-decode.c (undef_cmd_error): Ditto.
1494 * scm-lang.c (scm_lookup_name): Ditto.
1495 * tracepoint.c (trace_error): Ditto.
1496 * remote-utils.c (usage): Ditto.
1497 * remote.c (compare_sections_command): Ditto.
1498 Fix PR gdb/328.
1499
1500 2002-03-22 Andrew Cagney <ac131313@redhat.com>
1501
1502 * gdbtypes.c (append_composite_type_field): New function.
1503 (init_composite_type): New function.
1504 * gdbtypes.h (append_composite_type_field): Declare.
1505 (init_composite_type): Ditto.
1506
1507 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
1508
1509 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
1510 function.
1511 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
1512 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
1513 structure returning convention for SYSV ABI case, but not
1514 for GNU/Linux, FreeBSD, or NetBSD.
1515
1516 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
1517
1518 * symtab.h (lookup_block_symbol): Add mangled_name argument
1519 to prototype.
1520
1521 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
1522 with new mangled_name argument.
1523 * linespec.c (decode_line_1): Likewise.
1524 * valops (value_of_this): Likewise.
1525 * symtab.c (lookup_transparent_type): Likewise.
1526 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
1527 (lookup_symbol): If we are given a mangled name, pass it down
1528 to lookup_symbol_aux.
1529 (lookup_block_symbol): If we are given a mangled name to check
1530 against, only return symbols which match it.
1531
1532 2002-03-22 Christopher Faylor <cgf@redhat.com>
1533
1534 * win32-nat.c (child_create_inferior): Check for proper shell to use
1535 here, in case the user changes it on the fly.
1536 (_initialize_inftarg): Remove shell path considerations.
1537
1538 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
1539
1540 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
1541 for gdbarch_max_register_raw_size and max_register_virtual_size.
1542 Adjust copyright year.
1543
1544 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
1545
1546 * dbxread.c (process_one_symbol): Extend the first N_SLINE
1547 in a function to cover the entire beginning of the function
1548 as well if it does not already.
1549
1550 2002-03-21 Tom Rix <trix@redhat.com>
1551
1552 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
1553 (rs6000_ptrace64): Renamed from ptrace64.
1554
1555 2002-03-20 Martin M. Hunt <hunt@redhat.com>
1556
1557 * gdbserver/remote-utils.c (remote_open): Don't call
1558 getprotobyname, we're all using TCP here so just use
1559 IPPROTO_TCP.
1560 * gdbserver/gdbreplay.c (remote_open): Ditto.
1561
1562 2002-03-20 Martin M. Hunt <hunt@redhat.com>
1563
1564 * regcache.c (_initialize_regcache): No need to call
1565 build_regcache() at this time; it gets called whenever
1566 the gdbarch changes.
1567
1568 2002-03-20 David O'Brien <obrien@FreeBSD.org>
1569
1570 * sparc-nat.c: Include sys/param.h where possible.
1571
1572 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
1573
1574 Fix PR gdb/422.
1575 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
1576 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
1577 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
1578 complex types.
1579 * stabsread.c (rs6000_builtin_type): Likewise.
1580 (read_sun_floating_type): Likewise.
1581
1582 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1583
1584 * stabsread.c (read_member_functions): Remove skip code for duplicate
1585 constructor/destructor methods. Use standard parsing for these
1586 methods and just do not chain them to the list of methods after
1587 parsing.
1588
1589 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
1590
1591 * coffread.c: Remove redundant static declarations. Replace
1592 occurrences of `PTR' with `void *'.
1593 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
1594 * top.h (quit_cover): Likewise.
1595 * defs.h (catch_errors): Likewise.
1596
1597 2002-03-18 Andrew Cagney <ac131313@redhat.com>
1598
1599 * defs.h (XMALLOC): Define.
1600 * gdb-events.sh (XMALLOC): Delete macro.
1601 * gdb-events.c, gdb-events.h: Regenerate.
1602 * gdbarch.sh (XMALLOC): Delete macro.
1603 * gdbarch.c: Regenerate.
1604 * serial.c (XMALLOC): Delete macro.
1605 * ui-file.c (XMALLOC): Ditto.
1606 * ser-unix.h (XMALLOC): Ditto.
1607 * sh-tdep.c (XMALLOC): Ditto.
1608 * ui-out.c (XMALLOC): Ditto.
1609 * utils.c (XMALLOC): Ditto.
1610 * i386-tdep.c (XMALLOC): Ditto.
1611 * gdb-events.c (XMALLOC): Ditto.
1612 * d10v-tdep.c (XMALLOC): Ditto.
1613 * cli-out.c (XMALLOC): Ditto.
1614
1615 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
1616 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
1617 * ui-file.c, ui-out.c: Ditto.
1618
1619 2002-03-18 Andrew Cagney <ac131313@redhat.com>
1620
1621 * command.h (struct cmd_list_element): Add field context.
1622 (set_cmd_context, get_cmd_context): Declare.
1623 * cli/cli-decode.h: Ditto.
1624 * cli/cli-decode.c (get_cmd_context): New function.
1625 (set_cmd_context): New function.
1626 (add_cmd): Initialize context.
1627 Part of fixing PR gdb/145 and PR gdb/146.
1628
1629 2002-03-17 Andrew Cagney <ac131313@redhat.com>
1630
1631 * cli/cli-decode.c (cmd_type): New function.
1632 * command.h (cmd_type): Declare.
1633 * infrun.c (set_schedlock_func): Call function cmd_type.
1634 * kod.c (kod_set_os): Call cmd_type.
1635 * cris-tdep.c (cris_version_update): Use function cmd_type.
1636 (cris_mode_update, cris_abi_update): Ditto.
1637
1638 * command.h: (execute_cmd_post_hook): Declare.
1639 (execute_cmd_pre_hook): Declare.
1640 * cli/cli-script.c (clear_hook_in_cleanup): New function.
1641 (execute_cmd_post_hook, execute_cmd_pre_hook): New
1642 functions. Execute pre/post hook while ensuring that afterwords
1643 hook_in is cleared.
1644 * top.c (execute_command): Use execute_cmd_post_hook, and
1645 execute_cmd_pre_hook to execute pre/post commands.
1646 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
1647 hook_stop_stub.
1648 (hook_stop_stub): Call execute_cmd_pre_hook.
1649
1650 2002-03-17 Andrew Cagney <ac131313@redhat.com>
1651
1652 * kod.c (kod_set_os): Revert previous change. Is called by ``info
1653 set'' and this leads to a core dump. Move xstrdup of
1654 operating_system to after check that it is not NULL.
1655
1656 2002-03-17 Andrew Cagney <ac131313@redhat.com>
1657
1658 * kod.c (kod_set_os): Remove unnecessary check that
1659 ``command->type'' is set_cmd.
1660
1661 * valprint.c (set_input_radix): Use input_radix.
1662 (set_output_radix): Use output_radix.
1663 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
1664 isn't reverted.
1665
1666 2002-03-16 Andrew Cagney <ac131313@redhat.com>
1667
1668 * value.h (struct value): Delete field ``substring_addr''. Change
1669 aligner fields to force_doublest_align, force_longest_align,
1670 force_core_addr_align and force_pointer_aligh.
1671
1672 * value.h (struct value): Fix typo in above change.
1673
1674 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1675
1676 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
1677 to fix internal_error from ``maintenance print architecture''.
1678
1679 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1680
1681 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
1682 for gcc versions after gcc-2.8.1.
1683
1684 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1685
1686 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
1687 for method resolution. Restore adjustment of ``this'' pointer after
1688 calling value_struct_elt, which was accidentally removed during the
1689 HP merge.
1690
1691 2002-03-15 Andrew Cagney <ac131313@redhat.com>
1692
1693 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
1694 value_of_register.
1695 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
1696 get_saved_register.
1697 * value.h (value_of_register): Update.
1698
1699 2002-03-14 Richard Henderson <rth@redhat.com>
1700
1701 * configure.in: Detect declaration for canonicalize_file_name.
1702 * utils.c (canonicalize_file_name): Declare, if needed.
1703 (gdb_realpath): Prefer realpath if available and usable.
1704 * config.in, configure: Rebuild.
1705
1706 2002-03-14 Richard Henderson <rth@redhat.com>
1707
1708 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
1709 a constant array bound.
1710
1711 * MAINTAINERS: Add myself to write-after-approval.
1712
1713 2002-03-14 Michael Snyder <msnyder@redhat.com>
1714
1715 * symfile.c (syms_from_objfile): Return immediately if no syms.
1716 (symbol_file_add): Return immediately if no syms.
1717 (find_sym_fns): Return immediately if no syms.
1718
1719 2002-03-13 Michal Ludvig <mludvig@suse.cz>
1720
1721 * gdbserver/remote-util.c (remote_open): Print remote-side's
1722 IP address when remote debugging over the network.
1723
1724 2002-03-12 David O'Brien <obrien@FreeBSD.org>
1725
1726 * config/sparc/fbsd.mh: Fix copyright.
1727 * config/sparc/fbsd.mt: Likewise.
1728
1729 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
1730
1731 * MAINTAINERS: Fix typo in name of gdb warnings option.
1732 (x86-64): Fix formating so that this can be parsed by awk.
1733
1734 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
1735
1736 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
1737 * defs.h: Include "gdb/signals.h".
1738 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
1739
1740 2002-03-10 Michal Ludvig <mludvig@suse.cz>
1741
1742 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
1743 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
1744 from x86-64-tdep.h
1745
1746 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
1747 Don Howard <dhoward@redhat.com>
1748
1749 * mips-tdep.c (ST0_FR): Define.
1750 (mips2_fp_compat): New function, temporarily disabled.
1751 (mips_read_fp_register_single): New function.
1752 (mips_read_fp_register_double): New function.
1753 (mips_print_register): Use them.
1754 (do_fp_register_row): Likewise.
1755
1756 2002-03-09 Andrew Cagney <ac131313@redhat.com>
1757
1758 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
1759 approval''.
1760
1761 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1762
1763 * stabsread.c (read_member_functions): Fix is_stub test for
1764 static member functions, improve comment.
1765
1766 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
1767
1768 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
1769 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
1770 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
1771 commands that set boolean values.
1772 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
1773 (arm_rdi_resume): Always initialize PC.
1774 (arm_rdi_open): Don't use rslt as a boolean.
1775 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
1776 (arm_rdi_fetch_registers, arm_rdi_store_registers)
1777 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
1778 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
1779
1780 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
1781
1782 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
1783 * configure: Rebuilt.
1784
1785 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1786
1787 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
1788 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
1789
1790 2002-03-06 Andrew Cagney <ac131313@redhat.com>
1791
1792 * cli/cli-decode.c (set_cmd_completer): New function.
1793 * command.h (set_cmd_completer): Declare.
1794 * cli/cli-decode.h (set_cmd_completer): Ditto.
1795
1796 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
1797 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1798 * win32-nat.c (_initialize_inftarg): Ditto.
1799 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1800 * proc-api.c (_initialize_proc_api): Ditto.
1801 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
1802 * source.c (_initialize_source): Ditto.
1803 * exec.c (_initialize_exec): Ditto.
1804 * solib.c (_initialize_solib): Ditto.
1805 * top.c (init_main): Ditto.
1806 * tracepoint.c (_initialize_tracepoint): Ditto.
1807 * symfile.c (_initialize_symfile): Ditto.
1808 * printcmd.c (_initialize_printcmd): Ditto.
1809 * infcmd.c (_initialize_infcmd): Ditto.
1810 * corefile.c (_initialize_core): Ditto.
1811
1812 2002-03-05 Andrew Cagney <ac131313@redhat.com>
1813
1814 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
1815
1816 2002-03-05 Andrew Cagney <ac131313@redhat.com>
1817
1818 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
1819
1820 2002-03-05 Andrew Cagney <ac131313@redhat.com>
1821
1822 * NEWS: Update headings, 5.2 has branched.
1823
1824 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
1825
1826 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
1827 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
1828 (register_addr, REGISTER_RAW_SIZE): Likewise.
1829 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
1830 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
1831
1832 2002-03-03 Michal Ludvig <mludvig@suse.cz>
1833
1834 * MAINTAINERS (x86-64): Add myself.
1835 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
1836 changed value_ptr -> struct value *
1837
1838 2002-03-01 David O'Brien <obrien@FreeBSD.org>
1839
1840 * configure.host (sparc64-*-freebsd): Add.
1841 * configure.tgt: Likewise.
1842 * config/sparc/fbsd.mh: New file.
1843 * config/sparc/fbsd.mt: Likewise.
1844 * config/sparc/nm-fbsd.h: Likewise.
1845 * config/sparc/tm-fbsd.h: Likewise.
1846
1847 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
1848
1849 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
1850 regformats/reg-s390x.dat.
1851
1852 2002-03-01 Andrew Cagney <ac131313@redhat.com>
1853
1854 * utils.c: Add FIXME explaining true/false problem.
1855
1856 2002-02-28 Andrew Cagney <ac131313@redhat.com>
1857
1858 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
1859
1860 2002-02-28 Michael Chastain <mec@shout.net>
1861
1862 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
1863
1864 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
1865
1866 * gdbserver/linux-s390-low.c: New file.
1867 * regformats/reg-s390.dat: New file.
1868 * regformats/reg-s390x.dat: New file.
1869 * gdbserver/configure.srv: Add S/390.
1870 * gdbserver/Makefile.in: Add S/390.
1871 * configure.tgt: Enable gdbserver for S/390.
1872
1873 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
1874
1875 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
1876 first line of the doc string for "info dos", except at the end of
1877 the sentence, since the short help stops at the first period.
1878
1879 2002-02-28 Jason Merrill <jason@redhat.com>
1880
1881 * dwarf2read.c (dwarf_cfi_name): Add new codes.
1882
1883 2002-02-27 Fred Fish <fnf@redhat.com>
1884
1885 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
1886 comment (dumy -> dummy).
1887
1888 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1889
1890 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
1891
1892 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
1893
1894 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
1895
1896 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
1897
1898 * gdbserver/acconfig.h: New file.
1899 * gdbserver/i387-fp.c: New file.
1900 * gdbserver/i387-fp.h: New file.
1901 * gdbserver/linux-x86-64.c: New file.
1902 * regformats/reg-x86-64.dat: New file.
1903 * configure.tgt: Add x86_64-*-linux* gdbserver support.
1904 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
1905 * gdbserver/configure.in: Add support for regsets.
1906 * gdbserver/config.in: Regenerate.
1907 * gdbserver/configure: Regenerate.
1908 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
1909 * gdbserver/linux-low.h: New file.
1910 * gdbserver/linux-low.c: Include "linux-low.h". Add support
1911 for regsets.
1912 * gdbserver/linux-arm-low.c: Include "linux-low.h".
1913 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
1914 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
1915 * gdbserver/linux-mips-low.c: Include "linux-low.h".
1916 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
1917 * gdbserver/linux-sh-low.c: Include "linux-low.h".
1918 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
1919 "i387-fp.h". Add PTRACE_GETREGS and friends.
1920 * gdbserver/regcache.c (supply_register): New function.
1921 (supply_register_by_name): New function.
1922 (collect_register): New function.
1923 (collect_register_by_name): New function.
1924
1925 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
1926
1927 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
1928 (config.status): Add configure.srv dependency.
1929 (server_h): Add config.h dependency.
1930
1931 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
1932
1933 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
1934 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
1935 * gdbserver/configure.srv: Change i386-*-linux* to use
1936 reg-i386-linux.o.
1937
1938 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1939
1940 * x86-64-tdep.c: Re-indent. Update copyright date.
1941
1942 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1943
1944 From Michal Ludvig <mludvig@suse.cz>:
1945 * x86-64-tdep.c (value.h): Delete.
1946 (gdb_assert.h): Include.
1947 (x86_64_register_convert_to_virtual,
1948 x86_64_register_convert_to_raw ): Add check which lets only
1949 floating-point values to be converted.
1950 (value_push): Delete.
1951 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
1952 (i386_gdbarch_init): Number of register_bytes fixed.
1953
1954 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1955
1956 * MAINTAINERS: Add x86-64 target.
1957
1958 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1959
1960 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
1961 * osfsolib.c (solib_map_sections): Ditto.
1962 * irix5-nat.c (solib_map_sections): Ditto.
1963 * corelow.c (gdb_check_format): Ditto.
1964 * symfile.c (symfile_bfd_open): Ditto.
1965 * solib.c (solib_map_sections): Ditto.
1966 Fix PR gdb/354.
1967
1968 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1969
1970 * remote.c (_initialize_remote): By default, disable ``e'' and
1971 ``E'' step out-of-range packets.
1972
1973 2002-02-26 Andreas Schwab <schwab@suse.de>
1974
1975 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
1976 m68k_linux_frame_saved_pc.
1977 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
1978 in_sigtramp.
1979 (SIGCONTEXT_PC_OFFSET): Remove.
1980 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
1981 m68k_linux_sigtramp_saved_pc): New functions.
1982 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
1983 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
1984 (UCONTEXT_PC_OFFSET): Define.
1985 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
1986 non-RT and RT signal trampolines.
1987
1988 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
1989
1990 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
1991 (TARGET_NBPG, STACK_END_ADDR): Delete
1992 (VARIABLES_INSIDE_BLOCK): Delete.
1993
1994 2002-02-25 Andrew Cagney <ac131313@redhat.com>
1995
1996 * utils.c (perror_with_name): Make string parameter constant.
1997 (print_sys_errmsg): Ditto.
1998 (query): Ditto.
1999 * defs.h (perror_with_name): Update.
2000 (print_sys_errmsg): Update.
2001 (query): Update.
2002
2003 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
2004
2005 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
2006 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
2007
2008 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2009
2010 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
2011 if it already matches the current architecture from the exec file.
2012 Include arch-utils.h for gdbarch_info_init prototype.
2013 * Makefile.in (rs6000-nat.o): Update dependencies.
2014
2015 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
2016
2017 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
2018 list of exported variables.
2019
2020 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
2021
2022 * gdbserver/configure.srv: New file.
2023 * gdbserver/configure.in: Use configure.srv instead
2024 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
2025 from it.
2026 * gdbserver/configure: Regenerated.
2027 * gdbserver/terminal.h: New file.
2028 * gdbserver/Makefile.in: Update for configure changes. Remove
2029 more unneeded include paths.
2030
2031 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2032
2033 From wiz at danbala:
2034 * config/sparc/tm-sp64.h: Fix grammar and typos.
2035 Fix PR gdb/287.
2036
2037 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2038
2039 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
2040 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
2041 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
2042 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
2043 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
2044 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
2045 * s390-tdep.c: Ditto.
2046 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
2047 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
2048 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
2049 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
2050 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
2051 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
2052 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
2053 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
2054 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
2055 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
2056 Fix PR gdb/378.
2057
2058 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2059
2060 * lin-thread.c: Delete file.
2061 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
2062 to gdb_proc_service.h.
2063 * configure: Re-generate.
2064
2065 * ocd.c (ocd_open): Do not try to open the "ocd" device.
2066 * serial.c (serial_open): Delete check for "ocd".
2067 Fix PR gdb/349.
2068
2069 * Makefile.in (linux-thread.o): Delete target.
2070 * linux-thread.c: Delete file.
2071
2072 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
2073 renamed SH files to be consistent.
2074
2075 * symtab.c (sort_search_symbols): Use xfree.
2076
2077 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2078
2079 * arm-linux-tdep.c (arm_linux_init_abi): Register
2080 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
2081 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
2082 definition with undef, since we don't want the sysvr4 definition.
2083 (SKIP_TRAMPOLINE_CODE): Likewise.
2084
2085 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2086
2087 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
2088
2089 * configure.in: (AC_CHECK_FUNCS) Added test for
2090 canonicalize_file_name Regenerated.
2091 * config.in, configure: Regenerated.
2092 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
2093 defined use canonicalize_file_name.
2094
2095 2002-02-23 Michael Chastain <mec@shout.net>
2096
2097 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
2098
2099 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2100
2101 * README: Remove references to cygnus.com.
2102 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
2103 dot com'' form. Remove references to cygnus.com and sourceware.
2104
2105 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2106
2107 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
2108 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
2109 1003.1-2001 no longer allows "head -1".
2110 * gdb/Makefile.in (version.c): Likewise.
2111 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
2112 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
2113 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
2114
2115 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2116
2117 * cli/cli-decode.c (cmd_cfunc_eq): New function.
2118 * command.h (cmd_cfunc_eq): Declare.
2119 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
2120
2121 * cli/cli-cmds.h (is_complete_command): Change parameter to a
2122 ``struct cmd_list_element *''.
2123 * cli/cli-cmds.c (is_complete_command): Update. Use
2124 cmd_cfunc_eq.
2125 * top.c (execute_command): Pass the command to
2126 is_complete_command.
2127 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
2128
2129 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2130
2131 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
2132 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
2133 architecture defines.
2134 * s390-tdep.c (s390_gdbarch_init): Likewise.
2135
2136 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2137
2138 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
2139 (arm_linux_push_arguments): Likewise.
2140 (arm_linux_init_abi): Register them. Also register linux-specific
2141 call_dummy_words.
2142 (find_minsym_and_objfile): Use strcmp, not STREQ.
2143 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
2144 (arm_linux_call_dummy_words): Delete declaration.
2145 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
2146 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
2147 declarations.
2148 (LOWEST_PC): Delete.
2149
2150 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2151
2152 * maint.c (print_section_info): Do not prepend `0x' to filepos
2153 output, it will be handled by local_hex_string_custom.
2154
2155 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2156
2157 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
2158 (store_newfpe_double, store_newfpe_extended, store_fpregister)
2159 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
2160
2161 2002-02-22 Jim Blandy <jimb@redhat.com>
2162
2163 Indicate that the bcache functions don't change the strings
2164 they're passed.
2165 * bcache.h (bcache, hash): Add `const' keywords to declarations.
2166 * bcache.c (bcache, hash): Add `const' keywords to definitions.
2167
2168 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
2169
2170 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
2171
2172 2002-02-21 Christopher Faylor <cgf@redhat.com>
2173
2174 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
2175 find the complete path to a loaded DLL.
2176
2177 2002-02-21 Fred Fish <fnf@redhat.com>
2178
2179 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
2180 that marks the end of the range of a function, enter a line number
2181 entry that has a line number of zero and a PC offset that matches
2182 the end of the function. This starts a range of PC's for which no
2183 line number information is known.
2184 * symtab.c (find_pc_sect_line): If our best fit is in a range of
2185 PC's for which no line number info is found (line number is zero)
2186 then we didn't find any valid line information.
2187 * symtab.h: Document use of zero line number entry.
2188
2189 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
2190
2191 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
2192 (have_ptrace_getvrregs): Define for run time checks.
2193 (gdb_vrregset_t): New type for Altivec register handling.
2194 (fetch_register, store_register): Fetch/store altivec register
2195 when needed.
2196 (fetch_altivec_register, store_altivec_register): New functions.
2197 (supply_vrregset, fill_vrregset): New functions.
2198 (fetch_altivec_registers, store_altivec_registers): New functions.
2199 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
2200 registers as well.
2201
2202 2002-02-21 Jiri Smid <smid@suse.cz>
2203
2204 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
2205
2206 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2207
2208 * Makefile.in (armnbsd-nat.o): Update dependencies.
2209 * armnbsd-nat.c (supply_gregset): New function. Common code to
2210 supply the integer register set.
2211 (supply_fparegset): New function. Similar for FPA registers.
2212 (fetch_regs, fetch_fp_regs): Use them.
2213 (fetch_core_registers): Likewise.
2214 (fetch_elfcore_registers): New function.
2215 (arm_netbsd_elfcore_fns): New core-file type specification.
2216 (_initialize_arm_netbsd_nat): Register it.
2217
2218 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2219
2220 * armnbsd-nat.c: Include gdbcore.h.
2221 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
2222 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
2223 'void' to declaration, to shut up ARI.
2224 (fetch_core_registers): Make static. Rewrite using supply_register.
2225 (arm_netbsd_core_fns): New core-file type specification.
2226 (_initialize_arm_netbsd_nat): New function.
2227
2228 2002-02-21 Christopher Faylor <cgf@redhat.com>
2229
2230 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
2231 value.
2232
2233 2002-02-20 Christopher Faylor <cgf@redhat.com>
2234
2235 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
2236 fails.
2237
2238 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2239
2240 * jv-exp.y (parse_number): Change type of implicit longs
2241 to builtin_type_uint64.
2242
2243 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2244
2245 * gdbserver/linux-low.c (mywait): Change argument to waitpid
2246 to be an integer instead of a `union wait'.
2247
2248 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2249
2250 * mips-linux-nat.c: Call the operating system GNU/Linux.
2251 * mips-linux-tdep.c: Likewise.
2252 * mips-tdep.c: Likewise.
2253
2254 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2255
2256 Fix PR gdb/265.
2257 * jv-exp.y (parse_number): Handle 64-bit integers.
2258
2259 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2260
2261 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
2262 AC_STDC_HEADERS to AC_HEADER_STDC.
2263 * gdbserver/configure: Regenerated.
2264
2265 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2266
2267 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
2268 is defined.
2269 * sparc-tdep.c (get_longjmp_target): Likewise.
2270
2271 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2272
2273 * News: Add news about ARM and Multi-arch. Mention the new target
2274 arm*-*-netbsd*.
2275
2276 2002-02-19 Jim Blandy <jimb@redhat.com>
2277
2278 * stabsread.c (error_type_complaint): Improve error message.
2279
2280 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
2281
2282 * gdbserver/README: Update documentation.
2283 * gdbserver/configure.in: Update configury to match documentation.
2284 * gdbserver/Makefile.in: Likewise.
2285 * gdbserver/configure: Regenerated.
2286 * gdbserver/aclocal.m4: New file, generated by aclocal.
2287 * gdbserver/config.in: New file, generated by autoheader.
2288
2289 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2290
2291 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
2292 armnbsd-nat.c.
2293
2294 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2295
2296 * arm-tdep.h (enum arm_float_model): New enum.
2297 (struct gdbarch_tdep): Add fp_model.
2298 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
2299 up floating-point conversions until we know the floating-point model
2300 in use by the inferior. Don't complain about being unable to
2301 determine the ABI of the inferior when we don't have one.
2302 (arm_extract_return_value): Support different floating-point models.
2303 (arm_store_return_value): Likewise.
2304 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
2305 ARM_FLOAT_SOFT.
2306 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
2307
2308 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2309
2310 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
2311 of ``current_gdbarch''.
2312
2313 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2314
2315 * armnbsd-nat.c : ANSIfy all function declarations.
2316 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
2317 (fetch_inferior_registers): Re-implement in terms of above.
2318 (store_register, store_regs, store_fp_register, store_fp_regs): New.
2319 (store_inferior_registers): Re-implement in terms of above.
2320
2321 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2322
2323 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
2324 kernel.
2325 * arm-linux-tdep.c: Likewise.
2326 * config/arm/tm-linux.h: Likewise.
2327
2328 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2329
2330 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
2331 * config/arm/nbsd.mt (TM_FILE): Delete.
2332 * config/arm/tm-nbsd.h: Delete.
2333
2334 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2335
2336 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
2337 Initialize CALL_DUMMY_LENGTH.
2338
2339 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2340
2341 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
2342 function.
2343 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
2344 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
2345 defines one thing and that is incorrect for this port.
2346 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
2347
2348 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2349
2350 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
2351
2352 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2353
2354 * win32-nat.c (display_selector): New function. Displays information
2355 about the information returned by GetThreadSelectorEntry API function.
2356 (display_selectors): New function. Displays the infomation of
2357 the selector given as argument, or of CS, DS ans FS selectors
2358 if no argument is given.
2359 ( _initialize_inftarg): Add "w32" as info prefix command.
2360 Add "info w32 selector" as command calling display_selectors.
2361
2362 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
2363
2364 * i386-tdep.c (get_longjmp_target): Fix compilation failure
2365 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
2366 if not defined.
2367
2368 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2369
2370 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
2371
2372 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2373
2374 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
2375 (arm_fix_call_dummy): Call it.
2376 (arm_call_dummy_breakpoint_offset): Delete.
2377 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
2378 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
2379
2380 2002-02-18 Andrew Cagney <ac131313@redhat.com>
2381
2382 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
2383 Default to func_frame_chain_valid.
2384 * gdbarch.h, gdbarch.c: Re-generate.
2385 * frame.h (FRAME_CHAIN_VALID): Delete definition.
2386
2387 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
2388
2389 * ppc-linux-nat.c: Update copyright.
2390 (fetch_register, store_register): Add tid parameter, don't compute
2391 tid here.
2392 (fetch_ppc_registers, store_ppc_registers): Add tid
2393 parameter. Pass it along to callees.
2394 (fetch_inferior_registers, store_inferior_registers): Compute tid
2395 here, and pass it to calleed functions.
2396 (fill_gregset, supply_fpregset): Clean up formatting.
2397
2398 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2399
2400 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
2401 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
2402
2403 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2404
2405 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
2406 * gdbarch.c gdbarch.h: Regenerate.
2407 * breakpoint.c (create_longjmp_breakpoint): Always compile this
2408 function.
2409 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
2410 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
2411 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
2412
2413 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
2414 * arm-tdep.c (arm_get_longjmp_target): New function.
2415 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
2416 this to a positive value register arm_get_longjmp_target as the
2417 longjmp handler.
2418 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
2419 (arm_linux_init_abi): Set up longjmp description in tdep.
2420 * armnbsd-nat.c (get_longjmp_target): Delete.
2421 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
2422 description in tdep.
2423 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
2424 (get_longjmp_target): Delete declaration.
2425 (GET_LONGJMP_TARGET): Delete.
2426 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
2427 (GET_LONGJMP_TARGET): Delete.
2428
2429 2002-02-17 Kevin Buettner <kevinb@redhat.com>
2430
2431 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
2432 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
2433 of ``current_gdbarch''.
2434
2435 2002-02-17 Tom Tromey <tromey@redhat.com>
2436
2437 * cli/cli-cmds.c (compare_strings): New function.
2438 (complete_command): Only print each unique item once.
2439 * completer.h (complete_line): Declare.
2440 * completer.c (complete_line): New function.
2441 (line_completion_function): Use it.
2442
2443 2002-02-16 Andrew Cagney <ac131313@redhat.com>
2444
2445 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
2446 * gdbarch.h, gdbarch.c: Re-generate.
2447
2448 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
2449
2450 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
2451
2452 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
2453
2454 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
2455 * valops.c (value_arg_coerce): Don't take the address of a reference
2456 to convert an argument to a reference.
2457
2458 2002-02-15 Christopher Faylor <cgf@redhat.com>
2459
2460 * win32-nat.c (get_image_name): New function.
2461 (handle_load_dll): Use get_image_name function.
2462 (get_child_debug_event): Avoid registering debug events until possibly
2463 execed process is started.
2464 (child_create_inferior): Allow invocation via shell so that command
2465 line redirection, etc. works ok.
2466 (_initialize_inftarg): Add new command: "set shell" to control whether
2467 a shell is used to start a process.
2468
2469 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
2470
2471 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
2472 instead of find_register_by_number.
2473 (cannot_store_register): Likewise.
2474
2475 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
2476
2477 * dwarf2read.c: Replace fprintf (stderr, ...) by
2478 fprintf_unfiltered (gdb_stderr, ...).
2479
2480 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
2481
2482 * gdbserver/gdbserver.1: Document --attach.
2483
2484 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
2485
2486 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
2487 descriptions.
2488 * arm-tdep.c (arm_default_arm_le_breakpoint)
2489 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
2490 (arm_default_thumb_be_breakpoint): New. Initialize them from
2491 traditional breakpoint defines.
2492 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
2493 (arm_gdbarch_init): Initialize new breakpoint variables.
2494 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
2495 (arm_linux_init_abi): Initialize linux-specific breakpoint.
2496 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
2497 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
2498 code out to ...
2499 (arm_netbsd_init_abi_common): ... here; new function.
2500 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
2501 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
2502 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
2503 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
2504
2505 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
2506
2507 * arm-tdep.h (enum arm_abi): New enum.
2508 (struct gdbarch_tdep): New structure.
2509 (LOWEST_PC): Provide a default.
2510 (arm_gdbarch_register_os_abi): Declare new function.
2511 * arm-tdep.c (arm_abi_names): New array.
2512 (process_note_abi_tag_sections): New function.
2513 (get_elfosabi): New function.
2514 (arm_gdbarch_register_os_abi): New function.
2515 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
2516 support for that ABI has been built in, then call the appropriate
2517 configuration routine. Use gdbarch_num_regs() to get the number
2518 of registers.
2519 (arm_dump_tdep): New function.
2520 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
2521 place-holder functions.
2522 (_initialize_arm_tdep): Register them.
2523 * config/arm/tm-arm.h (LOWEST_PC): Delete.
2524
2525 * armnbsd-tdep.c: New file.
2526 * Makefile.in (armnbsd-tdep.o): Add dependencies.
2527 * config/arm/nbsd.mt (TDEPFILES): Add it.
2528 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
2529
2530 * armnbsd-nat.c: Include regcache.h.
2531 * Makefile.in (armnbsd-nat.o): Update dependency list.
2532
2533 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
2534
2535 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2536
2537 * gdbserver/Makefile.in: Fix typos in target rules.
2538
2539 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2540
2541 Fix part of PR gdb/267.
2542 * linespec.c (find_methods): Handle constructors specially for now.
2543
2544 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
2545
2546 * arm-tdep.c (arm_push_arguments): Eliminate special float type
2547 handling.
2548 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
2549 standard_coerce_float_to_double().
2550
2551 2002-02-14 Christopher Faylor <cgf@redhat.com>
2552
2553 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
2554 GDBINIT_FILENAME.
2555
2556 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
2557
2558 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
2559 find_variant_by_name, because it confuses the multiarch
2560 framework. Return NULL if there isn't an architecture with the
2561 user supplied name, instead of forcing a different one without
2562 recording the change with the multiarch machinery.
2563 (find_variant_by_name): Delete.
2564
2565 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2566
2567 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
2568 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
2569
2570 2002-02-13 Martin M. Hunt <hunt@redhat.com>
2571
2572 * stack.c (print_frame_info_base): When calling
2573 print_frame_info_listing_hook, set current_source_symtab.
2574
2575 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2576
2577 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
2578 and remove unused $(INCLUDE_DIR).
2579 Add regcache.c to OBS.
2580 Add generated register protocol files to clean target.
2581 Update dependencies for new objects, obsolete old target code.
2582
2583 * gdbserver/linux-low.c: Remove all platform-specific code to
2584 new files. Remove various dead code. Update to use regcache
2585 functionality.
2586 * gdbserver/remote-utils.c (fromhex): Add return statement
2587 to quiet warning.
2588 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
2589 constant.
2590 (input_interrupt): Add integer parameter to match prototype
2591 of a signal handler.
2592 (outreg): Use register_data ().
2593 (prepare_resume_reply): Use gdbserver_expedite_regs.
2594 * gdbserver/server.c (main): Dynamically allocate own_buf because
2595 PBUFSIZ is no longer constant. Use registers_to_string () and
2596 registers_from_string ().
2597 * gdbserver/server.h: No longer include "defs.h". Add prototypes
2598 for error (), fatal (), and warning (). Update definition of
2599 PBUFSIZ to use regcache functionality. Add include guard.
2600 * gdbserver/utils.c (fatal): Add missing ``const''.
2601 (warning): New function.
2602
2603 * regformats/regdat.sh: Include "regcache.h" in generated files.
2604 Provide init_registers () function.
2605 * regformats/regdef.h: Add prototype for set_register_cache ().
2606 Add include guard.
2607
2608 * gdbserver/linux-arm-low.c: New file.
2609 * gdbserver/linux-i386-low.c: New file.
2610 * gdbserver/linux-ia64-low.c: New file.
2611 * gdbserver/linux-m68k-low.c: New file.
2612 * gdbserver/linux-mips-low.c: New file.
2613 * gdbserver/linux-ppc-low.c: New file.
2614 * gdbserver/linux-sh-low.c: New file.
2615
2616 * gdbserver/regcache.c: New file.
2617 * gdbserver/regcache.h: New file.
2618
2619 * gdbserver/low-linux.c: Removed obsolete file.
2620
2621 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2622
2623 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
2624 * config/i386/linux.mt: Likewise.
2625 * config/ia64/linux.mt: Likewise.
2626 * config/m68k/linux.mh: Likewise.
2627 * config/powerpc/linux.mh: Likewise.
2628 * config/mips/linux.mt: Likewise.
2629
2630 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
2631
2632 * config/i386/i386lynx.mh: Mark gdbserver variables
2633 as (currently) obsolete for this target.
2634 * config/i386/nbsd.mt: Likewise.
2635 * config/i386/nbsdelf.mt: Likewise.
2636 * config/m32r/m32r.mt: Likewise.
2637 * config/m68k/m68klynx.mh: Likewise.
2638 * config/m68k/nbsd.mt: Likewise.
2639 * config/m68k/sun3os4.mh: Likewise.
2640 * config/mips/vr5000.mt: Likewise.
2641 * config/ns32k/nbsd.mt: Likewise.
2642 * config/pa/hppabsd.mh: Likewise.
2643 * config/pa/hppaosf.mh: Likewise.
2644 * config/powerpc/nbsd.mt: Likewise.
2645 * config/rs6000/rs6000lynx.mh: Likewise.
2646 * config/s390/s390.mt: Likewise.
2647 * config/s390/s390x.mt: Likewise.
2648 * config/sparc/sparclynx.mh: Likewise.
2649 * config/sparc/sun4os4.mh: Likewise.
2650 * config/i386/x86-64linux.mt: Likewise.
2651 * config/sparc/linux.mh: Likewise.
2652
2653 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2654
2655 * configure.tgt: Configure gdbserver only for known working
2656 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
2657 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
2658 SUBDIRS if it is configured. Update comment for ${nativefile}.
2659 * configure: Regenerated.
2660
2661 2002-02-13 Michael Snyder <msnyder@redhat.com>
2662
2663 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
2664
2665 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
2666 (default_gcore_mach): Just return 0, work around a problem in bfd.
2667 (default_gcore_target): OK to return NULL if exec_bfd is null.
2668 (make_mem_sec): Use a cast, avoid a warning.
2669
2670 * procfs.c (find_memory_regions_callback): Use a cast instead of
2671 calling host_pointer_to_address (which complains if
2672 sizeof (host pointer) != sizeof (target pointer)).
2673 (procfs_make_note_section): Avoid overflow in psargs string.
2674
2675 * procfs.c (procfs_make_note_section): Make the default
2676 implementation return an error.
2677
2678 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
2679
2680 * procfs.c (procfs_make_note_section): Provide a default definition
2681 (for alpha-dec-osf4.0f). Fix typos.
2682
2683 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
2684
2685 * linux-proc.c: Add include of regcache.h.
2686 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
2687
2688 2002-02-13 Andrew Cagney <ac131313@redhat.com>
2689
2690 From 2002-01-18 Greg McGary <greg@mcgary.org>:
2691 * memattr.c (create_mem_region): Disallow useless empty region.
2692 Regions are half-open intervals, so allow [A..B) [B..C) as
2693 non-overlapping.
2694
2695 2002-02-13 Michael Chastain <mec@shout.net>
2696
2697 * defs.h: Kill CONST_PTR.
2698 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
2699 * c-lang.c (c_builtin_types): Likewise.
2700 * ch-lang.c (ch_builtin_types): Likewise.
2701 * f-lang.c (f_builtin_types): Likewise.
2702 * language.c (unknown_builtin_types): Likewise.
2703 * m2-lang.c (m2_builtin_types): Likewise.
2704 * p-lang.c (pascal_builtin_types): Likewise.
2705 * scm-lang.c (c_builtin_types): Likewise.
2706
2707 2002-02-13 Keith Seitz <keiths@redhat.com>
2708
2709 * arm-tdep.h (arm_get_next_pc): Add declaration.
2710
2711 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
2712
2713 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
2714 with other related struct-returning functions.
2715 (arm_extract_struct_value_address): New function.
2716 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
2717 initialize float_format, double_format and long_double_format as
2718 appropriate to the endianness of the target.
2719 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
2720 (arm_use_struct_convention): Delete declaration.
2721 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2722
2723 2002-02-13 Keith Seitz <keiths@redhat.com>
2724
2725 * defs.h (core_addr_to_string_nz): New function.
2726
2727 2002-02-13 Mark Kettenis <kettenis@gnu.org>
2728
2729 Apply missing bits of 2002-01-15 patch.
2730 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
2731 (fill_fpregset): Use i387_fill_fsave.
2732
2733 2002-02-12 Keith Seitz <keiths@redhat.com>
2734
2735 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
2736 (core_addr_to_string_nz): New function.
2737
2738 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
2739
2740 * arm-linux-nat.c: Really include arm-tdep.h.
2741 * config/arm/tm-linux.h (struct type, struct value): Declare.
2742
2743 2002-02-11 Michael Snyder <msnyder@redhat.com>
2744
2745 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
2746 (gcore section): Ifdef for Solaris and Unixware only.
2747 (procfs_do_thread_registers): Unixware needs one lwpstatus
2748 per thread (not one prstatus or pstatus).
2749 (procfs_make_note_section): Iterate only over kernel threads (lwps),
2750 not over all gdb threads. For unixware, call elfcore_write_pstatus
2751 once before iterating over threads.
2752
2753 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
2754
2755 * arm-tdep.h: New file.
2756 * arm-tdep.c: Include arm-tdep.h.
2757 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2758 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2759 (arm_print_float_info, arm_register_type, convert_to_extended)
2760 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2761 (arm_extract_return_value, arm_register_name): Make static.
2762 (arm_software_single_step): Similarly. Fix types in declaration.
2763 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
2764 (arm_store_return_value, arm_store_struct_return): New functions.
2765 (arm_gdbarch_init): Register the above functions. Also register
2766 call_dummy_start_offset, sizeof_call_dummy_words,
2767 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
2768 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
2769 max_register_virtual_size, register_size. Set up
2770 prologue_cache.saved_regs here, rather than ...
2771 (_initialize_arm_tdep): ... here.
2772 * config/arm/tm-arm.h (struct type, struct value): Delete forward
2773 declarations.
2774 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2775 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2776 (arm_print_float_info, arm_register_type, convert_to_extended)
2777 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2778 (arm_extract_return_value, arm_register_name): Delete declarations.
2779 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
2780 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
2781 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
2782 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
2783 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2784 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
2785 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
2786 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
2787 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
2788 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
2789 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
2790 (arm_get_next_pc): No-longer static -- these are needed by the RDI
2791 interface.
2792 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
2793 * remote-rdi.c remote-rdp.c: Likewise.
2794 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
2795 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
2796 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
2797 definition.
2798
2799 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
2800 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
2801 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
2802 from non-ARM_ prefixed definitions.
2803 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
2804 all uses of above.
2805 * remote-rdi.c remote-rdp.c: Likewise.
2806 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
2807
2808 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
2809
2810 * arm-tdep.c (arm_frameless_function_invocation)
2811 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2812 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2813 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2814 (arm_pop_frame, arm_get_next_pc): Make static.
2815 (arm_gdbarch_init): Register above in gdbarch structure.
2816 (arm_read_fp): Renamed from arm_target_read_fp.
2817 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
2818 * config/arm/tm-arm.h (arm_frameless_function_invocation)
2819 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2820 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2821 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2822 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
2823 (arm_pc_is_thumb_dummy): Delete declarations.
2824 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
2825 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
2826 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
2827 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
2828
2829 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2830
2831 * symtab.c (compare_search_syms): New function.
2832 (sort_search_symbols): New function.
2833 (search_symbols): Sort symbols after searching rather than
2834 before.
2835
2836 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2837
2838 * NEWS: Linux -> GNU/Linux.
2839
2840 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2841
2842 * gdbarch.sh: For for level one methods, disallow a definition
2843 when partially multi-arched. Add comments explaining rationale.
2844 * gdbarch.h: Re-generate.
2845
2846 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2847
2848 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
2849 multi-arch partial.
2850
2851 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2852
2853 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
2854 field. Use diff -u.
2855 * gdbarch.c: Re-generate.
2856
2857 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2858
2859 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
2860 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
2861 partial.
2862
2863 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2864
2865 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
2866 multi-arch partial.
2867 (PUSH_ARGUMENTS): Switch to using predefault.
2868 * gdbarch.c: Regenerate.
2869
2870 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2871
2872 * valops.c (PUSH_ARGUMENTS): Delete definition.
2873 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
2874 partial. Default to default_push_arguments.
2875 * gdbarch.h, gdbarch.c: Regenerate.
2876
2877 2002-02-09 Andrew Cagney <ac131313@redhat.com>
2878
2879 * defs.h (throw_exception): Rename return_to_top_level. Update
2880 comments.
2881 * utils.c (error_stream, internal_verror, quit): Ditto.
2882 * top.c (throw_exception, catcher): Ditto.
2883 * sparclet-rom.c (sparclet_load): Ditto.
2884 * remote.c (interrupt_query, minitelnet): Ditto.
2885 * remote-sds.c (interrupt_query): Ditto.
2886 * remote-mips.c (mips_error, mips_kill): Ditto.
2887 * ocd.c (interrupt_query): Ditto.
2888 * monitor.c (monitor_interrupt_query): Ditto.
2889 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
2890 * target.h: Update comment.
2891
2892 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
2893
2894 2002-02-09 Andrew Cagney <ac131313@redhat.com>
2895
2896 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
2897 default_double_format.
2898 * gdbarch.h, gdbarch.c: Re-generate.
2899 * findvar.c (floatformat_unknown): Delete variable definition.
2900 * doublest.h (floatformat_unknown): Delete variable declaration.
2901
2902 2002-02-09 Jim Blandy <jimb@redhat.com>
2903
2904 * stabsread.c (read_type): Add code to parse Sun's syntax for
2905 prototyped function types.
2906
2907 2002-02-09 Andrew Cagney <ac131313@redhat.com>
2908
2909 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
2910 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
2911
2912 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2913
2914 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
2915 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
2916 now _initialize_xcoffsolib gets called again and overrides the
2917 commands from solib.c in a native configuration.
2918
2919 2002-02-09 Mark Kettenis <kettenis@gnu.org>
2920
2921 * doublest.c (store_typed_floating): Don't try to return a value.
2922 Fixes PR gdb/290.
2923
2924 2002-02-08 Jim Blandy <jimb@redhat.com>
2925
2926 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
2927 is prototyped and has no arguments, print its argument list as
2928 `(void)'.
2929
2930 2002-02-08 Chris Demetriou <cgd@broadcom.com>
2931
2932 * MAINTAINERS (write-after-approval): Add myself.
2933 (paper-trail): I've escaped!
2934
2935 2002-02-08 Christopher Faylor <cgf@redhat.com>
2936
2937 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
2938 changes.
2939 (_initialize_check_for_gdb_ini): Ditto.
2940
2941 2002-02-08 Martin M. Hunt <hunt@redhat.com>
2942
2943 * win32-nat.c (cygwin_pid_to_str): Fix typo.
2944 xaprintf -> xasprintf.
2945
2946 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
2947
2948 * win32-nat.c: Remove use of printf and sprintf functions.
2949
2950 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
2951
2952 * arm-tdep.c (arm_frame_chain_valid): Make static.
2953 (arm_push_arguments): Likewise.
2954 (arm_gdbarch_init): New function.
2955 (_initialize_arm_tdep): Call it.
2956 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
2957 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
2958 (FRAME_CHAIN_VALID): Delete.
2959 (arm_frame_chain_valid): Delete declaration.
2960 (PUSH_ARGUMENTS): Delete.
2961 (arm_push_arguments): Delete declaration.
2962 (CALL_DUMMY_P): Delete.
2963
2964 2002-02-08 Andrew Cagney <ac131313@redhat.com>
2965 Corinna Vinschen <vinschen@redhat.com>
2966
2967 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
2968 on builtin float types.
2969
2970 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
2971
2972 * utils.c: Include <curses.h> before "bfd.h".
2973 * tui/tui-hooks.c: Likewise.
2974 * tui/tui.c: Likewise.
2975 * tui/tuiCommand.c: Likewise.
2976 * tui/tuiData.c: Likewise.
2977 * tui/tuiDataWin.c: Likewise.
2978 * tui/tuiDisassem.c: Likewise.
2979 * tui/tuiGeneralWin.c: Likewise.
2980 * tui/tuiIO.c: Likewise.
2981 * tui/tuiLayout.c: Likewise.
2982 * tui/tuiRegs.c: Likewise.
2983 * tui/tuiSource.c: Likewise.
2984 * tui/tuiSourceWin.c: Likewise.
2985 * tui/tuiStack.c: Likewise.
2986 * tui/tuiWin.c: Likewise.
2987
2988 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
2989
2990 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
2991 to include space for pseudoregs as well. Update loops accordingly.
2992 (sh_fp_frame_init_saved_regs): Ditto.
2993 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
2994
2995 2002-02-07 Andrew Cagney <ac131313@redhat.com>
2996
2997 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
2998 Add Richard Earnshaw to Arm maintainers.
2999
3000 2002-02-07 Andrew Cagney <ac131313@redhat.com>
3001
3002 * defs.h (warning_begin): Delete declaration.
3003
3004 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
3005 Delete macro.
3006
3007 2002-02-07 Michael Snyder <msnyder@redhat.com>
3008
3009 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
3010 Logic bug, remove misplaced else.
3011
3012 2002-02-07 Klee Dienes <klee@apple.com>
3013
3014 * fork-inferior.c (fork_inferior): Add '!' to the list of
3015 characters that need to be quoted when building a string for the
3016 shell. Quote '!' specifically with a backslash, since CSH chokes
3017 when trying to evaluate "str!str".
3018
3019 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
3020
3021 * rdi-share/host.h: Only provide a typedef for bool if it is not
3022 defined.
3023
3024 2002-02-04 Michael Snyder <msnyder@redhat.com>
3025
3026 * breakpoint.h (enum bptype): Add new overlay event bp type.
3027 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
3028
3029 * breakpoint.c (create_internal_breakpoint): New function.
3030 (internal_breakpoint_number): Moved into create_internal_breakpoint.
3031 (create_longjmp_breakpoint): Use create_internal_breakpoint.
3032 (create_thread_event_breakpoint): Ditto.
3033 (create_solib_event_breakpoint): Ditto.
3034 (create_overlay_event_breakpoint): New function.
3035 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
3036 (update_breakpoints_after_exec): Delete and re-initialize
3037 overlay event breakpoints after an exec. Add FIXME comment
3038 about longjmp breakpoint.
3039 (print_it_typical): Ignore overlay event breakpoints.
3040 (print_one_breakpoint): Ditto.
3041 (mention): Ditto.
3042 (bpstat_what): Do not stop for overlay event breakpoints.
3043 (delete_breakpoint): Don't delete overlay event breakpoints.
3044 (breakpoint_re_set_one): Delete the overlay event breakpoint.
3045 (breakpoint_re_set): Re-create overlay event breakpoint.
3046
3047 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
3048 (overlay_manual_command): Disable overlay breakpoints.
3049 (overlay_off_command): Disable overlay breakpoints.
3050
3051 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3052
3053 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
3054 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
3055 to here from config/tm-arm.h.
3056 (coff_sym_is_thumb): Make static.
3057 (arm_elf_make_msymbol_special): New function.
3058 (arm_coff_make_msymbol_special): New function.
3059 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
3060 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
3061 (coff_sym_is_thumb): Delete declaration.
3062 (arm_elf_make_msymbol_special): Declare.
3063 (arm_coff_make_msymbol_special): Declare.
3064 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
3065 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
3066
3067 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3068
3069 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
3070
3071 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3072
3073 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
3074 * gdbarch.c gdbarch.h: Regenerate.
3075 * arch-utils.c (default_print_float_info): New function.
3076 * arch-utils.h (default_print_float_info): Prototype it.
3077 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
3078 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
3079 (PRINT_FLOAT_INFO): Document it.
3080
3081 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
3082 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
3083 (PRINT_FLOAT_INFO): Define.
3084
3085 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
3086
3087 * win32-nat.c (_initialize_check_for_gdb_ini):
3088 Add typecast to sprintf argument to suppress a warning.
3089
3090 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
3091
3092 * win32-nat.c (last_sig): Changed type of variable to target_signal,
3093 to allow easier handling of pass state.
3094 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
3095 that gives exception name and address.
3096 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
3097 and set last_sig value to ourstatus->value.sig. Some missing
3098 exceptions added.
3099 (child_continue): Correctly report continue_status.
3100 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
3101 TARGET_SIGNAL_0 (new default value).
3102 (child_resume): consider sig argument passed to decide if
3103 the exception should be passed to debuggee or not.
3104
3105 2002-02-05 Michael Snyder <msnyder@redhat.com>
3106
3107 * regcache.c (fetch_register): Call target_fetch_register
3108 only if we don't call FETCH_PSEUDO_REGISTER.
3109 (store_register): Call target_store_register only if we
3110 don't call STORE_PSEUDO_REGISTER.
3111
3112 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
3113
3114 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
3115 ELF_MAKE_MSYMBOL_SPECIAL.
3116 * gdbarch.c, gdbarch.h: Regenerate.
3117 * arch-utils.c (default_make_msymbol_special): New function.
3118 * arch-utils.h (default_make_msymbol_special): Export.
3119 * elfread.c (elf_symtab_read): Compile use of
3120 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
3121 multiarched.
3122 * coffread.c (coff_symtab_read): Ditto, for
3123 COFF_MAKE_MSYMBOL_SPECIAL.
3124
3125 2002-02-05 Jim Blandy <jimb@redhat.com>
3126
3127 * solib-svr4.c (svr4_truncate_ptr): New function.
3128 (svr4_relocate_section_addresses): Do the address arithmetic with
3129 the appropriate truncation for target addresses, even when
3130 CORE_ADDR is larger than a target address.
3131
3132 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3133
3134 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
3135 to (int *).
3136
3137 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3138
3139 * gdbserver/linux-low.c (kill_inferior): Remove commented out
3140 code.
3141
3142 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3143
3144 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
3145
3146 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3147
3148 * gdbserver/linux-low.c: Remove unused include files.
3149
3150 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3151
3152 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
3153 (read_inferior_memory): Use it.
3154 (write_inferior_memory): Likewise.
3155
3156 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3157
3158 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
3159 grubbing through sys_errlist.
3160
3161 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3162
3163 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
3164
3165 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3166 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
3167
3168 2002-02-04 Andrew Cagney <ac131313@redhat.com>
3169
3170 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
3171 (do_sfunc, set_cmd_sfunc): New functions.
3172
3173 * command.h (struct cmd_list_element): Add field func.
3174 * cli/cli-decode.h (struct cmd_list_element): Ditto.
3175 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
3176 * cli/cli-decode.h: Ditto.
3177
3178 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
3179 (help_all, help_cmd_list): Ditto.
3180 (find_cmd, complete_on_cmdlist): Ditto.
3181 * top.c (execute_command): Ditto.
3182
3183 * cli/cli-setshow.c (do_setshow_command): Call func instead of
3184 function.sfunc.
3185
3186 * infcmd.c (notice_args_read): Fix function signature.
3187
3188 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
3189 * cli/cli-decode.c (add_set_cmd): Ditto.
3190 * utils.c (initialize_utils): Ditto.
3191 * maint.c (_initialize_maint_cmds): Ditto.
3192 * infrun.c (_initialize_infrun): Ditto.
3193 * demangle.c (_initialize_demangler): Ditto.
3194 * remote.c (add_packet_config_cmd): Ditto.
3195 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3196 * cris-tdep.c (_initialize_cris_tdep): Ditto.
3197 * proc-api.c (_initialize_proc_api): Ditto.
3198 * kod.c (_initialize_kod): Ditto.
3199 * valprint.c (_initialize_valprint): Ditto.
3200 * top.c (init_main): Ditto.
3201 * infcmd.c (_initialize_infcmd): Ditto.
3202 * corefile.c (_initialize_core): Ditto.
3203 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3204 * arch-utils.c (initialize_current_architecture): Ditto.
3205 (_initialize_gdbarch_utils): Ditto.
3206 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
3207
3208 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
3209 * wince.c (_initialize_inftarg): Ditto.
3210 * symfile.c (_initialize_symfile): Ditto.
3211 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3212 * language.c (_initialize_language): Ditto.
3213 * arc-tdep.c (_initialize_arc_tdep): Ditto.
3214
3215 2002-02-04 Michael Snyder <msnyder@redhat.com>
3216
3217 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
3218
3219 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3220
3221 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
3222 Add rules for building the register data files.
3223
3224 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3225
3226 * regformats/regdat.sh: Add braces to the definition of
3227 expedite_regs_${arch}.
3228
3229 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3230
3231 * regformats/regdef.h (struct reg): Add comment describing the
3232 requirements for offset and size fields.
3233
3234 2002-02-04 Andreas Schwab <schwab@suse.de>
3235
3236 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
3237 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
3238
3239 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
3240
3241 * gdbarch.sh (copyright): Update years in generated header.
3242 (SMASH_TEXT_ADDRESS): Add rule.
3243 * gdbarch.h, gdbarch.c: Re-generate.
3244 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
3245 * dbxread.c: Likewise.
3246 * dwarfread.c: Likewise.
3247 * elfread.c: Likewise.
3248 * somread.c: Likewise.
3249
3250 * arm-tdep.c (arm_smash_text_address): New function.
3251 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
3252
3253 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3254
3255 Add support for hardware watchpoints on win32 native.
3256 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
3257 CONTEXT_DEBUG_REGISTERS.
3258 (dr variable): New variable. Static array containing a local copy
3259 of debug registers.
3260 (debug_registers_changed): New variable. Reflects when debug registers
3261 are changed and need to be written to inferior.
3262 (debug_registers_used): New variable. Reflects when any debug register
3263 was set, used when new threads are created.
3264 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
3265 i386-nat code.
3266 (thread_rec): Set dr array if id is the thread of current_event .
3267 (child_continue, child_resume): Change the debug registers for all
3268 threads if debug_registers_changed.
3269 (child_add_thread): Change the debug registers if debug_registers_used.
3270 * config/i386/cygwin.mh: Add use of i386-nat.o file.
3271 Link nm.h to new nm-cygwin.h file.
3272 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
3273 of hardware registers.
3274
3275 2002-02-03 Andrew Cagney <ac131313@redhat.com>
3276
3277 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
3278 Restore behavour broken by 2002-01-20 Andrew Cagney
3279 <ac131313@redhat.com> IEEE_FLOAT removal.
3280
3281 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3282
3283 * c-valprint.c (c_val_print): Pass a proper valaddr to
3284 cp_print_class_method.
3285 * valops.c (search_struct_method): If there is only one method
3286 and args is NULL, return that method.
3287
3288 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3289
3290 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
3291 accessing tag_name directly.
3292
3293 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3294
3295 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
3296 of accessing tag_name directly.
3297
3298 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3299
3300 PR gdb/280
3301 * gdbtypes.c (replace_type): New function.
3302 * gdbtypes.h (replace_type): Add prototype.
3303 * stabsread.c (read_type): Use replace_type.
3304
3305 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
3306
3307 * Makefile.in (memattr.o): Add missing dependencies rule.
3308
3309 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3310
3311 * breakpoint.c (break_at_finish_command): Really export.
3312 (break_at_finish_at_depth_command): Ditto.
3313 (tbreak_at_finish_command): Ditto.
3314 * hppa-tdep.c: Include completer.h.
3315 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
3316 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
3317
3318 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3319
3320 * utils.c (do_write): New function.
3321 (error_stream): Rewrite combining the code from error_begin and
3322 verror.
3323 (verror): Rewrite using error_stream.
3324 (error_begin): Delete function.
3325
3326 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3327
3328 * utils.c (error_begin): Make static.
3329 * defs.h (error_begin): Delete declaration.
3330
3331 * linespec.c (cplusplus_error): Replace cplusplus_hint.
3332 (decode_line_1): Use cplusplus_error instead of error_begin,
3333 cplusplus_hint and return_to_top_level.
3334 * coffread.c (coff_symfile_read): Use error instead of error_begin
3335 and return_to_top_level.
3336 * infrun.c (default_skip_permanent_breakpoint): Ditto.
3337
3338 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3339
3340 * language.h (type_error, range_error): Make string parameter
3341 constant.
3342 * language.c (warning_pre_print): Delete extern declaration.
3343 * dwarfread.c (warning_pre_print): Ditto.
3344 * language.c (type_error, range_error): Rewrite to use verror and
3345 vwarning instead of warning_begin.
3346
3347 2002-02-01 Michael Snyder <msnyder@redhat.com>
3348
3349 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
3350 (set_ignore_count): Move misplaced comment back where it belongs.
3351
3352 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3353
3354 * command.h (NO_FUNCTION): Delete macro.
3355 * cli/cli-decode.h (NO_FUNCTION): Ditto.
3356 * top.c (execute_command): Replace NO_FUNCTION with NULL.
3357 * tracepoint.c (_initialize_tracepoint): Ditto.
3358 * cli/cli-decode.c (add_set_cmd): Ditto.
3359 * cli/cli-cmds.c (init_cli_cmds): Ditto.
3360
3361 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
3362
3363 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
3364 Update ``this'' pointer when calling virtual functions.
3365
3366 2002-02-01 Michael Snyder <msnyder@redhat.com>
3367
3368 * breakpoint.c (create_temp_exception_breakpoint): Delete.
3369 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
3370
3371 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
3372
3373 * regformats/reg-arm.dat: New file.
3374 * regformats/reg-i386.dat: New file.
3375 * regformats/reg-ia64.dat: New file.
3376 * regformats/reg-m68k.dat: New file.
3377 * regformats/reg-mips.dat: New file.
3378 * regformats/reg-ppc.dat: New file.
3379 * regformats/reg-sh.dat: New file.
3380 * regformats/regdef.h: New file.
3381 * regformats/regdat.sh: New file.
3382
3383 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
3384
3385 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
3386 (arm_frame_args_address, arm_frame_locals_address): New functions.
3387 (arm_frame_num_args): New function.
3388 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
3389 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
3390 (FRMA_NUM_ARGS): Call arm_frame_num_args.
3391
3392 2002-01-31 Michael Snyder <msnyder@redhat.com>
3393
3394 * breakpoint.c (break_at_finish_command): Export.
3395 (break_at_finish_at_depth_command): Export.
3396 (tbreak_at_finish_command): Export.
3397 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
3398 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
3399 "tbreak" commands, which are HPPA specific.
3400
3401 * printcmd.c (disassemble_command): Remove an ancient
3402 artifact of an old merge.
3403
3404 * symfile.h (enum overlay_debugging_state):
3405 Define enum constant values for overlay mode.
3406 * symfile.c (overlay_debugging): Use enums instead of literals.
3407 (overlay_is_mapped, overlay_auto_command,
3408 overlay_manual_command): Ditto.
3409
3410 * breakpoint.c (insert_breakpoints, remove_breakpoint,
3411 breakpoint_here_p, breakpoint_inserted_here_p,
3412 breakpoint_thread_match, bpstat_stop_status,
3413 describe_other_breakpoints, check_duplicates, clear_command):
3414 Coding standard fixes.
3415
3416 * target.c (target_xfer_memory): Add spaces, coding standard.
3417 (do_xfer_memory): Add missing line to trust-readonly
3418 code: check bfd SEC_READONLY flag for section.
3419
3420 2002-01-31 Andrew Cagney <ac131313@redhat.com>
3421
3422 * PROBLEMS: Fix typo, 5.1->5.1.1.
3423
3424 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
3425
3426 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
3427 data symbols, since we search based on textlow and texthigh.
3428 (find_pc_sect_symtab): Likewise.
3429
3430 2002-01-30 Andrew Cagney <ac131313@redhat.com>
3431
3432 * defs.h (vwarning): Declare.
3433 * utils.c (vwarning): New function.
3434 (warning): Call vwarning.
3435 (warning_begin): Delete function.
3436
3437 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
3438 the warning message.
3439 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
3440 warning_begin.
3441
3442 2002-01-30 Michael Snyder <msnyder@redhat.com>
3443
3444 * NEWS: Mention "set trust-readonly-sections" command.
3445 Mention generate-core-file command.
3446
3447 2002-01-15 Michael Snyder <msnyder@redhat.com>
3448
3449 * target.c: New command, "set trust-readonly-sections on".
3450 (do_xfer_memory): Honor the suggestion to trust readonly sections
3451 by reading them from the object file instead of from the target.
3452 (initialize_targets): Register command "set trust-readonly-sections".
3453
3454 2002-01-29 Andrew Cagney <ac131313@redhat.com>
3455
3456 * parse.c (target_map_name_to_register): Simplify, search regs and
3457 pseudo-regs using a single loop.
3458
3459 2002-01-30 Andrew Cagney <ac131313@redhat.com>
3460
3461 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
3462
3463 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
3464
3465 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
3466 * config/i386/i386v42mp.mh: Add i387-nat.o .
3467 * i386v4-nat.c: Include i387-nat.h.
3468 (supply_fpregset): Use i387_supply_fsave.
3469 (fill_fpregset): Use i387_fill_fsave.
3470
3471 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
3472
3473 * arm-tdep.c (arm_call_dummy_words): Define.
3474 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
3475 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
3476 (CALL_DUMMY_WORDS): Define.
3477 (arm_call_dummy_words): Declare.
3478 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
3479 (arm_linux_call_dummy_words): Declare.
3480
3481 2002-01-30 Andreas Schwab <schwab@suse.de>
3482
3483 * m68klinux-nat.c: Fix last change to use regcache_collect
3484 instead of referencing registers[] directly.
3485
3486 2002-01-29 Andrew Cagney <ac131313@redhat.com>
3487
3488 * parse.c (target_map_name_to_register): Delete code wrapped in
3489 #ifdef REGISTER_NAME_ALIAS_HOOK.
3490
3491 2002-01-28 Michael Snyder <msnyder@redhat.com>
3492
3493 * regcache.c (legacy_read_register_gen): Need to be able to
3494 read pseudo-register as well as real register.
3495 (legacy_write_register_gen): Ditto.
3496
3497 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3498
3499 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3500 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
3501 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
3502 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
3503 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
3504 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
3505 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
3506 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
3507 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
3508 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3509 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
3510 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
3511 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
3512 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
3513 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
3514 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
3515 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
3516 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
3517 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
3518 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
3519
3520 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3521
3522 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
3523 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
3524 (initialize_current_architecture): Update target_byte_order using
3525 information from BFD.
3526 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
3527 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
3528
3529 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3530
3531 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
3532 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
3533
3534 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
3535 #ifdef INVALID_FLOAT.
3536 * infcmd.c (do_registers_info): Ditto.
3537 * values.c (unpack_double): Ditto. Add comment.
3538
3539 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
3540 already commented out.
3541
3542 2002-01-26 Andreas Schwab <schwab@suse.de>
3543
3544 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
3545 * m68klinux-nat.c: Update ptrace interface for fetching/storing
3546 registers and add support for PTRACE_GETREGS.
3547
3548 2002-01-24 Andrew Cagney <ac131313@redhat.com>
3549
3550 GDB 5.1.1 released from 5.1 branch.
3551 * NEWS: Add 5.1.1 news.
3552 * README: Sync with 5.1 branch.
3553
3554 2002-01-23 Fred Fish <fnf@redhat.com>
3555
3556 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
3557 stabstring on initial malloc. Reallocing will copy it for us,
3558 if necessary.
3559
3560 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
3561
3562 * Makefile.in (hpread_h): Delete.
3563 (HFILES_NO_SRCDIR): Remove hpread.h.
3564 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
3565 (hpread.o): Update dependencies.
3566 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
3567
3568 * hp-psymtab-read.c: Remove file.
3569 * hp-symtab-read.c: Remove file.
3570 * hpread.h: Remove file.
3571
3572 * hpread.c: Merge all contents of hp-psymtab-read.c,
3573 hp-symtab-read.c and hpread.h into this file, as it was prior to
3574 January 1999.
3575
3576 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
3577 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
3578 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
3579 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
3580
3581 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
3582
3583 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
3584 fill_gregset): Call gdbarch_tdep() just once, assign result to
3585 variable and use that, instead of calling the function several
3586 times.
3587
3588 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3589
3590 * configure.host: Accept sparcv9 as alias for sparc64.
3591 * configure.tgt: Likewise.
3592
3593 2002-01-22 Kevin Buettner <kevinb@redhat.com>
3594
3595 * solib-aix5.c (build_so_list_from_mapfile)
3596 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
3597 arguments is not reversed.
3598 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
3599 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
3600
3601 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
3602
3603 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
3604 modified version of obsolete sh_fetch_pseudo_register.
3605 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
3606 (sh4_register_read): New function.
3607 (sh_pseudo_register_write): New function. Renamed and modified
3608 version of obsolete sh_store_pseudo_register.
3609 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
3610 (sh4_register_write): New function.
3611 (sh_gdbarch_init): Remove setting of gdbarch function
3612 fetch_pseudo_register and store_pseudo_register. Remove setting of
3613 register_convert_to_raw, register_convert_to_virtual,
3614 register_convertible.
3615 (sh_sh4_register_convertible): Delete. No longer needed. All is
3616 taken care by architecture specific functions
3617 register_read/register_write.
3618 (sh_sh4_register_convert_to_virtual): Make static.
3619 (sh_sh4_register_convert_to_raw): Ditto.
3620
3621 2002-01-22 Andrew Cagney <ac131313@redhat.com>
3622
3623 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
3624 (floatformat_is_nan, floatformat_mantissa): Ditto.
3625
3626 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
3627 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
3628 builtin_type_ieee_double_little,
3629 builtin_type_ieee_double_littlebyte_bigword,
3630 builtin_type_m68881_ext, builtin_type_i960_ext,
3631 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
3632 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
3633 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
3634 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
3635
3636 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
3637
3638 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
3639 parameter. Set frameless flag if it exists and depended of
3640 whether the scanned function is frameless or not.
3641 (xstormy16_skip_prologue): If function is frameless, return
3642 result of xstormy16_scan_prologue().
3643 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
3644 call.
3645
3646 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
3647
3648 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
3649 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
3650 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
3651 sh_sh4_register_byte, sh_sh4_register_raw_size,
3652 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
3653 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
3654 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
3655 sh_store_pseudo_register, sh_do_pseudo_register): Call
3656 gdbarch_tdep() just once, assign result to variable and use that,
3657 instead of calling the function several times.
3658
3659 2002-01-20 Mark Kettenis <kettenis@gnu.org>
3660
3661 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
3662 macros instead of LAST_FPU_CTRL_REGNUM.
3663 (store_register): Likewise.
3664
3665 2002-01-21 Jim Blandy <jimb@redhat.com>
3666
3667 * infcmd.c (run_command): Check that the `exec' target layer's BFD
3668 is up-to-date before running the program, not just when a program
3669 exits.
3670
3671 2002-01-21 Fred Fish <fnf@redhat.com>
3672
3673 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
3674 when we have found all instructions we are looking for.
3675
3676 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
3677
3678 * arm-tdep.c (arm_register_name): New function.
3679 (arm_registers_names): Make static.
3680 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
3681 (arm_register_name): Declare.
3682 (REGISTER_NAME): Use it.
3683
3684 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
3685 Kevin Buettner <kevinb@redhat.com>
3686
3687 Convert arm targets to new FRAME interface.
3688 * arm-tdep.c (struct frame_extra_info): Remove fsr.
3689 (arm_frame_find_save_regs): Delete.
3690 (arm_frame_init_saved_regs): New.
3691 (arm_init_extra_frame_info): Alloacte saved_regs as required.
3692 Allocate extra_info as required. Convert all uses of fsr.regs
3693 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
3694 to use extra_info.
3695 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
3696 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
3697 (check_prologue_cache, save_prologue_cache): Likewise.
3698 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
3699 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
3700 (FRAME_FIND_SAVED_REGS): Delete.
3701 (arm_frame_find_saved_regs): Delete prototype.
3702 (arm_frame_init_saved_regs): New prototype.
3703 (FRAME_INIT_SAVED_REGS): Define.
3704
3705 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3706
3707 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
3708
3709 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3710
3711 From Jeff Law <law@redhat.com>:
3712 * infttrace.c: Include <sys/pstat.h>.
3713 (child_pid_to_exec_file): Revamp. Use pstat call to get the
3714 exec file if the ttrace equivalent fails.
3715
3716 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3717
3718 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
3719 (closeLogFile): Ditto.
3720
3721 2002-01-20 Michael Chastain <mec@shout.net>
3722
3723 * top.c (print_gdb_version): Bump copyright year to 2002.
3724
3725 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3726
3727 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
3728 Zannoni and Eli Zaretskii.
3729
3730 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3731
3732 * buildsym.c: Update copyright years.
3733 * c-typeprint.c: Likewise.
3734 * dwarf2read.c: Likewise.
3735 * f-typeprint.c: Likewise.
3736 * gdbtypes.c: Likewise.
3737 * gdbtypes.h: Likewise.
3738 * hp-symtab-read.c: Likewise.
3739 * hpread.c: Likewise.
3740 * mdebugread.c: Likewise.
3741 * p-typeprint.c: Likewise.
3742
3743 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3744
3745 * remote-sim.c (gdbsim_open): Simplify code testing the macro
3746 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
3747 byte-order selectable.
3748 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
3749 * arch-utils.c: Ditto.
3750 (set_endian): Ditto.
3751 (set_endian_from_file): Ditto.
3752 * gdbserver/low-sim.c (create_inferior): Ditto.
3753 * gdbarch.sh: Ditto.
3754 * gdbarch.h: Re-generate.
3755 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3756 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
3757 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
3758 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3759 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3760 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3761 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3762 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
3763 macro definition.
3764 * config/mips/tm-wince.h: Remove #undef of macro
3765 TARGET_BYTE_ORDER_SELECTABLE.
3766 * config/sh/tm-wince.h: Ditto.
3767
3768 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3769
3770 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
3771 member function fields. Add accessor macro
3772 TYPE_FN_FIELD_ARTIFICIAL.
3773 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
3774 * c-typeprint.c (c_type_print_base): Skip artificial member
3775 functions.
3776
3777 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3778
3779 * f-typeprint.c: Delete unused function f_type_print_args.
3780 * p-typeprint.c: Delete unused function pascal_type_print_args.
3781
3782 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3783
3784 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
3785 comment. Add ``artificial'' to ``union field_location''.
3786
3787 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
3788
3789 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
3790 * mdebugread.c (parse_symbol): Likewise.
3791 * stabsread.c (define_symbol): Likewise.
3792 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
3793 initializing TYPE_FIELD_BITPOS to n (obsolete).
3794 (hpread_doc_function_type): Likewise.
3795 * hpread.c (hpread_function_type): Likewise.
3796
3797 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3798
3799 * configure.in (host_makefile_frag): Only require a host makefile
3800 fragment when a native build.
3801 * configure: Re-generate.
3802
3803 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3804
3805 * doublest.h (floatformat_from_type): Declare.
3806 * doublest.c (floatformat_from_type): New function.
3807 (convert_typed_floating): Use.
3808
3809 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
3810 call to function floatformat_from_type.
3811
3812 * gdbarch.sh (IEEE_FLOAT): Delete.
3813 * gdbarch.h, gdbarch.c: Re-generate.
3814 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
3815 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
3816 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
3817 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
3818 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
3819 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
3820 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
3821 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
3822 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
3823 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
3824 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
3825 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
3826
3827 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
3828 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
3829 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3830 * sh-tdep.c (sh_gdbarch_init): Ditto.
3831 * mips-tdep.c (mips_gdbarch_init): Ditto.
3832 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3833 * cris-tdep.c (cris_gdbarch_init): Ditto.
3834
3835 2002-01-20 Jiri Smid <smid@suse.cz>
3836
3837 * configure.host, configure.tgt: Support x86-64.
3838 * NEWS: Note new target x86-64.
3839
3840 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
3841 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
3842 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
3843 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
3844 x86-64-linux-nat.o): Fix dependencies.
3845
3846 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3847
3848 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
3849 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
3850 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
3851 * config/sparc/xm-sun4os4.h: Delete file.
3852 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
3853
3854 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3855
3856 * config/sparc/sparclynx.mh (XM_FILE): Delete.
3857 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
3858 * config/m68k/m68klynx.mh (XM_FILE): Delete.
3859 * config/i386/i386lynx.mh (XM_FILE): Delete.
3860 * config/rs6000/xm-rs6000ly.h: Delete file.
3861 * config/sparc/xm-sparclynx.h: Delete file.
3862 * config/m68k/xm-m68klynx.h: Delete file.
3863 * config/i386/xm-i386lynx.h: Delete file.
3864 * config/xm-lynx.h: Delete file.
3865 * config/djgpp/fnchange.lst: Update.
3866
3867 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3868
3869 * alpha-tdep.c (alpha_register_byte): New function.
3870 (alpha_register_raw_size): Ditto.
3871 (alpha_register_virtual_size): Ditto.
3872 (alpha_skip_prologue_internal): Renamed from
3873 alpha_skip_prologue.
3874 (alpha_skip_prologue): New version that calls
3875 alpha_skip_prologue_internal.
3876 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
3877 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
3878 second argument from alpha_skip_prologue.
3879 (REGISTER_BYTE): Use alpha_register_byte.
3880 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
3881 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
3882 (FRAMELESS_FUNCTION_INVOCATION): Use
3883 generic_frameless_function_invocation_not.
3884 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
3885 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
3886
3887 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3888
3889 * config/mips/xm-news-mips.h: Delete file.
3890 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
3891
3892 * config/m88k/xm-m88k.h: Delete file.
3893 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
3894 * config/m88k/xm-delta88v4.h: Ditto.
3895 * config/m88k/xm-delta88.h: Ditto.
3896
3897 * config/alpha/xm-fbsd.h: Delete file.
3898 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
3899
3900 * config/sparc/xm-sparc.h: Delete file.
3901 * Makefile.in (xm-sun4os4.h): Delete dependency.
3902 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
3903 * config/sparc/xm-sun4os4.h: Ditto.
3904 * config/sparc/xm-linux.h: Ditto.
3905
3906 * config/i386/xm-windows.h: Delete file.
3907
3908 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3909
3910 * utils.c: Include <sys/param.h> for MAXPATHLEN.
3911 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
3912
3913 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3914
3915 * alpha-tdep.c (alpha_call_dummy_words): New.
3916 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
3917 (CALL_DUMMY_P): Define.
3918 (CALL_DUMMY_WORDS): Define.
3919 (SIZEOF_CALL_DUMMY_WORDS): Define.
3920
3921 2002-01-19 Per Bothner <per@bothner.com>
3922
3923 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
3924 isn't NULL, which can happen with some gcj-3.x-produced code.
3925
3926 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3927
3928 * alpha-tdep.c (alpha_register_virtual_type): New function.
3929 (alpha_init_frame_pc_first): Ditto.
3930 (alpha_fix_call_dummy): Ditto.
3931 (alpha_store_struct_return): Ditto.
3932 (alpha_extract_struct_value_address): Ditto.
3933 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
3934 alpha_register_virtual_type.
3935 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
3936 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
3937 alpha_extract_struct_value_address.
3938 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
3939 (INIT_FRAME_PC): Use init_frame_pc_noop.
3940 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
3941
3942 2002-01-19 Mark Kettenis <kettenis@gnu.org>
3943
3944 * i386gnu-nat.c: Include "i386-tdep.h".
3945 (fetch_fpregs): Simplify code dealing with uninitialized floating
3946 point states such that it doesn't require FP7_REGNUM.
3947
3948 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3949
3950 * alpha-tdep.c (frame_extra_info): New.
3951 (alpha_find_saved_regs): Make static. Use
3952 frame->extra_info.
3953 (alpha_frame_init_saved_regs): New function.
3954 (alpha_frame_saved_pc): Use frame->extra_info.
3955 (temp_saved_regs): Don't declare as struct frame_saved_regs.
3956 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
3957 (init_extra_frame_info): Rename to...
3958 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
3959 (alpha_print_extra_frame_info): New function.
3960 (alpha_frame_locals_address): Ditto.
3961 (alpha_frame_args_address): Ditto.
3962 (alpha_pop_frame): Use frame->extra_info.
3963 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
3964 alpha_frame_args_address.
3965 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
3966 (alpha_find_saved_regs): Remove prototype.
3967 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
3968 (EXTRA_FRAME_INFO): Remove.
3969 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
3970 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
3971
3972 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3973
3974 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
3975 (alpha_cannot_fetch_register): Ditto.
3976 (alpha_cannot_store_register): Ditto.
3977 (alpha_register_convertible): Ditto.
3978 (alpha_use_struct_convention): Ditto.
3979 * config/alpha/tm-alpha.h: Update copyright years.
3980 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
3981 (INNER_THAN): Use core_addr_lessthan.
3982 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
3983 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
3984 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
3985 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
3986 (FRAME_CHAIN): Remove unnecessary cast.
3987
3988 2002-01-18 Andrew Cagney <ac131313@redhat.com>
3989
3990 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
3991 obsolete.
3992
3993 2002-01-18 Andrew Cagney <ac131313@redhat.com>
3994
3995 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
3996 * monitor.c, remote-array.c, remote-bug.c: Ditto.
3997 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
3998 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
3999 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
4000 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
4001 * x86-64-linux-nat.c: Ditto.
4002
4003 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4004
4005 * alpha-tdep.c (alpha_register_name): New function.
4006 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
4007 (REGISTER_NAME): Define.
4008
4009 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4010
4011 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
4012
4013 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4014
4015 * alpha-tdep.c: Update copyright years.
4016 (alpha_next_pc): New function.
4017 (alpha_software_single_step): Ditto.
4018 * config/alpha/tm-alpha.h: Add prototype for
4019 alpha_software_single_step.
4020
4021 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4022
4023 * alphabsd-nat.c: Update copyright years.
4024 (fill_gregset): Use regcache_collect.
4025 (fill_fpregset): Likewise.
4026 (fetch_inferior_registers): Only fetch integer registers
4027 if requested to do so.
4028 (store_inferior_registers): Only store integer registers
4029 if requested to do so.
4030
4031 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4032
4033 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
4034 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
4035 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
4036 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
4037 * config/alpha/fbsd.mh (XDEPFILES): Delete.
4038 * config/arm/linux.mh (XDEPFILES): Delete.
4039 * config/arm/nbsd.mh (XDEPFILES): Delete.
4040 * config/i386/i386dgux.mh (XDEPFILES): Delete.
4041 * config/i386/i386sol2.mh (XDEPFILES): Delete.
4042 * config/i386/i386m3.mh (XDEPFILES): Delete.
4043 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
4044 * config/i386/i386gnu.mh (XDEPFILES): Delete.
4045 * config/i386/fbsd.mh (XDEPFILES): Delete.
4046 * config/i386/i386bsd.mh (XDEPFILES): Delete.
4047 * config/i386/i386sco5.mh (XDEPFILES): Delete.
4048 * config/i386/i386v4.mh (XDEPFILES): Delete.
4049 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
4050 * config/i386/i386sco4.mh (XDEPFILES): Delete.
4051 * config/i386/i386aix.mh (XDEPFILES): Delete.
4052 * config/i386/go32.mh (XDEPFILES): Delete.
4053 * config/i386/cygwin.mh (XDEPFILES): Delete.
4054 * config/i386/i386lynx.mh (XDEPFILES): Delete.
4055 * config/i386/i386mach.mh (XDEPFILES): Delete.
4056 * config/i386/i386v32.mh (XDEPFILES): Delete.
4057 * config/i386/linux.mh (XDEPFILES): Delete.
4058 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
4059 * config/i386/ncr3000.mh (XDEPFILES): Delete.
4060 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
4061 * config/i386/i386sco.mh (XDEPFILES): Delete.
4062 * config/i386/i386v.mh (XDEPFILES): Delete.
4063 * config/i386/nbsd.mh (XDEPFILES): Delete.
4064 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
4065 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
4066 * config/i386/symmetry.mh (XDEPFILES): Delete.
4067 * config/i386/obsd.mh (XDEPFILES): Delete.
4068 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
4069 * config/ia64/linux.mh (XDEPFILES): Delete.
4070 * config/ia64/aix.mh (XDEPFILES): Delete.
4071 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
4072 * config/m68k/dpx2.mh (XDEPFILES): Delete.
4073 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
4074 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
4075 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
4076 * config/m68k/linux.mh (XDEPFILES): Delete.
4077 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
4078 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
4079 * config/m68k/nbsd.mh (XDEPFILES): Delete.
4080 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
4081 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
4082 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
4083 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
4084 * config/m88k/delta88.mh (XDEPFILES): Delete.
4085 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
4086 * config/m88k/m88k.mh (XDEPFILES): Delete.
4087 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
4088 * config/mips/linux.mh (XDEPFILES): Delete.
4089 * config/mips/irix6.mh (XDEPFILES): Delete.
4090 * config/mips/irix5.mh (XDEPFILES): Delete.
4091 * config/mips/irix4.mh (XDEPFILES): Delete.
4092 * config/mips/irix3.mh (XDEPFILES): Delete.
4093 * config/mips/decstation.mh (XDEPFILES): Delete.
4094 * config/mips/mipsm3.mh (XDEPFILES): Delete.
4095 (NATDEPFILES): Move core-aout.o to here.
4096 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
4097 * config/pa/hpux1020.mh (XDEPFILES): Delete.
4098 * config/pa/hppabsd.mh (XDEPFILES): Delete.
4099 * config/pa/hppahpux.mh (XDEPFILES): Delete.
4100 * config/pa/hpux11w.mh (XDEPFILES): Delete.
4101 * config/pa/hppaosf.mh (XDEPFILES): Delete.
4102 * config/pa/hpux11.mh (XDEPFILES): Delete.
4103 * config/powerpc/aix.mh (XDEPFILES): Delete.
4104 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
4105 * config/powerpc/linux.mh (XDEPFILES): Delete.
4106 * config/romp/rtbsd.mh: Rename XDEPFILES.
4107 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
4108 * config/rs6000/aix4.mh (XDEPFILES): Delete.
4109 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
4110 * config/s390/s390.mh (XDEPFILES): Delete.
4111 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
4112 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
4113 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
4114 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
4115 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
4116 * config/sparc/nbsd.mh (XDEPFILES): Delete.
4117 * config/sparc/linux.mh (XDEPFILES): Delete.
4118 * config/vax/vaxult.mh (XDEPFILES): Delete.
4119 * config/vax/vaxult2.mh (XDEPFILES): Delete.
4120 * Makefile.in (DEPFILES): Remove XDEPFILES.
4121
4122 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4123
4124 * utils.c (internal_verror): Fix comments, default is yes not no.
4125 Update queries to match. Default to quit and dump core.
4126
4127 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4128
4129 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
4130 copyright.
4131 * defs.h, event-top.c, gdbcmd.h: Ditto.
4132 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
4133 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
4134 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
4135 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
4136 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
4137 * mi/mi-main.c:Ditto.
4138
4139 * stack.c, symfile.c: Update copyright.
4140
4141 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
4142
4143 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
4144 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
4145 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
4146 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
4147
4148 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
4149
4150 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
4151 * gdbserver/low-lynx.c (myattach): Likewise.
4152 * gdbserver/low-nbsd.c (myattach): Likewise.
4153 * gdbserver/low-sim.c (myattach): Likewise.
4154 * gdbserver/low-sparc.c (myattach): Likewise.
4155 * gdbserver/low-sun3.c (myattach): Likewise.
4156
4157 * gdbserver/low-linux.c (myattach): New function.
4158
4159 * gdbserver/server.c (attach_inferior): New function.
4160 (main): Handle "--attach".
4161
4162 2002-01-16 Andrew Cagney <ac131313@redhat.com>
4163
4164 * MAINTAINERS (language support): Daniel Jacobwitz is C++
4165 maintainer.
4166
4167 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
4168
4169 * c-typeprint.c (is_type_conversion_operator): Add additional
4170 check for non-conversion operators.
4171
4172 2002-01-15 Michael Snyder <msnyder@redhat.com>
4173
4174 * linux-proc.c: Add "info proc" command, a la procfs.c.
4175 (read_mapping): New function, abstract and re-use code.
4176 (linux_find_memory_regions): Use new func read_mapping.
4177 (linux_info_proc_cmd): New function, implement "info proc".
4178 (_initialize_linux_proc): Add new command "info proc".
4179
4180 2002-01-15 Michael Snyder <msnyder@redhat.com>
4181
4182 * symfile.c (generic_load): Use bfd_map_over_sections method
4183 instead of manipulating bfd structure members directly.
4184 (add_section_size_callback): New function, bfd sections callback
4185 used by generic_load.
4186 (load_sections_callback): New function, bfd sections callback
4187 used by generic_load.
4188
4189 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
4190
4191 [Based on work by Jim Blandy]
4192 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
4193 (builtin_type_vec128): Export.
4194 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
4195 types.
4196 (builtin_type_vec128): New builtin type for 128 bit vector
4197 registers.
4198 (build_gdbtypes): Initialize builtin_type_v16qi and
4199 builtin_type_v8hi. Create the vec128 register builtin type
4200 structure.
4201 (build_builtin_type_vec128): New function.
4202 (_initialize_gdbtypes): Register builtin_type_v16qi and
4203 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
4204 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
4205 AltiVec register to new builtin type.
4206
4207 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
4208
4209 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
4210 to make_cv_type.
4211
4212 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4213
4214 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
4215 CLEAN_UP_REGISTER_VALUE.
4216 * regcache.c (supply_register): Update only call.
4217
4218 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4219
4220 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4221 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4222 a29k-*-vxworks* targets as obsolete.
4223
4224 2002-01-14 Michael Snyder <msnyder@redhat.com>
4225
4226 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
4227 until we can resolve portability issues.
4228 * gregset.h: Remove references to fpxregs.
4229 * gcore.c (gcore_command): Initialize note_sec to NULL.
4230
4231 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4232
4233 * signals.c (target_signal_to_name): Rewrite. Only use
4234 signals[].name when in bounds and non-NULL.
4235
4236 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4237
4238 From Petr Ledvina <ledvinap@kae.zcu.cz>:
4239 * signals.c (target_signal_to_name): Verify that SIG is within the
4240 bounds of the signals array.
4241
4242 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4243
4244 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
4245
4246 2002-01-13 Keith Seitz <keiths@redhat.com>
4247
4248 * stack.c (print_frame_info_base): Print the frame's pc
4249 only if when print_frame_info_listing_hook is not defined.
4250
4251 2002-01-13 Keith Seitz <keiths@redhat.com>
4252
4253 * varobj.c (varobj_set_value): Make sure that there were no
4254 errors evaluating the object before attempting to set its
4255 value.
4256 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
4257 so this offset adjustment is no longer necessary.
4258 (create_child): Don't set the error flag if the child is
4259 a CPLUS_FAKE_CHILD.
4260 (value_of_child): If value_fetch_lazy fails, return NULL
4261 so that callers will be notified that an error occurred.
4262 (c_value_of_variable): Delay check of variable's validity
4263 until later. We actually want all structs and unions to have
4264 the value "{...}".
4265 Do not return "???" for variables which could not be evaluated.
4266 This error condition must be returned to the caller so that it
4267 can get the error condition from gdb.
4268 (cplus_name_of_child): Adjust index for vptr before figuring
4269 out the name of the child.
4270 (cplus_value_of_child): If a child's (real) parent is not valid,
4271 don't even bother trying to give a value for it. Just return
4272 an error. Change all instances in this function.
4273 (cplus_type_of_child): If our parent is one of the "fake"
4274 parents, we need to get at the type of the real parent, and
4275 derive the child's true type using this information.
4276
4277 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4278
4279 From 2002-01-09 John Marshall <johnm@falch.net>:
4280 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
4281 sources.redhat.com, and tweak some related URLs which had
4282 suffered from linkrot.
4283
4284 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4285
4286 From Jeff law:
4287 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
4288 structures passed in registers.
4289
4290 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
4291
4292 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
4293 white space which prevented compilation. Reported by DSK
4294 <dsk@student.unsw.edu.au>.
4295
4296 2002-01-11 Michael Snyder <msnyder@redhat.com>
4297
4298 * symfile.c (build_section_addr_info_from_section_tab):
4299 Use bfd access method instead of manipulating bfd directly.
4300 (syms_from_objfile): Ditto.
4301 (simple_overlay_update_1): Ditto.
4302 (simple_overlay_update): Ditto.
4303 (generic_load): Ditto.
4304 (overlay_unmapped_address): FIXME comment, bfd access methods.
4305 (sections_overlap): FIXME comment, bfd access methods.
4306 (pc_in_mapped_range): FIXME comment, bfd access methods.
4307 (pc_in_unmapped_range): FIXME comment, bfd access methods.
4308 (section_is_mapped): FIXME comment, bfd access methods.
4309 (section_is_overlay): FIXME comment, bfd access methods.
4310
4311 * symfile.c (generic_load): Whitespace and long line cleanups.
4312 Remove duplicate variable, change several local variables to
4313 more appropriate data types.
4314 (print_transfer_performance): Use %lu instead of %ld for ulongs.
4315
4316 2002-01-12 Andrew Cagney <ac131313@redhat.com>
4317
4318 From Peter Schauer:
4319 * language.c (longest_local_hex_string_custom): Use phex_nz to
4320 convert NUM to a hex string.
4321
4322 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
4323
4324 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
4325 the function.
4326 Update Copyright year.
4327
4328 2002-01-12 Andrew Cagney <ac131313@redhat.com>
4329
4330 * language.c (longest_raw_hex_string): Delete unused function.
4331
4332 2002-01-11 Petr Sorfa <petrs@caldera.com>
4333
4334 * MAINTAINERS (write-after-approval): Add myself.
4335 * dwarf2read.c (read_tag_string_type): Handling of
4336 DW_AT_byte_size.
4337 (read_tag_string_type): FORTRAN fix to prevent propagation of
4338 first string size.
4339 (set_cu_language): Handling of DW_LANG_Fortran95
4340
4341 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
4342
4343 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
4344 GETPID(inferior_ptid).
4345 (store_inferior_registers): Likewise.
4346
4347 2002-01-10 Jason Merrill <jason@redhat.com>
4348
4349 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
4350 Fix DW_OP_minus.
4351
4352 2002-01-10 Andrew Cagney <ac131313@redhat.com>
4353
4354 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
4355 and bfd/elf32-sh-nbsd.c.
4356
4357 2002-01-10 Michael Snyder <msnyder@redhat.com>
4358
4359 * NEWS: Mention --pid and corefile/proc-id behavior change.
4360
4361 * Makefile.in: Add rules for gcore.o and linux-proc.o.
4362 * gcore.c: Include cli/cli-decode.h instead of command.h.
4363
4364 * main.c (captured_main): Add new command line option "--pid".
4365 If the second command line argument (following the symbol-file)
4366 begins with a digit, try to attach to it before trying to open
4367 it as a corefile.
4368 (print_gdb_help): Document the "--pid" argument.
4369
4370 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
4371
4372 * completer.c (command_completer): New function.
4373
4374 * completer.h <command_completer>: Add prototype.
4375
4376 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
4377 completer for the "help" command.
4378
4379 2002-01-09 Jason Merrill <jason@redhat.com>
4380
4381 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
4382
4383 2002-01-09 Michael Snyder <msnyder@redhat.com>
4384
4385 * i386-linux-nat.c (fill_fpxregset): Make global.
4386 (store_fpxregset): Ditto.
4387
4388 * gregset.h (gdb_fpxregset_t): Define.
4389 (supply_fpxregset): Prototype.
4390 (fill_fpxregset): Prototype.
4391
4392 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
4393
4394 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
4395
4396 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
4397 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
4398 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
4399
4400 2002-01-09 Andrew Cagney <ac131313@redhat.com>
4401
4402 * MAINTAINERS: Update target maintainer rules so that any
4403 Maintainer can approve a tested patch for a maintenance-only
4404 target.
4405
4406 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
4407
4408 * MAINTAINERS (write-after-approval): Add myself.
4409
4410 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
4411 IN_SIGTRAMP.
4412
4413 2002-01-08 Michael Snyder <msnyder@redhat.com>
4414
4415 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
4416 real name of the executable, rather than the /proc name.
4417
4418 2002-01-03 Michael Snyder <msnyder@redhat.com>
4419
4420 Implement a "generate-core-file" command in gdb, save target state.
4421 * gcore.c: New file. Implement new command 'generate-core-file'.
4422 Save a corefile image of the current state of the inferior.
4423 * linux-proc.c: Add linux-specific code for saving corefiles.
4424 * target.h (struct target_ops): Add new target vectors for saving
4425 corefiles; to_find_memory_regions and to_make_corefile_notes.
4426 (target_find_memory_regions): New macro.
4427 (target_make_corefile_notes): New macro.
4428 * target.c (update_current_target): Inherit new target methods.
4429 (dummy_find_memory_regions): New place-holder method.
4430 (dummy_make_corefile_notes): New place-holder method.
4431 (init_dummy_target): Initialize new dummy target vectors.
4432 * exec.c (exec_set_find_memory_regions): New function.
4433 Allow the exec_ops vector for memory regions to be taken over.
4434 (exec_make_note_section): New function, target vector method.
4435 * defs.h (exec_set_find_memory_regions): Export prototype.
4436 * procfs.c (proc_find_memory_regions): New function, corefile method.
4437 (procfs_make_note_section): New function, corefile method.
4438 (init_procfs_ops): Set new target vector pointers.
4439 (find_memory_regions_callback): New function.
4440 (procfs_do_thread_registers): New function.
4441 (procfs_corefile_thread_callback): New function.
4442 * sol-thread.c (sol_find_memory_regions): New function.
4443 (sol_make_note_section): New function.
4444 (init_sol_thread_ops): Initialize new target vectors.
4445 * inftarg.c (inftarg_set_find_memory_regions): New function.
4446 Allow to_find_memory_regions vector to be taken over.
4447 (inftarg_set_make_corefile_notes): New function.
4448 Allow to_make_corefile_notes vector to be taken over.
4449 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
4450 interface layer if not target_has_execution (may be a corefile).
4451 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
4452 * config/sparc/sun4sol2.mh: Ditto.
4453 * config/alpha/alpha-linux.mh: Ditto.
4454 * config/arm/linux.mh: Ditto.
4455 * config/i386/x86-64linux.mh: Ditto.
4456 * config/ia64/linux.mh: Ditto.
4457 * config/m68k/linux.mh: Ditto.
4458 * config/mips/linux.mh: Ditto.
4459 * config/powerpc/linux.mh: Ditto.
4460 * config/sparc/linux.mh: Ditto.
4461
4462 2002-01-07 Michael Snyder <msnyder@redhat.com>
4463
4464 * arm-linux-nat.c: Remove references to regcache.c internal data
4465 (registers[] and register_valid[]).
4466
4467 2002-01-07 Michael Snyder <msnyder@redhat.com>
4468
4469 * linux-proc.c: New file. Implement child_pid_to_exec_file,
4470 so that attaching to a pid will automatically read the process's
4471 symbol file and shlibs.
4472 * Makefile.in: Add rule for linux-proc.o.
4473 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
4474 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
4475 * config/arm/linux.mh: Ditto.
4476 * config/i386/linux.mh: Ditto.
4477 * config/i386/x86-64linux.mh: Ditto.
4478 * config/ia64/linux.mh: Ditto.
4479 * config/m68k/linux.mh: Ditto.
4480 * config/mips/linux.mh: Ditto.
4481 * config/powerpc/linux.mh: Ditto.
4482 * config/sparc/linux.mh: Ditto.
4483
4484 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
4485
4486 * win32-nat.c: Add i386-tdep.h dependency.
4487
4488 2002-01-07 Michael Snyder <msnyder@redhat.com>
4489
4490 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
4491 instead of bfd_get_arch_size. Don't bail out just because
4492 there's no exec_bfd.
4493
4494 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
4495 * p-valprint.c (pascal_object_print_value): Ditto.
4496 * somread.c (som_symtab_read): Ditto.
4497 * symfile.c (simple_free_overlay_region_table): Ditto.
4498 * valops.c (value_assign): Ditto.
4499
4500 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
4501 use tilde_expand and strerror for opening save-tracepoints file.
4502
4503 * thread-db.c (thread_db_new_objfile): Indendation fix.
4504
4505 * infptrace.c (GDB_MAX_ALLOCA): New define.
4506 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
4507 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
4508 can be overridden with whatever value is appropriate to the host).
4509 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
4510 alloca to allocate potentially large buffer.
4511 * rs6000-nat.c (child_xfer_memory): Ditto.
4512 * symm-nat.c (child_xfer_memory): Ditto.
4513 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
4514
4515 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
4516
4517 From Nick Clifton <nickc@redhat.com>
4518 * d10v-tdep.c: Set STACK_START to 0x200bffe.
4519
4520 2002-01-07 Michael Snyder <msnyder@redhat.com>
4521
4522 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
4523 Don't use exec_bfd if it's NULL.
4524
4525 2002-01-06 Mark Kettenis <kettenis@gnu.org>
4526
4527 * valops.c (value_arg_coerce): Fix formatting.
4528
4529 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4530
4531 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
4532 * gnu-nat.c: Ditto.
4533
4534 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4535
4536 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
4537 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
4538 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
4539 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
4540 z8k-coff have not been multi-arched. Update z8k-coff build
4541 status.
4542
4543 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4544
4545 * MAINTAINERS: Mark a29k target as obsolete.
4546 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
4547 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
4548 comments.
4549 * NEWS: Note that a29k targets are obsolete.
4550 * a29k-tdep.c: Mark as obsolete.
4551 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4552 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4553 a29k-*-vxworks* targets as obsolete.
4554 * remote-adapt.c: Obsolete.
4555 * remote-eb.c: Obsolete.
4556 * remote-mm.c: Obsolete.
4557 * remote-udi.c: Obsolete.
4558 * config/a29k/a29k-udi.mt: Obsolete.
4559 * config/a29k/a29k.mt: Obsolete.
4560 * config/a29k/tm-a29k.h: Obsolete.
4561 * config/a29k/tm-vx29k.h: Obsolete.
4562 * config/a29k/vx29k.mt: Obsolete.
4563
4564 2002-01-05 Andrew Cagney <ac131313@redhat.com>
4565
4566 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
4567 with BFD_ENDIAN_BIG.
4568
4569 2002-01-05 Andrew Cagney <ac131313@redhat.com>
4570
4571 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
4572 * configure, config.in: Re-generate.
4573 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
4574 * defs.h: Do not include <endian.h>.
4575
4576 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
4577
4578 * acconfig.h (HAVE_PT_GETXMMREGS): New.
4579 * config.in: Regenerate.
4580 * configure.in: Update copyright years.
4581 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
4582 * configure: Regenerate.
4583 * i386bsd-nat.c: Update copyright years.
4584 (fill_gregset): Use regcache_collect.
4585 (fetch_inferior_registers): Only fetch integer registers
4586 if requested to do so. Add support for XMM registers
4587 using PT_GETXMMREGS.
4588 (store_inferior_registers): Only store integer registers
4589 if requested to do so. Add support for XMM registers
4590 using PT_SETXMMREGS.
4591 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
4592 (store_inferior_registers): Remove.
4593 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
4594 (fetch_elfcore_registers): New function.
4595 (i386nbsd_elfcore_fns): New.
4596 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
4597 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
4598 i386bsd-nat.o.
4599 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4600 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
4601 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4602 * config/i386/tm-nbsd.h: Update copyright years.
4603 (HAVE_SSE_REGS): Define.
4604 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
4605 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
4606 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
4607 (SIGCONTEXT_PC_OFFSET): Remove.
4608 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
4609
4610 2002-01-05 Andrew Cagney <ac131313@redhat.com>
4611
4612 * configure.tgt: Remove powerpc-*-macos* target.
4613 * config/m68k/xm-mpw.h: Delete file.
4614 * config/xm-mpw.h: Delete file.
4615 * ser-mac.c: Delete file.
4616 * mpw-make.sed: Delete file.
4617 * mpw-config.in: Delete file.
4618 * mac-xdep.c: Delete file.
4619 * mac-gdb.r: Delete file.
4620 * mac-defs.h: Delete file.
4621 * mac-nat.c: Delete file.
4622 * config/powerpc/macos.mh: Delete file.
4623 * config/powerpc/macos.mt: Delete file.
4624 * config/powerpc/nm-macos.h: Delete file.
4625 * config/powerpc/tm-macos.h: Delete file.
4626 * source.c (openp, open_source_file): Remove obsolete code.
4627 * top.c (gdb_readline): Ditto.
4628 * utils.c (query): Ditto.
4629 * event-top.c (display_gdb_prompt): Ditto.
4630 * Makefile.in (ser-mac.o): Delete obsolete target.
4631 * NEWS: Update.
4632
4633 2002-01-04 Andrew Cagney <ac131313@redhat.com>
4634
4635 * defs.h (BIG_ENDIAN): Delete macro definition.
4636 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
4637 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
4638 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
4639 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
4640 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
4641 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
4642 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
4643 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
4644 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
4645 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
4646 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
4647 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
4648 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4649 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4650 * gdbarch.c: Re-generate.
4651
4652 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4653
4654 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
4655 for core files.
4656
4657 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4658
4659 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
4660
4661 2002-01-04 Andrew Cagney <ac131313@redhat.com>
4662
4663 * value.h (value_ptr): Delete typedef.
4664
4665 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4666
4667 * i386nbsd-nat.c: Update copyright years.
4668 Include i386-tdep.h.
4669
4670 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
4671
4672 * stabsread.c: Update copyright years.
4673
4674 From Debashis Mahata <debashis.mahata@wipro.com>:
4675 (read_struct_fields): Deal with Sun C compiler erroneous stab
4676 output for structs and unions.
4677 Fix PR gdb/269.
4678
4679 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4680
4681 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
4682 prototype.
4683
4684 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4685
4686 * cp-abi.c: Fix whitespace.
4687 (baseclass_offset): New wrapper function.
4688 * cp-abi.h (baseclass_offset): Add prototype.
4689 (struct cp_abi_ops): Add baseclass_offset pointer.
4690
4691 * valops.c (vb_match): Move to...
4692 * gnu-v2-abi.c (vb_match): here.
4693 * valops.c (baseclass_offset): Move to...
4694 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
4695
4696 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
4697
4698 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
4699 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
4700 * hpacc-abi.c (init_hpacc_ops): Likewise.
4701
4702 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4703
4704 * valops.c (find_overload_match): Accept obj as a
4705 reference parameter. Update it before returning.
4706 * value.h (find_overload_match): Update prototype.
4707 * eval.c (evaluate_subexp_standard): Pass object to
4708 find_overload_match by reference.
4709
4710 2002-01-03 Andrew Cagney <ac131313@redhat.com>
4711
4712 * valarith.c: Replace value_ptr with struct value pointer. Remove
4713 register attribute from value declarations.
4714 * valops.c: Ditto.
4715 * value.h: Ditto.
4716 * scm-lang.c (scm_lookup_name): Ditto.
4717
4718 2002-01-03 Michael Snyder <msnyder@redhat.com>
4719
4720 Abstract the functionality of iterating over mapped memory
4721 regions into a general purpose iterator function.
4722 * procfs.c (iterate_over_mappings): New function, general purpose
4723 iterator for memory sections.
4724 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
4725 (solib_mappings_callback): New function, callback for above.
4726 (info_proc_mappings): Reimpliment using iterate_over_mappings.
4727 (info_mappings_callback): New function, callback for above.
4728
4729 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
4730
4731 2002-01-01 Mark Kettenis <kettenis@gnu.org>
4732
4733 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
4734 * i386-tdep.c: Include "elf-bfd.h".
4735 (process_note_abi_tag_sections): New function.
4736 (i386_gdbarch_init): Add code to recognize various OS/ABI
4737 combinations.
4738
4739 * maint.c (_initialize_maint_cmds): Add missing \ in
4740 string-literal.
4741
4742 For older changes see ChangeLog-2001
4743 \f
4744 Local Variables:
4745 mode: change-log
4746 left-margin: 8
4747 fill-column: 74
4748 version-control: never
4749 End:
This page took 0.141491 seconds and 4 git commands to generate.