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