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