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