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