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