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