merge from gcc
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2001-12-21 Tom Tromey <tromey@redhat.com>
2
3 * configure, config.in: Rebuilt.
4 * configure.in: Check for realpath.
5 * defs.h (gdb_realpath): Declare.
6 * symtab.h (partial_symtab): Added fullname field.
7 * source.c (openp): Use gdb_realpath.
8 (forget_cached_source_info): Clear full name of each partial
9 symtab.
10 * utils.c (gdb_realpath): New function.
11 * symtab.c (lookup_symtab): Removed.
12 (lookup_symtab_1): Renamed to lookup_symtab.
13 (lookup_symtab): Look for real path.
14 (lookup_partial_symtab): Likewise.
15
16 2001-12-21 Michael Snyder <msnyder@redhat.com>
17
18 * maint.c (match_substring): New function. Tokenizer for
19 maint info sections command arguments.
20 (match_bfd_flag): Use match_substring.
21 (print_bfd_section_info): Use match_substring.
22 (print_objfile_section_info): Use match_substring.
23 (maintenance_info_sections): Use match_substring.
24
25 2001-12-21 Orjan Friberg <orjanf@axis.com>
26
27 * configure.tgt: Delete CRIS from multi-arch targets.
28
29 * config/cris/tm-cris.h: New file.
30
31 * config/cris/cris.mt (TDEPFILES): Add corelow.o solib.o solib-svr4.o.
32 (TM_FILE): New macro.
33
34 * cris-tdep.c (cris_examine): Correct check for srp register.
35 (supply_gregset, fetch_core_registers,
36 cris_linux_svr4_fetch_link_map_offsets, cris_fpless_backtrace):
37 New functions.
38 (_initialize_cris_tdep): Add core functions and new command.
39 (cris_gdbarch_init): Define link map offsets.
40
41 Thu Dec 20 16:42:30 2001 Jeffrey A Law (law@cygnus.com)
42
43 * somsolib.c (som_solib_add): Ignore the solib limit threshhold
44 if AUTO_SOLIB_LIMIT is not greater than zero.
45
46 * somsolib.c (som_solib_create_inferior_hook): No longer warn
47 about missing __d_pid symbol.
48
49 2001-12-20 Elena Zannoni <ezannoni@redhat.com>
50
51 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register):
52 New function.
53 (fetch_register): New function.
54 (fetch_ppc_registers): New function.
55 (fetch_inferior_registers): New function.
56 (store_register): New function.
57 (store_ppc_registers): New function.
58 (store_inferior_registers): New function.
59 (ppc_register_u_addr): Eliminate ustart parameter and its
60 uses. Make static.
61 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE): Define if needed.
62 Include sys/ptrace.h.
63
64 * config/powerpc/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
65 (U_REGS_OFFSET, REGISTER_U_ADDR): Delete.
66
67 * config/powerpc/linux.mh (NATDEPFILES): Delete core-aout.o.
68
69 2001-12-20 Elena Zannoni <ezannoni@redhat.com>
70
71 * rs6000-nat.c (fetch_register): Don't error out unless the
72 register number is really bogus.
73
74 2001-12-20 Michael Snyder <msnyder@redhat.com>
75
76 * maint.c (maintenance_info_sections): Accept new argument
77 'ALLOBJ', iterate over all object files.
78 (print_section_table): Delete. Replaced by:
79 (print_section_info): New function.
80 (print_bfd_section_info): New function.
81 (print_objfile_section_info): New function.
82 (_initialize_maint_commands): Add help for new features.
83
84 2001-12-20 Kevin Buettner <kevinb@redhat.com>
85
86 * arm-tdep.c (arm_init_extra_frame_info): Add special case for
87 call dummies.
88 (arm_frame_saved_pc): Likewise.
89 (arm_push_dummy_frame): Make sure all of the GPRs are saved.
90 (arm_pop_frame): Eliminate special case for call dummies. It
91 is no longer needed now that the frame info is being properly
92 initialized.
93
94 * arm-tdep.c (arm_scan_prologue): Don't require "mov ip, sp"
95 to be the first instruction in the prologue. Also, revise
96 the way the frame offset is computed for frameless functions.
97
98 2001-12-20 Michael Snyder <msnyder@redhat.com>
99
100 * maint.c (maintenance_info_sections): Pass string argument to
101 print_section_table, so that it can be used to select sections.
102 (print_section_table): Change PTR to void *. Look at string arg
103 to select sections by name and by flag attributes.
104 (match_bfd_flags): New function.
105 (print_bfd_flags): New function.
106
107 Thu Dec 20 11:37:50 2001 Jeffrey A Law (law@redhat.com)
108
109 * cli/cli-decode.c (add_cmd): Initialize pre_show_hook in
110 the new command.
111
112 2001-12-20 Andrew Cagney <ac131313@redhat.com>
113
114 * remote.c (struct packet_reg): Add field in_g_packet.
115 (struct remote_state): Rename field g_packet to regs;
116 (free_remote_state): Update.
117 (init_remote_state): Add pseudo-registers to table. Initialize
118 in_g_packet. Drop sentinal from table.
119 (packet_reg_from_regnum, packet_reg_from_pnum): Update.
120 (remote_fetch_registers): Handle registers not in the g-packet.
121 (remote_store_registers): Ditto.
122
123 2001-12-20 Andrew Cagney <ac131313@redhat.com>
124
125 * gdbarch.sh (TARGET_CHAR_SIGNED): Do not specify the print
126 format.
127
128 2001-12-19 Jim Blandy <jimb@redhat.com>
129
130 * s390-tdep.c (s390_pop_frame_regular): Make sure the saved_regs
131 array is actually set before we try to use it.
132
133 * s390-tdep.c (s390_frame_saved_pc_nofix): If we get the saved PC
134 out of the return address register, cache that in the frame's
135 extra info, just as if we'd gotten it from the saved regs array;
136 that way, it's not a lie to set the saved_pc_valid flag.
137
138 * s390-tdep.c (s390_get_frame_info): Give orig_sp a reasonable
139 value, even when fextra_info->stack_bought can't be trusted,
140
141 * s390-tdep.c (s390_readinstruction): Don't call
142 info->read_memory_func to read zero bytes. Some targets'
143 xfer_memory functions can't cope with that.
144
145 * gdbarch.sh (TARGET_CHAR_SIGNED): New macro.
146 * gdbarch.c, gdbarch.h: Regenerated.
147 * gdbtypes.c (build_gdbtypes): If TARGET_CHAR_SIGNED is zero,
148 set the TYPE_FLAG_UNSIGNED bit on the type.
149 * s390-tdep.c (s390_gdbarch_init): On the S/390, characters
150 are unsigned by default.
151 * rs6000-tdep.c (rs6000_gdbarch_init): Same for PowerPC and
152 RS6000.
153
154 2001-12-19 Elena Zannoni <ezannoni@redhat.com>
155
156 * corefile.c (do_captured_read_memory_integer,
157 safe_read_memory_integer): New functions.
158 * gdbcore.h (safe_read_memory_integer): Export.
159 * arm-tdep.c (arm_scan_prologue): Use safe_read_memory_integer,
160 to read the frame value, to capture calls to error().
161
162 2001-12-19 Jim Blandy <jimb@redhat.com>
163
164 * s390-tdep.c (s390_register_name): S390_LAST_REGNUM is, in fact,
165 the last register number, not one greater than the last register
166 number.
167
168 * s390-tdep.c (s390_register_virtual_type): Replace clever but
169 incorrect range comparison with correct, legible equivalent.
170
171 * s390-tdep.c (s390_register_raw_size): Replace unnecessarily
172 obscure range comparison with legible equivalent.
173
174 Wed Dec 19 12:18:57 2001 Jeffrey A Law (law@redhat.com)
175
176 * config/pa/tm-hppa.h (STORE_RETURN_VALUE): Use hppa_store_return_value.
177 (EXTRACT_RETURN_VALUE): Similarly.
178 * hppa-tdep.c (hppa_store_return_value): New function.
179 (hppa_extract_return_value): New function.
180
181 * infttrace.c (child_acknowledge_created_inferior): Pass
182 correct argument to add_thread.
183 (update_thread_state_after_attach): Likewise.
184
185 2001-12-19 Fernando Nasser <fnasser@redhat.com>
186
187 * config/arm/tm-arm.h: Properly define SOFTWARE_SINGLE_STEP_P.
188 Always define SOFTWARE_SINGLE_STEP.
189 * config/arm/tm-embed.h: Properly define SOFTWARE_SINGLE_STEP_P.
190 * arm-tdep.c (arm_get_next_pc, thumb_get_next_pc, bitcount,
191 shifted_reg_val): Always compile these functions.
192 (arm_software_single_step): Fix second argument in function calls.
193
194 2001-12-19 Andrew Cagney <ac131313@redhat.com>
195
196 * arch-utils.h (gdbarch_info_init): Declare.
197 * arch-utils.c: Include "arch-utils.h".
198 (gdbarch_info_init): Define.
199 (set_endian, set_architecture, set_gdbarch_from_file)
200 (initialize_current_architecture): Use gdbarch_info_init.
201 * rs6000-nat.c (set_host_arch): Ditto.
202 * cris-tdep.c (cris_version_update, cris_mode_update)
203 (cris_abi_update): Ditto.
204
205 2001-12-19 Jim Blandy <jimb@redhat.com>
206
207 * c-lang.c (c_emit_char): Print ASCII 11 as '\v', to match
208 ISO C, and our parser. Print ASCII 0 as '\0', since that's what
209 people are used to seeing.
210
211 2001-12-18 Jim Blandy <jimb@redhat.com>
212
213 * c-lang.c (c_printstr, c_builtin_types, cplus_builtin_types):
214 Fix indentation.
215
216 * Makefile.in (c-exp.tab.o): Delete duplicate build rule. Fix
217 dependency list on remaining build rule.
218
219 2001-12-18 Martin M. Hunt <hunt@redhat.com>
220
221 * ser-tcp.c (tcp_open): Disable Nagle algorithm which
222 improves performance in some cases.
223
224 2001-12-17 Ben Harris <bjh21@netbsd.org>
225
226 * armbsd-nat.c: Remove file, renamed to armnbsd-nat.c.
227 * armnbsd-nat.c: New file, renamed from armbsd-nat.c.
228 * Makefile.in: Rename armbsd-nat.c to armnbsd-nat.c.
229 * config/arm/nbsd.mh: Likewise.
230
231 2001-12-17 Corinna Vinschen <vinschen@redhat.com>
232
233 * NEWS: Note new target XStormy16.
234 * MAINTAINERS: Add -Werror to XStormy16.
235
236 2001-12-17 Fernando Nasser <fnasser@redhat.com>
237
238 From Richard Earnshaw <rearnsha@arm.com>:
239 * arm-tdep.c (arm_software_single_step): New function. Implements
240 software single-stepping for ARM targets.
241 (arm_get_next_pc, thumb_get_next_pc, bitcount, shifted_reg_val): Only
242 needed for software single-stepping.
243 * config/arm/tm-arm.h: Activate SOFTWARE_SINGLE_STEP_P.
244
245 2001-12-17 Fernando Nasser <fnasser@redhat.com>
246
247 From Richard Earnshaw <rearnsha@arm.com>:
248 * config/arm/nbsd.mh, config/arm/nbsd.mt, config/arm/tm-nbsd.h,
249 config/arm/nm-nbsd.h, config/arm/xm-nbsd.h: New files.
250 * armbsd-nat.c: New file.
251 * Makefile.in: Build it.
252 * configure.host, configure.tgt: Support NetBSD/arm.
253
254 2001-12-17 Corinna Vinschen <vinschen@redhat.com>
255
256 * MAINTAINERS: Add myself as XStormy16 maintainer.
257
258 2001-12-15 Kevin Buettner <kevinb@redhat.com>
259
260 * config/rs6000/tm-rs6000.h (solib.h): Conditionally include.
261
262 2001-12-15 Andrew Cagney <ac131313@redhat.com>
263
264 * gdbarch.c: Re-generate.
265
266 2001-12-15 Andrew Cagney <ac131313@redhat.com>
267
268 * MAINTAINERS: Remove powerpcle-eabi and rs6000-ibm-aix3.2 from
269 target list.
270
271 2001-12-15 Andrew Cagney <ac131313@redhat.com>
272
273 * defs.h (LITTLE_ENDIAN): Delete definition.
274 * arch-utils.c, cris-tdep.c, d10v-tdep.c, defs.h, gdbarch.c,
275 gdbarch.sh, remote-rdp.c, remote-sim.c, sh-tdep.c, sparc-tdep.c,
276 config/alpha/tm-alpha.h, config/arm/tm-arm.h,
277 config/i386/tm-i386.h, config/i960/tm-i960.h,
278 config/ia64/tm-ia64.h, config/mcore/tm-mcore.h,
279 config/mips/tm-wince.h, config/mn10200/tm-mn10200.h,
280 config/ns32k/tm-umax.h, config/powerpc/tm-ppcle-eabi.h,
281 config/sh/tm-wince.h, config/v850/tm-v850.h, config/vax/tm-vax.h,
282 doc/gdbint.texinfo: Replace LITTLE_ENDIAN with BFD_ENDIAN_LITTLE.
283
284 2001-12-15 Andrew Cagney <ac131313@redhat.com>
285
286 * ui-out.c (struct ui_out_table): Add field entry_level.
287 (verify_field): New function.
288 (verify_field_proper_position): Delete function.
289 (verify_field_alignment): Delete function.
290 (ui_out_field_int): Update to use verify_field.
291 (ui_out_field_skip): Ditto.
292 (ui_out_field_string): Ditto.
293 (ui_out_field_fmt): Ditto.
294 (ui_out_table_begin): Initialize table.entry_level.
295 (ui_out_table_end): Clear table.entry_level.
296 (ui_out_begin): Call verify_field before pushing the new tuple or
297 list onto the stack. Use table.entry_level.
298
299 2001-12-14 Corinna Vinschen <vinschen@redhat.com>
300
301 * config/djgpp/fnchange.lst: Add entries for opcodes/xstormy16-* files.
302
303 2001-12-13 Andrew Cagney <ac131313@redhat.com>
304
305 * arch-utils.c (generic_register_virtual_size): Return TYPE_LENGTH
306 of register's type.
307
308 2001-12-13 Jackie Smith Cashion <jsmith@redhat.com>
309
310 * cli/cli-script.c (print_command_lines): Remove extra
311 "if", "else", "while", and "end" from show user output.
312
313 2001-12-13 Kevin Buettner <kevinb@redhat.com>
314
315 * i387-nat.c (i387_fill_fxsave): Change type of ``val'' from char
316 to short so that we don't memcpy() beyond the end of this buffer.
317 Also, change shift value used in computing val to account for the
318 fact that only eight bits are used.
319
320 2001-12-13 Corinna Vinschen <vinschen@redhat.com>
321
322 * Makefile.in: Add support for xstormy16.
323 * configure.tgt: Ditto.
324 * xstormy16-tdep.c: New file.
325 * config/xstormy16/xstormy16.mt: New file.
326
327 2001-12-13 Andreas Schwab <schwab@suse.de>
328
329 * MAINTAINERS (write-after-approval): Add myself.
330
331 2001-12-12 Jim Blandy <jimb@redhat.com>
332
333 * Makefile.in (c-exp.tab.o): Add missing dependencies.
334
335 * Makefile.in (c_lang_h): New variable. Use it in dependency
336 lists, instead of `c-lang.h' itself.
337
338 2001-12-11 Fred Fish <fnf@redhat.com>
339
340 * c-typeprint.c (c_type_print_base): Use type flags access macros
341 to test bits.
342 * ch-typeprint.c (chill_type_print_base): Ditto.
343 * ch-valprint.c (chill_val_print): Ditto.
344 * d10v-tdep.c (d10v_pointer_to_address): Ditto.
345 * dwarf2read.c (dwarf2_add_member_fn): Ditto.
346 * dwarfread.c (read_structure_scope): Ditto.
347 * gdbtypes.c (create_range_type): Dittol
348 (create_set_type): Ditto.
349 (check_typedef): Ditto.
350 * jv-typeprint.c (java_type_print_base): Ditto.
351 * p-typeprint.c (pascal_type_print_base): Ditto
352 * p-valprint.c (pascal_val_print): Ditto.
353 * stabsread.c (read_cfront_member_functions): Ditto.
354 (read_member_functions): Ditto.
355 (cleanup_undefined_types): Ditto.
356 * valprint.c (val_print): Ditto.
357
358 * valops.c (hand_function_call): Remove is_prototyped
359 variable and just use type flag test macro directly.
360
361 2001-12-11 Fred Fish <fnf@redhat.com>
362
363 * gdbtypes.c (print_bound_type): New function.
364 (recursive_dump_type): Print type struct code values
365 TYPE_CODE_BITSTRING, TYPE_CODE_COMPLEX, TYPE_CODE_TEMPLATE,
366 and TYPE_CODE_TEMPLATE_ARG.
367 (recursive_dump_type): Print type struct members
368 upper_bound_type, lower_bound_type, cv_type, and as_type.
369 Also always print the tagname member, even when it is NULL.
370
371 2001-12-11 Michael Snyder <msnyder@redhat.com>
372
373 * d10v-tdep.c (d10v_register_virtual_size): Delete.
374 (d10v_gdbarch_init): Use generic_register_virtual_size.
375 * rs6000-tdep.c (rs6000_register_virtual_size): Delete.
376 (rs6000_gdbarch_init): Use generic_register_virtual_size.
377 * x86-64-tdep.c (x86_64_register_virtual_size): Delete.
378 (i386_gdbarch_init): Use generic_register_virtual_size.
379
380 2001-12-11 Andrew Cagney <ac131313@redhat.com>
381
382 * values.c: Include "gdb_assert.h".
383 (value_fn_field): Rearange to avoid -Wuninitialized warning.
384
385 2001-12-10 Fred Fish <fnf@redhat.com>
386
387 * values.c (value_fn_field): Add physname variable. Use a minimal
388 symbol if we don't find a full symbol. Remove setting of the new
389 value's type since that was already done by allocate_value().
390 Remove obsolete commented out error call since callees need to
391 handle a NULL return, which is possible result not an error.
392 * eval.c (evaluate_subexp_standard): Move check for inlined
393 functions to precede attempt to dereference a NULL argvec[0].
394
395 2001-12-10 Fred Fish <fnf@redhat.com>
396
397 * arm-linux-tdep.c (skip_hurd_resolver): Use NULL rather than
398 zero in args to lookup_minimal_symbol.
399 * linespec.c (decode_line_1): Ditto.
400 * i386-linux-tdep.c (skip_hurd_resolver): Ditto.
401 * minsyms.c (find_stab_function_addr): Ditto.
402 * symfile.c (simple_read_overlay_table): Ditto.
403 (simple_read_overlay_region_table): Ditto.
404
405 2001-12-10 Michael Snyder <msnyder@redhat.com>
406
407 * arch-utils.c (generic_register_virtual_size): New function.
408 * arch-utils.h: Export generic version of register_virtual_size.
409 * gdbarch.sh (REGISTER_VIRTUAL_SIZE): Use new function as default.
410 * gdbarch.c: Regenerate.
411
412 2001-12-09 Fred Fish <fnf@redhat.com>
413
414 * gdbtypes.c (TYPE_FLAG_UNSIGNED, TYPE_FLAG_STUB): Use
415 TYPE_UNSIGNED and TYPE_NOSIGN to determine when to print these
416 rather than testing the bits directly.
417 (TYPE_FLAG_NOSIGN, TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC,
418 TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_PROTOTYPED,
419 TYPE_FLAG_INCOMPLETE, TYPE_FLAG_CODE_SPACE, TYPE_FLAG_DATA_SPACE,
420 TYPE_FLAG_VARARGS): Test for and print these bits as well.
421
422 2001-12-09 Fred Fish <fnf@redhat.com>
423
424 * gdbtypes.c (build_gdbtypes): For builtin_type_char, pass
425 TYPE_FLAG_NOSIGN to init_type() rather than setting it after the
426 type is created.
427
428 2001-12-09 Fred Fish <fnf@redhat.com>
429
430 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_CONST,
431 TYPE_VOLATILE, TYPE_INCOMPLETE): Move macros that test the
432 bits to location in file where the bits are defined.
433 (TYPE_STUB, TYPE_TARGET_STUB, TYPE_STATIC, TYPE_PROTOTYPED,
434 TYPE_CODE_SPACE, TYPE_DATA_SPACE): New test macros.
435
436 2001-12-09 Fred Fish <fnf@redhat.com>
437
438 * gdbtypes.c (allocate_stub_method): Replace hand crafted type
439 initialization with call to the init_type() function.
440
441 2001-12-09 Andrew Cagney <ac131313@redhat.com>
442
443 * arch-utils.c (generic_register_raw_size): New function.
444 * gdbarch.sh (REGISTER_RAW_SIZE): Use generic_register_raw_size as
445 the static default.
446 * gdbarch.c: Regenerate.
447 * arch-utils.h (generic_register_raw_size): Declare.
448
449 * config/mips/tm-mips.h (REGISTER_RAW_SIZE): Delete macro.
450 * mips-tdep.c (mips_register_raw_size): Make function static.
451 (mips_gdbarch_init): Initialize register_raw_size.
452
453 2001-12-08 Fred Fish <fnf@redhat.com>
454
455 * dwarf2read.c (read_typedef): Replace hand crafted type
456 initialization with a call to the init_type() function, which
457 is how the rest of gdb creates types.
458
459 2001-12-09 Fred Fish <fnf@redhat.com>
460
461 * mdebugread.c (cross_ref): Pass TYPE_FLAG_STUB to init_type()
462 rather than setting it after the type is created.
463
464 2001-12-09 Elena Zannoni <ezannoni@redhat.com>
465
466 * config/rs6000/tm-rs6000.h (STAB_REG_TO_REGNUM): Remove
467 definition, it is now multiarched.
468 * ppc-tdep.h (struct gdbarch_tdep): Move from rs6000-tdep.c. Add
469 fields for special register numbers.
470 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize new tdep special
471 regnum fields.
472 (rs6000_saved_pc_after_call): Use gdbarch_tdep registers fields
473 instead of hardcoded macros.
474 (branch_dest, rs6000_pop_frame, rs6000_fix_call_dummy,
475 ppc_push_return_address, rs6000_frame_saved_pc,
476 frame_get_saved_regs, rs6000_frame_chain,
477 rs6000_store_return_value): Ditto.
478 (rs6000_stab_reg_to_regnum): New function.
479 * ppcnbsd-nat.c (fetch_inferior_registers,
480 store_inferior_registers, fetch_core_registers): Ditto.
481 * ppc-linux-tdep.c (ppc_linux_in_sigtramp,
482 ppc_linux_frame_init_saved_regs): Ditto.
483 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
484 fill_gregset): Ditto.
485 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
486 Ditto.
487
488 2001-12-08 Fred Fish <fnf@redhat.com>
489
490 * c-lang.c (c_create_fundamental_type): For FT_CHAR, pass
491 TYPE_FLAG_NOSIGN to init_type() rather than setting it after the
492 type is created.
493
494 2001-12-08 Fred Fish <fnf@redhat.com>
495
496 * dwarf2read.c (TYPE_FLAG_VARARGS): Remove from here.
497 * gdbtypes.h (TYPE_FLAG_VARARGS): Add here and change value to
498 not collide with other flag bits.
499
500 2001-12-08 Fred Fish <fnf@redhat.com>
501
502 * dwarf2read.c (read_base_type): Rename is_unsigned to type_flags.
503 For unsigned types set TYPE_FLAG_UNSIGNED and pass it to
504 init_type().
505
506 2001-12-08 Daniel Jacobowitz <drow@mvista.com>
507
508 * Makefile.in (cp-valprint.o): Add dependency on $(cp_abi_h).
509
510 2001-12-08 Jim Blandy <jimb@redhat.com>
511
512 * config/s390/s390.mh: Don't use the linux-thread.o module;
513 thread-db.o, lin-lwp.o, and proc-service.o should work just fine.
514
515 2001-12-07 Andrew Cagney <ac131313@redhat.com>
516
517 * PROBLEMS: New file.
518 * README: Move known problems to PROBLEMS file.
519
520 2001-12-07 Daniel Jacobowitz <drow@mvista.com>
521
522 * stabsread.c (read_member_functions): Skip member functions which
523 are duplicates of the callable constructor/destructor.
524
525 2001-12-07 Jim Blandy <jimb@redhat.com>
526
527 * s390-tdep.c (s390_store_return_value): Don't convert float
528 values to double format when returning them; just return them in
529 the first half of the FP register, as the ABI specifies.
530
531 2001-12-07 Daniel Jacobowitz <drow@mvista.com>
532
533 * valops.c (hand_function_call): Check for method arguments in
534 TYPE_ARG_TYPES(), not in TYPE_FIELD ().
535
536 2001-12-07 Daniel Jacobowitz <drow@mvista.com>
537
538 * cp-valprint.c (cp_print_value): Preserve offset if
539 the virtual base is outside of this object.
540
541 2001-12-07 Daniel Jacobowitz <drow@mvista.com>
542
543 * gdbtypes.c (finish_cv_type): New function.
544 (check_typedef): Remove ``register'' keyword from argument.
545 Preserve const and volatile attributes across filling in
546 opaque types.
547 * gdbtypes.h (finish_cv_type): Add prototype.
548
549 * hp-symtab-read.c (hpread_read_struct_type): Call finish_cv_type.
550 * stabsread.c (read_struct_type): Likewise.
551 * dwarf2read.c (read_structure_scope): Likewise. Remove redundant
552 assignment to die->type.
553
554 2001-12-07 Jim Blandy <jimb@redhat.com>
555
556 * printcmd.c (print_scalar_formatted): Compare the length of the
557 value against the lengths of the target's floating-point types,
558 not the host's. Add support for `long double'.
559
560 2001-12-07 Martin M. Hunt <hunt@redhat.com>
561
562 * configure.in: Check for sys/filio.h
563 * configure: Rebuild.
564 * config.in: Add HAVE_SYS_FILIO_H
565 * ser-tcp.c: Conditionally include sys/filio.h.
566
567 2001-12-07 Andrew Cagney <ac131313@redhat.com>
568
569 * ui-out.c (ui_out_table_begin): Initialize body_flag.
570 (struct ui_out_table): New structure. Move table fields to here.
571 Rename headercurr to headernext.
572 (struct ui_out): Remove table specific fields. Add field table.
573 (ui_out_table_begin, ui_out_table_body, ui_out_table_end): Update.
574 (ui_out_table_header, ui_out_begin): Update.
575 (verify_field_proper_position, verify_field_alignment): Update.
576 (ui_out_new, clear_header_list, append_header_to_list): Update.
577 (get_next_header): Rename get_curr_header. Update comments and
578 code.
579
580 2001-12-06 Andrew Cagney <ac131313@redhat.com>
581
582 * regcache.c (XCALLOC): Delete macro that should not have been
583 added.
584
585 2001-12-07 Jiri Smid <smid@suse.cz>
586
587 * dwarf2cfi.c: New file.
588 * dwarf2cfi.h: New file.
589 * dwarf2read.c (dwarf_frame_offset, dwarf_frame_size): New variables.
590 (dwarf_eh_frame_offset, dwarf_eh_frame_size): New variables.
591 (dwarf2_read_section): Change to non static.
592 (dwarf2_locate_sections): Add .debug_frame and .eh_frame section
593 recognition.
594 (FRAME_SECTION, EH_FRAME_SECTION): New define.
595 * elfread.c (elf_symfile_read): Add call of frame informations build.
596 * frame.h (frame_info): Add pointer to unwind_context.
597 * symfile.h (dwarf2_build_frame_info): Add declaration.
598 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Add.
599 * gdbarch.h, gdbarch.c: Regenerate.
600 * Makefile.in: Add dwarf2cfi_h, dwarf2cfi.o
601 * x86-64-tdep.c (i386_gdbarch_init): Initialize target vector to
602 use debug frame info.
603
604 2001-12-06 Andrew Cagney <ac131313@redhat.com>
605
606 * defs.h: Do not include "mmalloc.h".
607 (mcalloc, mmalloc, mrealloc, mfree): Delete declaration.
608 * objfiles.c: Include "mmalloc.h".
609 * utils.c: Include "mmalloc.h".
610 (mmalloc, mfree, mrealloc, mmalloc): Make static, change PTR to
611 void pointer.
612
613 2001-12-06 Andrew Cagney <ac131313@redhat.com>
614
615 * regcache.c (store_register, fetch_register): Only use
616 fetch/store pseudo-register when function is present. Assume
617 target can handle all registers.
618 (registers_changed): Simplify invalidate loop.
619 (registers_fetched): Add comments.
620 (register_buffer): Add regnum range assertion. Remove code
621 handling -ve regnum.
622 (build_regcache): Make space for pseudo-registers when computing
623 sizeof_registers. Initialize register_offset.
624
625 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Change to a function with
626 predicate.
627 (STORE_PSEUDO_REGISTER): Ditto.
628 * gdbarch.h, gdbarch.c: Re-generate.
629
630 2001-12-06 Jim Blandy <jimb@redhat.com>
631
632 * config/s390/nm-linux.h: Watchpoints are either continuable or
633 steppable, not both. The S/390 has continuable watchpoints, so
634 delete the #definition of HAVE_STEPPABLE_WATCHPOINT.
635
636 2001-12-04 Pierre Muller <muller@ics.u-strasbg.fr>
637
638 * go32-nat.c (go32_fetch_registers): Remove call to register_buffer
639 (which is now a static function in regcache.c)
640 and use regcache_collect instead.
641
642 2001-12-05 Andrew Cagney <cagney@redhat.com>
643
644 * target.c (cleanup_target): Do not initialize to_query to
645 return_zero.
646
647 2001-12-05 Jim Blandy <jimb@redhat.com>
648
649 * s390-tdep.c (s390_get_frame_info): Recognize argument register
650 spills that use the `stm' instruction.
651 (is_arg_reg): New function.
652
653 2001-12-03 Keith Walker <keith.walker@arm.com>
654
655 * gdbserver/low-linux.c (arm_register_u_addr): Added.
656 (initialize_arch): Added for ARM target.
657 * config/arm/nm-linux.h (U_REGS_OFFSET): Defined.
658 (REGISTER_U_ADDR): Defined.
659 * config/arm/tm-linux.h (ARM_GNULINUX_TARGET): Defined.
660
661 2001-12-04 Corinna Vinschen <vinschen@redhat.com>
662
663 * arm-tdep.c (arm_skip_prologue): Always skip prologue by scanning
664 the prologue if source is assembler.
665
666 2001-12-04 Jackie Smith Cashion <jsmith@redhat.com>
667
668 * MAINTAINERS (write-after-approval): Add self.
669
670 * d10v-tdep.c (d10v_gdbarch_init): Change size of long long to 8 bytes.
671
672 From Andrew Cagney <cagney@redhat.com>:
673 * d10v-tdep.c (d10v_frame_chain_valid): Check if the caller's PC
674 is in the entry function.
675 (d10v_use_struct_convention): Store multi-field struct and union
676 return values on the stack.
677
678 2001-12-04 Jim Blandy <jimb@redhat.com>
679
680 * s390-tdep.c (s390_get_frame_info): Recognize spills of reg
681 arguments into their stack slots.
682
683 * s390-tdep.c (s390_get_frame_info): More doc fixes.
684
685 * s390-tdep.c (s390_get_frame_info): Doc fixes.
686
687 2001-12-04 Orjan Friberg <orjanf@axis.com>
688
689 * cris-tdep.c (cris_regnums): Add DCCR_REGNUM for completeness.
690 (cris_examine): Add comment about solib prologue parsing.
691 (bdap_prefix): Read offset with correct signedness and size.
692 (move_to_preg_op): Don't rely on register numbering for register size.
693 (none_reg_mode_move_from_preg_op): Ditto.
694
695 2001-12-04 Orjan Friberg <orjanf@axis.com>
696
697 * solib.c (solib_open): Make path relative if search for absolute path
698 failed. If search for relative path in solib_search_path failed, fall
699 back to search for basename only.
700
701 2001-12-03 Martin M. Hunt <hunt@redhat.com>
702
703 * serial.h: Add a note to serial_open.
704
705 * ser-tcp.c (tcp_open): Rewrite to use a non-blocking connect.
706 Allow UI and CLI to abort connect. Instead of trying 15 times
707 with very long timeouts, just try one connect with a maximum timeout
708 of 15 seconds.
709
710 2001-12-03 Kevin Buettner <kevinb@redhat.com>
711
712 * config/powerpc/tm-macos.h (solib.h): Include.
713 * config/powerpc/tm-ppc-eabi.h (solib.h): Include.
714
715 2001-12-03 Michael Snyder <msnyder@redhat.com>
716
717 * symtab.c (search_symbols): Make sure alloca size is big enough.
718
719 2001-12-03 Andrew Cagney <ac131313@redhat.com>
720
721 * MAINTAINERS: Prune m68k targets down to just m68k-elf.
722
723 2001-12-03 Jim Blandy <jimb@redhat.com>
724
725 * s390-tdep.c (s390_get_frame_info): Don't used fextra_info to set
726 orig_sp if it's not initialized.
727
728 2001-11-30 Pierre Muller <muller@ics.u-strasbg.fr>
729
730 * findvar.c (locate_var_value): Specify in which register a register
731 variable is stored.
732
733 2001-11-30 Pierre Muller <muller@ics.u-strasbg.fr>
734
735 * win32-nat.c (mappings): Correct position of XMM registers,
736 based on FXSAVE instruction structure.
737
738 2001-12-02 Andrew Cagney <ac131313@redhat.com>
739
740 * jv-lang.c (get_java_class_symtab): Use xmmalloc instead of
741 mmalloc.
742
743 * coffread.c, dbxread.c, elfread.c, hp-psymtab-read.c, hpread.c,
744 nlmread.c, objfiles.c, os9kread.c, somread.c, source.c, symfile.c,
745 symmisc.c, xcoffread.c: Use xmfree instead of mfree.
746
747 * jv-lang.c (add_class_symtab_symbol): Use xmrealloc instead of
748 mrealloc.
749
750 2001-12-02 Andrew Cagney <ac131313@redhat.com>
751
752 * i386-tdep.c (i386go32_frame_saved_pc): New function.
753 * config/i386/tm-go32.h (i386go32_frame_saved_pc): Declare.
754 (FRAME_SAVED_PC): Redefine to i386go32_frame_saved_pc.
755
756 2001-12-01 Andrew Cagney <ac131313@redhat.com>
757
758 * defs.h: Update comment on HOST_BYTE_ORDER.
759 * config/xm-aix4.h: Delete definition of HOST_BYTE_ORDER.
760 * config/xm-nbsd.h, config/alpha/xm-alphalinux.h: Ditto.
761 * config/alpha/xm-alphaosf.h, config/alpha/xm-fbsd.h: Ditto.
762 * config/arm/xm-linux.h, config/i386/xm-cygwin.h: Ditto.
763 * config/i386/xm-i386bsd.h, config/i386/xm-i386gnu.h: Ditto.
764 * config/i386/xm-i386lynx.h, config/i386/xm-i386m3.h: Ditto.
765 * config/i386/xm-i386mach.h, config/i386/xm-i386v.h: Ditto.
766 * config/i386/xm-ptx.h, config/i386/xm-symmetry.h: Ditto.
767 * config/ia64/xm-aix.h, config/ia64/xm-linux.h: Ditto.
768 * config/m68k/xm-3b1.h, config/m68k/xm-apollo68b.h: Ditto.
769 * config/m68k/xm-apollo68v.h, config/m68k/xm-delta68.h: Ditto.
770 * config/m68k/xm-dpx2.h, config/m68k/xm-hp300bsd.h: Ditto.
771 * config/m68k/xm-hp300hpux.h, config/m68k/xm-m68k.h: Ditto.
772 * config/m68k/xm-m68klynx.h, config/m68k/xm-sun2.h: Ditto.
773 * config/m68k/xm-sun3.h, config/m88k/xm-dgux.h: Ditto.
774 * config/m88k/xm-m88k.h, config/mips/xm-irix3.h: Ditto.
775 * config/mips/xm-irix5.h, config/mips/xm-linux.h: Ditto.
776 * config/mips/xm-mips.h, config/mips/xm-mipsm3.h: Ditto.
777 * config/mips/xm-mipsv4.h, config/mips/xm-news-mips.h: Ditto.
778 * config/mips/xm-riscos.h, config/pa/xm-hppab.h: Ditto.
779 * config/pa/xm-hppah.h, config/powerpc/xm-linux.h: Ditto.
780 * config/romp/xm-rtbsd.h, config/rs6000/xm-rs6000.h: Ditto.
781 * config/rs6000/xm-rs6000ly.h, config/s390/xm-linux.h: Ditto.
782 * config/sparc/xm-sparc.h, config/sparc/xm-sparclynx.h: Ditto.
783 * config/vax/xm-vax.h: Ditto.
784
785 * config/a29k/tm-vx29k.h: Add #error as file depends on
786 HOST_BYTE_ORDER.
787 * config/a29k/tm-a29k.h: Ditto.
788 * MAINTAINERS (a29k-amd-udi): Document as broken.
789
790 2001-12-01 Andrew Cagney <ac131313@redhat.com>
791
792 * Makefile.in (tm-news.h, tm-isi.h, xm-news1000.h): Delete.
793 (ALLDEPFILES): Delete news-xdep.c.
794 (news-xdep.o): Delete.
795 (isi-xdep.o): Delete.
796 * configure.tgt: Delete m68*-isi-*, m68*-sony-*, m68*-rom68k-*,
797 m68*-*bug-*, m68*-monitor-* and m68*-est-* targets.
798 * configure.host: Delete m68030-sony-*, m68*-isi-* and m68*-sony-*
799 Hosts.
800 * m68k-tdep.c (isi_skip_prologue): Delete function.
801 * news-xdep.c: Delete file.
802 * isi-xdep.c: Delete file.
803 * config/m68k/isi.mh: Delete file.
804 * config/m68k/isi.mt: Delete file.
805 * config/m68k/news.mh: Delete file.
806 * config/m68k/news.mt: Delete file.
807 * config/m68k/news1000.mh: Delete file.
808 * config/m68k/nm-news.h: Delete file.
809 * config/m68k/tm-isi.h: Delete file.
810 * config/m68k/tm-news.h: Delete file.
811 * config/m68k/xm-isi.h: Delete file.
812 * config/m68k/xm-news.h: Delete file.
813 * config/m68k/xm-news1000.h: Delete file.
814
815 * kdb-start.c: Delete file.
816 * stuff.c: Delete file.
817
818 * NEWS: Note that a29k-nyu-sym1 and a29k-*-kern* were deleted.
819 * configure.host: Delete a29k-*-* host.
820 * configure.tgt: Delete a29k-*-kern* and a29k-*-sym1* targets.
821 * config/a29k/a29k-kern.mt: Delete file.
822 * config/a29k/nm-ultra3.h: Delete file.
823 * config/a29k/tm-ultra3.h: Delete file.
824 * config/a29k/ultra3.mh: Delete file.
825 * config/a29k/ultra3.mt: Delete file.
826 * config/a29k/xm-ultra3.h: Delete file.
827
828 * NEWS: Note that i[3456]86-*-sunos* was deleted.
829 * Makefile.in (sun386-nat.o): Delete.
830 * configure.tgt: Delete i[3456]86-*-sunos* target.
831 * configure.host: Delete i[3456]86-*-sunos* host.
832 * sun386-nat.c: Delete.file.
833 * config/i386/nm-sun386.h: Delete file.
834 * config/i386/sun386.mh: Delete file.
835 * config/i386/sun386.mt: Delete file.
836 * config/i386/tm-sun386.h: Delete file.
837 * config/i386/xm-sun386.h: Delete file.
838
839 * NEWS: Note that ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv*
840 and ns32k-utek-* were deleted.
841 * Makefile.in (ultra3-nat.o, ultra3-xdep.o): Delete.
842 (umax-xdep.o, ns32km3-nat.o): Delete.
843 * configure.tgt: Delete ns32k-*-mach3*, ns32k-utek-sysv* and
844 ns32k-utek-* targets.
845 * configure.host: Delete ns32k-*-mach3*, ns32k-umax-* and
846 ns32k-utek-sysv* hosts.
847 * ultra3-nat.c: Delete file.
848 * ultra3-xdep.c: Delete file.
849 * umax-xdep.o: Delete file.
850 * ns32km3-nat: Delete file.
851 * config/ns32k/merlin.mh: Delete file.
852 * config/ns32k/merlin.mt: Delete file.
853 * config/ns32k/nm-umax.h: Delete file.
854 * config/ns32k/ns32km3.mh: Delete file.
855 * config/ns32k/ns32km3.mt: Delete file.
856 * config/ns32k/tm-merlin.h: Delete file.
857 * config/ns32k/tm-ns32km3.h: Delete file.
858 * config/ns32k/umax.mh: Delete file.
859 * config/ns32k/umax.mt: Delete file.
860 * config/ns32k/xm-merlin.h: Delete file.
861 * config/ns32k/xm-ns32km3.h: Delete file.
862 * config/ns32k/xm-umax.h: Delete file.
863
864 * NEWS: Note that m88*-harris-cxux* was deleted.
865 * configure.host: Delete m88*-harris-cxux* host.
866 * configure.tgt: Delete m88*-harris-cxux* target.
867 * config/m88k/cxux.mh: Delete file.
868 * config/m88k/cxux.mt: Delete file.
869 * config/m88k/nm-cxux.h: Delete file.
870 * config/m88k/tm-cxux.h: Delete file.
871 * config/m88k/xm-cxux.h: Delete file.
872
873 * NEWS: Note that powerpc-*-netware*, powerpcle-*-cygwin* and
874 powerpcle-*-solaris* were deleted.
875 * configure.host: Delete powerpcle-*-cygwin* and
876 powerpcle-*-solaris* hosts.
877 * configure.tgt: Delete powerpc-*-netware*, powerpcle-*-cygwin*
878 and powerpcle-*-solaris* targets.
879 * config/powerpc/cygwin.mh: Delete file.
880 * config/powerpc/cygwin.mt: Delete file.
881 * config/powerpc/nm-solaris.h: Delete.file.
882 * config/powerpc/ppc-nw.mt: Delete file.
883 * config/powerpc/solaris.mh: Delete file.
884 * config/powerpc/solaris.mt: Delete file.
885 * config/powerpc/tm-cygwin.h: Delete file.
886 * config/powerpc/tm-ppc-nw.h: Delete file.
887 * config/powerpc/tm-solaris.h: Delete file.
888 * config/powerpc/xm-cygwin.h: Delete file.
889 * config/powerpc/xm-mpw.h: Delete file.
890 * config/powerpc/xm-solaris.h: Delete file.
891
892 * NEWS, MAINTAINERS: Note that w65-*-* was deleted.
893 * configure.tgt: Delete w65-*-*.
894 * Makefile.in (w65-tdep.o): Delete.
895 * config/w65/tm-w65.h: Delete file.
896 * config/w65/w65.mt: Delete file.
897 * w65-tdep.c: Delete file.
898
899 * NEWS: Mention deleted tic80-*-*.
900 * configure.tgt: Delete tic80-*-*.
901 * Makefile.in (tic80-tdep.o): Delete.
902 * config/tic80/tic80.mt: Delete.
903 * config/tic80/tm-tic80.h: Delete.
904 * tic80-tdep.c: Delete.
905 * MAINTAINERS: Note that tic80 was deleted.
906
907 2001-11-30 Kevin Buettner <kevinb@redhat.com>
908
909 * ppc-linux-tdep.c (solib-svr4.h): Include.
910 (ppc_linux_svr4_fetch_link_map_offsets): New function.
911 * ppc-tdep.h (ppc_linux_svr4_fetch_link_map_offsets): Declare.
912 * rs6000-tdep.c (solib-svr4.h): Include.
913 (rs6000_gdbarch_init): Set up ppc_linux_svr4_fetch_link_map_offsets()
914 as the link map offsets fetcher.
915
916 * config/powerpc/aix.mt (TDEPFILES): Add solib-svr4.o.
917 * config/powerpc/macos.mt (TDEPFILES): Likewise.
918 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
919 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
920 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
921 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
922 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
923 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
924 * config/rs6000/aix4.mt (TDEPFILES): Likewise.
925 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
926 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
927
928 2001-11-30 Kevin Buettner <kevinb@redhat.com>
929
930 From Louis Hamilton <hamilton@redhat.com>:
931 * arm-tdep.c (solib-svr4.h): Include.
932 (arm_linux_svr4_fetch_link_map_offsets): New function.
933 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Define.
934 (arm_linux_svr4_fetch_link_map_offsets): Declare.
935
936 2001-11-30 Daniel Jacobowitz <drow@mvista.com>
937
938 * values.c (value_primitive_field): Add embedded_offset to the
939 address of structure members.
940 * gnu-v3-abi.c (gnuv3_rtti_type): Cast to base type before
941 attempting to access vtable pointer. Set using_enc_p if we cast.
942 (gnuv3_virtual_fn_field): Call value_cast with structure rather than
943 structure pointer. Cast to base type before attempting to access
944 vtable pointer.
945
946 2001-11-29 Elena Zannoni <ezannoni@redhat.com>
947
948 * Makefile.in (ppc-linux-nat.o): Add dependency on ppc-tdep.h.
949
950 * ppc-tdep.h (PPC_GPLAST_REGNUM): Define.
951
952 * ppc-linux-nat.c: Include ppc-tdep.h.
953 (ppc_register_u_addr): Don't use the static array regmap[],
954 dynamically define the mapping instead.
955 (supply_gregset): Ditto.
956 (fill_gregset): Ditto.
957 (COPY_REG): Delete macro defintion.
958 (regmap): Delete array.
959
960 2001-11-29 Jim Blandy <jimb@redhat.com>
961
962 Tighten up GDB's support for returning structs by value.
963 * s390-tdep.c (s390_use_struct_convention): New function.
964 (s390_gdbarch_init): Register it as the S/390's
965 USE_STRUCT_CONVENTION method. Register
966 generic_cannot_extract_struct_value_address as our
967 EXTRACT_STRUCT_VALUE_ADDRESS method.
968 * arch-utils.c (generic_cannot_extract_struct_value_address): New
969 function.
970 * arch-utils.h: Add corresponding prototype.
971
972 * values.c (value_being_returned): Make error message a proper
973 sentence.
974
975 2001-11-27 Keith Walker <keith.walker@arm.com>
976
977 * dwarf2read.c (read_attribute_value): New function to handle
978 DW_FORM_indirect
979 (read_attribute): uses read_attribute_value
980
981 2001-11-29 Jim Blandy <jimb@redhat.com>
982
983 * s390-tdep.c (s390_frame_saved_pc_nofix): If the prologue didn't
984 save the return address register, assume that the return address
985 is still in there.
986
987 2001-11-27 Andrew Cagney <ac131313@redhat.com>
988
989 * MAINTAINERS: Clarify obvious fix a little (as suggested by Eli
990 Zaretskii).
991
992 2001-11-25 Jim Blandy <jimb@redhat.com>
993
994 * mn10300-tdep.c (mn10300_analyze_prologue): Doc fixes.
995
996 2001-11-27 Jim Blandy <jimb@redhat.com>
997
998 * s390-tdep.c: Get frame chains and saved pc values properly from
999 dummy frames.
1000 (s390_frame_saved_pc_nofix): if `*fi' is a dummy frame, get the
1001 saved PC from the dummy frame's registers.
1002 (s390_frame_chain): Same for the saved SP.
1003 (s390_gdbarch_init): Register `generic_save_dummy_frame_tos' as
1004 the `SAVE_DUMMY_FRAME_TOS' method, so the dummy frame's `top' gets
1005 set correctly.
1006
1007 * s390-tdep.c (s390_frame_chain): Remember that the SP's element
1008 of the frame's saved_regs array is special.
1009
1010 * s390-tdep.c (register_names): Call the general-purpose registers
1011 `r0' -- `r15', and the floating-point registers `f0' -- `f15', to
1012 match the assembly language.
1013
1014 2001-11-26 Pierre Muller <muller@ics.u-strasbg.fr>
1015
1016 * config/i386/tm-cygwin.h: Define HAVE_SSE_REGS if
1017 HAVE_CONTEXT_EXTENDED_REGISTERS is defined.
1018 * win32-nat.c: Define CONTEXT_DEBUGGER_DR that will also include
1019 extended registers if HAVE_SSE_REGS is defined.
1020 (mappings array): Add offset of extended registers.
1021 (thread_rec): Use new CONTEXT_DEBUGGER_DR macro.
1022
1023 2001-11-26 Tom Tromey <tromey@redhat.com>
1024
1025 * NEWS: Updated.
1026 * event-loop.c (start_event_loop): Call
1027 after_char_processing_hook.
1028 * event-top.h (after_char_processing_hook): Declare.
1029 * event-top.c (rl_callback_read_char_wrapper): Call
1030 after_char_processing_hook.
1031 (after_char_processing_hook): New global.
1032 * top.c (operate_saved_history): New global.
1033 (gdb_rl_operate_and_get_next): New function.
1034 (init_main): Add the operate-and-get-next defun.
1035 (gdb_rl_operate_and_get_next_completion): New function.
1036
1037 2001-11-26 Tom Tromey <tromey@redhat.com>
1038
1039 * NEWS: Update for --args.
1040 * infcmd.c (construct_inferior_arguments): Moved from ...
1041 * fork-child.c: ... here.
1042
1043 2001-11-26 Jim Blandy <jimb@redhat.com>
1044
1045 * symtab.c (find_pc_sect_line): Revert change of 2001-11-13; add
1046 comment explaining that hand-written assembly code can have line
1047 number info but no debug info for an enclosing function.
1048
1049 2001-11-26 Jakub Jelinek <jakub@redhat.com>
1050
1051 * sparc-nat.c (fetch_inferior_registers): Don't rely
1052 on CORE_ADDR being 32-bit.
1053 (store_inferior_registers): Likewise.
1054
1055 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
1056
1057 * config/djgpp/config.sed: Fix an error in etc/ at "make install"
1058 time on non-LFN systems where standards*.inf* expands to nothing.
1059
1060 * go32-nat.c (save_npx): Avoid a warning from GCC 3.x.
1061
1062 2001-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1063 Christopher Faylor <cgf@redhat.com>
1064
1065 * win32-nat.c (struct so_stuff): Add objfile *objfile field needed to
1066 be able to remove the DLL when unloaded. Remove unused last field.
1067 (handle_unload_dll): New function to handle unloading of DLL.
1068 (solib_symbols_add): Change return type to struct objfile *.
1069 (get_child_debug_event): Call handle_unload_dll function.
1070
1071 2001-11-24 Christopher Faylor <cgf@redhat.com>
1072
1073 * win32-nat.c (_initialize_check_for_gdb_ini): New function.
1074 * config/i386/xm-cygwin.h: Remove obsolete handling of __CYGWIN32__.
1075 (GDBINIT_FILENAME): Remove.
1076
1077 2001-11-23 Mark Kettenis <kettenis@gnu.org>
1078
1079 Add x86 OpenBSD native configuration.
1080 * config/i386/obsd.mt, config/i386/tm-obsd.h, config/i386/obsd.mh,
1081 config/i386/nm-obsd.h: New files.
1082 * configure.host (i[3456]86-*-openbsd*): New host.
1083 * configure.tgt (i[3456]86-*-openbsd*): New target.
1084 * NEWS: Update.
1085
1086 2001-11-21 GDB Administrator <gdbadmin@sourceware.cygnus.com>
1087
1088 * GDB 5.1 was released.
1089
1090 2001-11-21 Tom Tromey <tromey@redhat.com>
1091
1092 Fix for PR gdb/209, PR gdb/156:
1093 * gdbarch.c, gdbarch.h: Rebuilt.
1094 * gdbarch.sh: Added `construct_inferior_arguments'.
1095 * cli/cli-decode.h (cmd_list_element): Added pre_show_hook.
1096 Typo fix.
1097 * cli/cli-setshow.c (do_setshow_command): Call the pre_show_hook.
1098 * infcmd.c (_initialize_infcmd): Set sfunc on `set args' command.
1099 (inferior_argc, inferior_argv): New globals.
1100 (notice_args_set): New function.
1101 (set_inferior_args): Clear inferior_argc and inferior_argv.
1102 (set_inferior_args_vector): New function.
1103 (get_inferior_args): Handle inferior argument vector.
1104 (run_command): Use get_inferior_args().
1105 (notice_args_read): New function.
1106 (_initialize_infcmd): Don't call set_inferior_args.
1107 * command.h: Typo fix.
1108 (cmd_list_element): Added pre_show_hook.
1109 * main.c (captured_main): Added --args option.
1110 (print_gdb_help): Document --args.
1111 * inferior.h (construct_inferior_arguments): Declare.
1112 (set_inferior_args_vector): Likewise.
1113 * fork-child.c (construct_inferior_arguments): New function.
1114
1115 2001-11-21 Kevin Buettner <kevinb@redhat.com>
1116
1117 * lin-lwp.c (lin_lwp_attach_lwp): Make sure SIGCHLD is in set of
1118 blocked signals.
1119
1120 * lin-lwp.c (lin_lwp_attach_lwp): Mark main thread as stopped.
1121
1122 2001-11-20 Jim Blandy <jimb@redhat.com>
1123
1124 * target.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT): Delete
1125 default definition; this is never used.
1126
1127 2001-11-20 Keith Seitz <keiths@redhat.com>
1128
1129 * varobj.c (c_value_of_child): Release memory for "name" when
1130 finshed using it.
1131 (c_type_of_child): Likewise.
1132 (cplus_value_of_child): Isolate the use of name_of_child to
1133 one case that needs it.
1134 Release memory for "name" when finished using it.
1135
1136 2001-11-20 Keith Seitz <keiths@redhat.com>
1137
1138 * top.c (gdb_init): Call init_ui_hook before initializing
1139 the default UI.
1140
1141 2001-11-19 Elena Zannoni <ezannoni@redhat.com>
1142
1143 * config/powerpc/nm-linux.h (ppc_register_u_addr): Add extern
1144 declaration.
1145
1146 2001-11-19 Elena Zannoni <ezannoni@redhat.com>
1147
1148 * ppc-linux-nat.c (COPY_REG): Use regcache_collect instead of
1149 accessing registers[].
1150 (fill_fpregset): Ditto.
1151
1152 2001-11-19 Elena Zannoni <ezannoni@redhat.com>
1153
1154 * infptrace.c (fetch_register): Dynamically allocate buffer for
1155 register.
1156 (store_register): Use regcache_collect, instead of accessing the
1157 register buffer directly.
1158
1159 2001-11-19 Daniel Jacobowitz <drow@mvista.com>
1160
1161 * mips-tdep.c (find_proc_desc): Add cur_frame argument. Pass
1162 cur_frame to heuristic_proc_desc.
1163 (heuristic_proc_desc): Add cur_frame argument. Do not read SP
1164 if cur_frame == 0.
1165 (after_prologue): Pass cur_frame == 0 to find_proc_desc.
1166 (mips_frame_chain): Pass cur_frame == 1 to find_proc_desc.
1167 (mips_init_extra_frame_info): Likewise.
1168
1169 2001-11-19 Andrew Cagney <ac131313@redhat.com>
1170
1171 * defs.h (return_to_top_level): Comment.
1172
1173 Mon Nov 19 14:58:52 2001 Andrew Cagney <cagney@redhat.com>
1174
1175 * remote.c (remote_open_1, remote_async_open_1): Use ISO C string
1176 concatenation for error parameter.
1177 (remote_cisco_open): Ditto.
1178
1179 2001-11-19 Keith Seitz <keiths@redhat.com>
1180
1181 * varobj.c (c_value_of_child): Use the wrapper function,
1182 gdb_value_struct_elt.
1183 (cplus_value_of_child): Likewise.
1184
1185 2001-11-18 Andrew Cagney <ac131313@redhat.com>
1186
1187 * i386-tdep.c (i386_gdbarch_init): Initialize num_regs.
1188 * config/i386/tm-i386.h (NUM_REGS): Delete.
1189
1190 2001-11-18 Kevin Buettner <kevinb@redhat.com>
1191
1192 * i386-linux-nat.c (fill_gregset): Fix botched regcache_collect()
1193 conversion for I386_LINUX_ORIG_EAX_REGNUM.
1194
1195 2001-11-18 Andrew Cagney <ac131313@redhat.com>
1196
1197 * config/i386/embed.mt (TM_FILE): Set to tm-i386.h.
1198 * config/i386/tm-embed.h: Delete.
1199
1200 2001-11-17 Andrew Cagney <ac131313@redhat.com>
1201
1202 * Makefile.in (distclean): Explicitly delete Makefile et.al. in
1203 gdbserver sub directory.
1204
1205 2001-11-17 Andrew Cagney <ac131313@redhat.com>
1206
1207 * README: Mention need for alloca(). Mention problems with
1208 alpha-dec-osf4.0e. Clarify that comments refer to GDB 5.1.
1209
1210 2001-11-17 Kevin Buettner <kevinb@redhat.com>
1211
1212 * i386-linux-nat.c (fill_gregset): Use regcache_collect() instead
1213 of accessing registers[] directly.
1214
1215 2001-11-17 Kevin Buettner <kevinb@redhat.com>
1216
1217 * i386-linux-nat.c (fill_gregset): Don't invoke read_register_gen()
1218 when fetching ORIG_EAX.
1219
1220 2001-11-17 Daniel Jacobowitz <drow@mvista.com>
1221
1222 * arm-linux-nat.c: Don't include <asm/ptrace.h>.
1223 (fetch_register): Use elf_gregset_t instead of struct pt_regs.
1224 (fetch_regs): Likewise.
1225 (store_register): Likewise.
1226 (store_regs): Likewise.
1227
1228 2001-11-17 Daniel Jacobowitz <drow@mvista.com>
1229
1230 * sparc-linux-nat.c (fill_gregset): Replace read_register_gen
1231 with regcache_collect.
1232 (fill_fpregset): Likewise.
1233
1234 2001-11-17 Daniel Jacobowitz <drow@mvista.com>
1235
1236 * Makefile.in: Add mips-linux-nat.c, mips-linux-tdep.c,
1237 and sparc-linux-nat.c to ALLDEPFILES. Add dependencies.
1238 * config/sparc/linux.mh: Add sparc-linux-nat.o to NATDEPFILES.
1239 * sparc-linux-nat.c: New file, from Mark Kettenis.
1240
1241 2001-11-16 Jakub Jelinek <jakub@redhat.com>
1242
1243 * dwarf2read.c (dwarf_str_buffer): New.
1244 (struct dwarf2_pinfo): Add dwarf_str_buffer and dwarf_str_size.
1245 (DWARF_STR_BUFFER, DWARF_STR_SIZE): Define.
1246 (dwarf2_has_info): Clear dwarf_str_offset.
1247 (dwarf2_build_psymtabs): Read .debug_str section if present.
1248 (dwarf2_build_psymtabs_hard): Save DWARF_STR_BUFFER and
1249 DWARF_STR_SIZE.
1250 (psymtab_to_symtab_1): Restore DWARF_STR_BUFFER and DWARF_STR_SIZE.
1251 (read_attribute): Handle DW_FORM_strp.
1252 (read_n_bytes, read_string): Remove HOST_CHAR_BIT != 8
1253 handling code.
1254 (read_indirect_string): New.
1255 (dump_die): Handle DW_FORM_strp.
1256
1257 2001-11-16 Jim Blandy <jimb@redhat.com>
1258
1259 * s390-tdep.c: Tweak argument-passing to match GCC bugs.
1260 (is_float_singleton, is_struct_like, is_float_like): New
1261 functions, that isolate the weirdness.
1262 (is_double_or_float, is_simple_arg, pass_by_copy_ref,
1263 is_double_arg): Use is_struct_like and is_float_like, rather than
1264 testing the type codes ourselves.
1265 (s390_push_arguments): When passing args on the stack, align each
1266 on to a four-byte boundary, regardless of what the type itself
1267 needs.
1268
1269 2001-11-16 Ben Harris <bjh21@netbsd.org>
1270
1271 * Makefile.in (os9kread.o): Replace $< with autoconf-approved
1272 $(srcdir)/....
1273 (procfs.o): Ditto.
1274 (z8k-tdep.o): Ditto.
1275
1276 2001-11-16 Ben Harris <bjh21@netbsd.org>
1277
1278 * MAINTAINERS (write-after-approval): Add self.
1279
1280 2001-11-15 Jim Blandy <jimb@redhat.com>
1281
1282 * s390-tdep.c (is_simple_arg): Structs and unions exactly eight
1283 bytes long should be handled as DOUBLE_ARGs; don't recognize them
1284 as SIMPLE_ARGs.
1285
1286 2001-11-12 Andrew Cagney <ac131313@redhat.com>
1287
1288 * remote.c (struct packet_reg): Declare.
1289 (struct remote_state): Add fields sizeof_g_packet and g_packet.
1290 (init_remote_state): Initialize sizeof_g_packet and g_packet.
1291 (free_remote_state): Free g_packet.
1292 (packet_reg_from_pnum, packet_reg_by_regnum): New functions.
1293 (remote_wait): Use above instead of gdbarch methods
1294 REGISTER_RAW_SIZE and REGISTER_BYTES.
1295 (remote_async_wait): Ditto.
1296 (remote_fetch_registers, remote_store_registers): Ditto.
1297 (store_register_using_P): Ditto.
1298
1299 2001-11-15 Andrew Cagney <ac131313@redhat.com>
1300
1301 * remote.c (_initialize_remote): Don't multi-arch swap tty_input.
1302 Second attempt.
1303
1304 2001-11-15 Andrew Cagney <ac131313@redhat.com>
1305
1306 * utils.c (phex_nz): For default case, set str to phex_nz return
1307 value.
1308 (phex): Ditto.
1309
1310 2001-11-15 Andrew Cagney <ac131313@redhat.com>
1311
1312 * TODO (register_buffer): Delete.
1313 * regcache.c (register_buffer): Make static.
1314 (regcache_collect): New function.
1315 * regcache.h (register_buffer): Delete declaration.
1316 (regcache_collect): Declare.
1317 * remote.c (store_register_using_P): Rewrite using
1318 regcache_collect.
1319 (remote_store_registers): Ditto.
1320 * go32-nat.c (store_register): Ditto.
1321
1322 2001-11-14 Andrew Cagney <ac131313@redhat.com>
1323
1324 * remote.c (struct remote_state): Declare.
1325 (get_remote_state): New function.
1326 (init_remote_state): New function.
1327 (remote_gdbarch_data_handle): New global.
1328 (build_remote_packet_sizes): Delete function, moved to
1329 init_remote_state.
1330 (register_remote_packet_sizes): Delete function.
1331 (actual_register_packet_size, remote_packet_size): Moved to
1332 ``struct remote_state''.
1333 (PBUFSIZE): Delete. Replaced by rs->remote_packet_size.
1334 (free_remote_state): New function.
1335 (get_memory_packet_size, get_memory_read_packet_size)
1336 (set_thread, remote_unpack_thread_info_response)
1337 (remote_get_threadinfo, parse_threadlist_response)
1338 (remote_get_threadlist, remote_current_thread)
1339 (remote_threads_info, remote_threads_extra_info)
1340 (extended_remote_restart, get_offsets)
1341 (get_offsets, remote_check_symbols, remote_open_1)
1342 (remote_async_open_1, remote_detach, remote_async_detach)
1343 (remote_resume, remote_async_resume, remote_wait)
1344 (remote_async_wait, remote_fetch_registers)
1345 (store_register_using_P, remote_store_registers)
1346 (check_binary_download, putpkt_binary)
1347 (remote_insert_breakpoint, remote_remove_breakpoint)
1348 (remote_insert_watchpoint, remote_remove_watchpoint)
1349 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
1350 (compare_sections_command, remote_query)
1351 (remote_rcmd, remote_rcmd, packet_command)
1352 (remote_info_process): Update.
1353
1354 2001-11-14 Andrew Cagney <ac131313@redhat.com>
1355
1356 * remote.c: Include "gdb_assert.h".
1357 (tty_input): Wire buffer to 400 bytes.
1358 (readsocket): Check tty_input doesn't overflow.
1359 (build_remote_gdbarch_data, _initialize_remote): Don't multi-arch
1360 tty_input.
1361
1362 2001-11-14 Michael Snyder <msnyder@redhat.com>
1363
1364 * d10v-tdep.c (d10v_pointer_to_address): Use new type flag
1365 TYPE_FLAG_CODE_SPACE to recognize a pointer that has been cast
1366 into the instruction address space.
1367 * Makefile.in (doublest.o): Add dependency on gdbtypes.h.
1368
1369 2001-11-14 Michael Snyder <msnyder@redhat.com>
1370 Add address space identifiers to expression language for types.
1371 * c-exp.y (space_identifier, cv_with_space_id,
1372 const_or_volatile_or_space_identifier_noopt,
1373 const_or_volatile_or_space_identifier): New terminals.
1374 (ptype): Accept const_or_volatile_or_space_identifier.
1375 (typebase): Accept const_or_volatile_or_space_identifier.
1376 * c-typeprint.c (c_type_print_cv_qualifier): Rename to
1377 c_type_print_modifier. Handle address space modified types.
1378 * gdbtypes.h (TYPE_FLAG_CODE_SPACE, TYPE_FLAG_DATA_SPACE):
1379 New type flags.
1380 (struct type): Add new field as_type for addr-space qualified types.
1381 (TYPE_AS_TYPE): New macro, retrieves the chain of types that are
1382 identical to this one except for address-space qualification.
1383 * gdbtypes.c (alloc_type): Initialize new field 'as_type'.
1384 (address_space_name_to_int): New function.
1385 (address_space_int_to_name): New function.
1386 (make_type_with_address_space): New function.
1387 (make_cv_type): Handle as_type field of new struct type object.
1388 * parse.c (check_type_stack_depth): New function.
1389 (push_type_address_space): New function.
1390 (follow_types): Handle types with address-space qualifier.
1391 * parser-defs.h (enum type_pieces): Add enum tp_space_identifier.
1392
1393 2001-11-14 Jim Blandy <jimb@redhat.com>
1394
1395 * s390-tdep.c (s390_pop_frame_regular): On the S/390, the frame
1396 pointer and the SP are often the same, so we can't pop the frame
1397 by setting the SP to the FP; we need to get the old SP from
1398 saved_regs.
1399
1400 * s390-tdep.c (s390_extract_return_value): Returned `float' values
1401 can simply be copied bitwise from the registers into the value
1402 object's buffer.
1403
1404 * s390-tdep.c (s390_get_frame_info): Initialize SP's element of
1405 the frame's saved_regs array correctly.
1406
1407 * symfile.c (simple_read_overlay_table): Make sure we can find
1408 both `_novlys' and `_ovly_table' before we try anything else;
1409 print a helpful error message.
1410 (simple_overlay_update): No need to print error message here.
1411
1412 2001-11-14 Michael Snyder <msnyder@redhat.com>
1413
1414 * Makefile.in (doublest.o): Add dependency on gdbtypes.h.
1415
1416 2001-11-10 Andrew Cagney <ac131313@redhat.com>
1417
1418 * arm-tdep.c (arm_register_type): New function.
1419 (arm_register_convertible): Delete.
1420 (arm_register_convert_to_virtual): Delete.
1421 (arm_register_convert_to_raw): Delete.
1422 * config/arm/tm-arm.h (REGISTER_CONVERTIBLE): Delete.
1423 (REGISTER_CONVERT_TO_VIRTUAL): Delete.
1424 (REGISTER_CONVERT_TO_RAW): Delete.
1425 (REGISTER_VIRTUAL_TYPE): Redefine as call to arm_register_type.
1426 (arm_register_type): Declare.
1427
1428 2001-11-13 Elena Zannoni <ezannoni@redhat.com>
1429
1430 From Andrew Cagney <cagney@redhat.com>:
1431 * gdbtypes.h (builtin_type_int128, builtin_type_uint128): Declare.
1432 * gdbtypes.c (_initialize_gdbtypes, build_gdbtypes): Initialize
1433 new builtin types.
1434
1435 2001-11-13 Jim Blandy <jimb@redhat.com>
1436
1437 * s390-tdep.c: Rewrite inferior function call code. This may
1438 break zSeries support; that should be fixed soon.
1439 #include "gdb_assert.h".
1440 (is_integer_like, is_pointer_like, is_simple_arg,
1441 pass_by_copy_ref, extend_simple_arg, is_double_arg, round_up,
1442 round_down, alignment_of): New functions.
1443 (s390_push_arguments): Rewritten to handle passing large arguments
1444 by value, and to make more readable.
1445
1446 * s390-tdep.c (s390_pop_frame): Call generic_pop_current_frame, to
1447 interact correctly with generic dummy frames.
1448 (s390_pop_frame_regular): Move the guts of the frame-popping code
1449 to here, to be called by generic_pop_current_frame. Use the
1450 frame's saved_regs array; this works for `return' as well as
1451 inferior function calls.
1452
1453 * s390-tdep.c (s390_gdbarch_init): Register the function
1454 `standard_coerce_float_to_double', since GCC for the S/390 follows
1455 the standard rules for passing floats.
1456
1457 * valops.c (default_coerce_float_to_double,
1458 standard_coerce_float_to_double): Doc fixes.
1459
1460 Patch from Peter Schauer:
1461
1462 * symtab.c (find_pc_sect_line): If we can't find the function
1463 containing PC, we certainly won't have line number information for
1464 that location, so return zero immediately.
1465
1466 2001-11-10 Andrew Cagney <ac131313@redhat.com>
1467
1468 * config/i960/tm-nindy960.h (REGISTER_CONVERTIBLE)
1469 (REGISTER_CONVERT_TO_RAW, REGISTER_CONVERT_TO_VIRTUAL): Delete
1470 undef.
1471 * i960-tdep.c (i960_register_type): New function.
1472 * config/i960/tm-i960.h (REGISTER_CONVERTIBLE): Delete.
1473 (REGISTER_CONVERT_TO_VIRTUAL): Delete.
1474 (REGISTER_CONVERT_TO_RAW): Delete.
1475 (REGISTER_VIRTUAL_TYPE): Update. Call i960_register_type.
1476
1477 2001-11-10 Andrew Cagney <ac131313@redhat.com>
1478
1479 * m88k-tdep.c (m88k_register_type): New function.
1480 * config/m88k/tm-m88k.h (REGISTER_CONVERTIBLE): Delete.
1481 (REGISTER_CONVERT_TO_VIRTUAL): Delete.
1482 (REGISTER_CONVERT_TO_RAW): Delete.
1483 (m88k_register_type): Declare.
1484 (REGISTER_VIRTUAL_TYPE): Update. Call m88k_register_type.
1485
1486 2001-11-11 Mark Kettenis <kettenis@elgar.my.domain>
1487
1488 * i386-tdep.h (FPU_REG_RAW_SIZE): Define unconditionally.
1489 * i387-nat.c, i387-tdep.c: Unconditionally include "i386-tdep.h".
1490 * config/i386/tm-i386.h (FPU_REG_RAW_SIZE): Removed.
1491 (SIZEOF_FPU_REGS): Don't use FPU_REG_RAW_SIZE here.
1492
1493 2001-11-12 Jim Blandy <jimb@redhat.com>
1494
1495 Patch from Andreas Schwab <schwab@suse.de>:
1496 * eval.c (evaluate_subexp_standard): Fix memory leak: use alloca
1497 instead of xmalloc.
1498
1499 2001-11-12 Jim Blandy <jimb@redhat.com>
1500
1501 * corefile.c (write_memory_unsigned_integer,
1502 write_memory_signed_integer): New functions.
1503 (write_memory): Move to be with other write_memory_* functions.
1504 * gdbcore.h (write_memory_unsigned_integer,
1505 write_memory_signed_integer): New declarations.
1506
1507 2001-11-11 Geoffrey Keating <geoffk@redhat.com>
1508
1509 * dwarf2read.c (dwarf_decode_lines): Properly deal with
1510 unknown standard opcodes.
1511
1512 2001-11-11 Andrew Cagney <ac131313@redhat.com>
1513
1514 * README (alpha-dec-osf5.1): Mention -DUSE_LDR_ROUTINES.
1515 (sparcv9-sun-solars2.8): Mention problem with 64 bit GCC 3.0.x.
1516 (i586-sco-sysv5uw7.1.1): Mention problem with threads.
1517
1518 2001-11-11 Andrew Cagney <ac131313@redhat.com>
1519
1520 From Mark Kettenis <kettenis@gnu.org>:
1521 * breakpoint.c (breakpoint_re_set_one): Don't discard SHLIB
1522 breakpoints when they fail.
1523
1524 2001-11-10 Andrew Cagney <ac131313@redhat.com>
1525
1526 * printcmd.c, valprint.c, language.c, linespec.c, infcmd.c,
1527 gnu-nat.c, findvar.c, expprint.c, typeprint.c, stack.c, top.c:
1528 Replace value_ptr with struct value.
1529
1530 2001-11-10 Andrew Cagney <ac131313@redhat.com>
1531
1532 * c-valprint.c, ch-lang.c, ch-valprint.c, cp-valprint.c,
1533 p-valprint.c, scm-exp.c, scm-lang.c, scm-valprint.c: Replace
1534 value_ptr with struct value.
1535
1536 2001-11-10 Andrew Cagney <ac131313@redhat.com>
1537
1538 * eval.c: Replace most occurances of value_ptr with struct value.
1539
1540 2001-11-09 Jim Blandy <jimb@redhat.com>
1541
1542 * s390-tdep.c: Don't use a call dummy.
1543 (s390_fix_call_dummy, s390_pc_in_call_dummy): Delete.
1544 (s390_push_return_address): Put the address of the inferior call
1545 breakpoint in r14.
1546 (s390_gdbarch_init):
1547 - Provide trivial definition of s390_call_dummy_words; register it
1548 with the gdbarch appropriately.
1549 - Delete S390x_call_dummy_words.
1550 - Gather inferior-call-related settings into a group.
1551 - Use generic dummy frames.
1552 - Put the inferior call breakpoint at the entry point.
1553 - Use generic gdbarch methods: pc_in_call_dummy_at_entry_point,
1554 generic_push_dummy_frame, generic_fix_call_dummy.
1555 - There is a call dummy breakpoint offset; it's zero.
1556
1557 * s390-tdep.c: (s390_push_arguments): Write a back chain pointer
1558 into the dummy frame, to help us get backtraces.
1559
1560 * values.c (value_as_address): If VAL is a function or method,
1561 just return its address; don't let COERCE_ARRAY convert its
1562 address to a pointer, and then have unpack_long convert it back to
1563 an address.
1564
1565 2001-11-06 Pierre Muller <muller@ics.u-strasbg.fr>
1566
1567 * p-lang.c (is_pascal_string_type): New function to determine if a
1568 type is a string type.
1569 * p-lang.h: Add prototype for is_pascal_string_type.
1570 * p-valprint.c (pascal_val_print) : Use is_pascal_string_type function
1571 to display strings nicely.
1572
1573 2001-11-06 Pierre Muller <muller@ics.u-strasbg.fr>
1574
1575 * p-exp.y (yylex): Only change case of expression if symbol is found.
1576 Also check for GPC standard name form.
1577
1578 2001-11-08 Andrew Cagney <ac131313@redhat.com>
1579
1580 * gdb_indent.sh: New file.
1581
1582 2001-11-08 Jim Blandy <jimb@redhat.com>
1583
1584 * s390-tdep.c (s390_get_frame_info): Initialize got_load_addr and
1585 got_load_len, to placate compiler.
1586
1587 2001-11-08 Mark Kettenis <kettenis@gnu.org>
1588
1589 * i386-tdep.c (i386_gdbarch_init): Fix typo.
1590
1591 2001-11-08 Jim Blandy <jimb@redhat.com>
1592
1593 * s390-tdep.c (s390_gdbarch_init): Use func_frame_chain_valid, not
1594 file_frame_chain_valid.
1595
1596 * s390-tdep.c (s390_get_frame_info): If the prologue loads r12
1597 from the constant pool, but doesn't add in the constant pool's
1598 address to it, then this function probably isn't using r12 as a
1599 GOT pointer, and that load probably wasn't part of the prologue.
1600
1601 * s390-tdep.c (s390_gdbarch_init): Use the default
1602 prepare_to_proceed function established by config/nm-linux.h;
1603 don't try to set it to linuxthreads_prepare_to_proceed.
1604
1605 Wed Nov 7 20:38:14 2001 Andrew Cagney <cagney@redhat.com>
1606
1607 * i386-tdep.c: Include "i386-tdep.h".
1608 (XMALLOC): Define.
1609 (i386_gdbarch_init): New function.
1610 (_initialize_i386_tdep): Register bfd_arch_i386.
1611 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Define as
1612 GDB_MULTI_ARCH_PARTIAL.
1613 * i386-tdep.h: When partially multi-arch, conditionally define
1614 all macros.
1615
1616 Wed Nov 7 20:45:32 2001 Andrew Cagney <cagney@redhat.com>
1617
1618 * i386-tdep.c (set_disassembly_flavor): Delete function.
1619 (set_disassembly_flavor_sfunc): Delete function.
1620
1621 2001-11-07 Elena Zannoni <ezannoni@redhat.com>
1622
1623 * dbxread.c (set_namestring): New function, replacing the
1624 SET_NAMESTRING macro.
1625 (SET_NAMESTRING, CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE,
1626 CUR_SYMBOL_STRX, DBXREAD_ONLY, START_PSYMTAB, END_PSYMTAB): Delete
1627 definitions.
1628 (read_dbx_symtab): Don't include partial-stab.h any more. Don't
1629 reuse code in partial-stab.h, include the code directly, instead.
1630
1631 * Makefile.in (dbxread.o): Remove dependency on partial-stab.h.
1632 (HFILES_NO_SRCDIR): Remove partial-stab.h.
1633
1634 * partial-stab.h: Remove file.
1635
1636 2001-11-07 Andrew Cagney <ac131313@redhat.com>
1637
1638 * gdbarch.sh: For multi-arch functions, check there is a
1639 predefault and use it as the static default.
1640 * gdbarch.c: Re-generate.
1641
1642 2001-11-08 Mark Kettenis <kettenis@gnu.org>
1643
1644 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Define in
1645 terms of NUM_GREGS, NUM_FREGS and NUM_SSE_REGS instead of
1646 hardcoding the register number.
1647
1648 2001-11-07 Andrew Cagney <ac131313@redhat.com>
1649
1650 * gdbarch.sh (USE_STRUCT_CONVENTION): Default to
1651 generic_use_struct_convention.
1652 * gdbarch.h, gdbarch.c: Regenerate.
1653 * values.c (USE_STRUCT_CONVENTION): Delete definition, moved to
1654 gdbarch.h.
1655
1656 2001-11-06 Andrew Cagney <ac131313@redhat.com>
1657
1658 * gdbarch.sh (PC_IN_CALL_DUMMY): Require a value.
1659 * gdbarch.c: Regenerate.
1660
1661 2001-11-06 Fred Fish <fnf@redhat.com>
1662
1663 * complaints.c (info_verbose): Remove unneeded decl, is in defs.h.
1664 * dbxread.c: Ditto
1665 * dwarf2read.c: Ditto.
1666 * dwarfread.c: Ditto.
1667 * exec.c: Ditto.
1668 * hpread.c: Ditto.
1669 * hpread.h: Ditto.
1670 * mdebugread.c: Ditto.
1671 * os9kread.c: Ditto.
1672 * stack.c: Ditto.
1673 * symfile.c: Ditto.
1674 * tracepoint.c: Ditto.
1675
1676 2001-11-06 Andrew Cagney <ac131313@redhat.com>
1677
1678 * MAINTAINERS: Update Andrew Cagney's responsibilities. Mention
1679 David Taylor and Nick Duffek in past maintainers.
1680
1681 2001-11-06 Elena Zannoni <ezannoni@redhat.com>
1682
1683 * mdebugread.c (CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB,
1684 END_PSYMTAB, SET_NAMESTRING, HANDLE_RBRAC): Delete definitions.
1685 (parse_partial_symbols): Don't include partial-stab.h any
1686 more. Don't reuse code in partial-stab.h, include the code
1687 directly, instead. Simplify code from partial-stab.h eliminating
1688 ifdef DBXREAD_ONLY code.
1689
1690 * Makefile.in (mdebugread.o): Remove dependency on partial-stab.h.
1691
1692 2001-11-06 Jim Blandy <jimb@redhat.com>
1693
1694 * s390-nat.c: #include "regcache.h", to get declaration for
1695 `supply_register'. (The last change already added the dependency
1696 of s390-nat.o on regcache.h. Oops.)
1697
1698 * Makefile.in (ALLDEPFILES): Add s390-tdep.c and s390-nat.c.
1699 (s390-tdep.o, s390-nat.o): New rules.
1700
1701 * s390-nat.c (s390_register_u_addr): Pass proper arguments to
1702 internal_error.
1703
1704 2001-11-06 Andrew Cagney <ac131313@redhat.com>
1705
1706 * gdbarch.sh (CALL_DUMMY_LOCATION): Require a value.
1707 * gdbarch.c: Regenerate.
1708
1709 2001-11-06 Andrew Cagney <ac131313@redhat.com>
1710
1711 * blockframe.c (get_prev_frame): Replace #ifdef
1712 INIT_EXTRA_FRAME_INFO with run-time test.
1713
1714 2001-11-05 Andrew Cagney <ac131313@redhat.com>
1715
1716 * gdbarch.sh (push_return_address): Change to a function with
1717 predicate.
1718 * gdbarch.h, gdbarch.c: Re-generate.
1719 * valops.c (hand_function_call): Replace #ifdef
1720 PUSH_RETURN_ADDRESS with run-time test of PUSH_RETURN_ADDRESS_P.
1721
1722 2001-11-06 Corinna Vinschen <vinschen@redhat.com>
1723
1724 * arch-utils.c (generic_in_function_epilogue_p): New function.
1725 * arch-utils.h (generic_in_function_epilogue_p): Declare extern.
1726 * breakpoint.c (watchpoint_check): Add test whether the pc is
1727 currently in the epilogue of a function.
1728 * gdbarch.c: Autogenerated from gdbarch.sh.
1729 * gdbarch.h: Ditto.
1730 * gdbarch.sh (function_list): Add `in_function_epilogue_p' definition.
1731
1732 2001-11-05 Jim Blandy <jimb@redhat.com>
1733
1734 * config/s390/s390.mh (NATDEPFILES): Don't split this across
1735 several lines with backslashes; the `sed' command in
1736 configure.in's AC_OUTPUT clause that comments out the NATDEPFILES
1737 assignment doesn't handle lines extended with backslashes.
1738
1739 * configure.in (AC_OUTPUT): Handle assignments to NATDEPFILES
1740 using `+=' as well as `='.
1741 * configure: Regenerated.
1742
1743 2001-11-05 Andrew Cagney <ac131313@redhat.com>
1744
1745 * gdbarch.sh (init_extra_frame_info): Change to a function with
1746 predicate.
1747 * gdbarch.h, gdbarch.c: Re-generate.
1748 * blockframe.c (create_new_frame): Replace #ifdef
1749 INIT_EXTRA_FRAME_INFO with run-time test of
1750 INIT_EXTRA_FRAME_INFO_P.
1751
1752 2001-11-05 Andrew Cagney <ac131313@redhat.com>
1753
1754 * gdbarch.sh (verify_gdbarch): Use a mem_file to accumulate all
1755 error messages. Print in a single batch.
1756 * gdbarch.c: Re-generate.
1757
1758 2001-11-04 Mark Kettenis <kettenis@gnu.org>
1759
1760 * i386-linux-nat.c (GETREGS_SUPPLIES, supply_gregset,
1761 fill_gregset): Add support for "orig_eax" register.
1762
1763 Add support for "orig_eax" pseudo register on Linux/x86.
1764 * i386-linux-tdep.c: Include "inferior.h".
1765 (i386_linux_register_name, i386_linux_register_byte,
1766 i386_linux_register_raw_size): New functions.
1767 (i386_linux_write_pc): New function.
1768 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): New define.
1769 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
1770 REGISTER_BYTE, REGISTER_RAW_SIZE): Define to deal with additional
1771 register.
1772 (i386_linux_register_name, i386_linux_register_byte,
1773 i386_linux_register_raw_size): New prototypes.
1774 (TARGET_WRITE_PC): New define.
1775 (i386_linux_write_pc): New prototype.
1776
1777 * i386-tdep.c (i386_register_offset): Renamed from
1778 i386_register_byte. Made static.
1779 (i386_register_size): Renamed from i386_register_raw_size. Made
1780 static.
1781 (i386_register_virtual_size): Removed.
1782 (i386_register_byte, i386_register_raw_size,
1783 i386_register_virtual_size): New functions.
1784 (_initialize_i386_tdep): Initialize i386_register_offset instead
1785 of i386_register_byte. Remove code to initialize
1786 i386_register_virtual_size.
1787 * config/i386/tm-i386.h (REGISTER_BYTE): Redefine to use
1788 i386_register_byte function.
1789 (REGISTER_RAW_SIZE): Redefine to use i386_register_raw_size
1790 function.
1791 (REGISTER_VIRTUAL_SIZE): Redefine to use
1792 i386_register_virtual_size function.
1793 (i386_register_byte, i386_register_raw_size,
1794 i386_register_virtual_size): New functions.
1795
1796 * Makefile.in (ALLDEPFILES): Add i387-nat.c.
1797 (i387-nat.o): Add dependencies.
1798
1799 2001-11-02 Andrew Cagney <ac131313@redhat.com>
1800
1801 * README: Mention problem with alpha-dec-osf5.1.
1802
1803 2001-11-02 Andrew Cagney <ac131313@redhat.com>
1804
1805 * utils.c (internal_verror): Restore calls to abort().
1806 Fix PR gdb/219.
1807
1808 2001-11-02 Michael Chastain <mec@shout.net>
1809
1810 * MAINTAINERS: Update my entry.
1811
1812 2001-11-01 Michael Snyder <msnyder@redhat.com>
1813
1814 * symtab.c (operator_chars): Allow '*' and '[' to be quoted in
1815 operator names, to avoid regexp expansion.
1816 (search_symbols): Alloca buffer is too small, may get clobbered.
1817
1818 2001-11-01 Fred Fish <fnf@redhat.com>
1819
1820 * coff-solib.c (coff_solib_add): Add new readsyms arg.
1821 * irix5-nat.c (solib_add): Ditto.
1822 * osfsolib.c (solib_add): Ditto.
1823 * pa64solib.c (pa64_solib_add): Ditto.
1824 * pa64solib.c (add_to_solist): Ditto.
1825 * pa64solib.c (read_dld_descriptor): Ditto.
1826 * solib.c (solib_add): Ditto.
1827 * somsolib.c (som_solib_add): Ditto.
1828 * win32-nat.c (child_solib_add): Ditto.
1829 * xcoffsolib.c (solib_add): Ditto.
1830
1831 * coff-solib.h (coff_solib_add): Add new readsyms arg to prototype.
1832 * pa64solib.c (add_to_solist): Ditto.
1833 * pa64solib.c (read_dld_descriptor): Ditto.
1834 * pa64solib.h (pa64_solib_add): Ditto.
1835 * solib.h (solib_add): Ditto.
1836 * somsolib.h (som_solib_add): Ditto.
1837 * config/i386/tm-cygwin.h (child_solib_add): Ditto.
1838
1839 * coff-solib.c (coff_solib_add): If readsyms is zero don't read
1840 symbols but do any other needed work for shared libs.
1841 * irix5-nat.c: Ditto.
1842 * osfsolib.c (solib_add): Ditto.
1843 * solib.c (solib_add): Ditto.
1844 * win32-nat.c (child_solib_add): Ditto.
1845 * xcoffsolib.c (solib_add): Ditto.
1846
1847 * irix5-nat.c (sharedlibrary_command): Pass 1 as readsyms to
1848 solib_add to force reading of shared library symbols.
1849 * osfsolib.c (sharedlibrary_command;): Ditto.
1850 * pa64solib.c (pa64_solib_sharedlibrary_command): Ditto.
1851 * solib.c (sharedlibrary_command): Ditto.
1852 * somsolib.c (som_solib_sharedlibrary_command): Ditto.
1853 * xcoffsolib.c (sharedlibrary_command): Ditto.
1854
1855 * coff-solib.c (coff_solib_create_inferior_hook): Call solib_add
1856 unconditionally with auto_solib_add.
1857 * irix5-nat.c (solib_create_inferior_hook): Ditto.
1858 * osfsolib.c (solib_create_inferior_hook): Ditto.
1859 * solib.c (solib_create_inferior_hook): Ditto.
1860 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
1861 * solib-svr4.c (enable_break): Ditto.
1862 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
1863
1864 * corelow.c (solib_add_stub): Add auto_solib_add to args passed
1865 via SOLIB_ADD.
1866 * sol-thread.c (sol_thread_attach): Ditto.
1867 * config/rs6000/nm-rs6000.h (SOLIB_ADD): Ditto.
1868
1869 * infcmd.c (attach_command): Remove auto_solib_add decl.
1870 Call SOLIB_ADD directly with auto_solib_add.
1871 * infrun.c (handle_inferior_event): Ditto.
1872
1873 * coff-solib.h (SOLIB_ADD): Add readsyms arg.
1874 * pa64solib.h (SOLIB_ADD): Ditto.
1875 * solib.h (SOLIB_ADD): Ditto.
1876 * somsolib.h (SOLIB_ADD): Ditto.
1877 * config/i386/tm-cygwin.h (SOLIB_ADD): Ditto.
1878
1879 * fork-child.c (clone_and_follow_inferior): Remove unused
1880 auto_solib_add decl.
1881
1882 * pa64solib.c (pa64_solib_add): Call add_to_solist with readsyms.
1883 (read_dld_descriptor): Ditto.
1884 (pa64_solib_add): Call read_dld_descriptor with readsyms.
1885 (pa64_solib_in_dynamic_linker): Ditto.
1886
1887 * corelow.c (symfile.h): Need this for auto_solib_add declaration.
1888 * sol-thread.c (symfile.h): Ditto.
1889
1890 2001-10-31 Andrew Cagney <ac131313@redhat.com>
1891
1892 * s390-nat.c (s390_remove_watchpoint): Use xfree.
1893 (s390_insert_watchpoint): Use xmalloc.
1894
1895 2001-10-31 Andrew Cagney <ac131313@redhat.com>
1896
1897 * varobj.c: Replace value_ptr with ``struct value *''.
1898
1899 2001-10-31 Andrew Cagney <ac131313@redhat.com>
1900
1901 * varobj.c: Re-indent.
1902
1903 2001-10-31 Andrew Cagney <ac131313@redhat.com>
1904
1905 * x86-64-tdep.c (value_push, x86_64_push_arguments): Replace
1906 ``value_ptr'' with ``struct value *''.
1907 * s390-tdep.c (s390_push_arguments): Ditto.
1908
1909 2001-10-30 Andrew Cagney <ac131313@redhat.com>
1910
1911 * ppc-tdep.h: Add #ifndef wrapper. Replace value_ptr with
1912 ``struct value *''.
1913 (struct frame_info, struct value): Add opaque declarations.
1914
1915 2001-10-31 Corinna Vinschen <vinschen@redhat.com>
1916
1917 * arch-utils.c (generic_in_solib_call_trampoline): New function.
1918 * arch-utils.h (generic_in_solib_call_trampoline): Extern declaration.
1919 * gdbarch.c: Regenerated from gdbarch.sh.
1920 * gdbarch.h: Ditto.
1921 * gdbarch.sh (function_list): Add `IN_SOLIB_CALL_TRAMPOLINE' definition.
1922 * infrun.c (IN_SOLIB_CALL_TRAMPOLINE): Remove macro.
1923
1924 2001-10-31 Andrew Cagney <ac131313@redhat.com>
1925
1926 From DJ Barrow.
1927 * s390-tdep.c: (s390_gdbarch_init): Don't initialize
1928 find_solib_trampoline_target.
1929
1930 2001-10-31 Andrew Cagney <ac131313@redhat.com>
1931
1932 * remote-vx.c (net_wait): Fix typo from PIDGET change.
1933
1934 2001-10-31 Mark Kettenis <kettenis@gnu.org>
1935
1936 * config/i386/tm-i386.h (REGISTER_NAMES): Remove.
1937 (REGISTER_NAME): New define.
1938 (i386_register_name): New prototype.
1939 * i386-tdep.c (i386_register_names): New variable.
1940 (i386_register_name): New function.
1941 * config/i386/tm-i386os9k.h, config/i386/tm-ptx.h,
1942 config/i386/tm-symmetry.h: Undefine REGISTER_NAME instead of
1943 REGISTER_NAMES.
1944
1945 2001-10-31 Christopher Faylor <cgf@redhat.com>
1946
1947 * win32-nat.c (register_loaded_dll): Attempt to ensure that the case of
1948 the loaded DLL matches the on-disk case since the debugging API does
1949 not seem to ensure this. Calculate max name length here.
1950 (handle_load_dll): Move max name length calculation to
1951 register_loaded_dll.
1952
1953 2001-10-31 Daniel Jacobowitz <drow@mvista.com>
1954
1955 * arm-linux-nat.c: Include <asm/ptrace.h> explicitly.
1956
1957 2001-10-30 Keith Seitz <keiths@redhat.com>
1958
1959 * wrapper.h (gdb_value_struct_elt): New function.
1960 * wrapper.c (gdb_value_struct_elt): Ditto.
1961 (do_captured_value_struct_elt): Ditto.
1962
1963 2001-10-30 Andrew Cagney <ac131313@redhat.com>
1964
1965 * README, NEWS: Update for 5.1.
1966
1967 2001-10-30 Andrew Cagney <ac131313@redhat.com>
1968
1969 * configure.in (WERROR_CFLAGS): Use AC_TRY_COMPILE to test the
1970 -W... flags.
1971 * configure: Re-generate.
1972
1973 2001-10-30 Fred Fish <fnf@redhat.com>
1974
1975 * somsolib.c (som_solib_add): A megabyte is 1024*1024 bytes.
1976 * pa64solib.c (add_to_solist): Ditto.
1977 * win32-nat.c (_initialize_inftarg): Remove unnecessary
1978 initialization of auto_solib_add, it defaults to 1.
1979
1980 2001-10-27 Fred Fish <fnf@redhat.com>
1981
1982 * symfile.c (auto_solib_add): Update comment to note that
1983 this variable is now just used as a boolean to control shlib
1984 autoloading, and clarify when it is used.
1985 * symfile.h (auto_solib_add): Ditto.
1986
1987 * symfile.c (auto_solib_limit): New variable that holds the
1988 autoloading threshold instead of overloading auto_solib_add.
1989 * symfile.h (auto_solib_limit): Ditto.
1990
1991 * irix5-nat.c (_initialize_solib): Change auto-solib-add
1992 variable from var_zinteger to var_boolean and update help.
1993 * osfsolib.c (_initialize_solib): Ditto.
1994 * pa64solib.c (_initialize_pa64_solib): Ditto.
1995 * solib.c (_initialize_solib): Ditto.
1996 * somsolib.c (_initialize_som_solib): Ditto.
1997 * xcoffsolib.c (_initialize_solib): Ditto.
1998
1999 * pa64solib.c (pa64_solib_total_st_size): Update comment to
2000 note that the new auto_solib_limit variable is used instead
2001 of overloading auto_solib_add variable.
2002 (_initialize_pa64_solib): Ditto.
2003 * somsolib.c (som_solib_total_st_size): Ditto.
2004 (_initialize_som_solib): Ditto.
2005
2006 * pa64solib.c (_initialize_pa64_solib): Add new set/show
2007 commands for auto-solib-limit variable.
2008 * somsolib.c (_initialize_som_solib): Ditto
2009
2010 * pa64solib.c (add_to_solist): Check that auto_solib_add is
2011 set and use auto_solib_limit as the threshold size instead
2012 of auto_solib_add.
2013 * somsolib.c (som_solib_add): Ditto, and also change warning
2014 text about size threshold exceeded.
2015
2016 2001-10-21 Mark Kettenis <kettenis@gnu.org>
2017
2018 * config/i386/tm-i386v.h: Don't include "regcache.h".
2019 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, FRAME_CHAIN,
2020 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_NUM_ARGS):
2021 Remove macros. The versions from "tm-i386.h" should work fine
2022 (and in most cases even better).
2023
2024 2001-10-30 Mark Kettenis <kettenis@gnu.org>
2025
2026 * i386-tdep.c (i386_extract_return_value): Use
2027 convert_typed_floating to extract floating-point value from
2028 register buffer.
2029 (i386_store_return_value): Use convert_typed_floating to store
2030 floating-point return balue in register buffer
2031 (i386_register_virtual_type): Change type of floating-point
2032 registers to builtin_type_i387_ext.
2033 (i386_register_convert_to_virtual): Use convert_typed_floating to
2034 do the conversion.
2035 (i386_register_convert_to_raw): Likewise.
2036
2037 2001-10-29 Mark Kettenis <kettenis@gnu.org>
2038
2039 * doublest.h (convert_typed_floating): New prototype.
2040 * doublest.c (convert_typed_floating): New function.
2041
2042 2001-10-28 Mark Kettenis <kettenis@gnu.org>
2043
2044 * doublest.c: Improve comments a bit.
2045 (floatformat_from_length): New function.
2046 (NAN): Define to 0.0 if not already defined.
2047 (extract_floating): Rewrite to use floatformat_from_length. Warn
2048 instead of error if LEN doesn't match a known floating-point type,
2049 and return NaN (or 0.0 if NaN isn't available) in that case.
2050 (store_floating): Likewise, but zero out the target byte-stream if
2051 LEN doesn't match a known floating-point type.
2052 (extract_typed_floating): Reformat a bit.
2053 (store_typed_floating): Reformat a bit. Add comment about zeroing
2054 out padding in the target buffer.
2055 * doublest.h (extract_floating, store_floating): Fix comment about
2056 deprecation of these functions. Add parameter names to prototypes.
2057
2058 2001-10-28 Mark Kettenis <kettenis@gnu.org>
2059
2060 * i387-tdep.c (print_i387_value): Use extract_typed_floating to
2061 convert RAW to a DOUBLEST instead of extract_floating.
2062
2063 * gdbtypes.c (_initialize_gdbtypes): Set floating-point type for
2064 builtin_type_i387_ext to floatformat_i387_ext.
2065
2066 2001-10-24 Daniel Jacobowitz <drow@mvista.com>
2067
2068 * arm-linux-nat.c (fill_gregset): Do not check register_valid[].
2069 (fill_fpregset): Likewise.
2070
2071 2001-10-26 Orjan Friberg <orjanf@axis.com>
2072
2073 * cris-tdep.c (constraint): Loop through the whole cris_spec_regs
2074 struct, not just the NUM_SPECREGS first entries.
2075 (bdap_prefix): Read PC before autoincrement.
2076
2077 2001-10-24 Corinna Vinschen <vinschen@redhat.com>
2078
2079 * win32-nat.c (DebugSetProcessKillOnExit): New static function
2080 pointer to Windows' DebugSetProcessKillOnExit() function.
2081 (DebugActiveProcessStop): Ditto for DebugActiveProcessStop().
2082 (has_detach_ability): New function.
2083 (child_attach): If system has detach ability, enable it.
2084 (child_detach): If system has detach ability, actually
2085 detach from process.
2086 Change tty output to Linux format.
2087
2088 2001-10-23 Jim Blandy <jimb@redhat.com>
2089
2090 Isolate STABS readers' use of the `textlow' and `texthigh' fields
2091 of `struct partial_symtab' to only a few locations. This change
2092 is not supposed to affect the way the values are computed, only
2093 where they live.
2094
2095 * dbxread.c (struct symloc): Add `textlow' and `texthigh' fields
2096 to the reader-specific structure.
2097 * mdebugread.c (struct symloc): Same.
2098 * dbxread.c (TEXTLOW, TEXTHIGH): New accessor macros.
2099 * mdebugread.c (TEXTLOW, TEXTHIGH): Same.
2100 * dbxread.c (dbx_symfile_read): After we've built all our partial
2101 symbol tables, set each partial symtab's `textlow' and `texthigh'
2102 fields from our reader-specific structure.
2103 * mdebugread.c (mdebug_build_psymtabs): Same.
2104 * dbxread.c (start_psymtab): Initialize the reader-specific
2105 structure's `textlow' and `texthigh' from the new psymtab's.
2106 * mdebugread.c (parse_partial_symbols, new_psymtab): Same.
2107 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab): Use
2108 the reader-specific `textlow' and `texthigh', not the generic
2109 psymtab fields.
2110 * mdebugread.c (parse_lines, parse_partial_symbols,
2111 psymtab_to_symtab_1): Same.
2112 * partial-stab.h: Same.
2113
2114 Tue Oct 23 18:59:42 2001 Andrew Cagney <cagney@redhat.com>
2115
2116 * hp-psymtab-read.c, hppah-nat.c, hppa-tdep.c: Fix -Wformat
2117 problems.
2118
2119 Tue Oct 23 14:16:10 2001 Andrew Cagney <cagney@redhat.com>
2120
2121 * somsolib.c (som_solib_add): Use core_addr_to_host_pointer.
2122 (som_solib_desire_dynamic_linker_symbols): Compare integers with
2123 zero not NULL.
2124 * hp-psymtab-read.c (hpread_call_pxdb): Make parameter constant.
2125
2126 2001-10-21 Andrew Cagney <ac131313@redhat.com>
2127
2128 * top.c (print_gdb_version): Do not print ``(MI_OUT)''. MI
2129 interface is always enabled.
2130
2131 2001-10-21 Andrew Cagney <ac131313@redhat.com>
2132
2133 * Makefile.in: Replace top.h with $(top_h). Replace expression.h
2134 with $(expression_h). Replace command.h with $(command_h).
2135 (language_h): Define. Replace language.h with $(language_h).
2136 Replace call-cmds.h with $(call_cmds_h). Replace varobj.h with
2137 $(varobj_h).
2138 (wrapper_h, valprint_h, objfiles_h, complaints_h): Ditto.
2139 (serial_h, hpread_h, buildsym_h, stabsread_h): Ditto.
2140 (xcoffsolib_h, gdb_stabs_h, linespec_h): Ditto.
2141 (bcache_h, gdb_events_h, monitor_h): Ditto.
2142 (ser_unix_h, source_h): Ditto.
2143 (varobj_h): Update list.
2144
2145 * call-cmds.h: Add CALL_CMDS_H macro wrapper.
2146 * solist.h: Add SOLIST_H macro wrapper.
2147 * monitor.h: Add MONITOR_H macro wrapper.
2148 * typeprint.h: Add TYPEPRINT_H macro wrapper.
2149 * xcoffsolib.h: Add XCOFFSOLIB_H macro wrapper.
2150 * valprint.h: Add VALPRINT_H macro wrapper.
2151 * top.h: Add TOP_H macro wrapper.
2152
2153 2001-10-21 Andrew Cagney <ac131313@redhat.com>
2154
2155 * config/a29k/tm-vx29k.h, i386-tdep.c: Include "value.h".
2156 * arm-tdep.c, exec.c, ia64-tdep.c, infrun.c: Ditto.
2157 * ppc-linux-tdep.c, remote-es.c, remote.c: Ditto.
2158 * rs6000-tdep.c, s390-tdep.c, x86-64-tdep.c: Ditto.
2159 * Makefile.in (arm-tdep.o, exec.o, i386-tdep.o, ia64-tdep.o)
2160 (infrun.o, ppc-linux-tdep.o, remote.o, rs6000-tdep.o)
2161 (x86-64-tdep.o): Update dependencies.
2162 * gdbarch.sh [!GDB_MULTI_ARCH]: Include "value.h".
2163 * gdbarch.h, gdbarch.c: Re-generate.
2164
2165 2001-10-21 Mark Kettenis <kettenis@gnu.org>
2166
2167 * infptrace.c (child_xfer_memory): Fix a few coding standards
2168 violations.
2169
2170 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
2171
2172 * config/djgpp/README: Fix a typo and tweak for GDB 5.1.
2173
2174 2001-10-20 Andrew Cagney <ac131313@redhat.com>
2175
2176 * jv-lang.h: Add #ifndef JV_LANG_H wrapper.
2177 (struct value): Add opaque declaration. Replace value_ptr with
2178 ``struct value *''.
2179 * jv-valprint.c, jv-lang.c: Replace value_ptr with equivalent
2180 struct.
2181
2182 * wrapper.h (struct value): Add opaque declaration. Replace
2183 value_ptr with ``struct value *''.
2184 * wrapper.c: Replace value_ptr with ``struct value *''.
2185 * breakpoint.h, breakpoint.c: Ditto.
2186 * cp-abi.h, hpacc-abi.c, gnu-v2-abi.c, cp-abi.c: Ditto.
2187
2188 2001-10-20 Andrew Cagney <ac131313@redhat.com>
2189
2190 * alpha-nat.c: Include <alpha/coreregs.h> instead of
2191 <machine/reg.h>.
2192 (fetch_osf_core_registers): Define core_reg_mapping in a way that
2193 works on OSF5 as well as previous OSF versions.
2194
2195 2001-10-20 Christopher Faylor <cgf@redhat.com>
2196
2197 * win32-nat.c (handle_load_dll): Avoid strlwr'ing loaded DLLs or cygwin
2198 may not be able to read them in certain situations.
2199
2200 2001-10-18 Andrew Cagney <ac131313@redhat.com>
2201
2202 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Define.
2203 * config/powerpc/linux.mt (SIM, SIM_OBS): Ditto
2204
2205 2001-10-18 Andrew Cagney <ac131313@redhat.com>
2206
2207 * README: Mention problems with HP/UX.
2208
2209 2001-10-16 Andrew Cagney <ac131313@redhat.com>
2210
2211 Based on code by John Moore <jmore@redhat.com>:
2212
2213 * utils.c (core_addr_to_string): New function for conversion of
2214 CORE_ADDR to string.
2215 (string_to_core_addr): New function to convert from string to
2216 CORE_ADDR.
2217 * defs.h: Added extern statements for the above.
2218
2219 2001-10-17 Jason Molenda (jason-cl@molenda.com)
2220
2221 * symtab.c (lookup_block_symbol): Break out of linear search
2222 if we're past the range of possible matches.
2223
2224 2001-10-16 Christopher Faylor <cgf@redhat.com>
2225
2226 * win32-nat.c (safe_symbol_file_add_stub): Improve logic for avoiding
2227 load of already loaded DLL.
2228 (register_loaded_dll): Convert loaded DLL name to "posix" format or it
2229 will confuse subsequent opening of the filename due to dos paths.
2230 (dll_symbol_command): Pass from_tty parameter to safe_symbol_file_add.
2231
2232 2001-10-15 Elena Zannoni <ezannoni@redhat.com>
2233
2234 * symtab.c (lookup_block_symbol): Update comment.
2235
2236 2001-10-15 Andrew Cagney <ac131313@redhat.com>
2237
2238 * value.h (value_as_address): Rename value_as_pointer.
2239 * eval.c, findvar.c, gnu-v2-abi.c, gnu-v3-abi.c, jv-lang.c,
2240 jv-valprint.c, printcmd.c, stack.c, top.c, valarith.c, valops.c,
2241 values.c: Update.
2242
2243 202001-10-15 Jim Ingham <jingham@inghji.apple.com>
2244
2245 * valarith.c (value_sub): Don't pass a raw type to
2246 value_from_pointer, it has to go through check_typedef first.
2247
2248 2001-10-15 Andrew Cagney <ac131313@redhat.com>
2249
2250 * gdbarch.sh (fallbackdefault): Set to one when predefault is
2251 empty.
2252 * gdbarch.h: Regenerate.
2253
2254 2001-10-15 Andrew Cagney <ac131313@redhat.com>
2255
2256 * mips-tdep.c (mips_integer_to_address): New function.
2257 (mips_gdbarch_init): Initialize pointer_to_address,
2258 address_to_pointer and integer_to_address.
2259
2260 * config/mips/tm-mips.h (POINTER_TO_ADDRESS): Delete
2261 (ADDRESS_TO_POINTER): Delete.
2262
2263 * d10v-tdep.c (d10v_integer_to_address): New function.
2264 (d10v_gdbarch_init): Initialize integer_to_address.
2265
2266 * values.c (value_as_pointer): Use INTEGER_TO_ADDRESS when
2267 available.
2268
2269 * gdbarch.sh (INTEGER_TO_ADDRESS): New predicate and function.
2270 * gdbarch.h, gdbarch.c: Regenerate.
2271
2272 2001-10-14 Mark Kettenis <kettenis@gnu.org>
2273
2274 * config/s390/nm-linux.h: Don't include <signal.h>.
2275 (lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
2276 GET_THREAD_SIGNAL): Remove.
2277
2278 * config/nm-linux.h (struct objfile): Remove forward declaration.
2279 (linuxthreads_new_objfile): Remove prototype.
2280 (linuxthreads_pid_to_str): Remove prototype.
2281 (PREPARE_TO_PROCEED): Redefine in terms of
2282 lin_lwp_prepare_to_proceed.
2283 (struct target_waitstatus): Forward declaration.
2284 (child_wait): New prototype.
2285 (CHILD_WAIT): Define.
2286 (lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
2287 GET_THREAD_SIGNAL): Moved here from arch-specific files.
2288 * config/alpha/nm-linux.h, config/arm/nm-linux.h,
2289 config/ia64/nm-linux.h, config/mips/nm-linux.h,
2290 config/powerpc/nm-linux.h: Don't include <signal.h>.
2291 (lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
2292 GET_THREAD_SIGNAL): Remove.
2293 * config/i386/nm-linux.h: Likewise.
2294 (struct target_waitstatus, child_wait, CHILD_WAIT): Remove.
2295 * config/m68k/linux.mh, config/sparc/linux.mh (NATDEPFILES):
2296 Remove linux-thread.o. Add proc-service.o, thread-db.o and
2297 lin-lwp.o.
2298 (LOADLIBES): New variable.
2299
2300 * sparc-nat.c (fetch_core_registers): Remove redundant prototype.
2301
2302 * proc-service.c (BUILD_LWP): Redefine in terms of ptid_build.
2303
2304 Fix attaching to cloned processes. This fixes PR gdb/61.
2305 * lin-lwp.c (struct lwp_info): Add new member `cloned'.
2306 (is_cloned) Removed.
2307 (lin_lwp_attach_lwp): Don't call stop_wait_callback. Instead call
2308 waitpid explicitly. Mark the LWP as cloned if waitpid fails and
2309 retry with __WCLONE flag.
2310 (lin_lwp_attach): Likewise. Warn if attaching to a cloned process.
2311 (detach_callback): Replace use of is_cloned with explicit check on
2312 LWP id and process id.
2313 (stop_wait_callback): Replace use of is_cloned with check if LWP
2314 is marked as cloned.
2315 [CHILD_WAIT] (child_wait): New function.
2316 (lin_lwp_wait): Replace use of is_cloned with check if LWP is
2317 marked as cloned. Mark newly detected LWPs as cloned if detected
2318 by waitpid with __WCLONE flag.
2319 (kill_wait_callback): Replace use of is_cloned with check if LWP
2320 is marked as cloned.
2321 * config/i386/nm-linux.h (struct target_waitstatus): Add forward
2322 declaration.
2323 (child_wait): Add prototype.
2324 (CHILD_WAIT): Define.
2325
2326 2001-10-13 Andrew Cagney <ac131313@redhat.com>
2327
2328 S/390 31 & 64 bit target and GNU/Linux native support.
2329 Contributed by D.J. Barrow <djbarrow@de.ibm.com> of IBM.
2330 * s390-nat.c, s390-tdep.c: New file.
2331 * config/s390/nm-linux.h, config/s390/s390.mh: New file.
2332 * config/s390/s390.mt, config/s390/s390x.mt: New file.
2333 * config/s390/tm-linux.h, config/s390/tm-s390.h: New file.
2334 * config/s390/xm-linux.h: New file.
2335 * NEWS: Update.
2336 * MAINTAINERS: Update.
2337
2338 2001-10-13 Andrew Cagney <ac131313@redhat.com>
2339
2340 From 2001-07-09 D.J. Barrow <djbarrow@de.ibm.com>:
2341 * gdbarch.sh: Fixed CALL_DUMMY_BREAKPOINT_OFFSET to check
2342 CALL_DUMMY_BREAKPOINT_OFFSET_P.
2343 * gdbarch.c: Regenerate.
2344
2345 2001-10-13 Mark Kettenis <kettenis@gnu.org>
2346
2347 * thread-db.c: Fix a few formatting mistakes.
2348
2349 2001-10-12 Christopher Faylor <cgf@redhat.com>
2350
2351 * win32-nat.c (safe_symbol_file_add_stub): Properly initialize linked
2352 list pointer to beginning rather than one beyond beginning.
2353
2354 2001-10-12 Daniel Jacobowitz <drow@mvista.com>
2355
2356 * symtab.h (struct block): (ALL_BLOCK_SYMBOLS): New macro.
2357
2358 * symtab.c (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2359 (make_symbol_completion_list): Likewise.
2360 (make_symbol_overload_list): Likewise.
2361 * buildsym.c (finish_block): Likewise.
2362 * breakpoint.c (get_catch_sals): Likewise.
2363 * mdebugread.c (mylookup_symbol): Likewise.
2364 * objfiles.c (objfile_relocate): Likewise.
2365 * printcmd.c (print_frame_args): Likewise.
2366 * stack.c (print_block_frame_locals): Likewise.
2367 (print_block_frame_labels): Likewise.
2368 (print_frame_arg_vars): Likewise.
2369 * symmisc.c (dump_symtab): Likewise.
2370 * tracepoint.c (add_local_symbols): Likewise.
2371 (scope_info): Likewise.
2372
2373 2001-10-12 Daniel Jacobowitz <drow@mvista.com>
2374
2375 * minsyms.c (msymbol_hash): Use better hash function.
2376 (msymbol_hash_iw): Likewise. Terminate loop at '(' properly.
2377
2378 * objfiles.h: Increase MINIMAL_SYMBOL_HASH_SIZE to match modern
2379 binaries.
2380
2381 2001-10-12 Daniel Jacobowitz <drow@mvista.com>
2382
2383 * printcmd.c (print_frame_args): Move symbol iteration explicitly
2384 inside the func != NULL block.
2385
2386 2001-10-12 Fernando Nasser <fnasser@redhat.com>
2387
2388 * MAINTAINERS (Misc): Add Ian Roxborough as tcl/, tk/ and itcl/
2389 maintainer.
2390
2391 2001-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
2392
2393 * config/i386/tm-cygwin.h: Include tm-i386.h instead of tm-i386v.h.
2394 This fixes errors in "long long" handling for 'finish' and 'return'
2395 commands.
2396
2397 2001-10-12 Christopher Faylor <cgf@redhat.com>
2398
2399 * win32-nat.c (safe_symbol_file_add_stub): Avoid adding a shared
2400 library if it has already been loaded.
2401 (safe_symbol_file_add_cleanup): Don't mess with stderr or we won't see
2402 any error messages.
2403 (safe_symbol_file_add): Ditto.
2404 (solib_symbols_add): Make static. Accept 'from_tty' parameter. Pass
2405 it to safe_symbol_file_add.
2406 (core_dll_symbols_add): Accomodate extra solib_symbols_add parameter.
2407 (child_solib_add): Ditto.
2408
2409 * win32-nat.c (handle_exception): Don't print "first chance"
2410 exceptions.
2411 (get_child_debug_event): Continue from exceptions if !handle_exception.
2412
2413 2001-10-11 Tom Tromey <tromey@redhat.com>
2414
2415 * symtab.c (lookup_symtab): Removed.
2416 (lookup_symtab_1): Renamed to lookup_symtab.
2417
2418 2001-10-10 Christopher Faylor <cgf@redhat.com>
2419
2420 * win32-nat.c (get_child_debug_event): Close file handles created after
2421 process creation and DLL load.
2422 (child_create_inferior): Close unneeded process/thread handle after
2423 thread creation.
2424
2425 2001-10-10 Jim Blandy <jimb@redhat.com>
2426
2427 * mn10300-tdep.c (mn10300_analyze_prologue): Doc fixes.
2428
2429 2001-10-10 Keith Seitz <keiths@redhat.com>
2430
2431 * varobj.c (cplus_value_of_child): Deal with a failure
2432 to dereference a pointer object.
2433
2434 2001-10-08 J. Brobecker <brobecker@gnat.com>
2435
2436 * hpux-thread.c: rewrite find_active_thread() and find_tcb()
2437 to use ptid_t, instead of overloading the thread and the pid
2438 into the same 32-bit value. Make associated necessary adaptations.
2439 Also remove unused variable cached_active_thread.
2440
2441 2001-10-08 Nicholas Duffek <nsd@redhat.com>
2442
2443 * MAINTAINERS (powerpc, SCO/Unixware, Solaris/x86): Remove my
2444 entries.
2445
2446 2001-10-06 Mark Kettenis <kettenis@beast.freebsd.org>
2447
2448 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Define.
2449
2450 2001-10-04 Tom Tromey <tromey@redhat.com>
2451
2452 * main.c (enable_external_editor): Don't declare.
2453 (captured_main): Don't set enable_external_editor.
2454
2455 2001-10-02 Kevin Buettner <kevinb@redhat.com>
2456
2457 * Makefile.in (ALLDEPFILES): Add solib-svr4.c and solib-sunos.c
2458 to this list.
2459 (solib-sunos.o): Add dependencies.
2460 (solib-svr4.o): Revise dependencies.
2461 * solib-svr4.c: Remove SunOS shared library support.
2462 * solib-sunos.c: New file, created from solib-svr4.c, which still
2463 contains SunOS shared library support, but no SVR4 support.
2464
2465 * config/i386/nbsd.mh (NATDEPFILES): Remove solib-svr4.o and
2466 solib-legacy.o from this list. Add solib-sunos.o.
2467 * config/i386/sun386.mt (TDEPFILES): Likewise.
2468 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
2469 * config/m68k/sun2os4.mt (TDEPFILES): Likewise.
2470 * config/m68k/sun3os4.mt (TDEPFILES): Likewise.
2471 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
2472 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
2473 * config/sparc/sun4os4.mt (TDEPFILES): Likewise.
2474
2475 2001-10-01 Elena Zannoni <ezannoni@redhat.com>
2476
2477 * Makefile.in (mipsread.o): Remove old dependency on partial-stab.h.
2478
2479 2001-10-01 Elena Zannoni <ezannoni@redhat.com>
2480
2481 * xcoffread.c (N_UNDF, N_ABS, N_TEXT, N_DATA, N_BSS, N_COMM, N_FN,
2482 N_EXT, N_INDR, N_SETA, N_SETT, N_SETD, N_SETB, N_SETV,
2483 CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB, END_PSYMTAB,
2484 SET_NAMESTRING): Delete definitions.
2485 Don't include language.h any more.
2486 Don't include partial-stab.h any more.
2487 (scan_xcoff_symtab): Don't jump through hoops to reuse code in
2488 partial-stab.h, include the code directly, instead.
2489
2490 * Makefile.in (xcoffread.o): Remove dependency on partial-stab.h.
2491
2492 2001-10-01 Andrew Cagney <ac131313@redhat.com>
2493
2494 * infcmd.c (do_registers_info): Delete code dumping large
2495 registers. Handled by val_print.
2496
2497 2001-09-30 Andrew Cagney <ac131313@redhat.com>
2498
2499 * gdbarch.sh (gdbarch_alloc): Name the new architecture
2500 ``current_gdbarch'' so that it, and not the identically named
2501 global is refered to by macros.
2502 * gdbarch.c: Regenerate.
2503
2504 2001-09-29 Andrew Cagney <ac131313@redhat.com>
2505
2506 * cli/cli-decode.c (add_set_boolean_cmd): Define.
2507 * cli/cli-decode.h (add_set_boolean_cmd): Declare.
2508 * command.h (add_set_boolean_cmd): Ditto.
2509 * remote.c (_initialize_remote): Use add_set_boolean_cmd for "set
2510 remotebreak"
2511
2512 2001-09-29 Andrew Cagney <ac131313@redhat.com>
2513
2514 * gdbarch.sh (gdbarch_dump): Sort output.
2515 * gdbarch.c: Regenerate.
2516
2517 2001-09-29 Andrew Cagney <ac131313@redhat.com>
2518
2519 * rs6000-tdep.c (rs6000_gdbarch_init): Don't use the previous
2520 architecture to infer the wordsize. Previous architecture may not
2521 be a PowerPC.
2522
2523 2001-09-27 J. Brobecker <brobecker@gnat.com>
2524
2525 * infttrace.c (kill_inferior): Issue a TT_PROC_EXIT request rather
2526 than a TT_PROC_STOP request to kill the inferior and its child
2527 processes. Otherwise, the inferior is not killed on HPUX 11.0.
2528 Removed the code that detaches the child processes since we just
2529 killed them.
2530
2531 2001-09-26 Andrew Cagney <ac131313@redhat.com>
2532
2533 * serial.c (serial_set_cmdlist, serial_show_cmdlist): New
2534 variables.
2535 (serial_set_cmd, serial_show_cmd): New functions.
2536 (_initialize_serial): Add "set/show serial" command.
2537
2538 2001-09-26 Andrew Cagney <ac131313@redhat.com>
2539
2540 * CONTRIBUTE: Update.
2541
2542 2001-09-26 Kevin Buettner <kevinb@redhat.com>
2543
2544 * solib-svr4.h (set_solib_svr4_fetch_link_map_offsets): Add
2545 argument ``gdbarch''.
2546 * solib-svr4.c (SVR4_FETCH_LINK_MAP_OFFSETS): Change default value.
2547 (default_svr4_fetch_link_map_offsets): Rename to
2548 legacy_fetch_link_map_offsets().
2549 (svr4_fetch_link_map_offsets): New function.
2550 (fetch_link_map_offsets, fetch_link_map_offsets_init): Deleted.
2551 (fetch_link_map_offsets_gdbarch_data): New static global.
2552 (set_solib_svr4_fetch_link_map_offsets): Add argument ``gdbarch''.
2553 Revise to invoke set_gdbarch_data().
2554 (init_fetch_link_map_offsets): Change return type and add an
2555 argument so that it may be used as a gdbarch_data initializer.
2556 (_initialize_svr4_solib): Eliminate use of gdbarch swap mechanism.
2557 Use gdbarch data mechanism instead.
2558
2559 2001-09-25 Jiri Smid <smid@suse.cz>
2560
2561 * x86-64-linux-tdep.c (LINUX_SIGINFO_SIZE): Add.
2562 (x86_64_linux_sigcontext_addr): Replace `sizeof (struct siginfo)'
2563 by LINUX_SIGINFO_SIZE.
2564
2565 2001-09-24 Andrew Cagney <ac131313@redhat.com>
2566
2567 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2568 variables.
2569 (maintenance_set_profile_cmd): New function.
2570 (maintenance_show_cmd, maintenance_set_cmd): New functions.
2571 (_initialize_maint_cmds): Add "maintenance set" and "maintenance
2572 show" and, commented out, "maintenance set/show profile" commands.
2573
2574 2001-09-24 Andrew Cagney <ac131313@redhat.com>
2575
2576 * findvar.c (read_var_value): For LOC_INDIRECT and LOC_REF_ARG
2577 convert the pointer into a CORE_ADDRs.
2578
2579 2001-09-24 Andrew Cagney <ac131313@redhat.com>
2580
2581 * doublest.h (store_floating, extract_floating): Add comment
2582 indicating these functions are deprecated.
2583 (extract_typed_floating, store_typed_floating): Declare.
2584 * doublest.c: Include "gdbtypes.h".
2585 (extract_typed_floating, store_typed_floating): Define.
2586
2587 * stabsread.c (define_symbol): Use store_typed_floating.
2588 * valarith.c (value_binop): Ditto.
2589 * values.c (unpack_long): Use extract_typed_floating.
2590 (unpack_double): Ditto.
2591
2592 2001-09-24 Orjan Friberg <orjanf@axis.com>
2593
2594 * cris-tdep.c (reg_mode_add_sub_cmp_and_or_move_op): Fetch operand1
2595 from correct register.
2596
2597 2001-09-22 Mark Kettenis <kettenis@gnu.org>
2598
2599 * x86-64-linux-tdep.c (STRUCT_OFFSET): Removed.
2600
2601 2001-09-21 Jiri Smid <smid@suse.cz>
2602
2603 * config/i386/x86-64linux.mh: New file.
2604 * config/i386/x86-64linux.mt: New file.
2605 * config/i386/nm-x86_64.h: New file.
2606 * x86-64-linux-tdep.c: New file.
2607 * x86-64-linux-nat.c: New file.
2608 * x86-64-tdep.c: New file.
2609 * x86-64-tdep.h: New file.
2610 * i386-tdep.h: New file.
2611 * i387-nat.c: Include i386-tdep.h when multiarch.
2612 * i387-tdep.c: Ditto.
2613 * config/djgpp/fnchange.lst: Add entries for x86_64-linux-tdep.c
2614 and x86_64-linux-nat.c
2615 * Makefile.in: Add x86_64-linux-tdep.o, x86_64-tdep.o,
2616 x86_64-linux-tdep.o, x86_64-nat.o, update dependencies.
2617
2618 2001-09-21 Jiri Smid <smid@suse.cz>
2619
2620 * MAINTAINERS: Add myself to the write-after-approval list.
2621 * i386-nat.c (TARGET_HAS_DR_LEN_8, DR_LEN_8): Declare.
2622 (i386_length_and_rw_bits, i386_handle_nonaligned_watchpoint,
2623 i386_insert_watchpoint, i386_remove_watchpoint): Add support for
2624 8-byte wide watchpoints.
2625 (i386_show_dr): Debug message format string change.
2626
2627 2001-09-21 Michael Snyder <msnyder@redhat.com>
2628
2629 * c-exp.y (typebase): Accept (signed long long) as a type expr.
2630
2631 2001-09-20 Michael Snyder <msnyder@redhat.com>
2632 Changes by Daniel Berlin <dan@cgsoftware.com>, to support
2633 better parsing of const and volatile type expressions.
2634 * c-exp.y (const_and_volatile, const_or_volatile_noopt,
2635 const_or_volatile): New non-terminals.
2636 (ptype): Use new rule for const_or_volatile.
2637 (typebase): Use new rule for const_or_volatile_noopt.
2638 * parser-defs.h (enum type_pieces): New values tp_const, tp_volatile.
2639 * parse.c (follow_types): Handle tp_const and tp_volatile on the
2640 type stack: call make_cv_type to create new const/volatile type.
2641
2642 2001-09-20 Kevin Buettner <kevinb@redhat.com>
2643
2644 * solib-svr4.c (fetch_link_map_offsets): Add comment.
2645 (fetch_link_map_offsets_init): New static global.
2646 (set_solib_svr4_fetch_link_map_offsets, init_fetch_link_map_offsets):
2647 Revise implementation to use ``fetch_link_map_offsets_init''
2648 instead of ``fetch_link_map_offsets''.
2649
2650 2001-09-20 Alan Modra <amodra@bigpond.net.au>
2651
2652 * coffread.c: Replace all occurrences of bfd_read with bfd_bread.
2653 * dbxread.c: Likewise.
2654 * dwarf2read.c: Likewise.
2655 * dwarfread.c: Likewise.
2656 * somread.c: Likewise.
2657 * ultra3-nat.c: Likewise.
2658 * xcoffread.c: Likewise.
2659
2660 2001-09-19 Andrew Cagney <ac131313@redhat.com>
2661
2662 * cris-tdep.c (cris_get_signed_offset): Change return type to an
2663 explicitly signed char.
2664
2665 * config/mcore/tm-mcore.h (mcore_virtual_frame_pointer): Update
2666 function signature to match recent tracepoint.c:encode_actions
2667 changes.
2668 * mcore-tdep.c (mcore_virtual_frame_pointer): Ditto.
2669
2670 2001-09-18 Andrew Cagney <ac131313@redhat.com>
2671
2672 * thread.c (do_captured_thread_select): Add uiout parameter.
2673 (do_captured_list_thread_ids): Ditto.
2674 * breakpoint.c (do_captured_breakpoint_query): Ditto.
2675
2676 * breakpoint.c (gdb_breakpoint_query): Update. Use
2677 catch_exceptions.
2678 * thread.c (gdb_list_thread_ids): Ditto.
2679 (gdb_thread_select): Ditto.
2680 (thread_command): Pass uiout to gdb_thread_select.
2681
2682 * gdb.h (gdb_breakpoint_query): Add parameter ui_out.
2683 (gdb_thread_select, gdb_list_thread_ids): Ditto.
2684
2685 2001-09-13 Kevin Buettner <kevinb@redhat.com>
2686
2687 From Ilya Golubev <gin@mo.msk.ru>:
2688 * solib.c (clear_solib): Call `remove_target_sections' to fix
2689 stale pointers in `struct target_ops'.
2690 * irix5-nat.c (clear_solib): Likewise.
2691 * osfsolib.c (clear_solib): Likewise.
2692
2693 2001-09-13 Jim Blandy <jimb@redhat.com>
2694
2695 * monitor.c (monitor_load): Don't delete symtab users, or reset
2696 inferior_ptid.
2697
2698 * monitor.c (monitor_load): Fix indentation.
2699
2700 2001-09-11 Jim Blandy <jimb@redhat.com>
2701
2702 * printcmd.c (print_scalar_formatted): Compare the length of the
2703 value against the lengths of the target's floating-point types,
2704 not the host's. Add support for `long double'.
2705
2706 * printcmd.c (print_scalar_formatted): Fix indentation.
2707
2708 2001-09-10 Jim Blandy <jimb@redhat.com>
2709
2710 * rom68k-rom.c (init_rom68k_cmds): Set the flag indicating that
2711 programs running on the board can produce output.
2712
2713 2001-09-10 Jason Molenda (jmolenda@apple.com)
2714
2715 * NEWS: "ANS/ISO C" -> "ISO C".
2716 * MAINTAINERS (write-after-approval): Update my entry.
2717
2718 2001-09-08 Mark Kettenis <kettenis@gnu.org>
2719
2720 * config/xm-aix4.h (MEM_FNS_DECLARED): Removed.
2721
2722 * config/arm/xm-linux.h, config/ia64/xm-linux.h,
2723 config/m68k/xm-linux.h, config/mips/xm-linux.h,
2724 config/powerpc/xm-linux.h, config/sparc/xm-linux.h: Remove
2725 redundant inclusion of <unistd.h>.
2726
2727 * gdbtypes.h (struct block): Add forward declaration.
2728
2729 2001-09-07 Andrew Cagney <ac131313@redhat.com>
2730
2731 * defs.h (enum return_reason): Renumber so that all values are
2732 negative.
2733 (RETURN_MASK): Negate reason.
2734 (catch_exception_ftype): Declare.
2735 (catch_exceptions): Declare.
2736 * top.c (catcher): New function, based on catch_errors. Add in
2737 parameter func_uiout and out parameters func_val, func_caught and
2738 func_cleanup. Change type of func to catch_exceptions_ftype.
2739 Save/restore uiout.
2740 (struct catch_errors_args): Define.
2741 (do_catch_errors): New function.
2742 (catch_errors): Rewrite, use do_catch_errors and catcher.
2743 (catch_exceptions): New function, use catcher.
2744
2745 2001-09-07 Jim Blandy <jimb@redhat.com>
2746
2747 Correctly parse register values provided by the monitor.
2748 * rom68k-rom.c: #include "value.h".
2749 (is_hex_digit, hex_digit_value, is_whitespace,
2750 rom68k_supply_one_register): New static functions.
2751 (rom68k_supply_register): Call rom68k_supply_one_register, instead
2752 of monitor_supply_register; the latter was incorrectly parsing
2753 the values.
2754 * Makefile.in (rom68k-rom.o): Note that this now #includes value.h.
2755
2756 2001-09-07 Mark Kettenis <kettenis@gnu.org>
2757
2758 * config/rs6000/xm-rs6000.h (setpgrp): Remove macro. GDB defaults
2759 to using setpgid if available now.
2760
2761 2001-09-06 Keith Seitz <keiths@redhat.com>
2762
2763 From Ian Roxborough <irox@redhat.com>
2764 * configure.in: Use ITCL_LIB_FULL_PATH and
2765 ITK_LIB_FULL_PATH to set Itcl and Itk dependancies
2766 for gdb.
2767 * configure: Regenerated.
2768
2769 2001-09-06 Kevin Buettner <kevinb@redhat.com>
2770
2771 * dbxread.c (process_one_symbol): Don't use error result from
2772 find_stab_function_addr().
2773 * partial-stab.h (case 'F'): Likewise.
2774
2775 * partial-stab.h (case 'f'): Make SOFUN_ADDRESS_MAYBE_MISSING
2776 code match that used for case 'F'. This fixes the divergence
2777 that was introduced by my 1999-09-14 changes to partial-stab.h.
2778
2779 2001-09-05 Elena Zannoni <ezannoni@redhat.com>
2780
2781 * gdbarch.sh: Move include of dis-asm.h so it is generated earlier
2782 in gdbarch.h.
2783 (TARGET_PRINT_INSN): Multiarch.
2784 * gdbarch.h: Regenerate.
2785 * gdbarch.c: Regenerate.
2786
2787 * arch-utils.c (legacy_print_insn): New function.
2788 * arch-utils.h (legacy_print_insn): Export.
2789
2790 * cris-tdep.c (cris_delayed_get_disassembler): Use
2791 TARGET_PRINT_INSN, instead of tm_print_insn.
2792 * d10v-tdep.c (print_insn): Ditto.
2793 * d30v-tdep.c (print_insn): Ditto.
2794 * m32r-tdep.c (dump_insn): Ditto.
2795 * v850-tdep.c (v850_scan_prologue): Ditto.
2796 * mcore-tdep.c (mcore_dump_insn): Ditto.
2797 * sh-tdep.c (sh_gdbarch_init): Set print_insn gdbarch field.
2798
2799 2001-09-05 Jim Blandy <jimb@redhat.com>
2800
2801 * gdbtypes.h (struct type): Doc fix.
2802
2803 2001-09-04 Elena Zannoni <ezannoni@redhat.com>
2804
2805 From Daniel Jacobowitz <drow@mvista.com>
2806 * dbxread.c (free_header_files): Make global.
2807 (init_header_files): Likewise.
2808 * stabsread.h (free_header_files): Add prototype.
2809 (init_header_files): Likewise.
2810 * mdebugread.c (mdebug_build_psymtabs): Initialize
2811 properly before using the stabs debug reader.
2812
2813 2001-09-04 Elena Zannoni <ezannoni@redhat.com>
2814
2815 From Daniel Jacobowitz <drow@mvista.com>
2816 * dbxread.c (dbx_symfile_read): Only reinitialize
2817 the psymbol list if mainline or if both static
2818 and global lists are empty.
2819 * dwarf2read.c (dwarf2_build_psymtabs): Likewise.
2820 * dwarfread.c (dwarf_build_psymtabs): Likewise.
2821 * xcoffread.c (xcoff_initial_scan): Likewise.
2822 * os9kread.c (os9k_symfile_read): Likewise.
2823
2824 2001-09-04 Elena Zannoni <ezannoni@redhat.com>
2825
2826 From Daniel Jacobowitz <drow@mvista.com>
2827 * mdebugread.c (psymtab_to_symtab_1): Handle N_SO stabs without
2828 a name specially.
2829
2830 2001-09-01 Mark Kettenis <kettenis@gnu.org>
2831
2832 Make GDB use libiberty regex implementation.
2833 * gdb_regex.h: Normalize protection against multiple inclusion.
2834 Include "xregex.h" instead of "gnu-regex.h".
2835 * cli/cli-cmds.c: Include "gdb_regex.h" instead of "gnu-regex.h".
2836 * cli/cli-decode.c: Likewise.
2837 * Makefile.in (REGEX): Remove.
2838 (GDB_CFLAGS): Remove reference to gnu-regex.h in comment.
2839 (ADD_FILES, ADD_DEPS): Remove $(REGEX).
2840 (POSSLIBS): Remove.
2841 (TAGFILES_NO_SRCDIR): Remove $(POSSLIBS).
2842 (irix5-nat.o, solib.o, solib-svr4.o, source.o, symtab.o,
2843 xcoffsolib.o, cli-decode.o, cli-cmd.o): Replace gnu-regex.h with
2844 gdb_regex.h in list of dependencies.
2845 (gnu-regex.o): Remove rule.
2846 * gnu-regex.c, gnu-regex.h: Remove files.
2847
2848 2001-08-31 Jason Molenda (jmolenda@apple.com)
2849
2850 * c-valprint.c (c_val_print): Second call to check_typedef ()
2851 is no longer necessary.
2852
2853 2001-08-31 Kevin Buettner <kevinb@redhat.com>
2854
2855 * ia64-tdep.c (examine_prologue): Don't let a branch unit nop
2856 terminate the prologue scan.
2857
2858 2001-08-30 Jim Blandy <jimb@redhat.com>
2859
2860 * symfile.c (sections_overlap): New function.
2861 (map_overlay_command): Call sections_overlap, instead of using
2862 incorrect logic to recognize overlapping sections.
2863
2864 * symfile.c (load_command): Invalidate the overlay cache.
2865
2866 2001-08-30 Mark Kettenis <kettenis@gnu.org>
2867
2868 * config/i386/xm-i386.h (HOST_BYTE_ORDER): Removed.
2869
2870 2001-08-29 Kevin Buettner <kevinb@redhat.com>
2871
2872 From 2001-08-07 Daniel Jacobowitz <drow@mvista.com>:
2873 * solib-svr4.c (enable_break): Check the inferior link map
2874 before assuming the inferior PC is at the start of the dynamic
2875 loader.
2876
2877 2001-08-28 Andrew Cagney <cagney@toribio.toronto.redhat.com>
2878
2879 * frame.h (struct frame_info): Fix documentation on fields
2880 saved_regs, next and prev.
2881
2882 2001-08-23 Mark Kettenis <kettenis@gnu.org>
2883
2884 * event-top.c (async_stop_sig) [HAVE_SIGPROCMASK]: Some
2885 gratuitious whitespace changes.
2886 [!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is defined.
2887 * top.c: Remove redundant logic to define HAVE_SIGSETMASK.
2888 (sigsetmask) Don't define macro.
2889 (stop_sig) [HAVE_SIGPROCMASK]: Add bit of code snatched from
2890 async_stop_sig from event-top.c.
2891 [!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is
2892 defined.
2893 * configure.in (AC_CHECK_FUNCS): Put functions in alphabetical
2894 order. Add sigsetmask.
2895 (AC_FUNC_VFORK, AC_FUNC_ALLOCA): Reorder such that they're in
2896 alphabetical order.
2897 * config/xm-aix4.h, config/alpha/xm-alphalinux.h,
2898 config/i386/xm-cygwin.h, config/rs6000/xm-rs6000.h
2899 (HAVE_SIGSETMASK): Remove.
2900 * aclocal.m4, config.in, configure: Regenerated.
2901
2902 2001-08-26 Andrew Cagney <ac131313@redhat.com>
2903
2904 From 2001-06-29 Andrew Cagney <ac131313@redhat.com>:
2905 * config/powerpc/nbsd.mh (XM_FILE): Delete.
2906
2907 2001-08-21 Andrew Cagney <ac131313@redhat.com>
2908
2909 * doublest.h (HOST_FLOAT_FORMAT): Delete macro.
2910 (HOST_DOUBLE_FORMAT): Delete macro.
2911
2912 2001-08-24 Mark Kettenis <kettenis@gnu.org>
2913
2914 * config/xm-lynx.h, config/xm-nbsd.h, config/xm-sysv4.h,
2915 config/i386/xm-i386aix.h, config/m68k/xm-dpx2.h: Remove redundant
2916 inclusion of <limits.h>.
2917
2918 2001-08-24 Andrew Cagney <ac131313@redhat.com>
2919
2920 * regcache.c (read_register_bytes): When REGISTER_NAME indicates
2921 that a register should be ignored, supply a value for the register
2922 from the raw registers[] buffer.
2923
2924 2001-08-24 Andrew Cagney <ac131313@redhat.com>
2925
2926 * go32-nat.c (go32_create_inferior): Use xfree instead of free.
2927 * config/djgpp/fnchange.lst: Add entries for i386bsd-tdep.c and
2928 i386bsd-nat.c.
2929
2930 2001-08-21 Andrew Cagney <ac131313@redhat.com>
2931
2932 * gdbtypes.h (builtin_type_ieee_single_big)
2933 (builtin_type_ieee_single_little, builtin_type_ieee_double_big)
2934 (builtin_type_ieee_double_little)
2935 (builtin_type_ieee_double_littlebyte_bigword)
2936 (builtin_type_i387_ext, builtin_type_m68881_ext)
2937 (builtin_type_i960_ext, builtin_type_m88110_ext)
2938 (builtin_type_m88110_harris_ext, builtin_type_arm_ext_big)
2939 (builtin_type_arm_ext_littlebyte_bigword)
2940 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
2941 (builtin_type_ia64_quad_big)
2942 (builtin_type_ia64_quad_little): Declare.
2943 * gdbtypes.c (builtin_type_ieee_single_big)
2944 (builtin_type_ieee_single_little, builtin_type_ieee_double_big)
2945 (builtin_type_ieee_double_little)
2946 (builtin_type_ieee_double_littlebyte_bigword)
2947 (builtin_type_i387_ext, builtin_type_m68881_ext)
2948 (builtin_type_i960_ext, builtin_type_m88110_ext)
2949 (builtin_type_m88110_harris_ext, builtin_type_arm_ext_big)
2950 (builtin_type_arm_ext_littlebyte_bigword)
2951 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
2952 (builtin_type_ia64_quad_big)
2953 (builtin_type_ia64_quad_little): Define.
2954 (_initialize_gdbtypes): Initialize builtin floatformat types.
2955
2956 2001-08-23 Mark Kettenis <kettenis@gnu.org>
2957
2958 * tracepoint.c (read_actions): Add FIXME for code depending on
2959 STOP_SIGNAL.
2960
2961 2001-08-23 Martin M. Hunt <hunt@redhat.com>
2962
2963 * remote-mips.c (pmon_load_fast): Add ui_load_progress_hook
2964 to download loop.
2965 (mips_load_srec): Ditto.
2966
2967 2001-08-22 Andrew Cagney <ac131313@redhat.com>
2968
2969 * gdbtypes.c (build_gdbtypes): Initialize TYPE_FLOATFORMAT field
2970 of builtin_type_float, builtin_type_double and
2971 builtin_type_long_double.
2972 (recursive_dump_type): Print the floatformat name.
2973 * gdbtypes.h (struct type): Add type_specific field floatformat.
2974 (TYPE_FLOATFORMAT): Define
2975
2976 2001-08-21 Keith Seitz <keiths@redhat.com>
2977
2978 * printcmd.c (print_insn): Use the given stream for
2979 output.
2980
2981 2001-07-24 Andrew Cagney <ac131313@redhat.com>
2982
2983 * arm-tdep.c (convert_from_extended, convert_to_extended): Delete
2984 assembler version of function.
2985 (convert_from_extended, convert_to_extended): Rewrite. Use
2986 floatformat_to_doublest, floatformat_from_doublest,
2987 floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword.
2988 (arm_push_arguments): Use extract_floating and store_floating to
2989 perform floating point conversions.
2990 (SWAP_TARGET_AND_HOST): Delete macro.
2991 * arm-linux-tdep.c (arm_linux_push_arguments): Use
2992 extract_floating and store_floating to perform floating point
2993 conversions.
2994
2995 2001-08-20 Andrew Cagney <ac131313@redhat.com>
2996
2997 * gdbtypes.h (struct type): Clarify meaning of field ``length''.
2998
2999 2001-08-17 Keith Seitz <keiths@redhat.com>
3000
3001 * varobj.c (varobj_update): Change first parameter to
3002 pointer to struct varobj*. This function can delete
3003 varobjs, so we need to give callers the new varobj
3004 when this happens.
3005 (value_of_root): Update "var", too, if "var_handle"
3006 changes.
3007 * varobj.h (varobj_update): Likewise.
3008
3009 2001-08-17 Keith Seitz <keiths@redhat.com>
3010
3011 * Makefile.in (varobj_h): Define.
3012 (mi-cmd-var.o): Depends on varobj_h.
3013 (gdbtk-varobj.o): Change varobj.h to $(varobj_h).
3014
3015 2001-08-16 Keith Seitz <keiths@redhat.com>
3016
3017 * configure.in (GDBTK_SRC_DIR): We must have autoconf
3018 give us the absolute path to the source directory.
3019 * configure: Regenerated.
3020 * Makefile.in (GDBTK_SRC_DIR): Add variable so that
3021 autoconf can substitue it in for us.
3022 (gdbtk.o): Pass in GDBTK_SRC_DIR instead of srcdir. We
3023 really do need an absolute pathname.
3024
3025 2001-08-15 Keith Seitz <keiths@redhat.com>
3026
3027 * Makefile.in (GDBTK_VERSION): Set a version number.
3028 (GDBTK_LIBRARY): New variable to point to location where
3029 gdbtk will install its tcl library. Changed all refereneces
3030 to $(datadir)/insight1.0 to $(GDBTK_LIBRARY).
3031 (SUBDIR_GDBTK_ALL): Remove "all-gdbtk". No longer needed.
3032 (SUBDIR_GDBTK_CLEAN): Remove "clean-gdbtk". No longer needed.
3033 (all-gdbtk): Remove.
3034 (install-gdbtk): Remove.
3035 (gdbtk.o): Pass srcdir to file when compiling.
3036
3037 2001-08-15 Ian Roxborough <irox@redhat.com>
3038
3039 * Makefile.in: Changed all references to the install directory
3040 "gdbtcl" to read "insight1.0".
3041
3042 2001-08-15 Corinna Vinschen <vinschen@redhat.com>
3043
3044 * arch-utils.c (generic_skip_trampoline_code): New function.
3045 * arch-utils.h (generic_skip_trampoline_code): Declare external.
3046 * gdbarch.c: Regeberated from gdbarch.sh.
3047 * gdbarch.h: Ditto.
3048 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Multi-arch.
3049 * infrun.c: Remove default setting of SKIP_TRAMPOLINE_CODE macro.
3050
3051 2001-08-14 Daniel Jacobowitz <drow@mvista.com>
3052 H.J. Lu (hjl@gnu.org)
3053
3054 * partial-stab.h: valu should be a CORE_ADDR.
3055
3056 2001-08-14 H.J. Lu (hjl@gnu.org)
3057
3058 * dbxread.c (SWAP_SYMBOL): Removed.
3059 (INTERNALIZE_SYMBOL): Check sign extended vma.
3060
3061 2001-08-13 Christopher Faylor <cgf@cygnus.com>
3062
3063 * top.c (SIGSETJMP): Protect env argument with parentheses.
3064 (SIGLONGJMP): Protect env argument with parentheses.
3065
3066 2001-08-11 Andrew Cagney <ac131313@redhat.com>
3067
3068 * config/mn10300/mn10300.mt (TM_FILE): Delete.
3069 * configure.tgt: Add mn10300 to list of mulit-arch targets.
3070 * config/mn10300/tm-mn10300.h: Delete file. Move contents ...
3071 * mn10300-tdep.c: To here.
3072
3073 2001-08-11 Andrew Cagney <ac131313@redhat.com>
3074
3075 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_VIRTUAL): Make
3076 val a DOUBLEST. Use floatformat_to_doublest.
3077 (REGISTER_CONVERT_TO_RAW): Ditto. Use foatformat_from_doublest.
3078 * config/m88k/tm-m88k.h (REGISTER_CONVERT_TO_VIRTUAL): Ditto.
3079 (REGISTER_CONVERT_TO_RAW): Ditto.
3080
3081 2001-08-11 Andrew Cagney <ac131313@redhat.com>
3082
3083 * config/mn10300/tm-mn10300.h (PC_REGNUM, SP_REGNUM): Delete.
3084 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize pc_regnum and
3085 sp_regnum.
3086
3087 2001-08-11 Andrew Cagney <ac131313@redhat.com>
3088
3089 * doublest.c (convert_doublest_to_floatformat): Rename
3090 floatformat_from_doublest. Make static.
3091 (convert_floatformat_to_doublest): Rename floatformat_to_doublest.
3092 Make static.
3093 (floatformat_to_doublest): New function.
3094 (floatformat_from_doublest): New function.
3095 (host_float_format, host_double_format, host_long_double_format):
3096 New static variables.
3097 (store_floating, extract_floating): Always use
3098 floatformat_to_doublest and floatformat_from_doublest.
3099 * doublest.h (HOST_LONG_DOUBLE_FORMAT): Delete macro.
3100
3101 2001-08-11 Andrew Cagney <ac131313@redhat.com>
3102
3103 * config/mn10300/tm-mn10300.h (INIT_FRAME_PC): Delete.
3104 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize init_frame_pc.
3105
3106 2001-08-07 Andrew Cagney <ac131313@redhat.com>
3107
3108 * target.h (TARGET_VIRTUAL_FRAME_POINTER): Delete, multi-arched.
3109 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Add.
3110 * gdbarch.h, gdbarch.c: Regenerate.
3111
3112 * arch-utils.h (legacy_virtual_frame_pointer): Declare.
3113 * arch-utils.c: Include "gdb_assert.h".
3114 (legacy_virtual_frame_pointer): Define.
3115 * Makefile.in (arch-utils.o): Depends on gdb_assert.h.
3116
3117 * tracepoint.c (encode_actions): Make frame_reg an int. Make
3118 frame_offset a LONGEST.
3119 * ax-gdb.c (gen_frame_args_address): Ditto.
3120 (gen_frame_locals_address): Ditto.
3121 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize
3122 virtual_frame_pointer.
3123 (mn10300_virtual_frame_pointer): Make static. Update parameter
3124 list to match function signature.
3125 * config/mn10300/tm-mn10300.h (TARGET_VIRTUAL_FRAME_POINTER): Delete.
3126
3127 2001-08-10 Keith Seitz <keiths@redhat.com>
3128
3129 * gdb-events.sh: Add architecture_changed event.
3130 * gdbarch.sh: Include gdb-event.h.
3131 (gdbarch_update_p): Notify UIs when architecture changes.
3132 * gdb-events.h: Regenerated.
3133 * gdb-events.c: Regenerated.
3134 * gdbarch.c: Regenerated.
3135
3136 2001-08-10 Michael Snyder <msnyder@redhat.com>
3137
3138 * regcache.c (legacy_write_register_gen): Don't 'optimize out'
3139 a write_register to a pseudo-reg. Target_store_pseudo_register
3140 needs to get called, because these regs may be computed and may
3141 have side-effects.
3142
3143 2001-08-10 Keith Seitz <keiths@redhat.com>
3144
3145 * gdb-events.sh: Deal with event notifications with no
3146 arguments.
3147
3148 2001-08-10 Orjan Friberg <orjanf@axis.com>
3149
3150 * remote.c (read_frame): Correct off-by-one error in condition.
3151
3152 2001-08-08 Don Howard <dhoward@redhat.com>
3153
3154 * stabsread.c (read_type): Add support for const and volatile
3155 modifiers.
3156
3157 2001-08-02 Daniel Jacobowitz <drow@mvista.com>
3158
3159 * core-regset.c (fetch_core_registers): Remove HAVE_GREGSET_T
3160 and HAVE_FPREGSET_T checks. Use gdb_gregset_t and gdb_fpregset_t.
3161
3162 2001-08-02 Keith Seitz <keiths@redhat.com>
3163
3164 * defs.h (SLASH_STRING): If not defined, set
3165 to "/", regardless of _WIN32, __CYGWIN__, or
3166 whatnot.
3167
3168 2001-08-02 Mark Kettenis <kettenis@gnu.org>
3169
3170 * cli/cli-decode.h: Include "gdb_regex.h" instead of
3171 "gnu-regex.h".
3172
3173 * NEWS: Update.
3174
3175 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
3176
3177 * config/i386/xm-go32.h: Include xm-i386.h.
3178 (HOST_BYTE_ORDER, HOST_LONG_DOUBLE_FORMAT): Remove definitions.
3179
3180 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
3181
3182 The following changes avoid polluting global namespace with the
3183 `enable' and `disable' identifiers, because some platforms define
3184 in their system headers symbols with global scope that go by those
3185 names.
3186
3187 * breakpoint.h (enum enable_state): Rename from `enum enable'.
3188 Also rename all the enum members to have the "bp_" prefix.
3189 (struct breakpoint): Rename the `enable' member to `enable_state'.
3190 (enum bpdisp): Rename all members to have the "disp_" prefix.
3191
3192 * breakpoint.c: All users of `enum enable' and `enum bpdisp'
3193 changed.
3194 (args_for_catchpoint_enable): Rename the `enable' member to
3195 `enable_p'. All users changed.
3196
3197 * tracepoint.h (enum enable): Remove.
3198 (struct tracepoint): The member `enabled' is now `int enabled_p'.
3199
3200 * tracepoint.c: All users of the `enabled' member changed.
3201
3202 * printcmd.c (struct display): The `status' member is now an int.
3203
3204 * memattr.h (struct mem_region): Rename the `status' member to
3205 `enabled_p'.
3206 (enum enable): Remove.
3207
3208 * memattr.c: Change all users of the `status' member of struct
3209 mem_region to use `enabled_p' instead.
3210
3211 * infcmd.c (run_stack_dummy): Use disp_del instead of del.
3212
3213 * go32-nat.c: Remove the kludgey work-around for conflicts between
3214 <dos.h> and "breakpoint.h".
3215
3216 2001-08-02 Corinna Vinschen <vinschen@redhat.com>
3217
3218 * MAINTAINERS: Add myself to the write-after-approval list.
3219 * ser-tcp.c (tcp_open): Use `localhost' as default host if no
3220 hostname is given.
3221
3222 2001-08-01 Andrew Cagney <ac131313@redhat.com>
3223
3224 * doublest.h (store_floating, floatformat_to_doublest): Make IN
3225 paramter a const void pointer.
3226 (floatformat_from_doublest): Make IN const, Make OUT a void
3227 pointer.
3228 * doublest.c (floatformat_to_doublest): Update.
3229 (floatformat_from_doublest): Update.
3230 (extract_floating): Update.
3231
3232 2001-07-31 Andrew Cagney <ac131313@redhat.com>
3233
3234 * defs.h (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3235 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3236 (HOST_LONG_DOUBLE_FORMAT, DOUBLEST)
3237 (floatformat_to_doublest, floatformat_from_doublest)
3238 (floatformat_is_negative, floatformat_is_nan)
3239 (floatformat_mantissa, store_floating)
3240 (extract_floating): Move declaration from here.
3241 * doublest.h: To here. New file.
3242 * utils.c (get_field, floatformat_to_doublest, put_field)
3243 (ldfrexp, floatformat_from_doublest, floatformat_is_negative)
3244 (floatformat_is_nan, floatformat_mantissa)
3245 (FLOATFORMAT_CHAR_BIT): Move from here.
3246 * doublest.c: To here. New file.
3247 * findvar.c (store_floating, extract_floating): Move from here.
3248 * doublest.c: To here.
3249 * Makefile.in (SFILES): Add doublest.c.
3250 (COMMON_OBS): Add doublest.o.
3251 (doublest.o): Specify dependencies.
3252 (doublest_h): Define.
3253
3254 * config/m88k/tm-m88k.h: Include "doublest.h".
3255 * config/i960/tm-i960.h: Ditto.
3256 * config/i386/tm-symmetry.h: Ditto.
3257 * rs6000-tdep.c, valarith.c: Ditto.
3258 * valprint.c, stabsread.c, sh-tdep.c: Ditto.
3259 * ia64-tdep.c, i387-tdep.c, i386-tdep.c: Ditto.
3260 * values.c, arm-tdep.c, arm-linux-tdep.c: Ditto.
3261 * alpha-tdep.c, ax.h, expression.h: Ditto.
3262 * sh-tdep.c, parse.c, top.c, value.h: Ditto.
3263
3264 * Makefile.in (arm-tdep.o): Add $(doublest_h).
3265 (i386-tdep.o, i387-tdep.o, ia64-tdep.o): Ditto.
3266 (rs6000-tdep.o, stabsread.o, valarith.o): Ditto.
3267 (values.o, valprint.o, arm-linux-tdep.o): Ditto.
3268 (alpha-tdep.o, ax_h, parse.o, top.o, value_h): Ditto.
3269 (parser_defs_h): Ditto.
3270 (expression_h): Add $(doublest_h) and $(symtab_h).
3271
3272 2001-08-01 Andrew Cagney <ac131313@redhat.com>
3273
3274 * Makefile.in: Sort header definitions.
3275 (parser_defs_h, dis_asm_h, annotate_h, gdbthread_h): Define.
3276 Replace parser-defs.h with $(parser_defs_h). Replace $(dis-asm_h)
3277 and $(dis-asm.h) with $(dis_asm_h). Replace annotate.h with
3278 $(annotate_h). Replace target.h with $(target_h). Replace
3279 gdbthread.h with $(gdb_thread_h). Replace symfile.h with $(symfile_h).
3280
3281 2001-07-31 Mark Kettenis <kettenis@gnu.org>
3282
3283 * config/i386/xm-i386.h: New file.
3284 * config/i386/xm-fbsd.h: Removed.
3285 * config/i386/xm-linux.h: Removed.
3286 * config/i386/fbsd.mh: Reorganize a bit.
3287 (XM_FILE): Set to xm-i386.h instead of xm-fbsd.h.
3288 * config/i386/linux.mh (XM_FILE): Set to xm-i386.h insread of
3289 xm-linux.h.
3290
3291 2001-07-30 Jim Blandy <jimb@redhat.com>
3292
3293 * dwarf2read.c (dwarf2_build_psymtabs_hard): Doc fix.
3294
3295 2001-07-27 Daniel Jacobowitz <drow@mvista.com>
3296
3297 * configure.in: Only invoke AC_FUNC_SETPGRP if not cross-compiling.
3298 Check for SETPGRP_VOID separately if cross-compiling and ISO C
3299 headers are available.
3300
3301 2001-07-30 Mark Kettenis <kettenis@gnu.org>
3302
3303 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Redefine to call
3304 i386_dwarf_reg_to_regnum.
3305
3306 * i386-tdep.c (i386_register_convert_to_virtual): Replace
3307 assertion with a warning if we're asked to convert towards a
3308 non-floating-point type. Zero out the the buffer where the data
3309 is supposed to be stored in that case.
3310
3311 2001-07-29 Eli Zaretskii <eliz@is.elta.co.il>
3312
3313 * config/djgpp/djconfig.sh: Unset CDPATH.
3314
3315 * go32-nat.c (get_cr3): Temporary disable support for page tables
3316 in UMBs, as it is incomplete.
3317
3318 Support for stepping through longjmp in DJGPP programs:
3319
3320 * config/i386/tm-go32.h (JB_ELEMENT_SIZE, JB_PC): New macros.
3321 (GET_LONGJMP_TARGET): Define to call get_longjmp_target.
3322 (get_longjmp_target): Add prototype.
3323
3324 2001-07-28 Andrew Cagney <ac131313@redhat.com>
3325
3326 Fix some PID/TPID fallout for HP/UX.
3327 From 2001-07-22 Rodney Brown <rbrown64@csc.com.au>:
3328 * infttrace.c (ptrace_wait): Match external declaration,
3329 and match target_post_wait declaration.
3330
3331 2001-07-28 Andrew Cagney <ac131313@redhat.com>
3332
3333 * MAINTAINERS: Add Orjan Friberg as cris target maintainer.
3334 (cris): Set --enable-gdb-build-warnings flag to -w.
3335
3336 2001-07-28 Andrew Cagney <ac131313@redhat.com>
3337
3338 From 2001-07-23 Andreas Schwab <schwab@suse.de>:
3339 * config/m68k/tm-m68k.h (TARGET_LONG_DOUBLE_FORMAT): Define.
3340 (TARGET_LONG_DOUBLE_BIT): Define.
3341 (REGISTER_VIRTUAL_SIZE): Return 12 for floating point registers.
3342 (MAX_REGISTER_VIRTUAL_SIZE): Increase to 12.
3343 (REGISTER_VIRTUAL_TYPE): Return builtin_type_long_double for
3344 floating point registers.
3345 (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL)
3346 (REGISTER_CONVERT_TO_RAW): Remove.
3347 * config/m68k/xm-linux.h (HOST_LONG_DOUBLE_FORMAT): Define.
3348
3349 2001-07-26 Andrew Cagney <ac131313@redhat.com>
3350
3351 * thread.c, breakpoint.c: Include "gdb.h".
3352 * Makefile.in (gdb_h): Define.
3353 (HFILES_NO_SRCDIR): Add gdb.h.
3354 (mi-cmd-break.o, mi-main.o, thread.o)
3355 (breakpoint.o): Add dependency on $(gdb_h).
3356
3357 * defs.h (enum gdb_rc, gdb_breakpoint_query)
3358 (gdb_breakpoint, gdb_thread_select)
3359 (gdb_list_thread_ids): Move declaration from here ...
3360 * gdb.h: To here. New file.
3361
3362 2001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3363
3364 * Makefile.in (SUBDIR_TUI_OBS): Add tui-out.o, tui-hooks.o.
3365 (SUBDIR_TUI_SRCS): Add tui-out.c tui-hooks.c
3366 (SFILES): Likewise.
3367 (tui-out.o): Define dependencies.
3368 (tui-hooks.o): Likewise.
3369
3370 2001-07-28 Andrew Cagney <ac131313@redhat.com>
3371
3372 * MAINTAINERS: Update e-mail address of active @cygnus.com
3373 maintainers to @redhat.com.
3374
3375 2001-07-28 Andrew Cagney <ac131313@redhat.com>
3376
3377 * README (Known bugs): Delete section.
3378 (Kernel debugging): Delete section.
3379 (Languages other than C): Delete section.
3380 (Host/target specific installation notes) New section.
3381
3382 2001-07-28 Mark Kettenis <kettenis@gnu.org>
3383
3384 * config/i386/tm-i386.h (STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3385 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): New defines.
3386 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): New
3387 prototypes.
3388 * config/i386/tm-fbsd.h, config/i386/tm-i386gnu.h,
3389 config/i386/tm-linux.h (STAB_REG_TO_REGNUM): Redefine to call
3390 i386_dwarf_reg_to_regnum.
3391 * i386-tdep.c (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum):
3392 New functions.
3393
3394 * i386-tdep.c: Include "gdb_assert.h"
3395 (i386_register_convert_to_virtual): Fix such that it can handle
3396 conversion to any floating-point type. Assert that we are dealing
3397 with a floating-point first.
3398 (i386_register_convert_to_raw): Assert that TYPE is a
3399 floating-point type with length 12.
3400
3401 2001-07-27 John R. Moore <jmoore@redhat.com>
3402
3403 * configure.in: Added dependency of gdb on tcl/tk libraries.
3404 * Makefile.in: Likewise.
3405 * configure: Regenerated with the above using autoconf.
3406
3407 2001-07-26 Elena Zannoni <ezannoni@redhat.com>
3408
3409 * sh-tdep.c (sh_gdbarch_init): Use SH_DEFAULT_NUM_REGS instead of
3410 NUM_REGS.
3411 (SH_DEFAULT_NUM_REGS): Define.
3412
3413 2001-07-26 Eli Zaretskii <eliz@is.elta.co.il>
3414
3415 * go32-nat.c (read_memory_region): Make sure the segment limit was
3416 indeed set, to work around a Windows 2000 bug.
3417
3418 2001-07-25 Daniel Jacobowitz <drow@mvista.com>
3419
3420 * infptrace.c (child_xfer_memory): Add cast to CORE_ADDR.
3421 * infttrace.c (child_xfer_memory): Likewise.
3422 * symm-nat.c (child_xfer_memory): Likewise.
3423 * gdbserver/low-hppabsd.c (read_inferior_memory): Likewise.
3424 (write_inferior_memory): Likewise.
3425 * gdbserver/low-linux.c (read_inferior_memory): Likewise.
3426 (write_inferior_memory): Likewise.
3427 * gdbserver/low-lynx.c (read_inferior_memory): Likewise.
3428 (write_inferior_memory): Likewise.
3429 * gdbserver/low-nbsd.c (read_inferior_memory): Likewise.
3430 (write_inferior_memory): Likewise.
3431 * gdbserver/low-sparc.c (read_inferior_memory): Likewise.
3432 (write_inferior_memory): Likewise.
3433 * gdbserver/low-sun3.c (read_inferior_memory): Likewise.
3434 (write_inferior_memory): Likewise.
3435
3436 2001-07-25 Eli Zaretskii <eliz@is.elta.co.il>
3437
3438 * README: Mention how to make gdb.pdf.
3439
3440 * NEWS: Update.
3441
3442 2001-07-24 Stephen P. Smith <ischis2@home.com>
3443
3444 * MAINTAINERS (Stephen P. Smith): Added to write after approval
3445 list.
3446
3447 2001-07-23 Andrew Cagney <ac131313@redhat.com>
3448
3449 * mips-tdep.c (mips_push_arguments): Add comment explaining
3450 problem with LE o32 GCC.
3451
3452 2001-07-23 Elena Zannoni <ezannoni@redhat.com>
3453
3454 * config/powerpc/aix.mh (MH_LDFLAGS): Don't set these, the Gnu linker
3455 doesn't understand them.
3456
3457 2001-07-23 Elena Zannoni <ezannoni@redhat.com>
3458
3459 * memattr.c (mem_info_command): Reformat output to look more like
3460 'info break' output.
3461 (_initialize_mem): Improve help.
3462
3463 2001-07-23 Mark Kettenis <kettenis@gnu.org>
3464
3465 * configure.in (AC_CHECK_FUNCS): Add setpggrp.
3466 (AC_FUNC_SETPGRP): Add.
3467 * aclocal.m4, configure, config.in: Regenerated.
3468 * inflow.c (gdb_setpgid): Get rid of NEED_POSIX_SETPGID and
3469 SETPGRP_ARGS. Always use setpgid if it is available, fall back on
3470 setpgrp if it isn't. Use SETPGRP_VOID (defined by autoconf) to
3471 distinguish between the two setpgrp flavours.
3472 * config/xm-sysv4.h, config/arm/xm-linux.h,
3473 config/i386/xm-i386aix.h, config/i386/xm-sco.h,
3474 config/i386/xm-linux.h, config/i386/xm-ptx.h,
3475 config/m68k/xm-linux.h, config/powerpc/xm-linux.h,
3476 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h,
3477 config/ia64/xm-linux.h (NEED_POSIX_SETPGID): Remove.
3478 * config/rs6000/xm-rs6000.h (SETPGRP_ARGS): Remove.
3479
3480 2001-07-23 Eli Zaretskii <eliz@is.elta.co.il>
3481
3482 * go32-nat.c (read_memory_region): Set the granularity bit of the
3483 allocated segment according to its size, and adjust the limit to
3484 be page-aligned if the segment is page-granular.
3485
3486 * (get_cr3, get_pde, get_pte, display_ptable_entry, go32_pde)
3487 (display_page_table, go32_pte, go32_pte_for_address): New functions.
3488 (_initialize_go32_nat): Initialize and document them.
3489
3490 2001-07-22 Mark Kettenis <kettenis@gnu.org>
3491
3492 * i386gnu-nat.c: Include "i387-nat.h".
3493 (struct env387): Removed.
3494 (reg_offset): Fix comment.
3495 (fetch_fpregs): Use FCTRL_REGNUM and FOP_REGNUM instead of
3496 FIRST_FPU_CONTROL_REGNUM and LAST_FPU_CONTROL_REGNUM. Rewrite to
3497 use i387_supply_fsave.
3498 (gnu_fetch_registers): Remove spurious whitespace.
3499 (convert_to_env387): Remove.
3500 (store_fpregs): Add argument regno. Use i387_fill_fsave instead
3501 of convert_to_env387.
3502 (gnu_store_registers): Remove spurious whitespace. Pass REGNO to
3503 store_fpregs.
3504 * config/i386/i386gnu.mt (TDEPFILES): Add i387-tdep.o.
3505 * config/i386/i386gnu.mh (XDEPFILES): Remove i387-tdep.o.
3506 (NATDEPFILES): Add i387-nat.o.
3507
3508 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3509
3510 * Makefile.in (ALLDEPFILES): Add m68hc11-tdep.c.
3511 (m68hc11-tdep.o): Define dependencies.
3512
3513 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3514
3515 * m68hc11-tdep.c (m68hc11_gdbarch_init): Define int at 16-bits.
3516
3517 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3518
3519 * utils.c (init_page_info): Use tui_get_command_dimension.
3520 * printcmd.c (disassemble_command): Simplify tui specific code,
3521 use tui_is_window_visible, tui_show_assembly.
3522
3523 2001-07-21 Mark Kettenis <kettenis@gnu.org>
3524
3525 * i386bsd-nat.c: Do not include <sys/sysctl.h>.
3526 (_initialize_i386bsd_nat) [KERN_PS_STRINGS]: Move FreeBSD-specific
3527 code to ...
3528 * i386fbsd-nat.c: ... here. New file.
3529 * config/i386/fbsd.mh (NATDEPFILES): Add i386-fbsd.o.
3530 * config/i386/nm-fbsd.h (CHILD_RESUME): Define.
3531 * Makefile.in (ALLDEPFILES): Add i386fbsd-nat.c.
3532 (i386fbsd-nat.o): Add dependencies.
3533
3534 2001-07-19 Daniel Jacobowitz <drow@mvista.com>
3535
3536 * signals.c: New file.
3537 * Makefile.in: Add signals.o.
3538 * target.c (struct signals, target_signal_to_name)
3539 (target_signal_from_name, target_signal_from_host)
3540 (do_target_signal_to_host, target_signal_to_host_p)
3541 (target_signal_to_host, target_signal_from_command): Move to
3542 signals.c.
3543 (initialize_targets): Move check of struct signals to...
3544 * signals.c (_initialize_signals): Here.
3545
3546 2001-07-19 Andrew Cagney <ac131313@redhat.com>
3547
3548 * MAINTAINERS: Add Michael Chastain as C++ testsuite maintainer.
3549
3550 2001-07-19 Andrew Cagney <ac131313@redhat.com>
3551
3552 From Stephen Smith:
3553 * configure.tgt (i*86-*-pe*): New target.
3554
3555 2001-07-19 Andrew Cagney <ac131313@redhat.com>
3556
3557 From 2001-07-16 Rodney Brown <rbrown64@csc.com.au>:
3558 * infttrace.c (child_thread_alive): Fix gdb_tid typo.
3559 * somsolib.c (no_shared_libraries): Provide stub.
3560 * xcoffsolib.c (no_shared_libraries): Provide stub.
3561
3562 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3563
3564 * Makefile.in (COMMON_OBS): Remove tui-file.o.
3565 (SUBDIR_TUI_OBS): Add it here.
3566 (SUBDIR_TUI_SRCS): Move tui-file.c and tui-file.h here.
3567 (main.o): Remove dependency with tui-file.h.
3568
3569 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
3570
3571 * Makefile.in (tui-file.o): Update dependencies.
3572
3573 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
3574
3575 * top.c (catch_errors): Convert PTR to void * in parameters list.
3576 (quit_cover): Ditto.
3577
3578 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3579
3580 * source.c (find_source_lines): Remove tui test, must be replaced
3581 by appropriate warning hook.
3582 (print_source_lines): Remove tui hacks, must be replaced by cli.
3583 (forward_search_command): Remove tui hacks, can be replaced by
3584 appropriate calls to identify_source_line when tui scrolls.
3585 (reverse_search_command): Likewise.
3586
3587 2001-07-16 Nick Duffek <nsd@redhat.com>
3588
3589 * remote.c (init_remote_ops, init_remote_cisco_ops,
3590 init_remote_async_ops): Set to_pid_to_str and
3591 to_extra_thread_info correctly and in the same order as declared
3592 in target.h.
3593
3594 2001-07-16 Andrew Cagney <ac131313@redhat.com>
3595
3596 * remote.c: Revert below. Included more than intended.
3597
3598 2001-07-16 Nick Duffek <nsd@redhat.com>
3599
3600 * remote.c (init_remote_ops, init_remote_cisco_ops,
3601 init_remote_async_ops): Set to_pid_to_str and
3602 to_extra_thread_info correctly and in the same order as declared
3603 in target.h.
3604
3605 2001-07-16 Nick Duffek <nsd@redhat.com>
3606
3607 * findvar.c (read_var_value): Apply value_as_pointer() to
3608 addresses retrieved from the target for LOC_BASEREG and
3609 LOC_BASEREG_ARG variables.
3610
3611 2001-07-16 Orjan Friberg <orjanf@axis.com>
3612
3613 * NEWS: New target CRIS.
3614
3615 2001-07-16 Elena Zannoni <ezannoni@redhat.com>
3616
3617 * top.c (show_commands): Remove extern decl of history_get, it's
3618 already in readline/history.h.
3619
3620 2001-07-16 Elena Zannoni <ezannoni@redhat.com>
3621
3622 * top.c (is_complete_command, init_cmd_lists, init_cli_cmds,
3623 execute_user_command, do_setshow_command, get_prompt, init_proc,
3624 serial_log_command): Remove extern declarations. Include
3625 cli/cli-cmds.h, cli/cli-script.h, cli/cli-setshow.h, serial.h.
3626 * gdbcmd.h (execute_user_command): Remove declaration, it's already
3627 in cli/cli-script.h.
3628 * command.h (do_setshow_command): Remove declaration, it's already
3629 in cli/cli-setshow.h.
3630 * infrun.c: Include "cli/cli-script.h" for execute_user_command.
3631 * Makefile.in (infrun.o): Update dependencies.
3632 (top.o): Ditto.
3633 * cli/cli-setshow.h: Add comment for do_setshow_command.
3634
3635 2001-07-16 Eli Zaretskii <eliz@is.elta.co.il>
3636
3637 * cli/cli-cmds.c (shell_escape) [GLOBAL_CURDIR]: Condition the
3638 call to chdir on this symbol rather than on __DJGPP__.
3639 (CANT_FORK) [__MSDOS__]: Move from here...
3640 * defs.h (CANT_FORK) [__MSDOS__]: ...to here.
3641 (GLOBAL_CURDIR) [__MSDOS__]: Define.
3642
3643 2001-07-16 Orjan Friberg <orjanf@axis.com>
3644
3645 * configure.tgt: Recognise the CRIS architecture.
3646 * config/cris/cris.mt: New file for CRIS target.
3647 * cris-tdep.c: New file for CRIS target.
3648
3649 2001-07-15 Elena Zannoni <ezannoni@redhat.com>
3650
3651 * top.c (quit_cover, float_handler): Move definition up before use.
3652 (gdb_init): Move to end of file, to avoid calls to not yet defined
3653 functions.
3654 Delete prototypes.
3655
3656 2001-07-14 Andrew Cagney <ac131313@redhat.com>
3657
3658 * serial.h (SERIAL_ASYNC): Delete.
3659 (DEPRECATED_SERIAL_FD): Delete.
3660 (SERIAL_DEBUG): Delete.
3661 (SERIAL_DEBUG_P): Delete.
3662 (SERIAL_DRAIN_OUTPUT): Delete.
3663 (SERIAL_FLUSH_OUTPUT): Delete.
3664 (SERIAL_FLUSH_INPUT): Delete.
3665 (SERIAL_SEND_BREAK): Delete.
3666 (SERIAL_RAW): Delete.
3667 (SERIAL_GET_TTY_STATE): Delete.
3668 (SERIAL_SET_TTY_STATE): Delete.
3669 (SERIAL_PRINT_TTY_STATE): Delete.
3670 (SERIAL_NOFLUSH_SET_TTY_STATE): Delete.
3671 (SERIAL_SETBAUDRATE): Delete.
3672 (SERIAL_SETSTOPBITS): Delete.
3673 (SERIAL_CAN_ASYNC_P): Delete.
3674 (SERIAL_IS_ASYNC_P): Delete.
3675 (SERIAL_UN_FDOPEN): Delete.
3676 (SERIAL_READCHAR): Delete.
3677 (SERIAL_CLOSE): Delete.
3678 (SERIAL_FDOPEN): Delete.
3679 (SERIAL_OPEN): Delete.
3680 * ser-unix.c: Update.
3681 * sparclet-rom.c: Update.
3682 * remote-bug.c: Update.
3683 * dsrec.c: Update.
3684 * xmodem.c: Update.
3685 * nindy-share/ttyflush.c: Update.
3686 * nindy-share/Onindy.c: Update.
3687 * utils.c: Update.
3688 * serial.c: Update.
3689 * remote-nindy.c: Update.
3690 * inflow.c: Update.
3691 * sparcl-tdep.c: Update.
3692 * sh3-rom.c: Update.
3693 * remote.c: Update.
3694 * remote-utils.c: Update.
3695 * remote-st.c: Update.
3696 * remote-sds.c: Update.
3697 * remote-rdp.c: Update.
3698 * remote-os9k.c: Update.
3699 * remote-nrom.c: Update.
3700 * remote-mips.c: Update.
3701 * remote-es.c: Update.
3702 * remote-e7000.c: Update.
3703 * remote-array.c: Update.
3704 * ocd.c: Update.
3705 * nindy-share/nindy.c: Update.
3706 * monitor.c: Update.
3707
3708 2001-07-14 Andrew Cagney <ac131313@redhat.com>
3709
3710 * mn10200-tdep.c: Replace value_ptr with ``struct value *''.
3711 * mcore-tdep.c: Ditto.
3712 * sparc-tdep.c: Ditto.
3713 * sh-tdep.c: Ditto.
3714 * rs6000-tdep.c: Ditto.
3715 * ppc-linux-tdep.c: Ditto.
3716 * m68hc11-tdep.c: Ditto.
3717 * ia64-tdep.c: Ditto.
3718 * i386-tdep.c: Ditto.
3719 * arm-linux-tdep.c: Ditto.
3720 * hppa-tdep.c: Ditto.
3721 * h8500-tdep.c: Ditto.
3722 * fr30-tdep.c: Ditto.
3723 * arm-tdep.c: Ditto.
3724 * alpha-tdep.c: Ditto.
3725 * d30v-tdep.c: Ditto.
3726 * d10v-tdep.c: Ditto.
3727 * m32r-tdep.c: Ditto.
3728 * mips-tdep.c: Ditto.
3729 * v850-tdep.c: Ditto.
3730
3731 2001-07-15 Elena Zannoni <ezannoni@redhat.com>
3732
3733 * top.c (readline_line_completion_function, noop_completer): Move
3734 from here...
3735 * completer.c (readline_line_completion_function, noop_completer):
3736 ...to here.
3737 * gdbcmd.h (readline_line_completion_function, noop_completer):
3738 Move declarations from here...
3739 * completer.h (readline_line_completion_function, noop_completer):
3740 ...to here.
3741 * corefile.c: Include completer.h.
3742 * source.c: Ditto.
3743 * symfile.c: Ditto.
3744 * Makefile.in: Update dependencies.
3745
3746 2001-07-15 Eli Zaretskii <eliz@is.elta.co.il>
3747
3748 * go32-nat.c (go32_create_inferior): Support command lines longer
3749 than 126 characters.
3750
3751 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3752
3753 * NEWS: New target 68HC11/68HC12.
3754
3755 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3756
3757 * utils.c (query): Remove tui hacks; tui must use the query_hook.
3758 * top.c (command_loop): Remove tui insert_mode hacks; don't call
3759 tuiCleanUp because this must be made with atexit by tui.
3760 * symfile.c (symbol_file_command): Remove call to TUIDO
3761 * stack.c (show_and_print_stack_frame_stub): Remove tui check;
3762 not necessary when using the selected frame hooks.
3763 (print_stack_frame_stub): Likewise.
3764 (print_frame_info_base): Likewise.
3765 (print_frame_info): Likewise.
3766 (up_silently_command): Likewise.
3767 (down_silently_command): Likewise.
3768 (show_stack_frame): Likewise for TUIDO.
3769 (select_frame): Likewise.
3770 (select_and_print_frame): Likewise.
3771 (stack_publish_stopped_with_no_frame): Remove.
3772 (select_and_maybe_print_frame): Remove.
3773 * main.c (captured_main): Remove tui_fileopen and tuiInit; tui
3774 must use the initialize ui hook.
3775 * infrun.c (normal_stop): Remove call to TUIDO; tui must use the
3776 selected frame hooks.
3777 * event-top.c (command_handler): Remove tui insert_mode hack.
3778 * defs.h: Remove TUIDO; Only include tui.h.
3779 * breakpoint.c (mention): Remove calls to TUIDO.
3780 (delete_breakpoint): Remove tui hacks; tui must install
3781 the breakpoint hooks.
3782
3783 2001-07-14 Mark Kettenis <kettenis@gnu.org>
3784
3785 * config/i386/xm-linux.h (KERNEL_U_ADDR): Move from here...
3786 * config/i386/nm-linux.h: ...to here. Change comments about user
3787 area/struct a bit.
3788
3789 * config/i386/xm-linux.h (HAVE_TERMIOS): Really remove.
3790
3791 * Makefile.in (ALLDEPFILES): Add i386bsd-nat.c and i386bsd-tdep.c
3792 (i386bsd-tdep.o, i386bsd-nat.o): New targets.
3793
3794 2001-07-13 Elena Zannoni <ezannoni@redhat.com>
3795
3796 * remote-e7000.c (fetch_regs_from_dump): If register set is null,
3797 generate an internal error.
3798 (e7000_fetch_registers): Initialize variable 'wanted'.
3799 (e7000_wait): Initialize variable 'wanted_nopc'.
3800 (e7000_store_register): Fix sprintf compiler warnings.
3801 (sub2_from_pc): Ditto.
3802 (e7000_open): Close the descriptor, not the name.
3803 (e7000_load): Fix compiler warnings.
3804 (sub2_from_pc): Ditto.
3805 * Makefile.in (remote-e7000.o): Can now compile with -Werror.
3806
3807 2001-07-13 Mark Kettenis <kettenis@gnu.org>
3808
3809 * i386bsd-nat.c: Include <signal.h>, <stddef.h> and
3810 <sys/sysctl.h>.
3811 (store_inferior_registers): Wrap long line.
3812 (i386bsd_dr_get_status): Fix typo in comment.
3813 (_initialize_i386bsd_nat): New function. * i386bsd-tdep.c: New
3814 file. * config/i386/tm-fbsd.h (IN_SIGTRAMP): New define.
3815 (i386bsd_in_sigtramp): New prototype.
3816 (SIGTRAMP_START, SIGTRAMP_END): Redefine in terms...
3817 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): ...these new
3818 (external) variables.
3819 (SIGCONTEXT_PC_OFFSET): Removed.
3820 (FRAME_SAVED_PC): New define.
3821 (i386bsd_frame_saved_pc): New function. * config/i386/fbsd.mt
3822 (TDEPFILES): Add i386bsd-tdep.o.
3823
3824 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
3825
3826 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Use ISO C
3827 definition.
3828
3829 2001-07-13 Mark Kettenis <kettenis@gnu.org>
3830
3831 * lin-lwp.c (lin_lwp_wait): Avoid check for resumed LWPs if there
3832 are no registered LWPs yet.
3833
3834 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
3835
3836 * config/i386/nm-linux.h (CANNOT_FETCH_REGISTER): Call the right
3837 function.
3838 (CANNOT_STORE_REGISTER): Likewise.
3839
3840 2001-07-12 Keith Seitz <keiths@redhat.com>
3841
3842 * remote-rdp.c: Include "serial.h"
3843
3844 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
3845
3846 * gdbserver/remote-utils.c (remote_open): Set VMIN to 1
3847 in HAVE_TERMIO/HAVE_TERMIOS cases.
3848
3849 2001-07-12 Mark Kettenis <kettenis@gnu.org>
3850
3851 * lin-lwp.c (stop_wait_callback): Add support for flushing
3852 signals. Use that in favour of the old code to get rid of
3853 superfluous SIGINTs.
3854 (lin_lwp_wait): Use the new support in stop_wait_callback to
3855 flush all but one SIGINT.
3856
3857 * i386-tdep.c (i386_extract_return_value): Undo 2001-07-11 changes
3858 to comment.
3859 (i386_store_return_value): Improve comments about storing
3860 floating-point return values.
3861
3862 * config/arm/xm-linux.h, config/i386/xm-linux.h,
3863 config/m68k/xm-linux.h, config/powerpc/xm-linux.h,
3864 config/sparc/xm-linux.h, config/ia64/xm-linux.h (HAVE_TERMIOS):
3865 Removed. Taken care of by autoconf and terminal.h.
3866
3867 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
3868
3869 * mips-tdep.c (mips_type_needs_double_align): New function.
3870 (mips_push_arguments): Align o32 structs to even argument
3871 registers if necessary.
3872
3873 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
3874
3875 * config/djgpp/fnchange.lst: Add entries for
3876 mips-linux-nat.c and mips-linux-tdep.c.
3877
3878 2001-07-12 Mark Kettenis <kettenis@gnu.org>
3879
3880 * config/powerpc/xm-linux.h: Fix corrupted file.
3881
3882 * configure.in: Add check for sigsetjmp.
3883 * config/m68k/xm-linux.h (HAVE_SIGSETJMP): Removed.
3884 * config/xm-sysv4.h (HAVE_SIGSETJMP): Removed.
3885 * configure, config.in: Regenerated.
3886
3887 2001-07-11 Elena Zannoni <ezannoni@redhat.com>
3888
3889 * config/sh/tm-sh.h (struct gdbarch_tdep): Add
3890 FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM,
3891 PR_REGNUM fields.
3892
3893 * sh-tdep.c (sh_skip_prologue_hard_way): Rename from
3894 skip_prologue_hard_way().
3895 (skip_prologue_hard_way): Make it a function pointer.
3896 (sh_print_register): Use function pointer do_pseudo_register,
3897 instead of sh_do_pseudo_register.
3898 (sh_do_registers_info): Ditto.
3899 (sh_gdbarch_init): Initialize do_pseudo_register.
3900 (IS_MOV_TO_R14): Rename from IS_MOV_R14.
3901 (skip_prologue_hard_way): Update.
3902 (sh_gdbarch_init): Move setting of frame_chain,
3903 get_saved_register, init_extra_frame_info, push_arguments,
3904 extract_return_value, pop_frame, store_struct_return,
3905 extract_struct_value_address, use_struct_convention,
3906 init_extra_frame_info to before target specific settings.
3907 (sh_gdbarch_init): Initialize new tdep fields
3908 FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM,
3909 PR_REGNUM.
3910 (sh_push_arguments): Use new gdbarch_tdep fields
3911 {ARG0,ARGLAST}_REGNUM.
3912 (sh_saved_pc_after_call, sh_nofp_frame_init_saved_regs,
3913 sh_init_extra_frame_info, sh_push_return_address,
3914 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
3915 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs): Update to use
3916 gdbarch_tdep->PR_REGNUM.
3917 (dr_reg_base_num, fv_reg_base_num): Move to earlier in the file.
3918
3919 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
3920
3921 * config/mips/tm-linux.h: Include "tm-linux.h" instead of copying
3922 from it. Move definitions of REALTIME_LO and REALTIME_HI above
3923 include.
3924
3925 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
3926
3927 * MAINTAINERS: List myself for MIPS/Linux
3928 port.
3929
3930 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
3931
3932 * gdbserver/remote-utils.c (remote_open): Only
3933 check for F_SETOWN if we had F_SETFL and FASYNC.
3934
3935 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
3936
3937 From Michael Fedrowitz <michael.fedrowitz@informatik.uni-ulm.de>:
3938
3939 * config/m68k/linux.mh: Remove core-regset.o.
3940 * m68klinux-nat.c: Fix comment.
3941 (supply_gregset): Change argument to elf_gregset_t *.
3942 (supply_fpregset): Change argument to elf_fpregset_t *.
3943 (fetch_core_registers): New function.
3944 (linux_elf_core_fns): Define.
3945 (_initialize_m68k_linux_nat): New function.
3946
3947 2001-07-11 Andrew Cagney <ac131313@redhat.com>
3948
3949 * configure.tgt: Mark d10v as pure multi-arch.
3950 * config/d10v/tm-d10v.h: Delete file.
3951 * config/d10v/d10v.mt (TM_FILE): Delete.
3952
3953 2001-07-10 Andrew Cagney <ac131313@redhat.com>
3954
3955 * serial.h (typedef serial_t): Delete. Replace all references to
3956 serial_t with `struct serial *'.
3957 * serial.c: Update.
3958 * nindy-share/ttyflush.c: Update.
3959 * nindy-share/ttyflush.c: Update.
3960 * nindy-share/Onindy.c: Update.
3961 * nindy-share/nindy.c: Update.
3962 * remote-rdp.c: Update.
3963 * remote-sds.c: Update.
3964 * remote-st.c: Update.
3965 * remote-nindy.c: Update.
3966 * remote-mips.c: Update.
3967 * remote-e7000.c: Update.
3968 * remote-os9k.c: Update.
3969 * remote-nrom.c: Update.
3970 * remote-es.c: Update.
3971 * remote-array.c: Update.
3972 * ocd.c: Update.
3973 * mon960-rom.c: Update.
3974 * dsrec.c: Update.
3975 * inflow.c: Update.
3976 * ser-e7kpc.c: Update.
3977 * sparclet-rom.c: Update.
3978 * srec.h: Update.
3979 * ser-tcp.c: Update.
3980 * ser-go32.c: Update.
3981 * sparcl-tdep.c: Update.
3982 * w89k-rom.c: Update.
3983 * utils.c: Update.
3984 * sh3-rom.c: Update.
3985 * remote.c: Update.
3986 * ser-pipe.c: Update.
3987 * ser-unix.c: Update.
3988 * ser-unix.h: Update.
3989 * xmodem.c: Update.
3990 * xmodem.h: Update.
3991
3992 2001-07-11 J.T. Conklin <jtc@redback.com>
3993
3994 From Greg McGary <greg@mcgary.org>:
3995 * gdbserver/remote-utils.c (remote_open): Set gdbserver as "owner"
3996 of SIGIO.
3997 (input_interrupt): Don't block on read, in case we got redundant
3998 SIGIO. Don't gripe about redundant SIGIO.
3999 * gdbserver/low-hppabsd.c (mywait): Use waitpid(). Enable SIGIO
4000 handler while waiting.
4001 * gdbserver/low-linux.c (mywait): Likewise.
4002 * gdbserver/low-nbsd.c (mywait): Likewise.
4003 * gdbserver/low-sparc.c (mywait): Likewise.
4004
4005 2001-07-11 Keith Seitz <keiths@redhat.com>
4006
4007 * infrun.c (print_stop_reason): Add missing uiout field
4008 "reason" for SIGNAL_RECEIVED case.
4009
4010 2001-07-11 Mark Kettenis <kettenis@gnu.org>
4011
4012 * config/alpha/nm-linux.h (TARGET_ELF64, PSIGNAL_IN_SIGNAL_H):
4013 Remove unused macro's.
4014
4015 * config/powerpc/nm-linux.h (NO_SYS_REG_H): Remove, it's no longer
4016 used.
4017
4018 2001-07-11 Eli Zaretskii <eliz@is.elta.co.il>
4019
4020 * go32-nat.c (info_dos_cmdlist): New variable.
4021 (go32_info_dos_command): New function.
4022 (_initialize_go32_nat): Convert all DOS-specific commands into
4023 subcommands of "info dos". Suggested by Andrew Cagney
4024 <ac131313@redhat.com>.
4025
4026 2001-07-11 Mark Kettenis <kettenis@gnu.org>
4027
4028 * config/nm-linux.h: Fix comments.
4029
4030 * thread-db.c (enable_thread_event_reporting): Correct warning
4031 message about getting thread death breakpoint.
4032 Reported by John S Kallal <jskallal@home.com>.
4033
4034 * i386-tdep.c (i386_extract_return_value): "Fix" comment.
4035 (i386_store_return_value): Frob FPU status and tag word to make
4036 sure the return value is the only value on the FPU stack.
4037
4038 * config/tm-linux.h: Do not include <signal.h>. Instead provide
4039 reasonable defaults for REALTIME_LO and REALTIME_HI if they're not
4040 already defined.
4041 * config/nm-linux.h: Include <signal.h>.
4042 [__SIGRTMIN] (REALTIME_LO, REALTIME_HI): Define to __SIGRTMIN and
4043 (__SIGRTMAX + 1) respectively.
4044
4045 2001-07-10 Andrew Cagney <ac131313@redhat.com>
4046
4047 * mcore-rom.c: Include "serial.h".
4048 * Makefile.in (mcore-rom.o): Depends on "serial.h".
4049
4050 2001-07-10 Andrew Cagney <ac131313@redhat.com>
4051
4052 * Makefile.in (remote-bug.o): Depends on serial.h.
4053 * remote-bug.c: Include "serial.h".
4054 * MAINTAINERS: Mark m88k target as buildable.
4055 * TODO: Update.
4056
4057 2001-07-10 Jim Blandy <jimb@redhat.com>
4058
4059 Clean up the D10V port so that GDB and the target program no
4060 longer disagree on how big pointers are.
4061 * findvar.c (value_from_register): Remove special case code for D10V.
4062 * printcmd.c (print_frame_args): Same.
4063 * valops.c (value_at, value_fetch_lazy): Same.
4064 * values.c (unpack_long): Same.
4065 * gdbarch.sh: Changes to effect the following:
4066 * gdbarch.h (GDB_TARGET_IS_D10V, D10V_MAKE_DADDR,
4067 gdbarch_d10v_make_daddr_ftype, gdbarch_d10v_make_daddr,
4068 set_gdbarch_d10v_make_daddr, D10V_MAKE_IADDR,
4069 gdbarch_d10v_make_iaddr_ftype, gdbarch_d10v_make_iaddr,
4070 set_gdbarch_d10v_make_iaddr, D10V_DADDR_P,
4071 gdbarch_d10v_daddr_p_ftype, gdbarch_d10v_daddr_p,
4072 set_gdbarch_d10v_daddr_p, D10V_IADDR_P,
4073 gdbarch_d10v_iaddr_p_ftype, gdbarch_d10v_iaddr_p,
4074 set_gdbarch_d10v_iaddr_p, D10V_CONVERT_DADDR_TO_RAW,
4075 gdbarch_d10v_convert_daddr_to_raw_ftype,
4076 gdbarch_d10v_convert_daddr_to_raw,
4077 set_gdbarch_d10v_convert_daddr_to_raw, D10V_CONVERT_IADDR_TO_RAW,
4078 gdbarch_d10v_convert_iaddr_to_raw_ftype,
4079 gdbarch_d10v_convert_iaddr_to_raw,
4080 set_gdbarch_d10v_convert_iaddr_to_raw): Delete declarations.
4081 * gdbarch.c: Delete the corresponding definitions.
4082 (struct gdbarch): Delete members d10v_make_daddr,
4083 d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
4084 d10v_convert_daddr_to_raw, and d10v_convert_iaddr_to_raw.
4085 (startup_gdbarch): Remove initializers for the above.
4086 (verify_gdbarch, gdbarch_dump): Don't verify or dump them any
4087 more.
4088 * d10v-tdep.c (d10v_register_virtual_type): Rather that
4089 claiming the stack pointer and PC are 32 bits long (which they
4090 aren't), say that the stack pointer is an int16_t, and the
4091 program counter is a function pointer. This allows the rest
4092 of GDB to make the appropriate conversions between the code
4093 pointer format and real addresses.
4094 (d10v_register_convertible, d10v_register_convert_to_virtual,
4095 d10v_register_convert_to_raw): Delete function; no registers
4096 are convertible now, so we use
4097 generic_register_convertible_not instead.
4098 (d10v_address_to_pointer, d10v_pointer_to_address): New gdbarch
4099 methods.
4100 (d10v_push_arguments, d10v_extract_return_value): Remove special
4101 cases for code and data pointers.
4102 (d10v_gdbarch_init): Set gdbarch_ptr_bit to 16, so that GDB and
4103 the target agree on how large pointers are. Say that addresses
4104 are 32 bits long. Register the address_to_pointer and
4105 pointer_to_address conversion functions. Since no registers are
4106 convertible now, register generic_register_convertible_not as the
4107 gdbarch_register_convertible method instead of
4108 d10v_register_convertible. Remove registrations for
4109 d10v_register_convert_to_virtual,
4110 d10v_register_convert_to_raw, gdbarch_d10v_make_daddr,
4111 gdbarch_d10v_make_iaddr, gdbarch_d10v_daddr_p,
4112 gdbarch_d10v_iaddr_p, gdbarch_d10v_convert_daddr_to_raw, and
4113 gdbarch_d10v_convert_iaddr_to_raw.
4114
4115 * printcmd.c (print_scalar_formatted): If we are printing an
4116 address, remember that TARGET_ADDR_BIT is not always equal to
4117 TARGET_PTR_BIT.
4118
4119 * valops.c (value_cast): When casting a pointer to an integer,
4120 don't convert it to an address.
4121
4122 2001-07-10 Andrew Cagney <ac131313@redhat.com>
4123
4124 * remote-utils.h (struct serial): Declare as opaque. Remove
4125 include of "serial.h".
4126 * Makefile.in (remote_utils_h): Update.
4127
4128 * monitor.h (struct serial): Declare as opaque. Remove include of
4129 "serial.h".
4130 (struct monitor_ops): Replace serial_t with `struct serial *'.
4131 * monitor.c (monitor_desc): Ditto.
4132
4133 2001-07-10 Daniel Jacobowitz <drow@mvista.com>
4134
4135 * mips-linux-tdep.c: New file.
4136 * mips-linux-nat.c: New file.
4137 * config/mips/linux.mh: New file.
4138 * config/mips/linux.mt: New file.
4139 * config/mips/xm-linux.h: New file.
4140 * config/mips/nm-linux.h: New file.
4141 * config/mips/tm-linux.h: New file.
4142 * configure.host: Recognize mips*-*-linux*.
4143 * configure.tgt: Likewise.
4144 * NEWS: Mention mips*-*-linux* port.
4145
4146 2001-07-09 Andrew Cagney <ac131313@redhat.com>
4147
4148 * serial.h (struct serial): Rename `struct _serial_t'.
4149 * serial.c (XMALLOC): Define.
4150 (serial_open): Update. Use XMALLOC.
4151 (serial_fdopen): Ditto.
4152
4153 2001-07-07 Andrew Cagney <ac131313@redhat.com>
4154
4155 * gdbtypes.h (builtin_type_void_data_ptr): Rename
4156 builtin_type_ptr.
4157 * gdbtypes.c (builtin_type_void_data_ptr): Update.
4158 (build_gdbtypes): Update.
4159 (_initialize_gdbtypes): Update.
4160 * values.c (value_as_pointer): Update.
4161 * utils.c (host_pointer_to_address): Update.
4162 (address_to_host_pointer): Update.
4163
4164 2001-07-08 Andrew Cagney <ac131313@redhat.com>
4165
4166 * remote-udi.c (udi_wait): Make type, instead of name, of first
4167 parameter a ptid_t.
4168
4169 2001-07-07 Andrew Cagney <ac131313@redhat.com>
4170
4171 * ser-mac.c: Make obsolete.
4172 * Makefile.in (ser-mac.o): Ditto.
4173
4174 2001-07-08 Eli Zaretskii <eliz@is.elta.co.il>
4175
4176 * go32-nat.c (go32_get_windows_version, print_mem, go32_sysinfo)
4177 (read_memory_region, get_descriptor, display_descriptor)
4178 (go32_sldt, go32_sgdt, go32_sidt): New functions.
4179 (top-level): Include ctype.h, utsname.h, dos.h, and go32.h. Ifdef
4180 away `disable' from dos.h, since breakpoint.h defines an enum
4181 member of the same name, and GCC 2.7.2 barfs.
4182 (_initialize_go32_nat): Provide new commands dos-sysinfo, dos-ldt,
4183 dos-gdt, and dos-idt, all of them in the "info" class
4184
4185 2001-07-07 Kevin Buettner <kevinb@redhat.com>
4186
4187 * procfs.c (create_procinfo): Allocate space for saved_entryset
4188 and saved_exitset.
4189 (destroy_one_procinfo): Free space allocated to saved_entryset
4190 and saved_exitset.
4191
4192 2001-07-07 Andrew Cagney <ac131313@redhat.com>
4193
4194 * TODO (5.1): Update.
4195
4196 2001-07-07 Andrew Cagney <ac131313@redhat.com>
4197
4198 * symtab.c (main_name): New function.
4199 (set_main_name): New function.
4200 * symtab.h: Declare.
4201 * TODO: Update
4202
4203 From 2000-03-05 Anthony Green <green@redhat.com>:
4204 * dbxread.c (process_one_symbol): Handle the N_MAIN stab by
4205 setting main_name.
4206 * blockframe.c (inside_main_func): Use main_name instead of
4207 "main".
4208 * symtab.c (find_main_psymtab): Ditto.
4209 * source.c (select_source_symtab): Ditto.
4210 * nlmread.c (nlm_symfile_read): Ditto.
4211 * rs6000-tdep.c (skip_prologue): Ditto.
4212
4213 2001-07-07 Andrew Cagney <ac131313@redhat.com>
4214
4215 * TODO: Convert most items into PRs.
4216
4217 2001-07-07 Mark Kettenis <kettenis@gnu.org>
4218
4219 * lin-lwp.c (status_to_str): New function.
4220 (lin_lwp_wait): Use it to print debug messages where appropriate.
4221
4222 2001-07-06 Michael Chastain <chastain@redhat.com>
4223
4224 * i387-tdep.c (print_i387_value): Fix pointer glitch.
4225
4226 2001-07-07 Mark Kettenis <kettenis@gnu.org>
4227
4228 * lin-lwp.c (count_events_callback): Fix formatting. Turn check
4229 commented with "paranoia" into gdb_assert.
4230 (select_event_lwp_callback): Likewise.
4231 (cancel_breakpoints_callback): Bail out early if LP is the event
4232 LWP. Add comment about backup up breakpoints. Fix formatting and
4233 debug message.
4234 (select_event_lwp): Make solely repsonsible for switching event
4235 LWP. Fix formatting and remove bogus "ERROR" debug message.
4236 Don't backup breakpoints from here.
4237 (lin_lwp_wait): Don't touch LP->status, let select_event_lwp
4238 handle that. Only call select_event_lwp if we're not waiting for
4239 a specific LWP, i.e. when PID == -1. Backup breakpoints from here.
4240
4241 2001-07-06 Michael Snyder <msnyder@redhat.com>
4242
4243 * procfs.c (procfs_resume): Silence noisy warning.
4244
4245 2001-06-12 Michael Snyder <msnyder@redhat.com>
4246
4247 * lin-lwp.c: Prevent thread starvation by using a monte carlo
4248 method to choose which of several event threads to handle next.
4249
4250 (stop_wait_callback): Defer pushback of breakpoint events until
4251 later; add SIGTRAP events to the queue of unhandled events.
4252 Keep calling waitpid until SIGSTOP retrieved. If more than one
4253 non-SIGSTOP event is retrieved, push them back onto the process
4254 queue using kill.
4255 (count_events_callback, select_singlestep_lwp_callback,
4256 select_event_lwp_callback, cancel_breakpoints_callback,
4257 select_event_lwp): New functions. Implement monte carlo method
4258 for selecting which of several SIGTRAP threads to handle next.
4259 Push back the breakpoint event for all threads other than the
4260 selected one.
4261 (lin_lwp_wait): Call select_event_lwp to decide which of several
4262 sigtrapped lwps to handle next.
4263 (resume_callback): Disable code that attempts to handle
4264 step_resume breakpoints. Let core gdb handle this.
4265
4266 2001-07-06 Jim Blandy <jimb@redhat.com>
4267
4268 * gdbtypes.h (builtin_type_void_func_ptr): New builtin type.
4269 * gdbtypes.c (builtin_type_void_func_ptr): Define the variable.
4270 (build_gdbtypes): Initialize it.
4271 (_initialize_gdbtypes): Swap it.
4272
4273 2001-07-04 Daniel Jacobowitz <drow@mvista.com>
4274
4275 * mips-tdep.c (mips32_op): Correct offset.
4276 (itype_op): Likewise.
4277 (itype_rs): Fix formatting.
4278 (itype_immediate): Fix formatting.
4279 (jtype_op): Correct offset.
4280 (jtype_target): Fix formatting.
4281 (rtype_op): Correct offset.
4282 (rtype_rs): Fix formatting.
4283 (rtype_rt): Likewise.
4284 (rtype_rd): Likewise.
4285 (rtype_shamt): Likewise.
4286 (rtype_funct): Likewise.
4287
4288 (mips32_next_pc): Fix formatting and comments. Recognize
4289 coprocessor 1 branches. Check the correct field for BLT family
4290 branches. Use itype_rt instead of itype_rs for the second register
4291 of a BNE or BNEL branch. Move (unreachable) default case.
4292
4293 2001-07-04 Andrew Cagney <ac131313@redhat.com>
4294
4295 * ui-out.h (struct ui_out_impl): Add field is_mi_like_p.
4296 (ui_out_is_mi_like_p): Declare.
4297 * ui-out.c (ui_out_is_mi_like_p): Define.
4298 (default_ui_out_impl): Initialize is_mi_like_p to zero.
4299 * cli-out.c (cli_ui_out_impl): Ditto.
4300 * breakpoint.c (print_it_typical): Use ui_out_is_mi_like_p.
4301 (watchpoint_check, print_one_breakpoint, mention): Ditto.
4302 * infrun.c (print_stop_reason, normal_stop): Ditto.
4303
4304 2001-07-05 Daniel Jacobowitz <drow@mvista.com>
4305
4306 * mips-tdep.c (mips_software_single_step): New function.
4307 * config/mips/tm-mips.h: Add prototype for
4308 mips_software_single_step.
4309
4310 2001-07-05 Daniel Jacobowitz <drow@mvista.com>
4311
4312 * ppc-linux-nat.c (supply_gregset): Use elf_greg_t instead
4313 of greg_t.
4314 (fill_gregset): Likewise.
4315
4316 2001-07-05 Andrew Cagney <ac131313@redhat.com>
4317
4318 * objfiles.c (open_mapped_file): Use lbasename instead of
4319 basename.
4320
4321 2001-07-05 Jim Blandy <jimb@redhat.com>
4322
4323 * d10v-tdep.c (d10v_frame_chain, d10v_frame_init_saved_regs,
4324 show_regs, d10v_read_pc, d10v_write_pc, d10v_read_sp,
4325 d10v_write_sp, d10v_write_fp, d10v_read_fp,
4326 d10v_push_return_address): Call the functions d10v_make_daddr,
4327 d10v_make_iaddr, d10v_convert_iaddr_to_raw, and
4328 d10v_convert_daddr_to_raw, not the global macros D10V_MAKE_DADDR,
4329 D10V_MAKE_IADDR, D10V_CONVERT_IADDR_TO_RAW, and
4330 D10V_CONVERT_DADDR_TO_RAW.
4331
4332 * dwarf2read (dwarf2_build_psymtabs_hard): Doc fix.
4333
4334 2001-07-05 Mark Kettenis <kettenis@gnu.org>
4335
4336 * config/i386/xm-go32.h (HOST_I386): Removed.
4337 * config/i386/xm-linux.h (HOST_I386): Removed.
4338
4339 2001-07-04 Mark Kettenis <kettenis@gnu.org>
4340
4341 * i387-tdep.c (print_i387_value): Add extra space after final full
4342 stop in comment.
4343
4344 2001-07-04 Andrew Cagney <ac131313@redhat.com>
4345
4346 * TODO (5.1): Update. Doco changes committed.
4347
4348 2001-06-29 Andrew Cagney <ac131313@redhat.com>
4349
4350 * config/arm/tm-arm.h: Include "floatformat.h".
4351
4352 2001-06-29 Andrew Cagney <ac131313@redhat.com>
4353
4354 * i387-tdep.c: Include "gdb_assert.h".
4355 (print_i387_value): Use extract_floating to extract the FP value
4356 from a zero padded local buffer.
4357
4358 2001-06-28 Andrew Cagney <ac131313@redhat.com>
4359
4360 * TODO: Delete all thread items. The thread code was overhauled.
4361
4362 2001-07-04 Elena Zannoni <ezannoni@redhat.com>
4363
4364 * memattr.c (create_mem_region): Move n to next memory region,
4365 to avoid infinite loop.
4366
4367 * memattr.h: Add copyright statement.
4368 * memattr.c: Ditto.
4369
4370 2001-07-04 Jim Blandy <jimb@redhat.com>
4371
4372 * dwarf2read.c (struct partial_die_info): New member: has_pc_info.
4373 (read_partial_die): Delete fourth argument; we return this info in
4374 the struct partial_die_info object itself now.
4375 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Use the
4376 has_pc_info field of the partial die struct, rather than passing a
4377 variable by reference to read_partial_die.
4378
4379 * dwarf2read.c (dwarf2_build_psymtabs_hard): Remove extraneous
4380 code in loop condition.
4381
4382 2001-07-03 Michael Snyder <msnyder@redhat.com>
4383
4384 * thread_db (find_new_threads_callback, thread_db_thread_alive,
4385 attach_thread): Update comments.
4386
4387 2001-06-29 Ken Whaley <ken@believe.com>
4388
4389 * thread-db.c (attach_thread): Check for TD_THR_ZOMBIE in addition
4390 to TD_THR_UNKNOWN when looking for defunct zombie threads.
4391 (thread_db_thread_alive): Ditto.
4392 (find_new_threads_callback): Ditto.
4393
4394 2001-07-02 Daniel Jacobowitz <drow@mvista.com>
4395
4396 * MAINTAINERS: Add myself to the write-after-approval list.
4397
4398 2001-07-02 Daniel Jacobowitz <drow@mvista.com>
4399
4400 * solib-svr4.c: Include "elf/mips.h".
4401 (elf_locate_base): Make DT_MIPS_RLD_MAP block unconditional.
4402
4403 2001-07-02 Jim Blandy <jimb@redhat.com>
4404
4405 * dwarf2read.c (read_comp_unit, sibling_die, dump_die,
4406 dump_die_list, store_in_ref_table, follow_die_ref): Make these
4407 static; they're private functions.
4408
4409 2001-07-01 Mark Elbrecht <snowball@bigfoot.com>
4410
4411 * coffread.c (coff_symfile_read): Parse DWARF2 info if present.
4412
4413 2001-06-28 Elena Zannoni <ezannoni@redhat.com>
4414
4415 * TODO: Add import of readline 4.2 as a gdb 5.2 task.
4416
4417 2001-06-29 Andrew Cagney <ac131313@redhat.com>
4418
4419 * config/djgpp/fnchange.lst: Sort.
4420
4421 2001-06-28 Andrew Cagney <ac131313@redhat.com>
4422
4423 * config/djgpp/fnchange.lst: Rename mi0-var-block.exp,
4424 mi0-var-cmd.exp, mi0-var-child.exp and mi0-var-display.exp.
4425
4426 2001-06-29 Andreas Jaeger <aj@suse.de>
4427
4428 * MAINTAINERS: Add myself to the write-after-approval list.
4429
4430 2001-06-28 Andrew Cagney <ac131313@redhat.com>
4431
4432 * remote-array.c (SWAP_TARGET_AND_HOST): Delete macro.
4433 (get_hex_word): Don't use HOST_BYTE_ORDER.
4434 (array_fetch_registers): Add variable ``reg''. Use
4435 store_unsigned_integer to byte-swap the register. Delete unused
4436 local ``regs''.
4437
4438 2001-06-28 Andrew Cagney <ac131313@redhat.com>
4439
4440 * MAINTAINERS: Add Per Bothner to Java maintainers.
4441
4442 2001-06-28 Andrew Cagney <ac131313@redhat.com>
4443
4444 * rdi-share/unixcomm.c (SERIAL_PREFIX): Always provide a default.
4445 * rdi-share/hostchan.h (__unix): Hack, provide a default value.
4446 * rdi-share/host.h (__unix): Hack, define when __NetBSD__.
4447 * TODO: Update.
4448 * MAINTAINERS: Update. arm-elf builds.
4449
4450 2001-06-28 Jim Blandy <jimb@redhat.com>
4451
4452 * d10v-tdep.c (d10v_ts2_dmap_register): Doc fix.
4453
4454 * d10v-tdep.c (d10v_frame_chain_valid, d10v_use_struct_convention,
4455 d10v_breakpoint_from_pc, d10v_register_byte,
4456 d10v_register_raw_size, d10v_register_virtual_size,
4457 d10v_register_virtual_type, d10v_register_convertible,
4458 d10v_register_convert_to_virtual, d10v_register_convert_to_raw,
4459 d10v_make_daddr, d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
4460 d10v_convert_iaddr_to_raw, d10v_convert_daddr_to_raw,
4461 d10v_store_struct_return, d10v_store_return_value,
4462 d10v_extract_struct_value_address, d10v_frame_saved_pc,
4463 d10v_saved_pc_after_call, d10v_pop_frame, d10v_skip_prologue,
4464 d10v_frame_chain, d10v_frame_init_saved_regs,
4465 d10v_init_extra_frame_info, d10v_read_pc, d10v_write_pc,
4466 d10v_read_sp, d10v_write_sp, d10v_write_fp, d10v_read_fp,
4467 d10v_push_return_address, d10v_push_arguments,
4468 d10v_extract_return_value): Make these functions static.
4469
4470 2001-06-28 Andrew Cagney <ac131313@redhat.com>
4471
4472 From Fernando Nasser:
4473 * infrun.c (handle_inferior_event): Handle "nexti" inside function
4474 prologues.
4475
4476 2001-06-28 Michael Snyder <msnyder@redhat.com>
4477
4478 * infrun.c (handle_inferior_event): Replace prev_pc test in all
4479 calls to bpstat_stop_status (removed in 1999-09-24). This test
4480 helps distinguish stepping over a breakpoint trap from stepping
4481 thru a jump to the instruction after a breakpoint trap.
4482 (handle_inferior_event): Don't bother writing the PC if
4483 DECR_PC_AFTER_BREAK is zero (optimization).
4484 * breakpoint.c (bpstat_stop_status): Add comment explaining the
4485 purpose and usage of the "not_a_breakpoint" argument in computing
4486 the breakpoint address.
4487
4488 2001-06-28 Andrew Cagney <ac131313@redhat.com>
4489
4490 From 2000-12-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
4491 * monitor.c (setmem_resp_delim_pattern): New regexp pattern.
4492 (setreg_resp_delim_pattern): Likewise.
4493 (setmem_resp_delim_fastmap): New buffer.
4494 (setreg_resp_delim_fastmap): Likewise.
4495 (monitor_open): Initialize above regexp if they are defined.
4496 (monitor_write_memory): Use regexp to check the result of write.
4497 (monitor_store_register): Likewise to check result of register set.
4498
4499 2001-06-28 Andrew Cagney <ac131313@redhat.com>
4500
4501 From 2000-06-14 John Marshall <john_w_marshall@palm.com>:
4502 * coff-solib.c: Include symfile.h and objfiles.h to make
4503 OBJF_SHARED visible.
4504
4505 2001-06-28 Andrew Cagney <ac131313@redhat.com>
4506
4507 * configure.in (--enable-gdbmi): Enable by default.
4508 * configure: Regenerate.
4509 * TODO: Update.
4510 * NEWS: Update
4511
4512 2001-06-28 Joel Brobecker <brobecker@act-europe.fr>
4513
4514 * solib-osf.c (osf_in_dynsym_resolve_code): Add a comment
4515 explaining the consequences of always returning zero. No code
4516 change.
4517
4518 2001-06-28 Andrew Cagney <ac131313@redhat.com>
4519
4520 From 2001-06-08 Daniel Jacobowitz <djacobowitz@mvista.com>:
4521 * defs.h (enum target_signal): Add TARGET_SIGNAL_REALTIME_65
4522 to TARGET_SIGNAL_REALTIME_127.
4523 * target.c (struct signals): Add SIG63 to SIG127.
4524 (target_signal_from_host): Handle up to 127 signals.
4525 (do_target_signal_to_host): Likewise.
4526
4527 2001-06-27 Andrew Cagney <ac131313@redhat.com>
4528
4529 * remote-sds.c (sds_start_remote): Change type of ``c'' to int
4530 from possibly unsigned char.
4531
4532 2001-06-27 Andrew Cagney <ac131313@redhat.com>
4533
4534 * ser-ocd.c: Delete file.
4535 * Makefile.in (ALLDEPFILES): Remove ser-ocd.c
4536 (ser-ocd.o): Delete target.
4537 * TODO: Update.
4538 * NEWS: Update.
4539
4540 2001-06-27 Andrew Cagney <ac131313@redhat.com>
4541
4542 * MAINTAINERS (Write After Approval): Sort.
4543 (Past Maintainers): Daniel Berlin stepped down as C++ maintainer.
4544
4545 2001-06-26 Andrew Cagney <ac131313@redhat.com>
4546
4547 * breakpoint.c (breakpoint_1): Always output the breakpoint
4548 headings. Leave it to ui-out to decide which
4549
4550 2001-06-25 Andrew Cagney <ac131313@redhat.com>
4551
4552 * stack.c (print_frame): For ui_out, output a list of arguments.
4553
4554 2001-06-25 Kevin Buettner <kevinb@redhat.com>
4555
4556 * MAINTAINERS (paper trail): Update.
4557
4558 2001-06-25 Michael Snyder <msnyder@redhat.com>
4559
4560 * infrun.c: Eliminate the "thread_step_needed" state variable,
4561 and replace it with a relatively simple test in resume.
4562 (resume): Replace thread_step_needed logic with a test for
4563 stepping, breakpoint_here_p and breakpoints_inserted.
4564 Move CANNOT_STEP_BREAKPOINT logic to after thread_step logic.
4565 (proceed): Discard thread_step_needed logic.
4566 (wait_for_inferior, fetch_inferior_event, handle_inferior_event):
4567 Discard thread_step_needed logic.
4568
4569 2001-06-24 Fernando Nasser <fnasser@redhat.com>
4570
4571 * remote-rdi.c (arm_rdi_wait): Fix return type in prototype.
4572 * rdi-share/host.h: Add missing parenthesis in conditional.
4573
4574 2001-06-22 J.T. Conklin <jtc@redback.com>
4575
4576 * configure.in: include nlist.h when checking for member som_addr
4577 in struct so_map.
4578 * configure: regenerate.
4579
4580 2001-06-21 Keith Seitz <keiths@redhat.com>
4581
4582 * cli-out.c (cli_out_new): Initialize new structure member
4583 "suppress_output".
4584
4585 2001-06-20 Andrew Cagney <ac131313@redhat.com>
4586
4587 * ui-out.h (ui_out_table_header): Add parameter ``col_name''.
4588 (table_header_ftype): Ditto.
4589 * cli-out.c (cli_table_header): Update.
4590 * ui-out.c (ui_out_table_header): Update.
4591 (uo_table_header): Update.
4592 (default_table_header): Update.
4593 (append_header_to_list): Update.
4594 (struct ui_out_header): Add field ``col_name''.
4595 (append_header_to_list): Use xstrdup. Initialize col_name.
4596 * breakpoint.c (breakpoint_1): Pass COL_NAME to
4597 ui_out_table_header.
4598
4599 2001-06-19 Andrew Cagney <ac131313@redhat.com>
4600
4601 * cli-out.c: Include "gdb_assert.h'.
4602 (struct ui_out_data): Add field ``suppress_output.
4603 (cli_table_begin): When NR_ROWS is zero, suppress_output.
4604 (cli_table_end): Clear suppress_output.
4605 (cli_table_body): Check suppress_output.
4606 (cli_table_header, cli_begin): Ditto.
4607 (cli_end, cli_field_int, cli_field_skip): Ditto.
4608 (cli_field_string, cli_field_fmt, cli_spaces): Ditto.
4609 (cli_text, cli_message, cli_wrap_hint): Ditto.
4610 * breakpoint.c (breakpoint_1): Close the ui_out table before
4611 printing the breakpoint not found message.
4612
4613 2001-06-18 Andrew Cagney <ac131313@redhat.com>
4614
4615 * ui-out.c (ui_out_table_begin): Add parameter ``nr_rows''.
4616 (default_table_begin): Ditto.
4617 (uo_table_begin): Ditto.
4618 * cli-out.c (cli_table_begin): Ditto.
4619 * ui-out.h (ui_out_table_begin): Update
4620 (table_begin_ftype): Update.
4621 * breakpoint.c (breakpoint_1): Pass nr_printable_breakpoints to
4622 ui_out_table_begin.
4623
4624 2001-06-16 Andrew Cagney <ac131313@redhat.com>
4625
4626 * breakpoint.c (breakpoint_1): Restructure. Compute the
4627 nr_printable_breakpoints. Move the header output to before the
4628 main print breakpoints loop.
4629 (user_settable_breakpoint): New function.
4630
4631 2001-06-18 Andrew Cagney <ac131313@redhat.com>
4632
4633 * infrun.c, breakpoint.c: Use strncmp as the "mi" test. Allow,
4634 "mi", "mi0" and "mi1".
4635
4636 2001-06-17 Andrew Cagney <ac131313@redhat.com>
4637
4638 * gdbarch.sh: Generate an error when conflicting macro
4639 definitions. Generate an error when both pure multi-arch and
4640 "tm.h".
4641 * gdbarch.h, gdbarch.c: Regenerate.
4642 * defs.h (GDB_MULTI_ARCH_TM): Rewrite definition.
4643
4644 2001-06-17 Andrew Cagney <ac131313@redhat.com>
4645
4646 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Down grade to
4647 GDB_MULTI_ARCH_PARTIAL from two.
4648
4649 2001-06-17 Fernando Nasser <fnasser@redhat.com>
4650
4651 From 2001-06-15 Eirik Fuller <eirik@hackrat.com>
4652 * cli/cli-script.c (free_command_lines): Reset list pointer.
4653
4654 2001-06-16 Andrew Cagney <ac131313@redhat.com>
4655
4656 * arch-utils.c (init_frame_pc_default): New function
4657 * arch-utils.h (init_frame_pc_default): Declare.
4658 * gdbarch.sh (INIT_FRAME_PC): Default to init_frame_pc_default and
4659 not init_frame_pc_noop.
4660 * gdbarch.h, gdbarch.c: Re-generate.
4661 * blockframe.c (INIT_FRAME_PC): Delete macro definition.
4662 * mips-tdep.c (mips_gdbarch_init): Set init_frame_pc to
4663 init_frame_pc_noop.
4664
4665 2001-06-16 Andrew Cagney <ac131313@redhat.com>
4666
4667 * gdbarch.c: Regenerate. Out-of-sync with gdbarch.sh.
4668
4669 2001-06-15 Andrew Cagney <ac131313@redhat.com>
4670
4671 * gdbarch.sh (CANNOT_FETCH_REGISTER): Multi-arch.
4672 (CANNOT_STORE_REGISTER): Ditto.
4673 * infptrace.c (CANNOT_FETCH_REGISTER): Delete definition.
4674 (CANNOT_STORE_REGISTER): Ditto.
4675 * regcache.c (CANNOT_STORE_REGISTER): Ditto.
4676 * lynx-nat.c (CANNOT_STORE_REGISTER): Ditto.
4677 * arch-utils.h (cannot_register_not): Define.
4678 * arch-utils.c (cannot_register_not): Declare.
4679
4680 2001-06-15 Andrew Cagney <ac131313@redhat.com>
4681
4682 * gdbarch.sh: Clarify pre/post default
4683 (INIT_FRAME_PC_FIRST, INIT_FRAME_PC): Multiarch.
4684 * blockframe.c (get_prev_frame): Remove #ifdef from around
4685 INIT_FRAME_PC_FIRST call.
4686 * arch-utils.c (init_frame_pc_noop): Define.
4687 * arch-utils.h (init_frame_pc_noop): Declare.
4688 * config/mips/tm-mips.h (INIT_FRAME_PC_FIRST): Delete.
4689 (INIT_FRAME_PC, mips_init_frame_pc_first): Ditto.
4690 * mips-tdep.c (mips_init_frame_pc_first): Make static.
4691 (mips_gdbarch_init): Initialize init_frame_pc_first.
4692 (mips_dump_tdep): Update.
4693
4694 2001-06-15 Michael Snyder <msnyder@redhat.com>
4695
4696 * infrun.c (context_switch): New function. Abstract the operation
4697 of saving and restoring infrun's state when switching threads.
4698 (handle_inferior_event): Normalize the handling of the 'thread hop'
4699 event (when the wrong thread hits a thread-specific breakpoint,
4700 and we need to solo-step that thread past the breakpoint).
4701 Call keep_going, instead of target_resume. Handle the subsequent
4702 singlestep-trap as a normal event instead of just resuming.
4703
4704 2001-06-15 Andrew Cagney <ac131313@redhat.com>
4705
4706 * arch-utils.c (core_addr_identity): New function. Rename
4707 default_convert_from_func_ptr_addr.
4708 * gdbarch.sh (CONVERT_FROM_FUNC_PTR_ADDR): Update.
4709 (ADDR_BITS_REMOVE): Define. Default to core_addr_identity.
4710 * defs.h (ADDR_BITS_REMOVE): Delete macro definition.
4711 * config/mips/tm-mips.h (ADDR_BITS_REMOVE): Delete definition.
4712 * mips-tdep.c (mips_addr_bits_remove): Make static.
4713 (mips_gdbarch_init): Initialize addr_bits_remove.
4714
4715 2001-06-15 Andrew Cagney <ac131313@redhat.com>
4716
4717 From 2001-02-26 D.J. Barrow <djbarrow@de.ibm.com>:
4718 * configure.tgt: Add S/390 31 & 64 bit target configuration.
4719 * configure.host: Ditto for host.
4720
4721 2001-06-15 Andrew Cagney <ac131313@redhat.com>
4722
4723 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS_P): Delete definition.
4724 (EXTRACT_STRUCT_VALUE_ADDRESS): Change to a function with
4725 predicate.
4726 * gdbarch.h, gdbarch.c: Regenerate.
4727 * values.c (value_being_returned): Change the reference to
4728 EXTRACT_STRUCT_VALUE_ADDRESS_P to a function call.
4729
4730 2001-06-15 Joel Brobecker <brobecker@act-europe.fr>
4731
4732 * MAINTAINERS: Add Paul Hilfinger and Joel Brobecker to the
4733 Write After Approval list.
4734
4735 2001-06-14 Michael Snyder <msnyder@redhat.com>
4736
4737 * remote.c (show_remote_protocol_qSymbol_packet_cmd,
4738 set_remote_protocol_qSymbol_packet_cmd): New functions.
4739 (init_all_packet_configs, show_remote_cmd): Add qSymbol packet.
4740 (remote_check_symbols): New function. Implement qSymbol packet,
4741 allowing target to request symbol lookup service from gdb.
4742 (remote_open_1, remote_async_open_1): Call remote_check_symbols,
4743 allowing symbol lookup from exec_bfd on connection to target.
4744 (remote_new_objfile): New function. Catch new objfile notifications
4745 from shared library module, and call remote_check_symbols.
4746 (_initialize_remote): Hook remote_new_objfile into the shared
4747 library notification chain. Add "set remote symbol-lookup" command.
4748
4749 2001-06-14 Keith Seitz <keiths@redhat.com>
4750
4751 * tracepoint.c (trace_command): We now have tracepoint
4752 events. Get rid of those ugly hooks.
4753 (tracepoint_operation): Likewise.
4754 (trace_pass_command): Likewise.
4755
4756 2001-06-13 Michael Snyder <msnyder@redhat.com>
4757
4758 * gdbthread.h (struct thread_info): Add new fields:
4759 current_line, current_symtab, step_sp, for saved infrun state.
4760 * thread.c (save_infrun_state, load_infrun_state): Save and
4761 restore current_line, current_symtab, and step_sp.
4762 (add_thread): Rather than adding assignments to initialize
4763 the new fields, just use memset (tp, 0, sizeof (*tp).
4764 This way future new fields will not be overlooked.
4765 * infrun.c (handle_inferior_event): Save and restore save_sp,
4766 current_line, and current_symtab when switching threads.
4767
4768 2001-06-13 Elena Zannoni <ezannoni@redhat.com>
4769
4770 * MAINTAINERS: Add Andrew Cagney as co-maintainer of
4771 testsuite/gdb.mi.
4772
4773 2001-06-11 Andrew Cagney <ac131313@redhat.com>
4774
4775 * symtab.c (lookup_symtab_1): Replace basename with lbasename.
4776 (lookup_partial_symtab, file_matches): Ditto.
4777 (make_source_files_completion_list): Ditto.
4778 (make_file_symbol_completion_list): Ditto. Make local char*
4779 variable ``tail'' constant.
4780 (make_source_files_completion_list): Ditto with ``base_name''.
4781 * source.c (open_source_file): Use lbasename. Make ``p'' const
4782 char *.
4783
4784 2001-06-13 Eli Zaretskii <eliz@is.elta.co.il>
4785
4786 * config/i386/xm-go32.h (SLASH_P, ROOTED_P, SLASH_CHAR)
4787 (SLASH_STRING): Remove unused definitions.
4788 * config/i386/xm-cygwin.h: Likewise.
4789
4790 2001-06-12 Andrew Cagney <ac131313@redhat.com>
4791
4792 * ui-out.c (ui_out_list_begin): Add parameter ``id''.
4793 (make_cleanup_ui_out_list_begin_end): Ditto. Open the list.
4794 * ui-out.h: Update declarations.
4795
4796 Mon Jun 11 17:26:43 2001 Andrew Cagney <cagney@b1.cygnus.com>
4797
4798 * source.c (openp): Make parameters ``path'' and ``string''
4799 constant.
4800 (openp): Use alloca to safely duplicate ``string''. Make local
4801 variables ``p'' and ``p1'' constant. Delete char* casts.
4802 * defs.h: Update.
4803
4804 * symtab.c (lookup_symtab_1): Make parameter ``name'' constant.
4805 (lookup_symtab, lookup_partial_symtab): Ditto.
4806 * symtab.h (lookup_symtab, lookup_partial_symtab): Update.
4807
4808 2001-06-11 Andrew Cagney <ac131313@redhat.com>
4809
4810 * ui-out.h (ui_out_table_begin): Make char* parameters constant.
4811 (ui_out_table_header, ui_out_field_int): Ditto.
4812 (ui_out_field_core_addr, ui_out_field_string): Ditto.
4813 (ui_out_field_stream, ui_out_field_fmt): Ditto.
4814 (ui_out_field_skip, ui_out_text, ui_out_message): Ditto.
4815 * ui-out.c (ui_out_table_begin, ui_out_table_header): Update.
4816 (ui_out_field_core_addr, ui_out_field_stream): Update.
4817 (ui_out_field_string, ui_out_field_fmt): Update.
4818 (ui_out_text, ui_out_message): Update.
4819 (append_header_to_list): Make char* parameters constant.
4820 (uo_table_header, uo_table_begin): Ditto.
4821 (uo_field_int, uo_field_skip): Ditto.
4822 (uo_field_string, uo_field_fmt): Ditto.
4823 (uo_text, uo_message): Ditto.
4824
4825 2001-06-11 Eli Zaretskii <eliz@is.elta.co.il>
4826
4827 * completer.c (gdb_completer_loc_break_characters): New variable.
4828 (line_completion_function): If we are completing on locations,
4829 back up the start of word pointer past all characters which can
4830 appear in a location spec.
4831 (location_completer): New function.
4832
4833 * completer.h: Add prototype for location_completer.
4834
4835 * symtab.c (make_source_files_completion_list)
4836 (add_filename_to_list, not_interesting_fname): New functions.
4837 (filename_seen): New function, body extracted from
4838 output_source_filename.
4839 (output_source_filename): Call filename_seen to check if the file
4840 was already printed.
4841 (make_symbol_completion_list): If TEXT includes a
4842 double-quoted string, return an empty list, not NULL.
4843 (make_file_symbol_completion_list): New function, similar to
4844 make_symbol_completion_list but with an additional argument
4845 SRCFILE.
4846
4847 * symtab.h (make_file_symbol_completion_list)
4848 (make_source_files_completion_list): Add prototypes.
4849
4850 * breakpoint.c (_initialize_breakpoint): Make location_completer
4851 be the completion function for all commands which set breakpoints
4852 and watchpoints.
4853 (top-level): #include "completer.h".
4854
4855 * tracepoint.c (_initialize_tracepoint): Make location_completer
4856 be the completion function for the "trace" command.
4857 (top-level): #include "completer.h".
4858
4859 * printcmd.c (_initialize_printcmd): Make location_completer be
4860 the completion function for the "print", "inspect", "call", and
4861 "disassemble" commands.
4862 (top-level): #include "completer.h".
4863
4864 * infcmd.c (_initialize_infcmd): Make location_completer be the
4865 completion function for the "go", "jump", and "until" commands.
4866 (top-level): #include "completer.h".
4867
4868 2001-06-10 Christopher Faylor <cgf@redhat.com>
4869
4870 * gnu-regex.c: Eliminate obsolete check for _MSC_VER.
4871 * utils.c (notice_quit): Remove dummy function only used for _MSC_VER.
4872 * values.c (unpack_double): Remove obsolete check for _MSC_VER.
4873 * defs.h: Ditto.
4874 * m32r-rom.c: Ditto.
4875 * p-exp.y: Ditto.
4876 * ser-e7kpc.c: Ditto. Define WIN32_LEAN_AND_MEAN under _WIN32, for
4877 faster compilation.
4878 (get_ds_base): Remove _MSC_VER version of this function.
4879 * nindy-share/ttyflush.c: Ditto.
4880 * rdi-share/host.h: Ditto.
4881 * ser-go32.c (dos_readchar): Remove call to obsolete function.
4882 * remote-sim.c (gdb_os_poll_quit): Ditto.
4883 * remote-e7000.c (expect): Remove obsolete #if 0'ed code.
4884
4885 * main.c (captured_main): Eliminate special Cygwin checks.
4886 * ser-tcp.c: Remove unneeded __CYGWIN__ guard against system include.
4887
4888 2001-06-09 Andrew Cagney <ac131313@redhat.com>
4889
4890 * Makefile.in (gdbcmd_h): Add ui_out_h.
4891 (breakpoint.o, infcmd.o, main.o, printcmd.o, stack.o): Ditto.
4892 (thread.o, top.o): Ditto.
4893
4894 * ui-out.h (table_begin_ftype): Make string parameters constant.
4895 (table_header_ftype): Ditto.
4896 (field_int_ftype): Ditto.
4897 (field_skip_ftype): Ditto.
4898 (field_string_ftype): Ditto.
4899 (field_fmt_ftype): Ditto.
4900 (text_ftype): Ditto.
4901 (message_ftype): Ditto.
4902 * cli-out.c (cli_table_begin): Ditto.
4903 (cli_table_header): Ditto.
4904 (cli_field_int): Ditto.
4905 (cli_field_skip): Ditto.
4906 (cli_field_string): Ditto.
4907 (cli_field_fmt): Ditto.
4908 (cli_text): Ditto.
4909 (cli_message): Ditto.
4910 (out_field_fmt): Ditto.
4911 * ui-out.c (default_table_begin): Ditto.
4912 (default_table_header): Ditto.
4913 (default_field_int): Ditto.
4914 (default_field_skip): Ditto.
4915 (default_field_string): Ditto.
4916 (default_field_fmt): Ditto.
4917 (default_text): Ditto.
4918 (default_message): Ditto.
4919
4920 2001-06-08 Michael Snyder <msnyder@redhat.com>
4921
4922 * breakpoint.c (delete_breakpoint): Pass mark_inserted to
4923 remove_breakpoint, so that the subsequent test for
4924 bpt->inserted will succeed, and duplicates will be fixed up.
4925
4926 2001-06-08 Per Bothner <per@bothner.com>
4927
4928 * dwarf2read.c (set_cu_language): Handle DW_LANG_Java.
4929
4930 2001-06-07 Keith Seitz <keiths@redhat.com>
4931
4932 * tracepoint.c (tracepoint_opertation): Add ui event
4933 notifications.
4934 (trace_pass_command): Ditto.
4935
4936 2001-06-07 Andrew Cagney <ac131313@redhat.com>
4937
4938 * MAINTAINERS (Write After Approval): Note the entry criteria.
4939 (HP/PA): Jeff Law stepped down
4940
4941 2001-06-07 Jim Blandy <jimb@redhat.com>
4942
4943 * gdbarch.sh: Make sure that '[' doesn't interpret interesting
4944 variable values as operators.
4945
4946 2001-06-07 Keith Seitz <keiths@redhat.com>
4947
4948 * gdb-events.sh: Fix quote escaping which was obsoleted
4949 by last patch.
4950
4951 2001-06-07 Keith Seitz <keiths@redhat.com>
4952
4953 * gdb-events.sh: Make if statements and tests
4954 a little more portable.
4955 Don't use shell's echo command to put strings containing
4956 escaped characeters into a file -- different flavors of /bin/sh
4957 require differnt levels of escaping. Use cat <<EOF instead.
4958 Our internal field separator is a colon. Change all
4959 commands which assume it is a space.
4960
4961 2001-06-06 Mark Kettenis <kettenis@gnu.org>
4962
4963 * lin-lwp.c (struct lwp_info): Add member `resumed'.
4964 (iterate_over_lwps): Make sure we can handle CALLBACK deleting the
4965 LWP it's called for.
4966 (lin_lwp_attach): Mark LWP as resumed to make sure the fake
4967 SIGSTOP is reported.
4968 (resume_clear_callback): New function.
4969 (resume_set_callback): New function.
4970 (lin_lwp_resume): Mark all LWP's that we're going to resume as
4971 resumed, and unmark all others.
4972 (status_callback): Only report a pending wait status if we pretend
4973 that LP has been resumed.
4974 (resumed_callback): New function.
4975 (lin_lwp_wait): Add assertions to check that LWP's are properly
4976 marked as resumed. Partially revert 2001-05-25 patch by Michael
4977 Snyder: do not resume all threads. Add comment explaining the
4978 problems associated with this bit of code.
4979
4980 2001-06-07 Keith Seitz <keiths@redhat.com>
4981
4982 * MAINTAINTERS: Syd Polk is stepping down from
4983 maintaining libgui. I am replacing him.
4984
4985 2001-06-07 Eli Zaretskii <elis@is.elta.co.il>
4986
4987 * config/mips/tm-irix6.h: New file.
4988
4989 * config/mips/irix6.mh: New file.
4990
4991 * config/mips/irix6.mt: New file.
4992
4993 * config/mips/xm-irix6.h: New file.
4994
4995 * config/mips/nm-irix6.h: New file.
4996
4997 * mips-tdep.c (mips_gdbarch_init) <MIPS_ABI_N32>: Set up the
4998 disassembler info in tm_print_insn_info as appropriate for the N32
4999 ABI. Force N32 ABI to be the default if the CPU is R8000 or
5000 R10000.
5001
5002 * configure.tgt (mips*-sgi-irix6*): Map to irix6.
5003
5004 * configure.host (mips*-sgi-irix6*): Ditto.
5005
5006 2001-06-07 Andrew Cagney <ac131313@redhat.com>
5007
5008 * gnu-v3-abi.c: Include "gdb_assert.h".
5009 (build_gdb_vtable_type): Replace abort() with gdb_assert().
5010
5011 2001-06-06 Jim Blandy <jimb@redhat.com>
5012
5013 * cp-abi.h: Rearrange code to put documentation comments above the
5014 functions we export. The actual function table itself simply
5015 refers to those functions. Minor doc fixes.
5016
5017 * gdbarch.sh: Changes to effect the following:
5018 * gdbarch.c (initialize_non_multiarch): New function.
5019 * gdbarch.h (initialize_non_multiarch): New declaration.
5020 * arch-utils.c (initialize_current_architecture): For
5021 non-multiarch configurations, call initialize_non_multiarch.
5022
5023 2001-06-06 Andrew Cagney <ac131313@redhat.com>
5024
5025 * symfile.c (compare_psymbols): Replace PTR with void*. Delete
5026 declaration.
5027 (compare_symbols): Ditto.
5028
5029 2001-06-06 Jonathan Larmour <jlarmour@redhat.com>
5030
5031 * arch-utils.c (generic_prepare_to_proceed): Allow for having
5032 stopped due to a Ctrl-C as well as breakpoints.
5033
5034 * hppa-tdep.c (hppa_prepare_to_proceed): Add FIXME as this may not
5035 support thread switches after Ctrl-C.
5036 * lin-lwp.c (lin_lwp_prepare_to_proceed): Ditto.
5037 * linux-thread.c (linuxthreads_prepare_to_proceed): Ditto.
5038 * m3-nat.c (mach3_prepare_to_proceed): Ditto.
5039
5040 2001-06-06 Jim Blandy <jimb@redhat.com>
5041
5042 * gdbarch.sh, gdbarch.c: Revert change of 2001-06-01; all
5043 per-architecture data should be registered at initialization time,
5044 before any gdbarch objects get used, so the generality is
5045 unnecessary.
5046
5047 2001-06-06 Keith Seitz <keiths@redhat.com>
5048
5049 * gdb-events.sh (function_list): Add tracepoint_create,
5050 tracepoint_delete, and tracepoint_modify events.
5051 * gdb-events.c: Regenerated.
5052 * gdb-events.h: Regenerated.
5053
5054 2001-06-06 Keith Seitz <keiths@redhat.com>
5055
5056 * gdb-events.sh: Update copyrights.
5057 Change free to xfree.
5058 * gdb-events.c: Regenerated.
5059 * gdb-events.h: Regenerated.
5060
5061 2001-06-06 Eli Zaretskii <eliz@is.elta.co.il>
5062
5063 * source.c (mod_path, openp): Use #ifdef HAVE_DOS_BASED_FILE_SYSTEM
5064 instead of #if HAVE_DOS_BASED_FILE_SYSTEM.
5065 * completer.c: Ditto.
5066 * cli/cli-cmds.c (cd_command): Ditto.
5067
5068 2001-06-04 Eli Zaretskii <eliz@is.elta.co.il>
5069
5070 * mips-tdep.c (show_mipsfpu_command): Remove unused variable msg.
5071 (mips_set_processor_type_command): Remove unused variable j.
5072 (mips_breakpoint_from_pc): Declare breakpoint instruction
5073 sequences as unsigned char, to avoid compiler warnings.
5074
5075 * source.c (mod_path, openp): Use HAVE_DOS_BASED_FILE_SYSTEM
5076 instead of system-specific define's like _WIN32 and __MSDOS__.
5077 Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH instead of SLASH_P and
5078 ROOTED_P.
5079 (top-level): #include "filenames.h".
5080
5081 * solib.c (solib_open): Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH
5082 instead of SLASH_CHAR, ROOTED_P and SLASH_P.
5083 (top-level): #include "filenames.h".
5084
5085 * defs.h (SLASH_P, SLASH_CHAR, ROOTED_P): Remove definitions.
5086 (SLASH_STRING): Define only for _WIN32.
5087
5088 * completer.c: Use HAVE_DOS_BASED_FILE_SYSTEM instead of
5089 __MSDOS_.
5090
5091 * cli/cli-cmds.c (cd_command): Use IS_DIR_SEPARATOR and
5092 IS_ABSOLUTE_PATH instead of SLASH_P and ROOTED_P. Replace
5093 system-specific ifdefs with HAVE_DOS_BASED_FILE_SYSTEM.
5094 (top-level): #include "filenames.h".
5095
5096 * go32-nat.c (go32_wait): Change the return value to ptid_t.
5097
5098 * config/djgpp/fnchange.lst: Add two new files in the
5099 gdb/testsuite/gdb.c++/ directory to the remapped names.
5100
5101 * config/djgpp/djconfig.sh (lt_cv_sys_max_cmd_len): Set to 12KB.
5102
5103 2001-06-01 Jim Blandy <jimb@redhat.com>
5104
5105 Expand the gdbarch per-architecture data vector as needed, rather
5106 than requiring that all per-architecture data be registered before
5107 the first gdbarch object is allocated.
5108 * gdbarch.sh: Changes to effect the following:
5109 * gdbarch.c (alloc_gdbarch_data, init_gdbarch_data): Delete
5110 declarations and definitions.
5111 (check_gdbarch_data): New function, and declaration.
5112 (gdbarch_alloc): Don't call alloc_gdbarch_data; leaving the fields
5113 zero is good enough.
5114 (free_gdbarch_data): Tolerate a null data pointer. Free only
5115 those data items gdbarch->data actually has allocated.
5116 (set_gdbarch_data, gdbarch_data): Call check_gdbarch_data.
5117 (gdbarch_update_p): No need to call init_gdbarch_data.
5118
5119 2001-06-01 Kevin Buettner <kevinb@redhat.com>
5120
5121 * ia64-tdep.c (is_float_or_hfa_type_recurse): Call check_typedef()
5122 on types that we wish to recurse on.
5123 (slot_alignment_is_next_even): New function.
5124 (ia64_push_arguments): Call slot_alignment_is_next_even() to
5125 examine the type in order to decide if it's necessary to skip
5126 an odd slot.
5127
5128 2001-06-01 Michael Snyder <msnyder@redhat.com>
5129
5130 * thread.c (delete_step_resume_breakpoint): New function.
5131 Maintain internal consistency of the thread list while deleting
5132 a step_resume_breakpoint.
5133 * gdbthread.h (delete_step_resume_breakpoint): Export.
5134 * breakpoint.c (bpstat_find_step_resume_breakpoint):
5135 Make thread-aware: don't return a step_resume_breakpoint
5136 for the wrong thread.
5137 * infrun.c (wait_for_inferior): Call delete_step_resume_breakpoint
5138 instead of delete_breakpoint_current_contents.
5139 (fetch_inferior_event): Ditto.
5140 (handle_inferior_event): Call delete_step_resume_breakpoint
5141 instead of delete_breakpoint.
5142 * infrun.c (handle_inferior_event): After singlestepping over a
5143 thread-specific breakpoint, use currently_stepping() to decide
5144 whether to step or continue.
5145
5146 2001-06-01 Jim Blandy <jimb@redhat.com>
5147
5148 * gnu-v3-abi.c (gnu_v3_abi_ops, vtable_type_gdbarch_data): Make
5149 these static --- there's no reason other files should use these.
5150
5151 * partial-stab.h (case N_FUN: case 'f':, case N_FUN: case 'F':)
5152 Fix memory leak.
5153
5154 * partial-stab.h: New complaint: function_outside_compilation_unit.
5155 (case N_FUN: case 'f':, case N_FUN: case 'F':): If pst is zero,
5156 complain, and don't try to set pst's start address.
5157
5158 2001-05-31 Kevin Buettner <kevinb@redhat.com>
5159
5160 * ia64-linux-tdep.c (IA64_LINUX_SIGCONTEXT_OFFSET): Revise to
5161 match the location at which the kernel is placing the sigcontext
5162 struct.
5163
5164 * ia64-tdep.c (max_skip_non_prologue_insns): New static global.
5165 (refine_prologue_limit): New function.
5166 (examine_prologue): Further limit number of instructions
5167 scanned by calling refine_prologue_limit(). Revise way in
5168 which the end of prologue address is computed for frameless
5169 functions.
5170
5171 2001-05-29 Christopher Faylor <cgf@redhat.com>
5172
5173 * partial-stab.h: Revert previous patch.
5174
5175 2001-05-29 Christopher Faylor <cgf@redhat.com>
5176
5177 * partial-stab.h: Consistently guard against pst being NULL.
5178
5179 2001-05-29 Alexandre Oliva <aoliva@redhat.com>
5180
5181 * symfile.c (compare_psymbols, compare_symbols): Declare using
5182 PTR, as in the definition.
5183 * minsyms.c (compare_minimal_symbols): Likewise.
5184 * coffread.c (find_targ_sec): Likewise.
5185 * elfread.c (free_elfinfo, elf_locate_sections): Likewise.
5186 * mipsread.c (alphacoff_locate_sections): Likewise.
5187 * mdebugread.c (compare_blocks): Likewise.
5188
5189 2001-05-25 Nick Duffek <nsd@redhat.com>
5190
5191 * solib.c (update_solib_list): Move target_resize_to_sections()
5192 into solib_map_sections() loop.
5193 (info_sharedlibrary_command): Try bfd_arch_bits_per_address() if
5194 bfd_get_arch_size() fails.
5195
5196 2001-05-25 Nick Duffek <nsd@redhat.com>
5197
5198 * Makefile.in (osfsolib.c, osfsolib.o): Rename to solib-osf.c and
5199 solib-osf.o.
5200 * config/alpha/alpha-osf1.mh (NATDEPFILES): Replace osfsolib.o
5201 with solib-osf.o and solib.o.
5202 * config/alpha/alpha-osf2.mh: Likewise.
5203 * config/alpha/alpha-osf3.mh: Likewise.
5204 * solib-osf.c: New file, renamed and largely rewritten from
5205 osfsolib.c.
5206
5207 2001-05-25 Michael Snyder <msnyder@redhat.com>
5208
5209 * lin-lwp.c (lin_lwp_attach_lwp): Call stop_wait_callback,
5210 to consume the SIGSTOP generated by PTRACE_ATTACH.
5211 (stop_wait_callback): If a SIGTRAP or a SIGINT event is consumed,
5212 try again to get the SIGSTOP event.
5213 (lin_lwp_wait): Resume all threads when ignoring a signal.
5214 This will insure that newly attached threads get resumed.
5215 * lin-lwp.c (stop_wait_callback): Discard redundant SIGINT events.
5216 * remote.c (remote_write_bytes): Update 'p' packet pointer.
5217
5218 2001-05-25 Jim Blandy <jimb@redhat.com>
5219
5220 * gnu-v2-abi.c (gnuv2_virtual_fn_field): There's no need to clear
5221 VALUE_POINTED_TO_OFFSET here; if value_cast doesn't return a
5222 useful value, then we should fix that instead.
5223
5224 2001-05-24 Nick Duffek <nsd@redhat.com>
5225
5226 * solist.h (struct so_list): Document the requirement that
5227 current_sos initialize some fields to 0.
5228
5229 2001-05-24 Mark Kettenis <kettenis@gnu.org>
5230
5231 * gnu-nat.c: Include <ctype.h>.
5232 (gnu_pid_to_exec_file): Add PID parameter.
5233 (set_sig_thread_cmd): Use PIDGET on return value from
5234 thread_id_to_pid.
5235 (proc_string): Use MERGEPID to construct argument to
5236 pid_to_thread_id.
5237
5238 2001-05-22 Kevin Buettner <kevinb@redhat.com>
5239
5240 * breakpoint.c (breakpoint_address_is_meaningful): New function.
5241 (check_duplicates): Don't compare non-meaningful addresses.
5242
5243 2001-05-22 Michael Snyder <msnyder@redhat.com>
5244
5245 * thread-db.c: Allow for defunct zombie threads.
5246 (attach_thread): Do not attempt to attach zombie thread.
5247 (thread_db_thread_alive): Return false for defunct zombie thread.
5248 (find_new_threads_callback): Don't add defunct zombie thread to list.
5249
5250 2001-05-22 Jim Blandy <jimb@redhat.com>
5251
5252 Add support for the GNU V3 C++ ABI.
5253 (Includes changes by Dan Berlin.)
5254
5255 * gnu-v3-abi.c: New file.
5256 * minsyms.c: #include "value.h" and "cp-abi.h".
5257 (install_minimal_symbols): Check the minimal symbol table for
5258 symbols that look mangled in the V3 style, and select the V3 ABI
5259 if we find any.
5260 * Makefile.in (SFILES): Add gnu-v3-abi.c.
5261 (COMMON_OBS): Add gnu-v3-abi.o.
5262 (gnu-v3-abi.o): Add new rule.
5263 (minsyms.o): Depend on $(cp_abi_h) and $(value_h).
5264
5265 2001-05-21 Jim Blandy <jimb@redhat.com>
5266
5267 * values.c (value_primitive_field): If we're extracting a base
5268 class, then the type of the result should be the base class being
5269 extracted, not the type of which it is a base class.
5270
5271 * value.h (struct value): Doc fix, and rearrange members to place
5272 them near their explanations.
5273
5274 2001-05-21 Michael Snyder <msnyder@redhat.com>
5275
5276 * remote.c (remote_async_wait): Added new variable fieldsize.
5277 Add fieldsize (return value of hex2bin) to string pointer p.
5278
5279 2001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5280
5281 * m68hc11-tdep.c (m68hc11_pop_frame): Fix stack pointer computation.
5282 (m68hc11_analyze_instruction): Update the pc correctly.
5283 (m68hc11_guess_from_prologue): Take into account the stack correction
5284 for the saving address.
5285
5286 2001-05-07 Daniel Berlin <dan@cgsoftware.com>
5287
5288 Changes by Jim Ingham:
5289
5290 * values.c (value_change_enclosing_type): New function. If the
5291 new enclosing type is larger than the old one, we need to allocate
5292 more space.
5293 * value.h: Add value_change_enclosing_type prototype.
5294 * valops.c (value_cast): Use it.
5295 (value_assign): Use it.
5296 (value_addr): Use it.
5297 (value_ind): Use it.
5298 (value_full_object): Use it.
5299
5300 2001-05-07 Daniel Berlin <dan@cgsoftware.com>
5301
5302 * values.c (value_static_field): Handle static fields that have a
5303 constant value.
5304
5305 2001-05-17 Michael Snyder <msnyder@redhat.com>
5306
5307 * blockframe.c (create_new_frame): Zero all the fields via memset,
5308 rather than zeroing them one by one.
5309
5310 2001-05-17 Eli Zaretskii <eliz@is.elta.co.il>
5311
5312 * top.c (user_args): Remove unused declaration.
5313
5314 2001-05-16 Michael Snyder <msnyder@redhat.com>
5315
5316 * infcmd.c (do_registers_info): Move alloca outside of loop.
5317
5318 2001-05-15 John S Kallal <jskallal@home.com>
5319
5320 * remote.c (remote_wait): Added new variable fieldsize.
5321 Add fieldsize (return value of hex2bin) to string pointer p.
5322
5323 2001-05-15 Mark Kettenis <kettenis@gnu.org>
5324
5325 * sparc-tdep.c (sparc_gdbarch_init): Get the architecture from
5326 info.bfd_arch_info.
5327
5328 2001-05-14 Kevin Buettner <kevinb@redhat.com>
5329
5330 * lin-lwp.c (detach_callback, lin_lwp_wait, lin_lwp_pid_to_str):
5331 Adjust format strings for printing LWPs to account for the fact
5332 that the type returned by GET_LWP() is now a long instead of an
5333 int.
5334
5335 2001-05-14 Kevin Buettner <kevinb@redhat.com>
5336
5337 * inferior.h (null_ptid, minus_one_ptid): New variable declarations.
5338 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
5339 (ptid_get_tid, ptid_equal): New function declarations.
5340 * infrun.c (null_ptid, minus_one_ptid): New variables.
5341 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
5342 (ptid_get_tid, ptid_equal): New functions.
5343 (_initialize_infrun): Initialize null_ptid, minus_one_ptid,
5344 inferior_ptid, and target_last_wait_ptid.
5345
5346 * defs.h (ptid_t): Redefine to be a struct rather than an int.
5347 (pid_to_ptid, null_ptid, ptid_equal): Delete these macros.
5348 (PIDGET, TIDGET, MERGEPID): Redefine these macros using the
5349 new ptid accessors and constructor.
5350
5351 * config/i386/tm-i386v42mp.h (PIDGET, TIDGET, LIDGET, MERGEPID,
5352 MKLID, MKTID, ISTID): Provide new definitions for these macros.
5353 The old macros are retained, but disabled via #if 0 in order
5354 to aid in future restructuring. See FIXME.
5355
5356 * arm-linux-nat.c (PIDGET, TIDGET): Delete macro definitions.
5357 * i386-linux-nat.c (PIDGET, TIDGET): Likewise.
5358 * infptrace.c (PIDGET, TIDGET): Likewise.
5359 * lin-lwp.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
5360 * lin-thread.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
5361 * proc-service.c (MERGEPID): Likewise.
5362 * procfs.c (PIDGET, TIDGET, MERGEPID): Likewise.
5363 * thread-db.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
5364 * config/nm-linux.h (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
5365 * config/i386/tm-i386sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
5366 Likewise.
5367 * config/sparc/tm-sun4sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
5368 Likewise.
5369
5370 * lin-lwp.c (THREAD_FLAG): Delete macro definition.
5371 (GET_LWP): Redefine in terms of ptid_get_lwp().
5372 (GET_PID): Redefine in terms of ptid_get_pid().
5373 (is_lwp): Redefine without the need for THREAD_FLAG.
5374 (BUILD_LWP): Redefine in terms of ptid_build().
5375 * lin-thread.c (THREAD_FLAG): Delete macro definition.
5376 (GET_LWP): Redefine in terms of ptid_get_lwp().
5377 (GET_PID): Redefine in terms of ptid_get_pid().
5378 (GET_THREAD): Redefine in terms of ptid_get_tid().
5379 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
5380 (is_lwp, is_thread): Redefine.
5381 (linux_child_wait, check_all_signal_numbers)
5382 (linuxthreads_discard_global_state, attach_thread): Declare these
5383 functions to squash warnings about missing declarations.
5384 * sol-thread.c (THREAD_FLAG): Delete macro definition.
5385 (GET_PID): Redefine in terms of ptid_get_pid().
5386 (GET_LWP): Redefine in terms of ptid_get_lwp().
5387 (GET_THREAD): Redefine in terms of ptid_get_tid().
5388 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
5389 (is_lwp, is_thread): Redefine.
5390 * thread-db.c (THREAD_FLAG): Delete macro definition.
5391 (GET_PID): Redefine in terms of ptid_get_pid().
5392 (GET_LWP): Redefine in terms of ptid_get_lwp().
5393 (GET_THREAD): Redefine in terms of ptid_get_tid().
5394 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
5395 (is_lwp, is_thread): Redefine.
5396
5397 * corelow.c (add_to_thread_list, get_core_register_section):
5398 Eliminate hacks needed to prevent regressions when inferior_ptid
5399 wasn't wide enough to hold the core file thread id in the pid
5400 component of inferior_ptid.
5401
5402 2001-05-14 Michael Snyder <msnyder@redhat.com>
5403
5404 * remote.c (hex2bin): Make first argument const.
5405 Require explicit count, don't accept null-terminated str.
5406 (remote_resume, remote_async_resume): White space fix-up.
5407 (remote_write_bytes): Set nr_bytes to return value of bin2hex.
5408
5409 2001-05-13 Mark Kettenis <kettenis@gnu.org>
5410
5411 * symtab.c (lookup_symtab_1): Use lbasename (NAME) instead of
5412 basename (NAME). The FreeBSD basename returns a pointer to a
5413 static buffer, even if it's simply returning a string identical to
5414 its argument.
5415 (lookup_partial_symtab): Likewise.
5416
5417 2001-05-14 Michael Snyder <msnyder@redhat.com>
5418
5419 * solib.c, solib.h: Add comment for function no_shared_libraries.
5420
5421 2001-05-14 Kevin Buettner <kevinb@redhat.com>
5422
5423 * solib.h (no_shared_libraries): Make declaration match definition
5424 in solib.c.
5425
5426 2001-05-14 Andrew Cagney <ac131313@redhat.com>
5427
5428 * remote.c (remote_write_bytes): Set nr_bytes before returning it.
5429 * solib.h (no_shared_libraries): Declare.
5430
5431 2001-05-12 Andrew Cagney <ac131313@redhat.com>
5432
5433 * gdbarch.sh (struct gdbarch_info): Delete field bfd_architecture.
5434 (gdbarch_update_p): Rewrite logic filling in INFO struct. Use
5435 user specified values when available.
5436 * rs6000-tdep.c (rs6000_gdbarch_init): Update. Get the
5437 architecture from info.bfd_arch_info.
5438 * gdbarch.c, gdbarch.h: Regenerate.
5439
5440 2001-05-12 Fernando Nasser <fnasser@redhat.com>
5441
5442 * remote-e7000.c (e7000_open): Check for bad baud rate.
5443 * remote-st.c (st2000_open): Ditto.
5444
5445 2001-05-11 Jim Blandy <jimb@redhat.com>
5446
5447 * thread.c (do_captured_list_thread_ids): Use ui_out_tuple_begin
5448 and ui_out_tuple_end instead of ui_out_list_begin and
5449 ui_out_list_end.
5450
5451 * Makefile.in (gnu-v2-abi.o): Add $(demangle_h) to list of
5452 dependencies. Reorder dependencies to match #includes in file,
5453 for easier verification.
5454
5455 Fri May 11 13:32:50 2001 Andrew Cagney <cagney@b1.cygnus.com>
5456
5457 * breakpoint.c: Replace ui_out_list_begin, ui_out_list_end and
5458 make_cleanup_ui_out_list_end with ui_out_tuple_begin,
5459 ui_out_tuple_end and make_cleanup_ui_out_tuple_begin_end.
5460 * cli/cli-setshow.c: Ditto.
5461 * printcmd.c: Ditto.
5462 * stack.c: Ditto.
5463
5464 * ui-out.h (enum ui_out_type): Fix tipo - tupple -> tuple.
5465 * ui-out.c (ui_out_list_begin): Delete ``lstid'' parameter.
5466 (ui_out_tuple_begin): New function.
5467 (ui_out_tuple_end): New function.
5468 (ui_out_tuple_begin_end): New function.
5469 (make_cleanup_ui_out_list_begin_end): Replace
5470 make_cleanup_ui_out_list_end function.
5471 * ui-out.h (ui_out_list_begin): Update declaration.
5472 (make_cleanup_ui_out_list_begin_end): Replace
5473 make_cleanup_ui_out_list_end declaration.
5474 (ui_out_tuple_begin, ui_out_tuple_end): Declare.
5475 (ui_out_tuple_begin_end): Declare.
5476
5477 2001-05-11 Jim Blandy <jimb@redhat.com>
5478
5479 * gnu-v2-abi.c: Don't #include "gdb_regex.h". We don't use it.
5480
5481 2001-05-11 Andrew Cagney <ac131313@redhat.com>
5482
5483 From 2001-03-26 Rodney Brown <RodneyBrown@mynd.com>
5484 * config/pa/tm-hppa.h: Remove trigraph.
5485 * hp-symtab-read.c (hpread_type_translate): Provide return value.
5486 (hpread_read_struct_type): Remove trigraph. Add parameter in
5487 `warning'.
5488 (hpread_read_array_type): Provide return value.
5489 (hpread_type_lookup): Avoid ambiguous `else'. Provide return
5490 value.
5491 * hppa-tdep.c (initialize_hp_cxx_exception_support): Remove
5492 trigraph.
5493
5494 2001-05-11 Jim Blandy <jimb@redhat.com>
5495
5496 * mips-tdep.c (mips_store_return_value,
5497 mips_extract_return_value): Pass arguments to
5498 return_value_location in the proper order.
5499
5500 2001-05-11 Andrew Cagney <ac131313@redhat.com>
5501
5502 * Makefile.in (VERSION): Delete. Moved to file ``version.in''.
5503 (version.c): Depends on file ``version.in''. Extract version
5504 number from ``version.in'' file.
5505 (clean mostlyclean): Update.
5506 * version.in: New file.
5507 * NEWS: Update.
5508
5509 2001-05-11 Kevin Buettner <kevinb@redhat.com>
5510
5511 * breakpoint.c (set_raw_breakpoint): Add new parameter
5512 representing the breakpoint's type. Adjust all callers.
5513 (create_longjmp_breakpoint, create_temp_exception_breakpoint)
5514 (create_thread_event_breakpoint): Don't test for zero return
5515 value from set_raw_breakpoint(). It can never be zero.
5516 (create_exception_catchpoint, watch_command_1): Move logic
5517 which calculates the breakpoint type prior to the call to
5518 set_raw_breakpoint().
5519
5520 2001-05-11 Fernando Nasser <fnasser@redhat.com>
5521
5522 * ser-unix.c (rate_to_code): Issue warning if baud rate is invalid.
5523 (hardwire_setbaudrate): Set errno to EINVAL and return with error
5524 if the conversion of the baud rate to code fails.
5525
5526 2001-05-10 Andrew Cagney <ac131313@redhat.com>
5527
5528 * ui-out.h (make_cleanup_ui_out_begin_end): Declare.
5529 * ui-out.c (struct ui_out_end_cleanup_data): Define.
5530 (do_cleanup_end): New function. Replace do_list_end.
5531 (make_cleanup_ui_out_end): New function.
5532 (make_cleanup_ui_out_begin_end): New function.
5533 (make_cleanup_ui_out_list_end): Use make_cleanup_ui_out_end.
5534
5535 2001-05-10 Elena Zannoni <ezannoni@redhat.com>
5536
5537 * MAINTAINERS: Declare xcoffread.c open to all maintainers,
5538 and make Kevin Buettner (kevinb@redhat.com) the reference person.
5539
5540 2001-05-10 Elena Zannoni <ezannoni@redhat.com>
5541
5542 * proc-api.c (ioctl_with_trace): Fix uninitialized variable.
5543
5544 2001-05-10 Fernando Nasser <fnasser@redhat.com>
5545
5546 * MAINTAINERS: Add testsuite subdirectory co-maintainers.
5547
5548 Thu May 10 16:26:47 2001 Andrew Cagney <cagney@b1.cygnus.com>
5549
5550 * Makefile.in (mi-main.o): Compile with -Werror.
5551
5552 2001-05-10 Michael Snyder <msnyder@redhat.com>
5553
5554 * remote.c (remote_open_1): Call no_shared_libraries, so that
5555 symbols for shared libraries can be reloaded per session.
5556 (remote_async_open_1): Ditto.
5557 * remote.c (bin2hex, hex2bin): New functions. Factor out these
5558 two conversions which are coded for repeatedly in this module.
5559 (remote_threads_extra_info, remote_wait, remote_async_wait,
5560 store_register_using_P, remote_store_registers, remote_write_bytes,
5561 remote_read_bytes, remote_rcmd): Use bin2hex and hex2bin instead
5562 of coding the conversions inline.
5563 (fromhex): Not exported, change from extern to static.
5564
5565 2001-05-10 Andrew Cagney <ac131313@redhat.com>
5566
5567 * arch-utils.c (initialize_current_architecture): Delete obsolete
5568 ``info architecture'' command.
5569 (info_architecture): Delete function.
5570
5571 2001-05-10 Andrew Cagney <ac131313@redhat.com>
5572
5573 * TODO (5.1, 5.2): Update.
5574
5575 2001-05-09 Andrew Cagney <ac131313@redhat.com>
5576
5577 * MAINTAINERS: Jim Ingham is no longer maintaining Arm related
5578 stuff.
5579
5580 2001-05-10 Keith Seitz <keiths@cygnus.com>
5581
5582 * Makefile.in (SUBDIR_GDBTK_OBS): Add gdbtk-bp.o, gdbtk-register.o
5583 and gdbtk-stack.o.
5584 (SUBDIR_GDBTK_SRCS): Ditto for the sources.
5585 (gdbtk-bp.o): New rule.
5586 (gdbtk-register.o): New rule.
5587 (gdbtk-stack.o): New rule.
5588 (gdbtk-cmds.o): Update dependencies.
5589 (gdbtk.o): Ditto.
5590 (gdbtk-hooks.o): Ditto.
5591 (gdbtk-varobj.o): Ditto.
5592
5593 2001-05-10 Fernando Nasser <fnasser@redhat.com>
5594
5595 * varobj.c (c_number_of_children): Fix memory leak. Delete unwanted old
5596 variables, not just unregister them.
5597
5598 2001-05-10 Fernando Nasser <fnasser@redhat.com>
5599
5600 * varobj.c (c_number_of_children): Check for target type of void*,
5601 not the target type name. Allow dereferencing char*.
5602
5603 2001-05-10 Fernando Nasser <fnasser@redhat.com>
5604
5605 * symfile.c (symbol_file_add_main_1): New static function.
5606 Passes the flags arguments to symbol_file_add() and takes care
5607 of any necessary reinitializations.
5608 (symbol_file_command): Call symbol_file_add_main_1() instead of
5609 symbol_file_add().
5610 (symbol_file_add_main): Ditto.
5611
5612 2001-05-09 Kevin Buettner <kevinb@redhat.com>
5613
5614 * lin-lwp.c (lin_lwp_pid_to_str): Revert inadvertent format
5615 string change in 2001-05-03 changes.
5616 (lin_lwp_wait): Revert GET_LWP coercion introduced in 2001-05-03
5617 changes.
5618
5619 2001-05-09 Kevin Buettner <kevinb@redhat.com>
5620
5621 * lin-lwp.c (lin_lwp_attach): Use PIDGET() to fetch the pid
5622 component from inferior_ptid.
5623 (lin_lwp_detach): Use pid_to_ptid() to convert from a pid to a
5624 ptid.
5625
5626 2001-05-09 Elena Zannoni <ezannoni@redhat.com>
5627
5628 * sh3-rom.c (_initialize_sh3_rom): Get rid of specific _WINDOWS
5629 conditional for help with connections through parallel ports,
5630 given that the actual code for downloading through a parallel port
5631 is not conditionalized.
5632
5633 * sh-tdep.c: Remove WIN32_WCE conditional. The wince sh target is
5634 unmaintaned, and probably on its way to obsolescence.
5635
5636 2001-05-09 Mark Kettenis <kettenis@gnu.org>
5637
5638 * i386-tdep.c (i386_frame_saved_pc): New function.
5639 * config/i386/tm-i386.h (FRAME_SAVED_PC): Redefine in terms of
5640 i386_frame_saved_pc.
5641 (i386_frame_saved_pc): New prototype.
5642
5643 * i386-tdep.c (i386_register_virtual_type): New function.
5644 (i386_register_convertible): New function.
5645 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE): Redefine in terms
5646 of i386_register_virtual_type.
5647 (REGISTER_CONVERTIBLE): Redefine in terms of
5648 i386_register_convertible.
5649 (i386_register_virtual_type, i386_register_convertible): New
5650 prototypes.
5651
5652 2001-05-08 Jim Blandy <jimb@redhat.com>
5653
5654 * Makefile.in (mn10300-tdep.o): New rule.
5655
5656 * Makefile.in (gdb_string_h): Define. Use it throughout.
5657 Some rules were already using this, even though it isn't defined.
5658
5659 * Makefile.in (obstack_h, target_h): Define; these are already
5660 used elsewhere, but have been expanding to the empty string.
5661 (memattr_h): Define; needed by target_h.
5662
5663 * mn10300-tdep.c (mn10300_extract_return_value): Mark this as
5664 static. (This was accidentally omitted from the earlier patch.)
5665
5666 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): New function.
5667 (mn10300_gdbarch_init): Register it as the architecture's
5668 dwarf2_reg_to_regnum method.
5669
5670 Correct and expand handling of `movm' instruction, and register
5671 saves in general.
5672 * config/mn10300/tm-mn10300.h (D0_REGNUM, A0_REGNUM, MDRQ_REGNUM,
5673 MCRH_REGNUM, MCRL_REGNUM, MCVF_REGNUM): New definitions.
5674 (enum movm_register_bits): New enum.
5675 * mn10300-tdep.c (set_movm_offsets): Use symbolic names for the
5676 bits, not hex literals. Handle the `other', `exreg0', and
5677 `exother' bits. Correct handling of `exreg1': it saves r4, r5,
5678 r6, and r7, not r2, r3, r4, and r5.
5679 (saved_regs_size): New function.
5680 (mn10300_frame_chain, mn10300_frame_saved_pc): Use it, instead
5681 of computing the same thing inline, incorrectly.
5682
5683 * mn10300-tdep.c (mn10300_gdbarch_init): We do have a
5684 dummy_breakpoint_offset; it's zero.
5685
5686 * mn10300-tdep.c (mn10300_pop_frame): Split the mn10300-specific
5687 stuff out into mn10300_pop_frame_regular, and use
5688 generic_pop_current_frame. This lets us share code, and also
5689 makes this function's prototype match that expected by gdbarch.
5690 Make this function static.
5691 (mn10300_pop_frame_regular): New function.
5692 (mn10300_gdbarch_init): Register mn10300_pop_frame as the
5693 gdbarch's pop_frame method.
5694 * config/mn10300/tm-mn10300.h (POP_FRAME): Delete definition.
5695 (mn10300_pop_frame): Delete declaration.
5696
5697 * mn10300-tdep.c (mn10300_saved_pc_after_call,
5698 mn10300_extract_return_value,
5699 mn10300_extract_struct_value_address, mn10300_store_return_value,
5700 mn10300_use_struct_convention, mn10300_breakpoint_from_pc,
5701 mn10300_frame_chain, mn10300_skip_prologue,
5702 mn10300_push_arguments, mn10300_push_return_address,
5703 mn10300_store_struct_return, mn10300_frame_saved_pc,
5704 mn10300_init_extra_frame_info, mn10300_frame_init_saved_regs):
5705 Make these functions static; they should only be visible to the
5706 outside world as gdbarch methods.
5707
5708 * config/mn10300/tm-mn10300.h (mn10300_find_callers_reg): Delete
5709 unused declaration.
5710
5711 * mn10300-tdep.c (mn10300_gdbarch_init): Put the gdbarch methods
5712 in some rational order.
5713
5714 * mn10300-tdep.c (mn10300_gdbarch_init): Rather than using
5715 generic_pc_in_call_dummy, use pc_in_call_dummy_at_entry_point.
5716
5717 Use gdbarch for most target parameters for the MN10300, rather
5718 than the tm-*.h file.
5719 * config/mn10300/tm-mn10300.h (MAX_REGISTER_VIRTUAL_SIZE,
5720 REGISTER_BYTES, FP_REGNUM, BREAKPOINT_FROM_PC,
5721 FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK, INNER_THAN,
5722 SAVED_PC_AFTER_CALL, INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS,
5723 FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC,
5724 EXTRACT_RETURN_VALUE, EXTRACT_STRUCT_VALUE_ADDRESS,
5725 STORE_RETURN_VALUE, STORE_STRUCT_RETURN, SKIP_PROLOGUE,
5726 FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5727 FRAME_NUM_ARGS, POP_FRAME, USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY,
5728 CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5729 CALL_DUMMY_LOCATION, FIX_CALL_DUMMY, CALL_DUMMY_ADDRESS,
5730 TARGET_READ_FP, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5731 SAVE_DUMMY_FRAME_TOS, PUSH_ARGUMENTS, PC_IN_CALL_DUMMY,
5732 REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER):
5733 Delete definitions. We register gdbarch methods for these now.
5734 (struct frame_info, struct type, struct value): Delete forward
5735 declarations of these types; they're no longer necessary, since we
5736 don't have function declarations here any more.
5737 * mn10300-tdep.c: #include "arch-utils.h", to get declarations for
5738 some default gdbarch methods.
5739 (mn10300_store_struct_return): Return void, as expected by
5740 gdbarch.
5741 (mn10300_init_extra_frame_info): Take initial `fromleaf' argument,
5742 as expected by gdbarch.
5743 (mn10300_frame_init_saved_regs): Provide dummy definition for
5744 this, as required by gdbarch.
5745 (mn10300_gdbarch_init): Add mn10300_call_dummy_words, as expected
5746 by gdbarch. Register gdbarch methods or values for all the stuff
5747 removed from tm-10300.h, listed above.
5748
5749 2001-05-08 Andrew Cagney <ac131313@redhat.com>
5750
5751 * cli-out.c (cli_begin, cli_end): Replace cli_list_begin and
5752 cli_list_end.
5753 (cli_ui_out_impl): Update.
5754
5755 * ui-out.c (default_begin, default_end): Replace
5756 default_list_begin and default_list_end.
5757 (default_ui_out_impl): Update.
5758 (uo_begin, uo_end): Replace ou_list_begin and uo_list_end.
5759 (ui_out_begin, ui_out_end): Replace ui_out_list_begin and
5760 ui_out_list_end.
5761 (ui_out_list_begin, ui_out_list_end): New. Compatibility
5762 functions.
5763 (struct ui_out_level): Add field type.
5764 (push_level, pop_level): Update. Add type parameter.
5765
5766 * ui-out.h (enum ui_out_type): Declare.
5767 (ui_out_begin, ui_out_end): Declare.
5768 (ui_out_begin_ftype, ui_out_end_ftype): Replace list_begin_ftype
5769 and list_end_ftype.
5770 (struct ui_out_impl): Update.
5771
5772 2001-05-07 Andrew Cagney <ac131313@redhat.com>
5773
5774 * ui-out.h (list_begin_ftype, list_end_ftype): Rename argument
5775 ``list_flag'' to ``depth''.
5776 * ui-out.c (default_list_begin, default_list_end): Update.
5777 (uo_list_begin, uo_list_end): Update.
5778 (MAX_UI_OUT_LEVELS): Define.
5779 (struct ui_out_level): Define.
5780 (top-level): Include "gdb_assert.h".
5781 (struct ui_out): Add fields ``level'' and ``levels''. Delete
5782 fields ``list_flag'' and ``field_count''.
5783 (ui_out_new): Update.
5784 (verify_field_proper_position): Update.
5785 (current_level, push_level, pop_level): New functions.
5786 (ui_out_list_begin): Use push_level.
5787 (ui_out_list_end): Use pop_level.
5788 (ui_out_field_int): Use current_level.
5789 (ui_out_field_skip): Ditto.
5790 (ui_out_field_fmt): Ditto.
5791
5792 2001-05-08 Michael Snyder <msnyder@redhat.com>
5793
5794 * language.c (longest_local_hex_string_custom): Strlen test is
5795 inverted -- reverse the sense of the test.
5796
5797 2001-05-08 Mark Kettenis <kettenis@gnu.org>
5798
5799 * config/i386/tm-i386v.h (struct frame_info, struct
5800 frame_saved_regs): Remove declarations.
5801 (i386_frame_num_args): Remove prototype.
5802
5803 2001-05-07 Andrew Cagney <ac131313@redhat.com>
5804
5805 * MAINTAINERS: I'm no longer actively maintaining the mn10300
5806 target.
5807
5808 2001-05-04 Andrew Cagney <ac131313@redhat.com>
5809
5810 * main.c (captured_main): Delete #ifndef _WIN32 conditional for
5811 WinGDB.
5812
5813 2001-05-06 Kevin Buettner <kevinb@redhat.com>
5814
5815 * inferior.h (save_inferior_ptid): Declare.
5816 * infrun.c (save_inferior_ptid, restore_inferior_ptid): Define.
5817
5818 * hpux-thread.c (save_inferior_ptid, restore_inferior_ptid):
5819 Delete these functions.
5820 * lin-lwp.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
5821 * lin-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
5822 * linux-thread.c (save_inferior_ptid, restore_inferior_ptid):
5823 Likewise.
5824 * proc-service.c (save_inferior_ptid, restore_inferior_ptid):
5825 Likewise.
5826 * sol-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
5827 * thread-db.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
5828
5829 * somsolib.c (reset_inferior_ptid): Delete.
5830 (som_solib_remove_inferior_hook): Use save_inferior_ptid() to
5831 build the cleanup struct.
5832
5833 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
5834 a cleanup to save/restore inferior_ptid.
5835
5836 2001-05-06 Mark Kettenis <kettenis@gnu.org>
5837
5838 Implement attach/detach for multi-threaded programs on Linux.
5839 * thread-db.c (keep_thread_db): Adjust comment.
5840 (deactivate_target): Removed.
5841 (thread_db_new_objfile): Don't call deactivate_target. Implement
5842 guts of deactivate_target inline instead.
5843 (attach_thread): Call ATTACH_LWP unconditionally if defined.
5844 (thread_db_attach): New function.
5845 (thread_db_detach): Don't call deactivate_target. Do necessary
5846 cleanup inline instead. Set inferior_ptid to LWP corresponding to
5847 the current user-level thread.
5848 (thread_db_kill): Set inferior_ptid to LWP corresponding to the
5849 current user-level thread.
5850 (thread_db_create_inferior): Deactivate target vector if
5851 KEEP_THREAD_DB is zero.
5852 (thread_db_mourn_inferior): Don't call deactivate_target. Do
5853 necessary cleanup inline instead.
5854 (init_thread_db_ops): Initialize to_attach field to
5855 thread_db_attach.
5856 * lin-lwp.c (lin_lwp_mourn_inferior): Remove prototype.
5857 (stop_wait_callback): Add prototype.
5858 (init_lwp_list): Add comment about when to re-initialize the LWP
5859 list.
5860 (lin_lwp_attach_lwp): Only call ptrace for cloned processes.
5861 Avoid adding publicates to the LWP list. Only mark an LWP as
5862 signalled if it doesn't correspond to a cloned process.
5863 (lin_lwp_attach): Add initial process to the LWP list. Make sure
5864 it's stopped and fake a SIGSTOP.
5865 (detach_callback): New function.
5866 (lin_lwp_detach): Implement.
5867 (lin_lwp_create_inferior): Don't re-initialize LWP list here.
5868 Call child_ops.to_create_inferior directly instead of via
5869 target_beneath local.
5870 (lin_lwp_mourn_inferior): Call child_ops.to_mourn_inferior
5871 directly instead of via target_beneath local.
5872
5873 2001-05-06 Eli Zaretskii <eliz@is.elta.co.il>
5874
5875 * symtab.c (lookup_symtab_1, lookup_partial_symtab): Use basename
5876 instead of non-portable search for `/'. Use FILENAME_CMP instead
5877 of STREQ, to account for case-insensitive filesystems.
5878 (top-level): #include "filenames.h".
5879
5880 2001-05-05 Jim Blandy <jimb@redhat.com>
5881
5882 * breakpoint.c (check_duplicates): Use the breakpoint's type, not
5883 its address, to decide whether it's a watchpoint or not. Zero
5884 is a valid code address.
5885 (update_breakpoints_after_exec): Admonishing comments.
5886 * breakpoint.h (struct breakpoint): Doc fixes.
5887
5888 * breakpoint.c (check_duplicates): Take a breakpoint object as an
5889 argument, rather than an address and section. All callers changed.
5890
5891 2001-05-03 Kevin Buettner <kevinb@redhat.com>
5892
5893 * defs.h (ptid_t): New typedef.
5894 (pid_to_ptid, null_ptid, minus_one_ptid, ptid_equal): New macros.
5895
5896 * a68v-nat.c, alphabsd-nat.c, arch-utils.c, arm-linux-nat.c,
5897 blockframe.c, breakpoint.c, breakpoint.h,
5898 config/i386/nm-i386sol2.h, config/i386/tm-i386sco5.h,
5899 config/ia64/nm-linux.h, config/m68k/nm-hp300bsd.h,
5900 config/mips/nm-irix4.h, config/mips/nm-irix5.h,
5901 config/pa/nm-hppah.h, config/pa/tm-hppa.h,
5902 config/rs6000/nm-rs6000.h, config/sparc/nm-sun4sol2.h,
5903 corelow.c, cxux-nat.c, d10v-tdep.c, dink32-rom.c,
5904 dve3900-rom.c, fork-child.c, frame.c, gnu-nat.c, go32-nat.c,
5905 hp300ux-nat.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c,
5906 hpux-thread.c, i386-linux-nat.c, i386aix-nat.c, i386b-nat.c,
5907 i386bsd-nat.c, i386gnu-nat.c, i386mach-nat.c, i386nbsd-nat.c,
5908 infcmd.c, inferior.h, inflow.c, infptrace.c, infrun.c,
5909 inftarg.c, infttrace.c, lin-lwp.c, lin-thread.c,
5910 linux-thread.c, lynx-nat.c, m3-nat.c, m32r-rom.c,
5911 m68knbsd-nat.c, m88k-nat.c, mac-nat.c, mips-nat.c,
5912 mon960-rom.c, monitor.c, ns32knbsd-nat.c, ocd.c, ppc-bdm.c,
5913 ppcnbsd-nat.c, proc-service.c, procfs.c, ptx4-nat.c,
5914 regcache.c, remote-adapt.c, remote-array.c, remote-bug.c,
5915 remote-e7000.c, remote-es.c, remote-mips.c, remote-mm.c,
5916 remote-nindy.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
5917 remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
5918 remote-vx.c, remote.c, rs6000-nat.c, sol-thread.c,
5919 solib-aix5.c, solib-svr4.c, somsolib.c, sparc-nat.c,
5920 standalone.c, sun3-nat.c, sun386-nat.c, symm-nat.c, target.c,
5921 target.h, thread-db.c, thread.c, top.c, ultra3-nat.c,
5922 uw-thread.c, v850ice.c, win32-nat.c, wince.c, xcoffsolib.c
5923 (inferior_pid): Rename to inferior_ptid everywhere - even in
5924 comments and obsolete ports. In cases where this variable
5925 really is supposed to be used as a process id, use PIDGET() to
5926 extract the process id component from inferior_ptid. The
5927 other cases, either involving other variables whose types had
5928 to be changed or functions whose signatures had to changed
5929 are listed separately below.
5930
5931 * arm-linux-nat.c (get_thread_id): Change type of argument
5932 representing a combined process/thread id from ``int'' to
5933 ``ptid_t''. Also change parameter name to ptid.
5934 * breakpoint.h, breakpoint.c (breakpoint_thread_match): Likewise.
5935 * corelow.c (core_file_thread_alive): Likewise.
5936 * d10v-tdep.c (d10v_read_pc, d10v_write_pc): Likewise.
5937 * defs.h (*target_wait_hook): Likewise.
5938 * gdbthread.h (thread_info, delete_thread, pid_to_thread_id)
5939 (find_thread_pid, save_infrun_state, load_infrun_state): Likewise.
5940 * gnu-nat.c (gnu_thread_alive, gnu_pid_to_str, gnu_wait)
5941 (gnu_resume): Likewise.
5942 * go32-nat.c (go32_wait, go32_resume): Likewise.
5943 * h8500-tdep.c (h8500_read_pc, h8500_write_pc): Likewise.
5944 * hppa-tdep.c (target_read_pc, target_write_pc): Likewise.
5945 * hppah-nat.c (child_pid_to_str, hppa_tid_to_str,
5946 (hppa_pid_or_tid_to_str, child_post_startup_inferior)
5947 (child_thread_alive): Likewise.
5948 * hpux-thread.c (hpux_thread_notice_signals, hpux_thread_alive)
5949 (hpux_pid_to_str, hpux_thread_wait, hpux_thread_resume): Likewise.
5950 * i386-linux-nat.c (child_resume): Likewise.
5951 * ia64-linux-nat.c (enable_watchpoints_in_psr, fetch_debug_register)
5952 (store_debug_register, fetch_debug_register_pair)
5953 (store_debug_register_pair, ia64_linux_insert_watchpoint)
5954 (ia64_linux_remove_watchpoint, ia64_linux_stopped_by_watchpoint):
5955 Likewise.
5956 * ia64-tdep.c (ia64_read_pc, ia64_write_pc): Likewise.
5957 * inferior.h (read_pc_pid, generic_target_read_pc, write_pc_pid)
5958 (generic_target_write_pc, ptrace_wait, child_resume)
5959 (get_last_target_status): Likewise.
5960 * infptrace.c (ptrace_wait, child_resume): Likewise.
5961 * inftarg.c (child_wait, child_post_wait, child_thread_live)
5962 (child_pid_to_str): Likewise.
5963 * infttrace.c (ptrace_wait, child_thread_alive, child_resume)
5964 (hppa_pid_or_tid_to_str, child_post_startup_inferior): Likewise.
5965 * lin-lwp.c (add_lwp, delete_lwp, find_lwp_pid, lin_lwp_attach_lwp)
5966 (lin_lwp_resume, lin_lwp_wait, lin_lwp_thread_alive)
5967 (lin_lwp_pid_to_str): Likewise.
5968 * lin-thread.c (thread_db_alive, thread_db_pid_to_str)
5969 (thread_db_resume, thread_db_wait): Likewise.
5970 * linux-thread.c (linuxthreads_thread_alive, linuxthreads_pid_to_str)
5971 (linuxthreads_resume, linuxthreads_wait): Likewise.
5972 * lynx-nat.c (child_wait, child_thread_alive, child_resume)
5973 (child_pid_to_str): Likewise.
5974 * m3-nat.c (mach_really_wait, m3_resume): Likewise.
5975 * mac-nat.c (child_wait, child_resume): Likewise.
5976 * mips-tdep.c (mips_read_pc): Likewise.
5977 * monitor.c (monitor_wait, monitor_resume): Likewise.
5978 * ocd.c, ocd.h (ocd_thread_alive, ocd_resume): Likewise.
5979 * ppc-bdm.c (bdm_ppc_wait): Likewise.
5980 * procfs.c (do_attach, procfs_wait, procfs_resume)
5981 (procfs_notice_signals, procfs_thread_alive, procfs_pid_to_str)
5982 (procfs_set_watchpoint, procfs_stopped_by_watchpoint)
5983 (procfs_find_LDT_entry): Likewise.
5984 * regcache.c (read_register_pid, read_signed_register_pid)
5985 (write_register_pid, generic_target_read_pc, read_pc_pid)
5986 (generic_target_write_pc, write_pc_pid): Likewise.
5987 * regcache.h (read_register_pid, read_signed_register_pid)
5988 (write_register_pid): Likewise.
5989 * remote-adapt.c (adapt_wait, adapt_resume): Likewise.
5990 * remote-array.c (array_wait, array_resume): Likewise.
5991 * remote-bug.c (bug_wait, bug_resume): Likewise.
5992 * remote-e7000.c (e7000_wait, e7000_resume): Likewise.
5993 * remote-eb.c (eb_wait, eb_resume): Likewise.
5994 * remote-es.c (es1800_wait, es1800_resume): Likewise.
5995 * remote-mips.c (mips_wait, mips_resume): Likewise.
5996 * remote-mm.c (mm_wait, mm_resume): Likewise.
5997 * remote-nindy.c (nindy_wait, nindy_resume): Likewise.
5998 * remote-os9k.c (rombug_wait, rombug_resume): Likewise.
5999 * remote-rdi.c (arm_rdi_wait, arm_rdi_resume): Likewise.
6000 * remote-rdp.c (remote_rdp_resume, remote_rdp_wait): Likewise.
6001 * remote-sds.c (sds_wait, sds_resume): Likewise.
6002 * remote-sim.c (gdbsim_wait, gdbsim_resume): Likewise.
6003 * remote-st.c (st2000_wait, st2000_resume): Likewise.
6004 * remote-udi.c (udi_wait, udi_resume): Likewise.
6005 * remote-vx.c (vx_wait, vx_resume): Likewise.
6006 * remote.c (remote_current_thread, remote_resume, remote_wait)
6007 (remote_async_resume, remote_async_wait, remote_cisco_wait)
6008 (remote_thread_alive): Likewise.
6009 * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_resume)
6010 (sol_thread_wait, sol_thread_notice_signals, sol_thread_alive)
6011 (solaris_pid_to_str): Likewise.
6012 * symm-nat.c (child_wait, child_resume): Likewise.
6013 * target.c (debug_to_resume, debug_to_wait, debug_to_post_wait)
6014 (debug_to_notice_signals, debug_to_thread_alive)
6015 (normal_target_post_startup_inferior, normal_pid_to_str)
6016 (debug_to_post_startup_inferior): Likewise.
6017 * target.h (to_resume, to_wait, to_post_wait)
6018 (to_post_startup_inferior, to_notice_signals, to_thread_alive)
6019 (to_pid_to_str [all in struct target_ops]): Likewise.
6020 (child_post_wait, child_thread_alive, normal_pid_to_str): Likewise.
6021 * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait)
6022 (attach_thread, detach_thread, thread_db_resume, check_event)
6023 (thread_db_post_startup_inferior, thread_db_thread_alive)
6024 (thread_db_pid_to_str): Likewise.
6025 * thread.c (add_thread, delete_thread, find_thread_pid)
6026 (pid_to_thread_id, in_thread_list, load_infrun_state)
6027 (save_infrun_state, switch_to_thread, restore_current_thread)
6028 (make_cleanup_restore_current_thread): Likewise.
6029 * top.c (target_wait_hook): Likewise.
6030 * uw-thread.c (dbgpid, thr_to_lwp, lwp_to_thr, add_thread_uw)
6031 (uw_thread_resume, libtrhead_stub, uw_thread_wait, uw_thread_alive)
6032 (uw_thread_pid_to_str): Likewise.
6033 * v850ice.c (v850ice_wait, v850ice_resume): Likewise.
6034 * win32-nat.c (child_wait, child_resume, win32_child_thread_alive)
6035 (cywin_pid_to_str): Likewise.
6036 * wince.c (child_wait, child_resume, win32_child_thread_alive):
6037 Likewise.
6038 * config/nm-linux.h (linuxthreads_pid_to_str): Likewise.
6039 * config/nm-lynx.h (child_wait, lynx_pid_to_str): Likewise.
6040 * config/alpha/nm-linux.h (lin_lwp_attach_lwp): Likewise.
6041 * config/arm/nm-linux.h (lin_lwp_attach_lwp): Likewise.
6042 * config/h8500/tm-h8500.h (h8500_read_pc, h8500_write_pc): Likewise.
6043 * config/i386/nm-i386sol2.h (procfs_stopped_by_watchpoint)
6044 (procfs_set_watchpoint): Likewise.
6045 * config/i386/nm-linux.h (lin_lwp_attach_lwp): Likewise.
6046 * config/i386/nm-ptx4.h (child_wait): Likewise.
6047 * config/i386/nm-symmetry.h (child_wait): Likewise.
6048 * config/i386/tm-cygwin.h (cygwin_pid_to_str): Likewise.
6049 * config/ia64/nm-linux.h (ia64_linux_stopped_by_watchpoint)
6050 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
6051 (lin_lwp_attach_lwp): Likewise.
6052 * config/mips/nm-irix4.h, config/mips/nm-irix5.h
6053 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Likewise.
6054 * config/pa/nm-hppah.h (child_pid_to_str, hppa_tid_to_str)
6055 (hppa_pid_or_tid_to_str): Likewise.
6056 * config/pa/tm-hppa.h (target_read_pc, target_write_pc): Likewise.
6057 * config/powerpc/nm-linux.h (lin_lwp_attach_lwp): Likewise.
6058 * config/sparc/nm-sun4sol2.h (procfs_stopped_by_watchpoint)
6059 (procfs_set_watchpoint): Likewise.
6060
6061 * gdbthread.h (thread_id_to_pid): Change return type which
6062 represents a combined process/thread id from ``int'' to
6063 ``ptid_t''.
6064 * gnu-nat.c (gnu_wait): Likewise.
6065 * go32-nat.c (go32_wait): Likewise.
6066 * hpux-thread.c (hpux_thread_wait): Likewise.
6067 * inferior.h (procfs_first_available): Likewise.
6068 * inftarg.c (child_wait): Likewise.
6069 * infttrace.c (ptrace_wait): Likewise.
6070 * lin-lwp.c (lin_lwp_wait): Likewise.
6071 * lin-thread.c (thread_db_wait): Likewise.
6072 * linux-thread.c (linuxthreads_wait): Likewise.
6073 * lynx-nat.c (child_wait): Likewise.
6074 * m3-nat.c (mach_really_wait): Likewise.
6075 * mac-nat.c (child_wait): Likewise.
6076 * monitor.c (monitor_wait): Likewise.
6077 * ppc-bdm.c (bdm_ppc_wait): Likewise.
6078 * procfs.c (do_attach, procfs_wait, procfs_first_available): Likewise.
6079 * remote-adapt.c (adapt_wait): Likewise.
6080 * remote-array.c (array_wait): Likewise.
6081 * remote-bug.c (bug_wait): Likewise.
6082 * remote-e7000.c (e7000_wait): Likewise.
6083 * remote-eb.c (eb_wait): Likewise.
6084 * remote-es.c (es1800_wait): Likewise.
6085 * remote-mips.c (mips_wait): Likewise.
6086 * remote-mm.c (mm_wait): Likewise.
6087 * remote-nindy.c (nindy_wait): Likewise.
6088 * remote-os9k (rombug_wait): Likewise.
6089 * remote-rdi.c (arm_rdi_wait): Likewise.
6090 * remote-rdp.c (remote_rdp_wait): Likewise.
6091 * remote-sds.c (sds_wait): Likewise.
6092 * remote-sim.c (gdbsim_wait): Likewise.
6093 * remote-st.c (st2000_wait): Likewise.
6094 * remote-udi.c (udi_wait): Likewise.
6095 * remote-vx.c (vx_wait): Likewise.
6096 * remote.c (remote_wait, remote_async_wait, remote_current_thread)
6097 (remote_cisco_wait): Likewise.
6098 * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_wait):
6099 Likewise.
6100 * symm-nat.c (child_wait): Likewise.
6101 * target.c (debug_to_wait): Likewise.
6102 * target.h (to_wait [in struct target_ops]): Likewise.
6103 * thread.c (thread_id_to_pid): Likewise.
6104 * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait):
6105 Likewise.
6106 * top.c (*target_wait_hook): Likewise.
6107 * uw-thread.c (lwp_to_thr, uw_thread_wait): Likewise.
6108 * v850ice.c (v850ice_wait): Likewise.
6109 * win32-nat.c (child_wait): Likewise.
6110 * wince.c (child_wait): Likewise.
6111 * config/nm-lynx.h (child_wait): Likewise.
6112 * config/i386/nm-ptx4.h (child_wait): Likewise.
6113 * config/i386/nm-symmetry.h (child_wait): Likewise.
6114
6115 * arch-utils.c (generic_prepare_to_proceed): Rename wait_pid
6116 to wait_ptid and change its type from ``int'' to ``ptid_t''.
6117 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Likewise,
6118 but rename saved_inferior_pid to saved_inferior_ptid.
6119 * d10v-tdep.c (d10v_read_pc, d10_write_pc): Likewise, but rename
6120 save_pid to save_ptid.
6121 * gdbthread.h (struct thread_info): Likewise, but rename pid to ptid.
6122 * hppah-nat.c (child_pid_to_exec): Likewise, but rename
6123 saved_inferior_pid to saved_inferior_ptid.
6124 * hpux-thread.c (main_ptid): Likewise, but rename from main_pid.
6125 * infrun.c (previous_inferior_pid [static global]): Likewise,
6126 but rename to previous_inferior_ptid.
6127 (resume): Likewise, but rename resume_pid to resume_ptid.
6128 (struct execution_control_state): Likewise, but rename
6129 pid to ptid, saved_inferior_pid to saved_inferior_ptid,
6130 and waiton_pid to waiton_ptid.
6131 (target_last_wait_pid): Likewise, but rename to
6132 target_last_wait_ptid.
6133 * infttrace.c (saved_real_pid): Likewise, but rename to
6134 saved_real_ptid.
6135 (child_pid_to_exec_file): Likewise, but rename saved_inferior_pid
6136 to saved_inferior_ptid.
6137 * lin-lwp.c (struct lwp_info): Likewise, but rename pid to ptid.
6138 (trap_ptid): Likewise, but renamed from trap_pid.
6139 * lin-thread.c (handle_new_thread): Likewise, but rename gdb_pid
6140 to gdb_ptid.
6141 * linux-thread.c (detach_thread): Likewise, but rename pid to ptid.
6142 (thread_db_wait): Likewise, but rename ret_pid to retptid.
6143 * procfs.c (procfs_wait): Likewise, for retval whose name
6144 doesn't change. Also, ``temp'' becomes two separate variables,
6145 one named temp_tid (an int) and the other temp_ptid.
6146 (procfs_notice_thread): Likewise (type change) for gdb_threadid
6147 whose name does not change.
6148 * regcache.c (registers_ptid): Likewise, but renamed from
6149 registers_pid.
6150 (read_register_pid, read_signed_register_pid, write_register_pid):
6151 Likewise, but rename save_pid to save_ptid.
6152 (read_pc_pid, write_pc_pid): Likewise, but rename saved_inferior_pid
6153 to saved_inferior_ptid.
6154 * remote.c (remote_newthread_step): Likewise, but rename pid to ptid.
6155 * sol-thread.c (struct ps_prochandle): Likewise.
6156 (sol_thread_resume): Likewise, for save_pid which becomes save_ptid.
6157 (sol_thread_wait): Likewise, for rtnval whose name does not
6158 change, and for save_pid which becomes save_ptid.
6159 (solaris_pid_to_str): Likewise for lwp whose name does not change.
6160 (sol_find_new_threads_callback): Likewise, for pid which becomes
6161 ptid.
6162 * target.h (target_resume, target_wait, target_post_wait)
6163 (target_post_startup_inferior, target_notice_signals)
6164 (target_thread_alive): Likewise.
6165 * thread.c (info_threads_command): Likewise, but rename
6166 current_pid to current_ptid.
6167 (struct current_thread_cleanup): Likewise, but rename field
6168 inferior_pid to inferior_ptid.
6169 * thread-db.c (find_new_threads_callback): Likewise, but rename
6170 pid to ptid.
6171 * uw-thread.c (thr_to_lwp): Likewise for lid whose name does not
6172 change.
6173 (lwp_to_tr): Likewise fo tid whose name remains unchanged.
6174 (thr_infpid, lwp_infpid, notice_thread, libthread_stub): Likewise,
6175 but rename pid to ptid.
6176 * config/alpha/nm-linux.h (ATTACH_LWP): Likewise.
6177 * config/arm/nm-linux.h (ATTACH_LWP): Likewise.
6178 * config/i386/nm-linux.h (ATTACH_LWP): Likewise.
6179 * config/ia64/nm-linux.h (ATTACH_LWP): Likewise.
6180 * config/pa/nm-hppah.h (target_tid_to_str): Likewise.
6181 * config/powerpc/nm-linux.h (ATTACH_LWP): Likewise.
6182
6183 * arch-utils.c (generic_prepare_to_proceed): Test for the
6184 "zero" ptid by using ptid_equal() to test to see if variable
6185 in question is the same as null_ptid. This replaces a direct
6186 test against zero.
6187 * cxux-nat.c (add_shared_symbol_files): Likewise.
6188 * i386aix-nat.c, i386b-nat.c (i386_float_info): Likewise.
6189 * infcmd.c (run_command): Likewise.
6190 * inflow.c (kill_command): Likewise.
6191 * infttrace.c (call_ttrace): Likewise.
6192 * lin-lwp.c (lin_lwp_prepare_to_proceed): Likewise.
6193 * lin-thread.c (thread_db_kill): Likewise.
6194 * procfs.c (procfs_kill_inferior, procfs_mourn_inferior): Likewise.
6195 * remote-es.c (es1800_kill): Likewise.
6196 * sol-thread.c (sol_thread_create_inferior): Likewise.
6197 * solib.c (locate_base): Likewise.
6198 * target.c (nosupport_runtime): Likewise.
6199 * thread-db.c (thread_db_wait): Likewise.
6200 * top.c (quit_confirm, quit_force): Likewise.
6201 * uw-thread (lwp_infpid, uw_thread_resume): Likewise.
6202
6203 * infrun.c (handle_inferior_event, stop_stepping, normal_stop):
6204 Use ptid_equal to compare value of process/thread ids instead of
6205 ``=='' and ``!='' operators.
6206 lin-lwp.c (delete_lwp, lin_lwp_prepare_to_proceed)
6207 (stop_wait_callback, lin_lwp_wait): Likewise.
6208 * procfs.c (procfs_wait): Likewise.
6209 * regcache.c (read_register_bytes, read_register_gen)
6210 (write_register_gen, read_register, read_register_pid)
6211 (read_signed_register, read_signed_register_pid, write_register)
6212 (write_register_pid, supply_register): Likewise.
6213 * remote-vx.c (vx_resume): Likewise.
6214 * sol-thread.c (sol_thread_wait): Likewise.
6215 * symm-nat.c (kill_inferior): Likewise.
6216 * thread.c (delete_thread, find_thread_pid, pid_to_thread_id)
6217 (in_thread_list, info_threads_command, switch_to_thread)
6218 (restore_current_thread): Likewise.
6219 * uw-thread (libtread_stub): Likewise.
6220
6221 * arm-linux-nat.c (GET_THREAD_ID): Change PID to PTID.
6222
6223 * corelow.c (add_to_thread_list): Convert argument in add_thread()
6224 call to a ptid_t.
6225 * gnu-nat.c (inf_validate_procs): Likewise.
6226 * linux-thread.c (stop_thread, update_stop_threads): Likewise.
6227 * remote.c (record_currthread, remote_threads_info): Likewise.
6228 * win32-nat.c (child_add_thread): Likewise.
6229
6230 * hpux-thread.c (save_inferior_pid, restore_inferior_pid): Rename,
6231 respectively, to save_inferior_ptid() and restore_inferior_ptid().
6232 Adjust implementations to operate on ``ptid_t'' instead of ``int''.
6233 * lin-lwp.c (save_inferior_pid, restore_inferior_pid): Likewise.
6234 * lin-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
6235 * linux-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
6236 * proc-service.c (save_inferior_pid, restore_inferior_pid): Likewise.
6237 * sol-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
6238 * thread-db.c (save_inferior_pid, restore_inferior_pid): Likewise.
6239
6240 * infrun.c (RESUME_ALL): New macro representing the -1 ptid
6241 to be passed to target_resume() when all threads should resume.
6242 (resume): Set resume_ptid to RESUME_ALL rather than -1.
6243 (handle_inferior_event): Invoke target_resume() with RESUME_ALL
6244 instead of -1.
6245 * irix5-nat.c (solib_create_inferior_hook): Convert -1 to
6246 a ptid_t in target_resume() call.
6247 * osfsolib.c (solib_create_inferior_hook): Likewise.
6248 * solib-svr4.c (solib_create_inferior_hook): Likewise.
6249
6250 * lin-lwp.c (PIDGET, PIDGET0): Rename original PIDGET macro to
6251 PIDGET0. Define new PIDGET macro which uses PIDGET0, the only
6252 difference being that the 0xffff pattern will be interpreted
6253 as -1.
6254 * lin-thread.c (PIDGET, PIDGET0): Likewise.
6255 * thread-db.c (PIDGET, PIDGET0): Likewise.
6256 * config/nm-linux.h (PIDGET, PIDGET0): Likewise.
6257 * config/i386/tm-i386sol2.h (PIDGET, PIDGET0): Likewise.
6258 * config/i386/tm-i386v42mp.h (PIDGET, PIDGET0): Likewise.
6259 * config/sparc/tm-sun4sol2.h (PIDGET, PIDGET0): Likewise.
6260
6261 * m3-nat.c (init_m3_ops): Fix typo; initialize to_wait field to
6262 mach_really_wait rather than mach_really__wait.
6263 * lin-thread.c (check_for_thread_event): Fix warning; make function
6264 actually return a value.
6265
6266 * gdbarch.sh (TARGET_READ_PC, TARGET_WRITE_PC): Change type of
6267 ``pid'' arguments from ``int'' to ``ptid_t''. Also renamed
6268 pid to ptid.
6269 * gdbarch.h, gdbarch.c: Regenerated.
6270
6271 2001-05-03 Jonathan Larmour <jlarmour@redhat.com>
6272
6273 * rdi-share/devsw.c: Include <time.h> for struct tm
6274
6275 2001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
6276
6277 * config/djgpp/fnchange.lst: Add mappings for the new
6278 opcodes/openrisc-* files.
6279
6280 2001-05-01 Michael Snyder <msnyder@redhat.com>
6281
6282 * lin-lwp.c: Change printf to fprintf_unfiltered.
6283 * Makefile.in: Add rules for thread-db.o, lin-lwp.o, proc-service.o.
6284
6285 2001-05-01 Nicholas Duffek <nsd@redhat.com>
6286
6287 * config/rs6000/tm-rs6000.h (IN_SOLIB_RETURN_TRAMPOLINE): Define.
6288 (rs6000_in_solib_return_trampoline): Declare.
6289 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): New
6290 function.
6291 (rs6000_skip_trampoline_code): Skip bigtoc fixup code.
6292 * xcoffread.c (read_xcoff_symtab): Perform the ISFCN function
6293 check after the CSECT check rather than before it. Allocate
6294 separate symtabs for CSECTs whose names begin with '@'.
6295 (scan_xcoff_symtab): Don't ignore symbols beginning with '@'.
6296 Activate the misc_func_recorded mechanism for whose names begin
6297 with '@'.
6298
6299 2001-04-30 J.T. Conklin <jtc@redback.com>
6300
6301 * ppcnbsd-nat.c (fetch_inferior_registers)
6302 (store_inferior_registers, fetch_core_registers): Changed to use
6303 fpreg[] instead of r_regs[] to access floating point registers.
6304
6305 2001-04-30 Elena Zannoni <ezannoni@redhat.com>
6306
6307 * sh-tdep.c: Get rid of the function prototypes.
6308 (sh_sh4_build_float_register_type): Move earlier in file.
6309 (fv_reg_base_num): Ditto.
6310 (dr_reg_base_num): Ditto.
6311
6312 2001-04-30 Michael Snyder <msnyder@redhat.com>
6313
6314 * thread-db.c: Revert 2001-04-26 change for debugging output.
6315 * lin-lwp.c: Ditto.
6316 * lin-lwp.c: Add set/show debug lin-lwp command. Use this
6317 command to turn extra debugging output on / off.
6318
6319 2001-04-30 Eli Zaretskii <eliz@is.elta.co.il>
6320
6321 * buildsym.c (start_subfile): Use FILENAME_CMP instead of STREQ.
6322 (top-level): #include filenames.h.
6323
6324 * dwarf2read.c (dwarf2_start_subfile): Use IS_ABSOLUTE_PATH and
6325 FILENAME_CMP, to DTRT on non-Posix platforms.
6326 (top-level): #include filenames.h.
6327
6328
6329 2001-04-27 Andrew Cagney <ac131313@redhat.com>
6330
6331 * gdbtypes.c (check_stub_method): Always initialize ``p''.
6332
6333 2001-04-27 Andrew Cagney <ac131313@redhat.com>
6334
6335 * configure.host: Delete romp host.
6336 * TODO: Update.
6337
6338 2001-04-27 Andrew Cagney <ac131313@redhat.com>
6339
6340 * TODO: Updates to 5.1. No more targets to obsolete.
6341
6342 2001-04-27 Don Howard <dhoward@redhat.com>
6343
6344 (Changes from Kevin Buettner, with minor update by Don Howard.)
6345
6346 * i387-nat.c (i387_supply_fxsave, i387_fill_fxsave, i387_tag): Fix
6347 typos in which hexadecimal constants were really intended to be
6348 binary constants.
6349 (i387_tag): Swap logic regarding zero vs non-zero exponents.
6350 * MAINTAINERS (Misc): Added myself to the write-after-approval
6351 list.
6352
6353 2001-04-26 Jim Blandy <jimb@redhat.com>
6354
6355 (Changes from Daniel Berlin, with revisions by Jim Blandy.)
6356
6357 Abstract out operations specific to particular C++ ABI's, and
6358 invoke them through a function table. This removes the C++ ABI
6359 dependencies scattered throughout the code, and allows us to
6360 cleanly add support for new C++ ABI's.
6361 * cp-abi.h, cp-abi.h, gnu-v2-abi.c, hpacc-abi.c: New files.
6362 * c-typeprint.c, c-valprint.c, dbxread.c, eval.c, gdbtypes.c,
6363 jv-typeprint.c, linespec.c, symtab.c, typeprint.c, valops.c:
6364 #include "cp-abi.h". These files all use functions now declared
6365 there.
6366 * symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P):
6367 Deleted. These services are now provided by functions declared in
6368 cp-abi.h.
6369 * value.h (value_rtti_type, value_virtual_fn_field): Same.
6370 * values.c (value_virtual_fn_field): Same, for this definition.
6371 * valops.c (value_rtti_type): Same.
6372 * c-typeprint.c (c_type_print_base): Use the functions from
6373 "cp-abi.h", instead of the old macros, or hard-coded ABI-specific
6374 tests.
6375 * dbxread.c (record_minimal_symbol): Same.
6376 * gdbtypes.c (get_destructor_fn_field, virtual_base_index,
6377 virtual_base_index_skip_primaries): Same.
6378 * jv-typeprint.c (java_type_print_base): Same.
6379 * linespec.c (find_methods, decode_line_1): Same.
6380 * symtab.c (gdb_mangle_name): Same.
6381 * Makefile.in (SFILES): Add the new .c files mentioned above.
6382 (cp_abi_h): New variable.
6383 (COMMON_OBS): Add gnu-v2-abi.o, hpacc-abi.o, and cp-abi.o.
6384 (cp-abi.o, gnu-v2-abi.o, hpacc-abi.o): New targets.
6385 (c-typeprint.o, c-valprint.o, dbxread.o, eval.o, gdbtypes.o,
6386 jv-typeprint.o, symtab.o, linespec.o, typeprint.o, valops.o): Add
6387 dependency on $(cp_abi_h).
6388
6389 2001-04-26 Michael Snyder <msnyder@redhat.com>
6390
6391 * thread-db.c (_initialize_thread_db): Add set/show command
6392 "debug-linux-threads" for debugging output.
6393 * lin-lwp.c (various): Use global "debug_linux_threads to
6394 turn on extra debugging output.
6395 * lin-lwp.c: Minor cleanups in comments.
6396 * target.c (normal_pid_to_str): Get rid of an ancient hack.
6397 * remote.c (remote_pid_to_str): New function for remote target.
6398
6399 2001-04-24 Jim Blandy <jimb@redhat.com>
6400
6401 * c-typeprint.c (c_type_print_cv_qualifier): Don't print `const'
6402 qualifier on C++ references; all references are innately const.
6403
6404 2001-04-20 Mark Kettenis <kettenis@gnu.org>
6405
6406 * event-top.h: Fix formatting.
6407
6408 2001-04-17 Andrew Cagney <ac131313@redhat.com>
6409
6410 * source.c (openp): Obsolete #ifdef MPW code.
6411 (open_source_file): Ditto.
6412 * event-top.c (display_gdb_prompt): Ditto.
6413 * utils.c (query): Ditto.
6414 (init_page_info): Ditto.
6415 (init_page_info): Delete #ifndef MPW.
6416 * top.c (gdb_readline): Ditto.
6417 * mac-xdep.c: Obsolete.
6418 * mac-gdb.r: Obsolete.
6419 * config/powerpc/xm-mpw.h: Obsolete.
6420 * config/xm-mpw.h: Obsolete.
6421 * mpw-make.sed: Obsolete.
6422 * mpw-config.in: Obsolete.
6423 * TODO: Update
6424 * NEWS: Update
6425
6426 2001-04-19 Mark Kettenis <kettenis@gnu.org>
6427
6428 * i386-tdep.c (i386_frameless_function_invocation): New function.
6429 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION): Redefine
6430 in terms of i386_frameless_function_invocation. Adjust comment.
6431 (i386_frameless_function_invocation): New prototype.
6432
6433 2001-04-18 Martin M. Hunt <hunt@redhat.com>
6434
6435 * top.c (gdb_init): Don't call cli_out_new() to
6436 create global uiout if init_ui_hook is set. uiout will
6437 have to be initialized there.
6438
6439 2001-04-18 Andrew Cagney <ac131313@redhat.com>
6440
6441 * arch-utils.c: Include "regcache.h".
6442
6443 2001-04-18 Mark Kettenis <kettenis@gnu.org>
6444
6445 * i386-tdep.c (i386_saved_pc_after_call): New function.
6446 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Redefine in terms
6447 of i386_saved_pc_after_call.
6448 (i386_saved_pc_after_call): New prototype.
6449
6450 2001-04-17 Michael Snyder <msnyder@redhat.com>
6451
6452 * i386-nat.c: Fix typo in comment.
6453 * solib.c (no_shared_libraries): New function. Discard all symbols
6454 from shared libraries.
6455 (_initialize_solib): Add command "nosharedlibrary" as complement
6456 to the command "sharedlibrary". Unloads symbols for all solibs.
6457
6458 2001-04-16 Andrew Cagney <ac131313@redhat.com>
6459
6460 * configure.host (m68030-sony-*, m68*-isi-*, m68*-sony-*):
6461 * configure.tgt (m68*-rom68k-*, m68*-*bug-*, m68*-monitor-*)
6462 (m68*-est-*, m68*-sony-*, m68*-isi-*):
6463 * Makefile.in (xm-news1000.h, tm-news.h, xm-news.h): Obsolete..
6464 * config/m68k/xm-news.h: Obsolete.
6465 * config/m68k/tm-news.h:
6466 * config/m68k/xm-news1000.h: Obsolete.
6467 * config/m68k/news.mh: Obsolete.
6468 * config/m68k/news.mt: Obsolete.
6469 * config/m68k/nm-news.h: Obsolete.
6470 * config/m68k/news1000.mh: Obsolete.
6471 * news-xdep.c: Obsolete.
6472 * Makefile.in (isi-xdep.o): Obsolete.
6473 (ALLDEPFILES): Delete isi-xdep.c.
6474 (tm-isi.h): Obsolete.
6475 * m68k-tdep.c (altos_skip_prologue): Update comments.
6476 (isi_skip_prologue): Obsolete.
6477 * isi-xdep.c: Obsolete.
6478 * config/m68k/xm-isi.h: Obsolete.
6479 * config/m68k/isi.mh: Obsolete.
6480 * config/m68k/tm-isi.h: Obsolete.
6481 * config/m68k/isi.mt: Obsolete.
6482
6483 * TODO: Update.
6484 * NEWS: Update.
6485
6486 2001-04-17 Michael Snyder <msnyder@redhat.com>
6487
6488 * remote.c (remote_open_1): On opening the remote target, activate
6489 the solib_create_inferior_hook, so that it can detect when the
6490 target loads shared libraries.
6491 (remote_async_open_1): Ditto.
6492
6493 2001-04-17 Michael Snyder <msnyder@redhat.com>
6494
6495 * breakpoint.c (print_one_breakpoint): Handle 64-bit addresses.
6496 * tracepoint.c (tracepoints_info): Handle 64-bit addresses.
6497 * testsuite/gdb.trace/deltrace.exp: Allow for 64-bit addresses.
6498 * testsuite/gdb.trace/infotrace.exp: Ditto.
6499 * testsuite/gdb.trace/passcount.exp: Ditto.
6500 * testsuite/gdb.trace/while-stepping.exp: Ditto.
6501
6502 2001-04-17 Michael Snyder <msnyder@redhat.com>
6503
6504 * thread-db.c (check_thread_signals): When looping over all
6505 signals, ignore signal zero.
6506 (disable_thread_signals): Ditto.
6507
6508 2001-04-17 Eirik Fuller <eirik@netapp.com>
6509
6510 * thread.c (do_captured_thread_select): Allow the argument to the
6511 thread command to be an expression rather than a literal integer.
6512
6513 2001-04-17 Mark Kettenis <kettenis@gnu.org>
6514
6515 * i386-linux-tdep.c (i386_linux_saved_pc_after_call): Use
6516 read_memory_unsigned_integer instead of read_memory_integer.
6517
6518 2001-04-16 Kevin Buettner <kevinb@redhat.com>
6519
6520 * solib-aix5.c (map_index_vs_section_name_okay): New function.
6521 (aix5_relocate_main_executable): Don't use file offsets for
6522 determining corresponding sections and map file entries. Call
6523 map_index_vs_section_name_okay() to do this instead.
6524
6525 2001-04-16 Kevin Buettner <kevinb@redhat.com>
6526
6527 * procfs.c (open_with_retry): New function.
6528 (open_procinfo_files, load_syscalls, proc_iterate_over_mappings)
6529 (proc_get_LDT_entry): Call open_with_retry() instead of open().
6530
6531 2001-04-16 Kevin Buettner <kevinb@redhat.com>
6532
6533 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Adjust
6534 comparison against TRAP_HWBKPT constant yet again to account
6535 for the various values used by different kernel versions.
6536
6537 2001-04-16 Daniel Berlin <dan@cgsoftware.com>
6538
6539 * demangle.c (_initialize_demangler): Use xcalloc on the
6540 demangling_style_names, and make it a null terminated array of
6541 names, to avoid a crash.
6542
6543 2001-04-16 Mark Kettenis <kettenis@gnu.org>
6544
6545 * i386-tdep.c (i386_frame_chain): New function.
6546 * config/i386/tm-i386.h (FRAME_CHAIN): Redefine in terms of
6547 i386_frame_chain.
6548 (i386_frame_chain): New prototype.
6549
6550 2001-04-14 J.T. Conklin <jtc@redback.com>
6551
6552 * target.h (target_ops): Removed to_core_file_to_sym_file vector
6553 function.
6554 * corelow.c (core_ops): Updated for above change.
6555 * gnu-nat.c (core_ops): Likewise.
6556 * inftarg.c (child_ops): Likewise.
6557 * monitor.c (monitor_ops): Likewise.
6558 * ppc-bdm.c (bdm_ppc_ops): Likewise.
6559 * remote-adapt.c (adapt_ops): Likewise.
6560 * remote-bug.c (bug_ops): Likewise.
6561 * remote-e7000.c (e7000_ops): Likewise.
6562 * remote-eb.c (eb_ops): Likewise.
6563 * remote-es.c (es1800_ops, es1800_child_ops): Likewise.
6564 * remote-mm.c (mm_ops): Likewise.
6565 * remote-nindy.c (nindy_ops): Likewise.
6566 * remote-nrom.c (nrom_ops): Likewise.
6567 * remote-os9k.c (rombug_ops): Likewise.
6568 * remote-rdp.c (remote_rdp_ops): Likewise.
6569 * remote-sim.c (gdbsim_ops): Likewise.
6570 * remote-st.c (st2000_ops): Likewise.
6571 * v850ice.c (v850ice_ops): Likewise.
6572 * target.c (cleanup_target): Likewise
6573 (update_current_target): Likewise.
6574 (setup_target_debug): Likewise
6575 (debug_to_core_file_to_sym_file): Removed.
6576
6577 * corefile.c (core_file_command) [HPUXHPPA]: Removed code that
6578 sets symbol file from information obtained from the core file.
6579 * corelow.c (core_file_to_sym_file): Removed.
6580
6581 2001-04-13 Fernando Nasser <fnasser@redhat.com>
6582
6583 From Adam Mirowski <Adam.Mirowski@Sun.COM>
6584 Fixed Insight on Solaris. It was not possible to debug a process
6585 because of EINTR "errors".
6586 * procfs.c: (procfs_wait): if proc_wait_for_stop() fails
6587 with EINTR, retry the call.
6588
6589 2001-04-12 Kevin Buettner <kevinb@redhat.com>
6590
6591 * solib-aix5.c (enum maptype): Delete.
6592 (struct lm_info): Add new member ``nmappings''. Make ``mapping''
6593 member a pointer instead of a statically sized array.
6594 (build_so_list_from_mapfile): Dynamically allocate ``mapping''
6595 array.
6596 (aix5_relocate_main_executable, aix5_relocate_section_addresses,
6597 aix5_find_global_pointer): Search for correct mapping to use
6598 based on file offset instead of knowledge of whether the section
6599 is read-only or read/write.
6600 (aix5_find_gate_addresses): Use the first mapping instead of
6601 the (now defunct) MT_READONLY mapping.
6602
6603 2001-04-12 Nicholas Duffek <nsd@redhat.com>
6604
6605 * xcoffread.c (scan_xcoff_symtab): Ignore symbols beginning with
6606 "@".
6607
6608 2001-04-12 Kevin Buettner <kevinb@redhat.com>
6609
6610 * config/i386/fbsd.mh (NATDEPFILES): Add i386-nat.o.
6611
6612 2001-04-09 Andrew Cagney <ac131313@redhat.com>
6613
6614 Obsolete i[3456]86-*-sunos* (aka Sun386) host and target.
6615 * config/i386/sun386.mh: Obsolete.
6616 * config/i386/sun386.mt: Obsolete.
6617 * config/i386/xm-sun386.h: Obsolete.
6618 * config/i386/tm-sun386.h: Obsolete.
6619 * config/i386/nm-sun386.h: Obsolete.
6620 * Makefile.in (ALLDEPFILES): Delete sun386-nat.c.
6621 (sun386-nat.o): Target is obsolete.
6622 * sun386-nat.c: Obsolete.
6623 * configure.tgt (i[3456]86-*-sunos*): Obsolete.
6624 * configure.host (i[3456]86-*-sunos*): Obsolete.
6625 * NEWS: Update.
6626 * TODO: Update.
6627
6628 2001-04-10 J.T. Conklin <jtc@redback.com>
6629
6630 * maint.c: Fix typo in comment.
6631
6632 2001-04-09 Keith Seitz <keiths@cygnus.com>
6633
6634 * MAINTAINERS: Swap with Syd Polk as a gdbtk maintainer.
6635
6636 2001-04-08 Kevin Buettner <kevinb@redhat.com>
6637
6638 * fork-child.c (fork_inferior, clone_and_follow_inferior):
6639 Document fact that apparent call to vfork() might actually be
6640 a call to fork() instead.
6641 * ser-pipe.c (pipe_open): Likewise.
6642
6643 2001-04-08 Kevin Buettner <kevinb@redhat.com>
6644
6645 * printcmd.c (print_frame_args): Use a cleanup to invoke
6646 ui_out_list_end() so that the list count nesting flag will
6647 be decremented properly when an error occurs.
6648 * stack.c (print_frame): Likewise.
6649
6650 2001-04-06 J.T. Conklin <jtc@redback.com>
6651
6652 * dcache.c (dcache_write_line): Fixed bugs where cache line was
6653 not written to target correctly.
6654
6655 * gdbserver/low-hppabsd.c (read_inferior_memory): Add explicit
6656 void return value;
6657 * gdbserver/low-nbsd.c: Likewise.
6658 * gdbserver/low-sparc.c: Likewise.
6659 * gdbserver/low-sun3.c: Likewise.
6660
6661 2001-04-06 Geoffrey Keating <geoffk@redhat.com>
6662
6663 * config/rs6000/nm-rs6000.h (PTRACE_ATTACH): Don't define.
6664 (PTRACE_DETACH): Don't define.
6665
6666 2001-04-06 David Smith <dsmith@redhat.com>
6667
6668 * arch-utils.c (default_prepare_to_proceed)
6669 (generic_prepare_to_proceed): Added new functions.
6670 * arch-utils.h: New function declarations for
6671 default_prepare_to_proceed() and generic_prepare_to_proceed().
6672 * gdbarch.sh: Added PREPARE_TO_PROCEED.
6673 * gdbarch.c: Regenerated.
6674 * gdbarch.h: Regenerated.
6675 * inferior.h: Added get_last_target_status() declaration.
6676 * infrun.c (get_last_target_status): Added new function.
6677 (handle_inferior_event): Saves last pid and waitstatus, which will
6678 get returned by get_last_target_status().
6679
6680 * hppa-tdep.c (prepare_to_proceed): Added comment stating that
6681 prepare_to_proceed() is potentially redundant since
6682 default_prepare_to_proceed() has been added.
6683 * linux-thread.c (prepare_to_proceed): Ditto.
6684 * lin-lwp.c (prepare_to_proceed): Ditto.
6685 * m3-nat.c (prepare_to_proceed): Ditto.
6686
6687 2001-04-05 Andrew Cagney <ac131313@redhat.com>
6688
6689 Obsolete powerpcle-*-cygwin* and powerpcle-*-solaris* platforms
6690 and powerpc-*-netware* target.
6691 * configure.host (powerpcle-*-cygwin*, powerpcle-*-solaris*):
6692 Obsolete.
6693 * configure.tgt (powerpc-*-netware*, powerpcle-*-cygwin*)
6694 (powerpcle-*-solaris*): Obsolete.
6695 * config/powerpc/tm-cygwin.h: Obsolete.
6696 * config/powerpc/cygwin.mt: Obsolete.
6697 * config/powerpc/xm-cygwin.h: Obsolete.
6698 * config/powerpc/cygwin.mh: Obsolete.
6699 * config/powerpc/nm-solaris.h: Obsolete.
6700 * config/powerpc/xm-solaris.h: Obsolete.
6701 * config/powerpc/tm-solaris.h: Obsolete.
6702 * config/powerpc/solaris.mt: Obsolete.
6703 * config/powerpc/tm-ppc-nw.h: Obsolete.
6704 * config/powerpc/ppc-nw.mt: Obsolete.
6705 * TODO: Update.
6706 * NEWS: Update.
6707
6708 2001-04-06 Fernando Nasser <fnasser@redhat.com>
6709
6710 * buildsym.c (record_line): Turn off unused addr bits.
6711
6712 2001-04-06 Fernando Nasser <fnasser@redhat.com>
6713
6714 From David Deephanphongs <deephan@telocity.com>
6715 * inferior.h: Fix declarations of get_inferior_args and
6716 set_inferior_args, which were missing the trailing 's'.
6717
6718 2001-04-05 Jeff Holcomb <jeffh@redhat.com>
6719
6720 * monitor.c (monitor_supply_register): Only report an error if we
6721 don't get a valid value.
6722
6723 2001-04-05 Eli Zaretskii <eliz@is.elta.co.il>
6724
6725 * README: Don't mention gdba.el.
6726
6727 2001-04-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6728
6729 From Jimmy Guo <guo@cup.hp.com>
6730 * top.c (init_main): set prompt if annotation_level>1,
6731 this is necessary when annotation_level is set to 2 via
6732 --annotate=2 command line option.
6733
6734 2001-04-04 Andrew Cagney <ac131313@redhat.com>
6735
6736 Obsolete a29k-*-* host and a29k-*-sym1* and a29k-*-kern* targets.
6737 * configure.tgt (a29k-*-sym1*, a29k-*-kern*): Obsolete.
6738 * configure.host (a29k-*-*): Obsolete.
6739 * Makefile.in (ALLDEPFILES): Remove ultra3-nat.c and
6740 ultra3-xdep.c.
6741 (ultra3-nat.o, ultra3-xdep.o): Obsolete.
6742 * config/a29k/tm-ultra3.h: Obsolete.
6743 * config/a29k/ultra3.mt: Obsolete.
6744 * config/a29k/ultra3.mh: Obsolete.
6745 * config/a29k/nm-ultra3.h: Obsolete.
6746 * config/a29k/xm-ultra3.h: Obsolete.
6747 * ultra3-xdep.c: Obsolete.
6748 * ultra3-nat.c: Obsolete.
6749 * config/a29k/a29k-kern.mt: Obsolete.
6750 * NEWS: Update.
6751 * TODO: Update.
6752
6753 Wed Apr 4 21:48:42 2001 Christopher Faylor <cgf@cygnus.com>
6754
6755 * main.c: Remove windows.h use.
6756 (gdbtk_test): Use PATH_MAX for home var calculation.
6757 * remote-e7000.c (e7000_parse_device): Accomodate Cygwin as well as
6758 Win32 in colon test.
6759 * ser-tcp.c: Use modern __CYGWIN__ conditional.
6760 * source.c (mod_path): Add __CYGWIN__ conditional to WIN32 test.
6761 (openp): Ditto.
6762 * symfile.c (symfile_bfd_open): Ditto.
6763
6764 2001-04-04 Martin M. Hunt <hunt@redhat.com>
6765
6766 * main.c (captured_main): For GDBtk, don't use tui_fileopen().
6767 Handle all stream setup in gdbtk_init
6768
6769 2001-04-04 Mark Kettenis <kettenis@gnu.org>
6770
6771 * i386-tdep.c (i386_extract_return_value): Don't return the return
6772 value of a void function.
6773 (i386_store_return_value): Likewise.
6774
6775 2001-04-03 Andrew Cagney <ac131313@redhat.com>
6776
6777 Obsolete w65-*-* target.
6778 * configure.tgt (w65-*-*): Obsolete.
6779 * config/w65/w65.mt: Obsolete.
6780 * config/w65/tm-w65.h: Obsolete.
6781 * w65-tdep.c: Obsolete.
6782 * NEWS: Update. Fix TiC80 description.
6783 * TODO: Update.
6784
6785 2001-04-03 Andrew Cagney <ac131313@redhat.com>
6786
6787 Obsolete tic80-*-* target.
6788 * configure.tgt (tic80-*-*): Obsolete.
6789 * config/tic80/tic80.mt: Obsolete.
6790 * config/tic80/tm-tic80.h: Obsolete.
6791 * tic80-tdep.c: Obsolete.
6792 * TODO: Update
6793 * NEWS: Update.
6794
6795 2001-04-02 J.T. Conklin <jtc@redback.com>
6796
6797 * remote-mips.c (S_IROTH): Moved definition from here.
6798 * gdb_stat.h (S_IROTH): to here.
6799
6800 * remote.c (remote_protocol_e, remote_protocol_E): Define.
6801 (set_remote_protocol_e_packet_cmd)
6802 (set_remote_protocol_E_packet_cmd)
6803 (show_remote_protocol_e_packet_command)
6804 (show_remote_protocol_E_packet_command): New functions.
6805 (init_all_packet_configs): Initialize remote_protocol_e and
6806 remote_protocol_E.
6807 (remote_resume, remote_async_resume): Support e/E command
6808 packets.
6809 (show_remote_cmd): Show state of remote_protocol_e and
6810 remote_protocol_E.
6811 (_initialize_remote): Add "set remote step-over-range-packet"
6812 and "set remote step-over-range-w-signal-packet" to CLI.
6813
6814 2001-04-01 Andrew Cagney <ac131313@redhat.com>
6815
6816 Obsolete ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv* and
6817 ns32k-utek-*.
6818 * Makefile.in (ALLDEPFILES): Delete umax-xdep.c and ns32km3-nat.c.
6819 (umax-xdep.o, ns32km3-nat.o): Obsolete.
6820 * configure.tgt (ns32k-*-mach3*, ns32k-utek-sysv*, ns32k-utek-*):
6821 Obsolete.
6822 * configure.host (ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv*):
6823 Obsolete.
6824 * config/ns32k/merlin.mh: Obsolete.
6825 * config/ns32k/merlin.mt: Obsolete.
6826 * config/ns32k/xm-merlin.h: Obsolete.
6827 * config/ns32k/tm-merlin.h: Obsolete.
6828 * config/ns32k/nm-umax.h: Obsolete.
6829 * config/ns32k/umax.mh: Obsolete.
6830 * config/ns32k/umax.mt: Obsolete.
6831 * config/ns32k/xm-umax.h: Obsolete.
6832 * umax-xdep.c: Obsolete.
6833 * config/ns32k/ns32km3.mh: Obsolete.
6834 * config/ns32k/ns32km3.mt: Obsolete.
6835 * config/ns32k/tm-ns32km3.h: Obsolete.
6836 * config/ns32k/xm-ns32km3.h: Obsolete.
6837 * ns32km3-nat.c: Obsolete.
6838 * ns32k-tdep.c (merlin_skip_prologue): Obsolete.
6839 (merlin_frame_num_args): Ditto.
6840 * NEWS: Update.
6841 * TODO: Update.
6842
6843 2001-04-02 Eli Zaretskii <eliz@is.elta.co.il>
6844
6845 * config/djgpp/fnchange.lst: Tweak due to
6846 expect/example/chesslib.c.
6847
6848 2001-04-02 Kevin Buettner <kevinb@redhat.com>
6849
6850 * m88k-tdep.c (examine_prologue): Change type of ``insn'' from
6851 unsigned int to unsigned long. Also, fix format string.
6852 (pop_frame): Fix PC_IN_CALL_DUMMY() call so that it doesn't
6853 use an undeclared variable. Also, delete declaration and
6854 initialization of ``fp'' because it is otherwise unused.
6855 * remote-bug.c (sleep): Delete declaration.
6856 (bug_store_register, bug_write_memory, bug_read_memory)
6857 (bug_insert_breakpoint, bug_remove_breakpoint): Fix sprintf()
6858 format statements and cast certain sprintf() arguments to
6859 eliminate warnings.
6860 (bug_load): Likewise for call to printf_filtered().
6861 * config/m88k/tm-m88k.h (FIX_CALL_DUMMY): Eliminate
6862 assignment to ``pc''. The necessary assignment is done in
6863 hand_function_call() after the invocation of FIX_CALL_DUMMY().
6864
6865 2001-03-20 Daniel Berlin <dberlin@redhat.com>
6866
6867 * symtab.c (completion_list_add_name): Remove duplicate string checks,
6868 readline already does this, and it's much faster at it, too.
6869
6870 2001-04-01 Eli Zaretskii <eliz@is.elta.co.il>
6871
6872 * go32-nat.c: Minor tweaks, to pacify the ari script.
6873
6874 2001-04-01 Mark Kettenis <kettenis@gnu.org>
6875
6876 * i386-tdep.c (i386_extract_struct_value_address): New function.
6877 * config/i386/tm-i386.h (EXTRACT_STRUCT_VALUE_ADDRESS): Redefine
6878 in terms of i386_extract_struct_value_address.
6879 (i386_extract_struct_value_address): New prototype.
6880
6881 * i386-linux-nat.c (i386_linux_dr_get): Change type of return
6882 value to `unsigned long'. Change type of `value' to `unsigned
6883 long'.
6884 (i386_linux_dr_set): Change type of second argument to `unsigned
6885 long'.
6886 (i386_linux_dr_set_control): Change type of first argument to
6887 `unsigned long'.
6888 (i386_linux_dr_get_status): Change type of return value to
6889 unsigned long.
6890 * config/i386/nm-linux.h (i386_linux_dr_set_control,
6891 i386_linux_dr_get_status): Adjust prototypes accordingly.
6892
6893 2001-03-31 Kevin Buettner <kevinb@redhat.com>
6894
6895 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Change
6896 TRAP_HWBKPT constant to match that in the kernel headers for
6897 Linux/IA-64.
6898
6899 2001-03-31 Mark Kettenis <kettenis@gnu.org>
6900
6901 * i386bsd-nat.c: Include "gdb_assert.h".
6902 [HAVE_PT_GETDBREGS] (DBREG_DRX): Define if not
6903 already defined.
6904 [HAVE_PT_GETDBREGS] (i386bsd_dr_set, i386bsd_dr_set_control,
6905 i386bsd_dr_set_addr, i386bsd_dr_reset_addr,
6906 i386bsd_dr_get_status): New functions.
6907 * config/i386/nm-fbsd.h [HAVE_PT_GETDBREGS]
6908 (I386_USE_GENERIC_WATCHPOINTS): Define.
6909 Include "i386/nm-i386.h".
6910 (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
6911 I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
6912 (i386bsd_dr_set_control, i386bsd_dr_set_addr,
6913 i386bsd_dr_reset_addr, i386bsd_dr_get_status): New prototypes.
6914 * acconfig.h (HAVE_PT_GETDBREGS): New configure macro.
6915 * configure.in: Cleanup a few comments. Check for PT_GETDBREGS
6916 ptrace request.
6917 * config.in, configure: Regenerate.
6918
6919 * i386-nat.c (i386_insert_aligned_watchpoint): Set address
6920 register before enabling it by setting the control register.
6921 (i386_remove_aligned_watchpoint): Reset address register after
6922 disabling it by setting the control register.
6923
6924 * i386-tdep.c (i386_extract_return_value): If the type of the
6925 return value is TYPE_STRUCT and the number of fields is one, call
6926 ourselves with TYPE set tp the type of the first field.
6927 (i386_store_return_value): Likewise.
6928 This fixes a problem with returning structs consisting of a single
6929 `float' or `double' on *BSD.
6930
6931 2001-03-30 Mark Kettenis <kettenis@gnu.org>
6932
6933 * lin-lwp.c (lin_lwp_resume): Don't mark LWP as not stopped until
6934 we're absolutely sure we're going to resume it.
6935
6936 * thread-db.c (check_event): Don't report an error if we encounter
6937 a thread creation event for a thread that's already in the thread
6938 list, since that may legitemately happen. Instead only call
6939 attach_thread if it's not already in the thread list.
6940
6941 2001-03-28 Andrew Cagney <ac131313@redhat.com>
6942
6943 * config/pa/xm-hppah.h (malloc): Really delete declaration
6944 (MALLOC_INCOMPATIBLE): Really delete macro.
6945 * cli/cli-cmds.c (apropos_command): Use xcalloc.
6946
6947 2001-03-28 Andrew Cagney <ac131313@redhat.com>
6948
6949 * configure.in (build_warnings): Add -Wuninitialized.
6950 * configure: Regenerate.
6951
6952 * v850-tdep.c (v850_scan_prologue): Initialize ``insn2''.
6953 * sparc-tdep.c (sparc64_push_arguments): Add default case to
6954 switch.
6955 * sh-tdep.c (sh_do_fp_register): Replace ``?:'' printf format
6956 expression with if statement.
6957 * mn10200-tdep.c (mn10200_analyze_prologue): Initialize
6958 ``stack_size''.
6959 * mips-tdep.c (show_mipsfpu_command): Add default case to switch.
6960 (mips_dump_tdep): Fix setting of ef_mips_arch.
6961 * mcore-tdep.c (mcore_analyze_prologue): Initialize ``fp_regnum''.
6962 * dsrec.c (make_srec): Always initialize ``binbuf''.
6963 * monitor.c (monitor_read_memory_single): Do not pass an
6964 uninitialized buffer to monitor_error. Make ``i'' more local.
6965
6966 2001-03-28 Andrew Cagney <ac131313@redhat.com>
6967
6968 * MAINTAINERS: Change ns32k target to ,-Werror.
6969
6970 * ns32k-tdep.c: Include "gdbcore.h"
6971 (flip_bytes): Change first argument to void*. Add forward
6972 declaration.
6973 (sign_extend): Add declaration.
6974 (merlin_frame_num_args): Add final else clause to if-else chain.
6975 (umax_frame_num_args): Ditto.
6976 * config/ns32k/tm-umax.h (ns32k_localcount): Declare.
6977 (flip_bytes): Ditto.
6978
6979 2001-03-28 Mark Kettenis <kettenis@gnu.org>
6980
6981 * i386-linux-tdep.c (FRAMELESS_SIGNAL): Moved here from
6982 config/i386/nm-linux.h (including comment).
6983 (i386_linux_frame_chain): New function implementing guts of the
6984 former FRAME_CHAIN macro, but using read_memory_unsigned_integer
6985 instead of read_memory_integer.
6986 (i386_linux_frame_saved_pc): Removed doc pointing to
6987 i386/tm-linux.h for an explanation of FRAMELESS_SIGNAL since that
6988 now lives in this file.
6989 * config/i386/tm-linux.h (FRAMELESS_SIGNAL): Moved to
6990 i386-linux-tdep.c (including comment).
6991 (FRAME_CHAIN): Redefined in terms of i386_linux_frame_chain.
6992 (i386_linux_frame_chain): New prototype.
6993
6994 * gdbserver/low-linux.c [I386_GNULINUX_TARGET]: Cleanup code and
6995 make it work again.
6996 (NUM_FREGS): Redefine to 0.
6997 (NUM_REGS): Redefine as NUM_GREGS.
6998 (i386_register_byte, i386_register_raw_size): Update from
6999 i386-tdep.c. Add comment about their origin.
7000 (regmap, register_u_addr): Take these from i386-linux-nat.c.
7001 (i386_register_u_addr): Removed.
7002
7003 * i386-linux-nat.c (i386_linux_dr_get): Return 0 if ptrace call
7004 fails instead of calling perror_with_name. This should fix
7005 debugging remote i386 targets with a native Linux/x86 GDB. Add
7006 FIXME for this hack.
7007
7008 2001-03-19 J.T. Conklin <jtc@redback.com>
7009
7010 * arch-utils.c (#include "gdbthread.h"): Removed.
7011 (#include "symfile.h"): Removed.
7012 (XMALLOC): Removed unused macro.
7013 * breakpoint.c (tbreak_command): Removed local declaration.
7014 (awatch_command, do_enable_breakpoint, set_breakpoint_count):
7015 Remove duplicate declarations.
7016 (bpstat_should_step, bpstat_have_active_hw_watchpoints)
7017 (remove_solib_event_breakpoints): Fix indentation botch.
7018 * c-typeprint.c (#include "command.h"): Removed.
7019 (#include "gdbcmd.h"): Removed.
7020 * ch-exp.c (ch_terminal_match_float_literal, parse_expr)
7021 (parse_primval, parse_untyped_expr, parse_opt_untyped_expr):
7022 Removed duplicate declarations.
7023 * ch-typeprint.c (#include "command.h"): Removed.
7024 (#include "gdbcmd.h"): Removed.
7025 * corefile.c (#include "frame.h"): Removed
7026 (#include "symfile.h"): Removed.
7027 (#include "language.h"): Removed.
7028 * dbxread.c (#include "command.h"): Removed.
7029 * environ.c (#include "gdbcore.h"): Removed.
7030 * event-loop.c (#include "top.h"): Removed.
7031 * f-typeprint.c (#include "command.h"): Removed.
7032 (#include "gdbcmd.h"): Removed.
7033 (#include "language.h"): Removed.
7034 (#include "typeprint.h"): Removed.
7035 (#include "frame.h"): Removed.
7036 * gdbtypes.h (print_type_scalar): Removed declaration.
7037 * infcmd.c (#include "completer.h"): Removed.
7038 * language.c (#include "frame.h"): Removed.
7039 * m2-typeprint.c (#include "command.h"): Removed.
7040 (#include "gdbcmd.h"): Removed.
7041 (#include "language.h"): Removed.
7042 * m2-valprint.c (#include "valprint.h"): Removed.
7043 * p-typeprint.c (#include "command.h"): Removed.
7044 (#include "gdbcmd.h"): Removed.
7045 * p-valprint.c (#include "typeprint.h"): Removed.
7046 * parse.c (#include "linespec.h"): Removed.
7047 * regcache.c (#include "frame.h"): Removed.
7048 * remote.c (#include "frame.h"): Removed.
7049 (getpkt_sane): Make static.
7050 * source.c (#include "completer.h"): Removed.
7051 * stack.c (#include "symfile.h"): Removed.
7052 (#include "objfiles.h"): Removed.
7053 * symfile.c (#include "completer.h"): Removed.
7054 * tracepoint.c (#include "completer.h"): Removed.
7055 * values.c (#include "frame.h"): Removed.
7056 * varobj.c (#include "valprint.h"): Removed.
7057 * wrapper.c (#include "frame.h"): Removed.
7058
7059 * memattr.c (create_mem_region): Removed unused variable.
7060 * remote-nrom.c: Removed spurious semicolon after init_nrom_ops.
7061
7062 2001-03-27 Nick Clifton <nickc@redhat.com>
7063
7064 * remote-rdp.c (rdp_set_command_line): Add missing double quote.
7065
7066 2001-03-27 Kevin Buettner <kevinb@redhat.com>
7067
7068 * solib-aix5.c (build_so_lib_from_mapfile): Use xfree() instead
7069 of free().
7070
7071 2001-03-27 Eli Zaretskii <eliz@is.elta.co.il>
7072
7073 * TODO (Cleanups): Remove the item about converting docs to GFDL.
7074
7075 2001-03-26 Kevin Buettner <kevinb@redhat.com>
7076
7077 * ia64-tdep.c (slotN_contents, replace_slotN_contents): Change
7078 type of ``bundle'' from unsigned char * to char *.
7079 (ia64_get_saved_register): Use alloca() to allocate register
7080 buffers.
7081
7082 * solib-aix5.c (build_so_lib_from_mapfile): Fix xasprintf() usage.
7083
7084 2001-03-26 Kevin Buettner <kevinb@redhat.com>
7085
7086 * proc-utils.h (procfs_ctl_t): New typedef.
7087 * proc-api.c (write_with_trace): Change type of ``opcode'' from
7088 long to procfs_ctl_t. Don't assume that the target has defined
7089 BREAKPOINT. Handle case in which PCRESET is the same as PCUNSET.
7090 * proc-events.c (sys/syscall.h, sys/fault.h): Include conditionally.
7091 * procfs.c (sys/fault.h, sys/syscall.h): Include conditionally.
7092 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t, gdb_premptysysset)
7093 (gdb_praddsysset, gdb_prdelsysset, gdb_pr_issyssetmember):
7094 Conditionally define as appropriate for AIX/non-AIX systems. Use
7095 these defines/typedefs as appropriate elsewhere in file.
7096 (struct procinfo): Change type of saved_sigset and saved_sighold
7097 from sigset_t to gdb_sigset_t. Make saved_exitset and
7098 saved_entryset pointer variables. Add two new fields, num_syscalls
7099 and syscall_names.
7100 (DYNAMIC_SYSCALLS): Define when HAVE_PRSYSENT_T is defined.
7101 (sysset_t_size, sysset_t_alloc): New functions.
7102 (load_syscalls, free_syscalls, find_syscall): New functions for
7103 platforms which define DYNAMIC_SYSCALLS.
7104 (create_procinfo): Call load_syscalls.
7105 (destroy_one_procinfo): Call free_syscalls.
7106 (GDBRESET): Don't define twice.
7107 (proc_modify_flag): Change type of operation code array `arg'
7108 from long to procfs_ctl_t.
7109 (proc_stop_process, proc_wait_for_stop, proc_run_process)
7110 (proc_set_traced_signals, proc_set_traced_faults)
7111 (proc_set_traced_sysentry, proc_set_traced_sysexit)
7112 (proc_set_held_signals, proc_clear_current_fault)
7113 (proc_set_current_signal, proc_clear_current_signal, proc_set_gregs)
7114 (proc_set_fpregs, proc_kill, proc_set_watchpoint): Likewise for `cmd'.
7115 (proc_set_traced_sysentry): Dynamically allocate variable sized
7116 struct gdb_proc_ctl_pcsentry. Also, free it at function exit.
7117 (proc_set_traced_sysexit): Dynamically allocate variable
7118 sized struct gdb_proc_ctl_pcsexit. Also, free it at
7119 function exit.
7120 (proc_get_traced_sysentry, proc_get_traced_sysexit): Add new code
7121 for reading the sysset_t struct on AIX5.
7122 (procfs_debug_inferior): Don't assume that SYS_exit will be
7123 defined. Add new code for finding certain syscalls on AIX5.
7124 (syscall_is_lwp_exit, syscall_is_exit, syscall_is_exec)
7125 (syscall_is_lwp_create): New functions.
7126 (procfs_wait): Restructured code which checks for certain
7127 system calls to use the new syscall_is_... functions.
7128 (procfs_notice_signals): Account for the fact that saved_entryset
7129 and saved_exitset in struct procinfo are now pointers.
7130
7131 2001-03-26 Kevin Buettner <kevinb@redhat.com>
7132
7133 * symtab.c (find_pc_sect_line): Revise method used for finding
7134 the ending pc.
7135
7136 2001-03-26 Mark Kettenis <kettenis@gnu.org>
7137
7138 * i386-linux-tdep.c (i386_linux_sigtramp_saved_pc,
7139 i386_linux_sigtramp_saved_sp): Make static.
7140 (i386_linux_frame_saved_pc): New function based on the old
7141 FRAME_SAVED_PC macro, but use read_memory_unsigned_integer instead
7142 of read_memory_integer.
7143 * config/i386/tm-linux.h (sigtramp_saved_pc): Remove definition.
7144 (i386_linux_sigtramp_saved_pc): Remove prototype.
7145 (FRAME_SAVED_PC): Redefine in terms of i386_linux_frame_saved_pc.
7146 (i386_linux_frame_saved_pc): New prototype.
7147
7148 2001-03-26 Andrew Cagney <ac131313@redhat.com>
7149
7150 * MAINTAINERS: Document m88k as a ``Known problem in 5.1''.
7151 * TODO (GDB 5.1 - Cleanups): Update.
7152
7153 2001-03-26 Andrew Cagney <ac131313@redhat.com>
7154
7155 * fork-child.c (clone_and_follow_inferior): Delete #ifdef
7156 HAVE_VFORK.
7157
7158 2001-03-26 Mark Kettenis <kettenis@gnu.org>
7159
7160 * config/i386/tm-symmetry.h (PUSH_ARGUMENTS): #undef.
7161
7162 * i386-tdep.c (i386_push_arguments, i386_store_struct_return): New
7163 functions.
7164 * config/i386/tm-i386.h (PUSH_ARGUMENTS): New macro.
7165 (STORE_STRUCT_RETURN): Redefine in terms of
7166 i386_store_struct_return.
7167 (i386_push_arguments, i386_store_struct_return): New prototypes.
7168 * config/i386/tm-i386v.h (STORE_STRUCT_RETURN): Remove. It's
7169 definition was identical to the definition in "i386/tm-i386.h" so
7170 the new definition should suffice too.
7171
7172 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
7173
7174 * event-loop.c (toplevel) [!HAVE_POLL] [NO_FD_SET]: Remove unused
7175 definitions for SELECT, NBBY, FD_SETSIZE, NFDBITS, and MASK_SIZE.
7176
7177 * config/djgpp/djconfig.sh: Add copyright notice.
7178
7179 * ser-go32.c (rawclock): Remove prototype; include time.h instead.
7180 (ISR, dos_hookirq, isr_t): Convert K&R definition to ANSI C.
7181 (top level) <string.h>: Include gdb_string.h instead.
7182 (dos_noop, dos_raw, dos_noflush_set_tty_state)
7183 (dos_print_tty_state, dos_info): Remove ATTRIBUTE_UNUSED.
7184
7185 * go32-nat.c (go32_create_inferior): Move the declaration of
7186 `environ' to here from the top level.
7187 (top level) <_initialize_go32_nat>: Remove redundant prototype.
7188 <gdb_string.h>: Include it instead of string.h.
7189 (store_register): Call register_buffer instead of accessing
7190 registers[] directly.
7191 (redir_cmdline_delete, redir_cmdline_parse, redir_to_debugger)
7192 (redir_to_debugger, redir_debug_init) [__DJGPP_MINOR__ < 3]: Put
7193 the function names at the start of the line.
7194 (go32_set_dr): Throw internal_error if the argument is not a valid
7195 debug register number.
7196 (go32_open, go32_close, go32_attach, go32_detach, go32_resume)
7197 (go32_wait, go32_xfer_memory, go32_files_info)
7198 (go32_terminal_info): Remove ATTRIBUTE_UNUSED.
7199
7200 2001-03-25 Jim Blandy <jimb@redhat.com>
7201
7202 * mips-tdep.c (mips_gdbarch_init): Tweak indentation.
7203
7204 2001-03-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7205
7206 From Andrew Cagney <ac131313@redhat.com>
7207
7208 * coffread.c: Include "gdb_assert.h".
7209 (coff_symtab_read): Cast the integer s_sclass to a long before
7210 casting it to a pointer.
7211
7212 2001-03-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7213
7214 From Andrew Cagney <ac131313@redhat.com>
7215
7216 * coffread.c (coff_symtab_read): Initialize
7217 ``fcn_first_line_addr''. Check that the ``.bf'' always preceeds
7218 the ``.ef'' info.
7219 * dbxread.c (find_text_range): Initialize ``start'' and ``end''.
7220
7221 2001-03-23 Andrew Cagney <ac131313@redhat.com>
7222
7223 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Down grade to
7224 GDB_MULTI_ARCH_PARTIAL from two. SOFTWARE_SINGLE_STEP is not
7225 multi-arch.
7226
7227 * gdbarch.sh (SOFTWARE_SINGLE_STEP): Add.
7228 * gdbarch.h, gdbarch.c: Re-generate.
7229
7230 * target.h (SOFTWARE_SINGLE_STEP_P)
7231 (SOFTWARE_SINGLE_STEP): Delete macro definitions.
7232
7233 2001-03-23 Andrew Cagney <ac131313@redhat.com>
7234
7235 * gdbarch.sh (gdbarch_register_read, gdbarch_register_write): Add.
7236 * gdbarch.h, gdbarch.c: Regenerate.
7237
7238 * regcache.h (regcache_read, regcache_write): Declare.
7239 (registers, register_valid, register_buffer): Add note that these
7240 interfaces are deprecated.
7241
7242 * regcache.c: Include "gdb_assert.h".
7243 (legacy_write_register_gen): Rename write_register_gen.
7244 (legacy_read_register_gen): Rename read_register_gen.
7245 (regcache_read, regcache_write): New function.
7246 (read_register_gen, write_register_gen): New function.
7247 (write_register): Simplify. Use write_register_gen.
7248 (read_register): Ditto using read_register_gen.
7249 (read_signed_register): Ditto.
7250 (read_register_bytes): Ditto!!!!
7251 (supply_register): Add note that CLEANUP_REGISTER_VALUE is being
7252 replaced by gdbarch_register_read.
7253
7254 * TODO (GDB 5.2 - Cleanups): Add list of gdbarch methods to
7255 deprecate.
7256
7257 2001-03-23 Jim Blandy <jimb@redhat.com>
7258
7259 Fix from Dan Berlin:
7260
7261 * stabsread.c (read_cpp_abbrev): Properly construct the names of
7262 virtual function table pointer fields.
7263
7264 2001-03-19 Andrew Cagney <ac131313@redhat.com>
7265
7266 * defs.h (xfree, mcalloc, mmalloc, mrealloc, mfree, xmmalloc,
7267 xmrealloc): Move existing declarations to the one place and
7268 re-order to be consistent.
7269 (xmcalloc, xmfree): Declare.
7270 (xmmalloc, xmrealoc): Assume ISO-C - use size_t and void* in
7271 declaration.
7272
7273 * utils.c (size_t): Delete #ifdef defining size_t.
7274 (mmalloc, mrealloc, mcalloc, mfree): Re-order.
7275 (mmalloc, mrealloc, mcalloc): Document as only calls in GDB
7276 corresponding malloc, realloc, calloc.
7277 (mfree): Call free directly.
7278 (xmmalloc, xmrealloc): Clean up. Assume ISO-C.
7279 (xmcalloc, xmfree): New functions. Copy old xcalloc and xfree
7280 function bodies to here.
7281 (xcalloc, xfree): Call xmcalloc and xmfree respectfully.
7282
7283 2001-03-23 Andrew Cagney <ac131313@redhat.com>
7284
7285 * fork-child.c (fork_inferior): Make ``argv'', ``exec_file'' and
7286 ``shell_file'' static locals.
7287
7288 * jv-lang.c (java_link_class_type): Initialize ``field'' and
7289 ``method''.
7290
7291 * jv-valprint.c (java_value_print): Initialize ``next_element''.
7292
7293 2001-03-23 Mark Kettenis <kettenis@gnu.org>
7294
7295 * config/i386/nm-i386.h: Fix formatting and change reference to
7296 i386-tdep.c to i386-nat.c.
7297
7298 2001-03-23 David Smith <dsmith@redhat.com>
7299
7300 * configure.in: Corrected spelling errors.
7301 * configure: Regenerated.
7302
7303 2001-03-22 Andrew Cagney <ac131313@redhat.com>
7304
7305 * TODO (GDB 5.1 - Cleanups): Add more targets to obsolete.
7306
7307 2001-03-22 Andrew Cagney <ac131313@redhat.com>
7308
7309 * Makefile.in (NTSSTART): Delete.
7310 (NTSOBS): Delete.
7311 (kdb): Delete target.
7312 * kdb-start.c, stuff.c: Mark as obsolete.
7313 * NEWS: Update.
7314
7315 2001-03-22 Andrew Cagney <ac131313@redhat.com>
7316
7317 * config/pa/xm-hppah.h (HPPA_COMPILER_BUG): Delete. GDB only
7318 compiles using an ISO-C compiler.
7319 (MALLOC_INCOMPATIBLE): Ditto.
7320 * linespec.c (decode_line_1): Delete hack to work around
7321 HPPA_COMPILER_BUG.
7322
7323 2001-03-22 Andrew Cagney <ac131313@redhat.com>
7324
7325 * exec.c (xfer_memory): Always initialize section.
7326 * infrun.c (normal_stop): Always initialize source_flag.
7327
7328 2001-03-22 Andrew Cagney <ac131313@redhat.com>
7329
7330 * TODO (Remote Protocol Support): Review. Add notes about ``!'',
7331 non-use of a continue address and typical use of ``q'' packet.
7332
7333 2001-03-22 Eli Zaretskii <eliz@is.elta.co.il>
7334
7335 Make DJGPP use the new unified support for hardware
7336 breakpoints and watchpoints on x86 targets:
7337
7338 * config/i386/nm-go32.h <top level>: Don't include nm-i386v.h,
7339 include nm-i386.h instead.
7340 (TARGET_HAS_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT)
7341 (TARGET_CAN_USE_HARDWARE_WATCHPOINT, STOPPED_BY_WATCHPOINT)
7342 (TARGET_REGION_OK_FOR_HW_WATCHPOINT, DECR_PC_AFTER_HW_BREAK)
7343 (target_stopped_data_address, target_insert_watchpoint)
7344 (target_remove_watchpoint, target_insert_hw_breakpoint)
7345 (target_remove_hw_breakpoint): Don't define.
7346 (I386_USE_GENERIC_WATCHPOINTS, I386_DR_LOW_SET_CONTROL)
7347 (I386_DR_LOW_SET_ADDR, I386_DR_LOW_RESET_ADDR)
7348 (I386_DR_LOW_GET_STATUS): Define to call appropriate go32_*
7349 functions from go32-nat.c.
7350
7351 * config/i386/go32.mh (NATDEPFILES): Add i386-nat.o.
7352
7353 * go32-nat.c <top level>: Remove prototypes for watchpoint-
7354 related functions. Remove definitions of watchpoint-related
7355 macros.
7356 (go32_mourn_inferior): Call i386_cleanup_dregs instead of the
7357 private cleanup_dregs function.
7358 (cleanup_dregs, go32_insert_watchpoint)
7359 (go32_insert_aligned_watchpoint, go32_handle_nonaligned_watchpoint)
7360 (go32_remove_watchpoint, go32_remove_aligned_watchpoint)
7361 (go32_region_ok_for_watchpoint, go32_stopped_by_watchpoint)
7362 (go32_remove_hw_breakpoint, go32_insert_hw_breakpoint): Remove.
7363 (go32_set_dr, go32_set_dr7, go32_get_dr6): New functions.
7364
7365 2001-03-21 Kevin Buettner <kevinb@redhat.com>
7366
7367 * ia64-tdep.c (fetch_instruction): Warn about slot numbers greater
7368 than two instead of generating an error.
7369
7370 2001-03-21 Jim Blandy <jimb@redhat.com>
7371
7372 * cp-valprint.c: Reformat to bring into line with GNU coding
7373 standards.
7374
7375 2001-03-21 Mark Kettenis <kettenis@gnu.org>
7376
7377 Make Linux use the new unified support for hardware breakpoints
7378 and watchpoints on x86 targets.
7379 * i386-linux-nat.c: Doc fixes. Include "gdb_assert.h".
7380 [HAVE_SYS_DEBUGREG_H]: Include <sys/debugreg.h>.
7381 (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS, DR_CONTROL): Define to
7382 appropriate value if not already defined.
7383 (register_u_addr): New function.
7384 (kernel_u_size): New function.
7385 (i386_linux_dr_get, i386_linux_dr_set): New functions.
7386 (i386_linux_dr_set_control, i386_linux_dr_set_addr,
7387 i386_linux_reset_addr, i386_linux_dr_get_status): New functions.
7388 * config/i386/nm-linux.h: Don't include "nm-i386v.h".
7389 (I386_USE_GENERIC_WATCHPOINTS): Define and include "nm-i386.h".
7390 (TARGET_HAS_HARDWARE_WATCHPOINTS,
7391 TARGET_CAN_USE_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT,
7392 STOPPED_BY_WATCHPOINT, target_insert_watchpoint,
7393 target_remove_watchpoint): Remove macros.
7394 (i386_stopped_by_watchpoint, i386_insert_watchpoint,
7395 i386_remove_watchpoint): Remove prototypes.
7396 (register_u_addr): New prototype.
7397 (REGISTER_U_ADDR): Define in terms of register_u_addr.
7398 (i386_linux_dr_set_control, i386_linux_dr_set_addr,
7399 i386_linux_reset_addr, i386_linux_dr_get_status): New prototypes.
7400 (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
7401 I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
7402 * config/i386/linux.mh (NATDEPFILES): Replace i386v-nat.o with
7403 i386-nat.o.
7404
7405 2001-03-21 Jim Blandy <jimb@redhat.com>
7406
7407 Fix from Dan Berlin:
7408
7409 * linespec.c (find_methods): Whitespace differences aren't
7410 significant in *un*mangled method names. Use strcmp_iw to compare
7411 them, not STREQ.
7412
7413 2001-03-21 Andrew Cagney <ac131313@redhat.com>
7414
7415 * gdbarch.sh: Allow a non- multi-arch target to override a
7416 predicate.
7417 * gdbarch.h: Regenerate.
7418
7419 2001-03-21 Andrew Cagney <ac131313@redhat.com>
7420
7421 * gdbarch.sh: Avoid use of ``!''.
7422
7423 2001-03-20 Andrew Cagney <ac131313@redhat.com>
7424
7425 * target.h (enum target_signal): Move definition from here.
7426 * defs.h (enum target_signal): To here.
7427
7428 * config/arc/tm-arc.h (arc_software_single_step): Change type of
7429 first parameter to enum target_signal.
7430 * config/rs6000/tm-rs6000.h (rs6000_software_single_step): Ditto.
7431 * config/sparc/tm-sparc.h (sparc_software_single_step): Ditto.
7432 * rs6000-tdep.c (rs6000_software_single_step): Update.
7433
7434 2001-03-20 Andrew Cagney <ac131313@redhat.com>
7435
7436 * frame.h (SIZEOF_FRAME_SAVED_REGS): Report an error if macro
7437 already defined.
7438
7439 From 2000-08-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
7440 * stabsread.c (define_symbol): A parameter ('R'), a local ('r'),
7441 or a reference ('a') can be in a pseudo register.
7442 * infcmd.c (do_registers_info): Must take into account the pseudo
7443 registers to print their value.
7444 (registers_info): Likewise.
7445 * stack.c (frame_info): Likewise.
7446 * frame.h (SIZEOF_FRAME_SAVED_REGS): Save the pseudo registers.
7447
7448 2001-03-21 Eli Zaretskii <eliz@is.elta.co.il>
7449
7450 Unified support for hardware breakpoints and watchpoints on
7451 x86 targets:
7452
7453 * config/i386/nm-i386.h: New file.
7454
7455 * config/i386/nm-i386.h: (i386_cleanup_dregs)
7456 (i386_insert_watchpoint, i386_remove_watchpoint)
7457 (i386_region_ok_for_watchpoint, i386_stopped_by_hwbp)
7458 (i386_stopped_data_address, i386_insert_hw_breakpoint)
7459 (i386_remove_hw_breakpoint): Declare prototypes.
7460 [I386_USE_GENERIC_WATCHPOINTS] (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
7461 Define if not already defined.
7462 (TARGET_REGION_OK_FOR_HW_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT)
7463 (STOPPED_BY_WATCHPOINT, target_stopped_data_address)
7464 (target_insert_watchpoint, target_remove_watchpoint)
7465 (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Define
7466 to call the appropriate i386_* functions.
7467
7468 * i386-nat.c: New file.
7469
7470 * i386-nat.c (I386_DR_CONTROL_MASK, I386_DR_LOCAL_ENABLE)
7471 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
7472 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): New macros.
7473 (dr_mirror, dr_status_mirror, dr_control_mirror, dr_ref_count)
7474 (maint_show_dr): New variables.
7475 (i386_cleanup_dregs, i386_show_dr, i386_length_and_rw_bits)
7476 (i386_insert_aligned_watchpoint, i386_remove_aligned_watchpoint)
7477 (i386_handle_nonaligned_watchpoint, i386_insert_watchpoint)
7478 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
7479 (i386_stopped_data_address, i386_stopped_by_hwbp)
7480 (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): New
7481 functions.
7482 (_initialize_i386_nat): New function.
7483 [I386_USE_GENERIC_WATCHPOINTS]: Add new maint command
7484 `show-debug-regs', sets maint_show_dr to non-zero value and
7485 activates debugging print-outs in functions which insert, remove,
7486 and test watchpoints and hardware breakpoints.
7487
7488 * Makefile.in (i386-nat.o): New target.
7489 (ALLDEPFILES): Add i386-nat.o.
7490
7491 2001-03-21 Mark Kettenis <kettenis@gnu.org>
7492
7493 * i386-tdep.c: Add back _initialize_i386_tdep prototype with
7494 appropriate comment.
7495
7496 2001-03-20 Kevin Buettner <kevinb@redhat.com>
7497
7498 * config/alpha/alpha-linux.mh (NATDEPFILES): Use proc-service.o,
7499 thread-db.o, and lin-lwp.o for thread support instead of
7500 linux-thread.o and lin-thread.o.
7501 * config/alpha/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS)
7502 (ATTACH_LWP): Define to use the following lin-lwp.c functions...
7503 (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals)
7504 (lin_lwp_attach_lwp): Declare.
7505
7506 2001-03-20 Jim Blandy <jimb@redhat.com>
7507
7508 Fix from Dan Berlin:
7509
7510 * Makefile.in: Clean up dependencies on ../include/demangle.h.
7511 (demangle_h): New variable.
7512 (jv-typeprint.o, jv-valprint.o, linespec.o): Use it.
7513
7514 2001-03-20 Andrew Cagney <ac131313@redhat.com>
7515
7516 * target.h (SOFTWARE_SINGLE_STEP_P): Add empty parameter list.
7517 * breakpoint.c (bpstat_stop_status): Update.
7518 * infrun.c (handle_inferior_event): Ditto.
7519 * mips-tdep.c (mips_dump_tdep): Ditto.
7520 * infrun.c (resume): Ditto.
7521 * infptrace.c (child_resume): Ditto.
7522 * config/mips/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
7523 * config/sh/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
7524 * config/sparc/tm-sparc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
7525 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP_P): Ditto.
7526 * config/arm/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
7527 * config/arc/tm-arc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
7528 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
7529
7530 2001-03-20 Andrew Cagney <ac131313@redhat.com>
7531
7532 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Replace abort
7533 with internal_error.
7534
7535 2001-03-20 Jim Blandy <jimb@redhat.com>
7536
7537 Fix from Dan Berlin:
7538
7539 * linespec.c (find_methods): Just call CHECK_TYPEDEF on t, rather
7540 than asking for sym_class's type; that's circuitous. Remove
7541 sym_class, since the last use of it is gone.
7542
7543 2001-03-20 Eli Zaretskii <eliz@is.elta.co.il>
7544
7545 * breakpoint.c (print_it_typical) <bp_access_watchpoint> [UI_OUT]:
7546 Correct the order of calls to ui_out_field_string and
7547 ui_out_list_begin when bs->old_val is NULL.
7548
7549 2001-03-19 Kevin Buettner <kevinb@redhat.com>
7550
7551 * configure.in (AC_CHECK_HEADERS): Check for existence of nlist.h.
7552 * configure: Regenerate.
7553 * config.in: Regenerate.
7554 * solib-legacy.c (nlist.h): Include if HAVE_NLIST_H is defined.
7555
7556 2001-03-19 Kevin Buettner <kevinb@redhat.com>
7557
7558 * config/i386/i386v42mp.mh (NATDEPFILES): List all files on
7559 same line to avoid problems with Unixware 7's make when building
7560 a cross debugger.
7561
7562 2001-03-19 Andrew Cagney <ac131313@redhat.com>
7563
7564 * defs.h (malloc): Move declaration from here.
7565 * utils.c (malloc): To here.
7566 * config/pa/xm-hppah.h (malloc): Delete declaration.
7567
7568 * gnu-nat.c (make_proc): Use xmalloc instead of malloc.
7569 * hp-psymtab-read.c (hpread_call_pxdb): Ditto.
7570 (hpread_quick_traverse): Ditto.
7571 * infttrace.c (create_thread_info): Ditto.
7572 (kill_inferior): Ditto.
7573 * gnu-nat.c (make_inf): Ditto, and don't check return value.
7574 * procfs.c (proc_update_threads): Ditto.
7575 * valprint.c (print_decimal_chars): Ditto.
7576 * gdbtypes.c (cfront_mangle_name): Use xasprintf instead of
7577 malloc and sprintf.
7578 * remote-rdp.c (rdp_set_command_line): Ditto.
7579
7580 2001-03-19 Andrew Cagney <ac131313@redhat.com>
7581
7582 * defs.h (realloc): Move declaration from here.
7583 * utils.c (realloc): To here.
7584 * config/pa/xm-hppah.h (realloc): Delete declaration.
7585 * lin-thread.c (insert_thread): Use xrealloc instead of realloc.
7586 * symfile.c (add_filename_language): Ditto.
7587 * event-loop.c (create_file_handler): Ditto.
7588
7589 2001-03-19 Andrew Cagney <ac131313@redhat.com>
7590
7591 * defs.h (free): Move declaration from here.
7592 * utils.c (free): To here.
7593 (xfree): Document as the only call to free().
7594 * config/pa/xm-hppah.h (free): Delete declaration.
7595
7596 2001-03-19 Kevin Buettner <kevinb@redhat.com>
7597
7598 * config/ia64/linux.mh (NATDEPFILES): Add proc-service.o to
7599 this list.
7600
7601 2001-03-19 Andrew Cagney <ac131313@redhat.com>
7602
7603 * eval.c (evaluate_subexp): Remove #ifdef __STDC__ and ``inline''.
7604 * config/mips/xm-mips.h (offsetof): Define when !GNUC not !STDC.
7605 * cli/cli-cmds.c (init_cli_cmds): Remove #ifdef __STDC__
7606
7607 2001-03-19 Andrew Cagney <ac131313@redhat.com>
7608
7609 * TODO: List known problems with TUI.
7610
7611 2001-03-19 Andrew Cagney <ac131313@redhat.com>
7612
7613 * MAINTAINERS: Jimmy Guo stepped down as a maintiner (TUI,
7614 gdb.hp).
7615
7616 2001-03-19 Andrew Cagney <ac131313@redhat.com>
7617
7618 * remote.c (remote_cisco_section_offsets): Do not cast result from
7619 bfd_get_section_name.
7620 (compare_sections_command): Ditto.
7621 (remote_cisco_section_offsets): Make ``p'' a const pointer.
7622 (compare_sections_command): Ditto for ``sectname''.
7623
7624 2001-03-19 Andrew Cagney <ac131313@redhat.com>
7625
7626 From Mon Nov 20 13:59:29 2000 Andrew Cagney <cagney@b1.cygnus.com>:
7627 * valops.c (hand_function_call): Simplify computation of the
7628 address of the pushed argument.
7629
7630 2001-03-17 Andrew Cagney <ac131313@redhat.com>
7631
7632 * p-exp.y (parse_number): Avoid shift overflow when ``long''.
7633 Code copied from c-exp.y.
7634
7635 2001-03-18 Kevin Buettner <kevinb@redhat.com>
7636
7637 * acconfig.h (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
7638 (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
7639 (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New configure macros.
7640 * configure.in (HAVE_STRUCT_LINK_MAP32): Move this test out
7641 of the Solaris procfs testing section. Instead, group with...
7642 (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
7643 (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
7644 (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New <link.h> tests.
7645 * configure: Regenerate.
7646 * config.in: Regenerate.
7647
7648 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Use
7649 new configure macros to choose which (if any) code to
7650 compile in. Added code to explicitly handle *BSD systems;
7651 these systems were previously handled only through macro
7652 redefinition. Also, due to the way the autoconf tests are set
7653 up, this function will no longer return a non-zero value when
7654 GDB is configured as a cross debugger. I.e, cross debuggers
7655 will no longer be able to "accidentally" get the host system's
7656 link map offsets.
7657
7658 2001-03-18 Kevin Buettner <kevinb@redhat.com>
7659
7660 * config/i386/nbsd.mh (NATDEPFILES): List all files on the same
7661 line to avoid build problem on NetBSD 1.4.
7662
7663 2001-03-17 Michael Chastain <chastain@redhat.com>
7664
7665 * win32-nat.c (child_attach): check args for NULL before passing
7666 to strtoul. This fixes PR gdb/43.
7667
7668 2001-03-17 Mark Kettenis <kettenis@gnu.org>
7669
7670 * i387-nat.h: Doc Fix.
7671
7672 * i386-tdep.c: Fix formatting.
7673 (i386_get_frame_setup, i386_follow_jump, codestream_read,
7674 codestream_seek, codestream_fill, skip_trampoline_code,
7675 gdb_print_insn_i386, _initialize_i386_tdep): Remove redundant
7676 prototypoes.
7677
7678 2001-03-17 Mark Kettenis <kettenis@gnu.org>
7679
7680 * config/i386/tm-linux.h (TARGET_ANALYZE_FLOATING): Remove. It's
7681 no longer used. Also remove associated FIXME.
7682
7683 2001-03-16 Andrew Cagney <ac131313@redhat.com>
7684
7685 * gdbarch.sh: Add classes ``m'' and ``M'' for pure multi-arch. Do
7686 not generate macro wrappers for multi-arch functions or
7687 predicates.
7688 (class_is_info_p, class_is_predicate_p): Update.
7689 (class_is_function_p, class_is_variable_p): Ditto.
7690 (class_is_multiarch_p): New class function.
7691
7692 2001-03-16 J.T. Conklin <jtc@redback.com>
7693
7694 * config/h8300/tm-h8300.h (FRAME_ARGS_ADDRESS): Changed to use
7695 h8300_frame_args_address from frame_args_address.
7696 (FRAME_LOCALS_ADDRESS): Changed to use h8300_frame_locals_address
7697 from frame_locals_address.
7698 (PRINT_REGISTER_HOOK): Changed to use h8300_print_register_hook
7699 from print_register_hook.
7700 (h8300_frame_args_address): Declare.
7701 (h8300_frame_find_saved_regs): Declare.
7702 (h8300_frame_locals_address): Declare.
7703 (h8300_frame_saved_pc): Declare.
7704 (h8300_pop_frame): Declare.
7705 (h8300_print_register_hook): Declare.
7706 * h8300-tdep.c (h8300_frame_find_saved_regs): Removed declaration.
7707 (h8300_frame_args_address): Renamed from frame_args_address.
7708 (h8300_frame_locals_address): Renamed from frame_locals_address.
7709 (h8300_pop_frame): Renamed from pop_frame.
7710 (h8300_print_register_hook): Renamed from print_register_hook.
7711
7712 2001-03-16 Kevin Buettner <kevinb@redhat.com>
7713
7714 * solib-svr4.c (bfd_lookup_symbol): Change type of
7715 ``storage_needed'' from unsigned int to long in order to
7716 match return type of bfd_get_symtab_upper_bound() and
7717 bfd_get_dynamic_symtab_upper_bound().
7718 * solib-aix5.c (bfd_lookup_symbol): Likewise. Also, eliminate
7719 REASONABLE_LIMIT hack which had been added to work around this
7720 problem.
7721
7722 2001-03-15 Kevin Buettner <kevinb@redhat.com>
7723
7724 * solib-aix5.c (bfd_lookup_symbol, build_so_list_from_mapfile)
7725 (aix5_relocate_main_executable, aix5_clear_solib): Replace calls
7726 to free() with calls to xfree().
7727 (bfd_lookup_symbol): Eliminate use of PTR.
7728 (build_so_list_from_mapfile): Use xasprintf() instead of sprintf().
7729
7730 2001-03-15 Martin Hunt <hunt@redhat.com>
7731
7732 * linespec.c (decode_line_1): Remove trailing quote
7733 when parsing double quotes.
7734
7735 2001-03-15 Kevin Buettner <kevinb@redhat.com>
7736
7737 * uw-thread.c (read_thr_debug, read_map, read_lwp, thread_iter)
7738 (libthread_stub, libthread_init): Pass NULL for the mem_attrib
7739 argument in the to_xfer_memory calls.
7740
7741 2001-03-15 Andrew Cagney <ac131313@redhat.com>
7742
7743 * MAINTAINERS: Fix typo - w65 not w64. Still doesn't build.
7744 * TODO (GDB 5.1 - Cleanups): Add status of targets being obsoleted.
7745
7746 2001-03-15 Andrew Cagney <ac131313@redhat.com>
7747
7748 * wince.c (child_xfer_memory): Add attrib parameter.
7749 * symm-nat.c (child_xfer_memory): Ditto.
7750 * mac-nat.c (child_xfer_memory): Ditto.
7751 * infttrace.c (child_xfer_memory): Ditto.
7752 * procfs.c (procfs_xfer_memory): Ditto.
7753 * lin-thread.c (thread_db_xfer_memory): Ditto.
7754 * gnu-nat.c (gnu_xfer_memory): Ditto.
7755
7756 2001-03-14 Andrew Cagney <ac131313@redhat.com>
7757
7758 * NEWS: Mention that Harris/CXUX m88k is obsolete.
7759
7760 2001-03-13 Andrew Cagney <ac131313@redhat.com>
7761
7762 * config/mips/tm-mips.h: Include "regcache.h" for macros refering
7763 to regcache functions.
7764 * config/m68k/tm-m68k.h: Ditto.
7765 * config/i386/tm-i386v.h: Ditto.
7766 * config/mcore/tm-mcore.h: Ditto.
7767 * config/m88k/tm-m88k.h: Ditto.
7768 * config/m68k/tm-news.h: Ditto.
7769 * config/m68k/tm-linux.h: Ditto.
7770 * config/m68k/tm-delta68.h: Ditto.
7771 * config/m68k/nm-sun3.h: Ditto.
7772 * config/m32r/tm-m32r.h: Ditto.
7773 * config/i386/tm-symmetry.h: Ditto.
7774 * config/i386/tm-sun386.h: Ditto.
7775 * config/i386/tm-i386.h: Ditto.
7776 * config/i386/nm-symmetry.h: Ditto.
7777 * config/i386/nm-sun386.h: Ditto.
7778 * config/i386/nm-ptx4.h: Ditto.
7779 * config/i386/nm-i386mach.h: Ditto.
7780 * config/h8500/tm-h8500.h: Ditto.
7781 * config/h8300/tm-h8300.h: Ditto.
7782 * config/fr30/tm-fr30.h: Ditto.
7783 * config/d30v/tm-d30v.h: Ditto.
7784 * config/arm/tm-arm.h: Ditto.
7785 * config/arc/tm-arc.h: Ditto.
7786 * config/alpha/tm-alpha.h: Ditto.
7787 * config/a29k/tm-vx29k.h: Ditto.
7788 * config/a29k/tm-a29k.h: Ditto.
7789 * config/w65/tm-w65.h: Ditto.
7790 * config/vax/tm-vax.h: Ditto.
7791 * config/v850/tm-v850.h: Ditto.
7792 * config/tic80/tm-tic80.h: Ditto.
7793 * config/sparc/tm-sparclite.h: Ditto.
7794 * config/sparc/tm-sparclet.h: Ditto.
7795 * config/sparc/tm-sparc.h: Ditto.
7796 * config/sparc/nm-sun4sol2.h: Ditto.
7797 * config/sparc/nm-sun4os4.h: Ditto.
7798 * config/sparc/nm-nbsd.h: Ditto.
7799 * config/powerpc/nm-solaris.h: Ditto.
7800 * config/pa/tm-hppao.h: Ditto.
7801 * config/pa/tm-hppa.h: Ditto.
7802 * config/pa/nm-hppab.h: Ditto.
7803 * config/ns32k/tm-umax.h: Ditto.
7804 * config/ns32k/tm-merlin.h: Ditto.
7805 * config/nm-m3.h: Ditto.
7806 * config/nm-gnu.h: Ditto.
7807
7808 2001-03-14 Andrew Cagney <ac131313@redhat.com>
7809
7810 * MAINTAINERS: Update list of targets. Mark arm-* and v850-elf as
7811 broken. Mark sh-*, ia64-linux and ns32k-netbsd as buildable.
7812 Specify an m88k target. Include sample GAWK script to generate
7813 target list. Delete non-existant romp target.
7814 * TODO (GDB 5.1 - Cleanups): Update.
7815
7816 2001-03-14 Keith Seitz <keiths@cygnus.com>
7817
7818 * linespec.c (decode_line_1): Skip argptr over a leading
7819 double quote. Prevents alloc of 0 bytes and memcpy of -1 bytes.
7820
7821 2001-03-14 Kevin Buettner <kevinb@redhat.com>
7822
7823 * config/djgpp/fnchange.lst (ia64-aix-nat.c): Add entry.
7824
7825 2001-03-13 Andrew Cagney <ac131313@redhat.com>
7826
7827 * ui-out.h: Remove #if __STDC__, assume an ISO-C compiler.
7828 * m3-nat.c: Ditto.
7829 * p-lang.h: Ditto.
7830 * printcmd.c (printf_command): Ditto.
7831 * ch-exp.c (match_integer_literal): Ditto.
7832 * scm-tags.h: Ditto.
7833 * ser-go32.c: Ditto.
7834 * hppa-tdep.c (unwind_command): Ditto.
7835 * defs.h (volatile): Delete macro definition. Assume __STDC__.
7836 * remote-adapt.c (volatile): Ditto.
7837 * remote-eb.c (volatile): Ditto.
7838 * remote-mm.c (volatile): Ditto.
7839 * defs.h (alloca): Assume __STDC__, declare returning void *.
7840
7841 2001-03-08 Andrew Cagney <ac131313@redhat.com>
7842
7843 * inferior.h (ARCH_NUM_REGS): Delete definition.
7844 * stack.c (frame_info): Use NUM_REGS, not ARCH_NUM_REGS.
7845 * regcache.c (registers_changed): Ditto.
7846 (registers_fetched): Ditto.
7847 * infptrace.c (fetch_inferior_registers): Ditto.
7848 (store_inferior_registers): Ditto.
7849 * infcmd.c (do_registers_info): Ditto.
7850 (registers_info): Ditto.
7851 * i386-linux-nat.c (old_fetch_inferior_registers): Ditto.
7852 (old_store_inferior_registers): Ditto.
7853 * gdbserver/low-linux.c (register_addr): Ditto.
7854 * gdbserver/low-hppabsd.c (register_addr): Ditto.
7855 * core-aout.c: Don't include "inferior.h".
7856 (fetch_core_registers): Use NUM_REGS not ARCH_NUM_REGS.
7857 (register_addr): Ditto.
7858
7859 2001-03-13 Fernando Nasser <fnasser@redhat.com>
7860
7861 From Steven Johnson <sjohnson@neurizon.net>
7862 * cli/cli-script.c (define_command): Fix setting of post hooks.
7863
7864 2001-03-13 Mark Kettenis <kettenis@gnu.org>
7865
7866 * i386-linux-tdep.c: Fix formatting and clarify comments.
7867 (i386_linux_svr4_fetch_link_map_offsets): Use NULL instead of 0
7868 where appropriate.
7869
7870 2001-03-12 Andrew Cagney <ac131313@redhat.com>
7871
7872 * gnu-nat.c: Include "gdb_assert.h" instead of <assert.h>.
7873 (proc_update_sc): Use gdb_assert instead of assert.
7874 (proc_abort): Ditto.
7875 (inf_set_step_thread): Ditto.
7876 (gnu_wait): Ditto.
7877 (S_exception_raise_request): Ditto.
7878 (gnu_terminal_init_inferior): Ditto.
7879
7880 2001-03-09 Kevin Buettner <kevinb@redhat.com>
7881
7882 * Makefile.in (solib-svr4.o): Depend on solib-svr4.c, not solib.c.
7883 (solib-legacy.o): New makefile target.
7884 * solib-legacy.c: New file.
7885 * solib-svr4.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
7886 (default_svr4_fetch_link_map_offsets): Delete.
7887 (set_solib_svr4_fetch_link_map_offsets): Declare.
7888 (legacy_svr4_fetch_link_map_offsets_hook): Declare.
7889 * solib-svr4.c (elf/common.h): Include.
7890 (link.h): Only include for SunOS shared library support.
7891 (_SYSCALL32): Don't define.
7892 (SVR4_FETCH_LINK_MAP_OFFSETS): Define.
7893 (default_svr4_fetch_link_map_offsets): Made static; added forward
7894 declaration.
7895 (fetch_link_map_offsets): New static global.
7896 (legacy_svr4_fetch_link_map_offsets_hook): New global variable.
7897 (default_svr4_fetch_link_map_offsets): Rewritten. The guts
7898 of what used to be in this function now reside in
7899 legacy_svr4_fetch_link_map_offsets() in solib-legacy.c.
7900 (open_symbol_file_object): Fix declaration in SunOS section
7901 of the code.
7902 (set_solib_svr4_fetch_link_map_offsets): New extern function.
7903 (init_fetch_link_map_offsets): New static function.
7904 (_initialize_svr4_solib): Put static global fetch_link_map_offsets
7905 under multiarch control.
7906
7907 * config/alpha/alpha-linux.mt (TDEPFILES): Add solib-legacy.o to
7908 list.
7909 * config/alpha/fbsd.mh (NATDEPFILES): Likewise.
7910 * config/arm/linux.mt (TDEPFILES): Likewise.
7911 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
7912 * config/i386/i386dgux.mh (NATDEPFILES): Likewise.
7913 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7914 * config/i386/i386sco5.mh (NATDEPFILES): Likewise.
7915 * config/i386/i386sol2.mt (TDEPFILES): Likewise.
7916 * config/i386/i386v4.mh (NATDEPFILES): Likewise.
7917 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7918 * config/i386/linux.mt (TDEPFILES): Likewise.
7919 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7920 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7921 * config/i386/ncr3000.mt (TDEPFILES): Likewise.
7922 * config/i386/ptx4.mh (XDEPFILES): Likewise.
7923 * config/i386/sun386.mt (TDEPFILES): Likewise.
7924 * config/ia64/linux.mt (TDEPFILES): Likewise.
7925 * config/m68k/linux.mt (TDEPFILES): Likewise.
7926 * config/m68k/m68kv4.mh (NATDEPFILES): Likewise.
7927 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7928 * config/m68k/sun2os4.mt (TDEPFILES): Likewise.
7929 * config/m68k/sun3os4.mt (TDEPFILES): Likewise.
7930 * config/m88k/delta88v4.mh (NATDEPFILES): Likewise.
7931 * config/mips/mipsv4.mh (NATDEPFILES): Likewise.
7932 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7933 * config/powerpc/linux.mt (TDEPFILES): Likewise.
7934 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7935 * config/powerpc/solaris.mh (NATDEPFILES): Likewise.
7936 * config/sh/linux.mt (TDEPFILES): Likewise.
7937 * config/sparc/linux.mt (TDEPFILES): Likewise.
7938 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7939 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7940 * config/sparc/sp64linux.mt (TDEPFILES): Likewise.
7941 * config/sparc/sun4os4.mt (TDEPFILES): Likewise.
7942 * config/sparc/sun4sol2.mh (NATDEPFILES): Likewise.
7943
7944 2001-03-09 Kevin Buettner <kevinb@redhat.com>
7945
7946 * utils.c (xmrealloc, xcalloc): Return NULL for zero-sized requests.
7947
7948 2001-03-09 Andrew Cagney <ac131313@redhat.com>
7949
7950 * MAINTAINERS (Write After Approval): Update Philip Blundell.
7951
7952 2001-03-09 Keith Seitz <keiths@cygnus.com>
7953
7954 * MAINTAINERS: Add myself to write after approval list.
7955
7956 2001-03-09 Mark Kettenis <kettenis@gnu.org>
7957
7958 * i387-tdep.c (print_i387_status_word): Fix printing of Stack
7959 fault flag. It is bit 6 of the x87 FPU status word, not bit 7.
7960
7961 2001-03-08 Andrew Cagney <ac131313@redhat.com>
7962
7963 * configure.host (m88*-harris-cxux*): Mark as obsolete.
7964 * configure.tgt: Ditto.
7965 * config/m88k/xm-cxux.h: Ditto.
7966 * config/m88k/tm-cxux.h: Ditto.
7967 * config/m88k/nm-cxux.h: Ditto.
7968 * config/m88k/cxux.mt: Ditto.
7969 * config/m88k/cxux.mh: Ditto.
7970
7971 2001-03-08 Andrew Cagney <ac131313@redhat.com>
7972
7973 * Makefile.in: Delete rules for obsolete files.
7974
7975 Thu Mar 8 15:43:40 2001 David Taylor <taylor@redhat.com>
7976
7977 * stack.c (parse_frame_specification): For one argument case,
7978 handle the situation where the argument is an integer, not an
7979 address -- arguably the most common case. This matters on
7980 targets where pointers and addresses are different.
7981
7982 2001-03-08 Andrew Cagney <ac131313@redhat.com>
7983
7984 * TODO: Revise 5.1 list. Delete PARAMS task. Add coding standard
7985 review. Clarify GNU/LINUX/sparc. Move other tasks to 5.2 or
7986 general.
7987
7988 2001-03-07 Andrew Cagney <ac131313@redhat.com>
7989
7990 * TODO (GDB 5.1 Known Problems): Document problem of building GDB
7991 with SID on Solaris 8.
7992
7993 2001-03-07 Mark Kettenis <kettenis@gnu.org>
7994
7995 * defs.h: Provide prototypes for floatformat_is_negative,
7996 floatformat_is_nan and floatformat_mantissa.
7997 * utils.c: Include "gdb_assert.h".
7998 (floatformat_is_negative): New function.
7999 (floatformat_is_nan): New function.
8000 (floatformat_mantissa): New function.
8001 * valprint.c: Include "floatformat.h".
8002 (print_floating): Get rid of the Linux-specific
8003 TARGET_ANALYZE_FLOATING macro and rewrite NaN detection with the
8004 help these new functions. Print NaN's in a format conforming to
8005 ISO C99.
8006
8007 2001-03-07 Eli Zaretskii <eliz@is.elta.co.il>
8008
8009 * top.c (init_main): Make `set history file name' complete on file
8010 names.
8011
8012 2001-03-06 J.T. Conklin <jtc@redback.com>
8013
8014 * Makefile.in (LINTFLAGS): Update to contain all of the macros
8015 which define include paths used when compiling.
8016
8017 * util.c (savestring, msavestring): Change type of length argument.
8018 * defs.h (savestring, msavestring): Update to match.
8019
8020 * symtab.h (decode_line_1): Removed declaration.
8021
8022 * symfile.c (#include <assert.h>): Removed.
8023
8024 * arch-utils.c (#include <ctype.h>): Removed.
8025 * c-typeprint.c: Likewise.
8026 * dbxread.c: Likewise.
8027 * gdbtypes.c: Likewise.
8028 * target.c: Likewise.
8029 * os9kread.c: Likewise.
8030
8031 * c-valprint.c (#include "demangle.h"): Removed.
8032 * ch-typeprint.c: Likewise.
8033 * eval.c: Likewise.
8034 * f-typeprint.c: Likewise.
8035 * f-valprint.c: Likewise.
8036 * m2-typeprint.c: Likewise.
8037 * typeprint.c: Likewise.
8038 * p-typeprint.c: Likewise.
8039 * valarith.c: Likewise.
8040 * valprint.c: Likewise.
8041
8042 * m2-typeprint.c (#include "gdb_string.h"): Removed.
8043 * nlmread.c: Likewise.
8044
8045 * mdebugread.c (#include "gdb-stabs.h"): Removed.
8046 * minsyms.c: Likewise.
8047 * mipsread.c: Likewise.
8048 * nlmread.c: Likewise.
8049
8050 * m2-typeprint.c (#include "obstack.h"): Removed.
8051 * m2-valprint.c: Likewise.
8052
8053 * event-loop.c (#include <setjmp.h>): Removed.
8054
8055 2001-03-06 Stan Shebs <shebs@apple.com>
8056
8057 * MAINTAINERS: Remove self from specific maintenance domains
8058 (macos, gdbserver, documentation, testsuite).
8059
8060 2001-03-06 Kevin Buettner <kevinb@redhat.com>
8061
8062 * 29k-share/udi/udip2soc.c, Makefile.in, a29k-tdep.c,
8063 a68v-nat.c, abug-rom.c, aclocal.m4, alpha-nat.c, alpha-tdep.c,
8064 annotate.c, annotate.h, arc-tdep.c, arch-utils.c,
8065 arch-utils.h, arm-tdep.c, ax-gdb.c, ax-gdb.h, ax-general.c,
8066 ax.h, bcache.c, bcache.h, blockframe.c, breakpoint.c,
8067 breakpoint.h, buildsym.c, buildsym.h, c-exp.y, c-lang.c,
8068 c-lang.h, c-typeprint.c, c-valprint.c, call-cmds.h, ch-exp.c,
8069 ch-lang.c, ch-lang.h, ch-typeprint.c, ch-valprint.c,
8070 cli/cli-cmds.h, cli/cli-decode.c, cli/cli-decode.h,
8071 cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.h,
8072 cli/cli-utils.h, cli-out.c, cli-out.h, coff-solib.c,
8073 coff-solib.h, coffread.c, command.h, complaints.c,
8074 complaints.h, completer.c, completer.h,
8075 config/a29k/nm-ultra3.h, config/a29k/tm-a29k.h,
8076 config/a29k/tm-ultra3.h, config/a29k/tm-vx29k.h,
8077 config/a29k/xm-ultra3.h, config/alpha/nm-fbsd.h,
8078 config/alpha/nm-linux.h, config/alpha/nm-osf.h,
8079 config/alpha/nm-osf2.h, config/alpha/nm-osf3.h,
8080 config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h,
8081 config/alpha/xm-alphalinux.h, config/alpha/xm-alphaosf.h,
8082 config/alpha/xm-fbsd.h, config/arc/tm-arc.h,
8083 config/arm/nm-linux.h, config/arm/tm-arm.h,
8084 config/arm/tm-embed.h, config/d10v/tm-d10v.h,
8085 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
8086 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
8087 config/i386/nm-fbsd.h, config/i386/nm-gnu.h,
8088 config/i386/nm-i386bsd.h, config/i386/nm-i386mach.h,
8089 config/i386/nm-i386sco.h, config/i386/nm-i386sol2.h,
8090 config/i386/nm-i386v.h, config/i386/nm-i386v4.h,
8091 config/i386/nm-i386v42mp.h, config/i386/nm-linux.h,
8092 config/i386/nm-nbsd.h, config/i386/nm-nbsdelf.h,
8093 config/i386/nm-ptx4.h, config/i386/nm-sun386.h,
8094 config/i386/nm-symmetry.h, config/i386/tm-cygwin.h,
8095 config/i386/tm-fbsd.h, config/i386/tm-i386.h,
8096 config/i386/tm-i386aix.h, config/i386/tm-i386bsd.h,
8097 config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h,
8098 config/i386/tm-i386m3.h, config/i386/tm-i386mk.h,
8099 config/i386/tm-i386nw.h, config/i386/tm-i386os9k.h,
8100 config/i386/tm-i386sco5.h, config/i386/tm-i386sol2.h,
8101 config/i386/tm-i386v.h, config/i386/tm-i386v4.h,
8102 config/i386/tm-i386v42mp.h, config/i386/tm-linux.h,
8103 config/i386/tm-nbsd.h, config/i386/tm-ptx.h,
8104 config/i386/tm-ptx4.h, config/i386/tm-sun386.h,
8105 config/i386/tm-symmetry.h, config/i386/tm-vxworks.h,
8106 config/i386/xm-fbsd.h, config/i386/xm-i386bsd.h,
8107 config/i386/xm-i386gnu.h, config/i386/xm-i386m3.h,
8108 config/i386/xm-i386mach.h, config/i386/xm-i386mk.h,
8109 config/i386/xm-i386sco.h, config/i386/xm-i386v4.h,
8110 config/i386/xm-linux.h, config/i386/xm-nbsd.h,
8111 config/i386/xm-ptx.h, config/i386/xm-ptx4.h,
8112 config/i386/xm-sun386.h, config/i386/xm-symmetry.h,
8113 config/i960/tm-i960.h, config/i960/tm-mon960.h,
8114 config/i960/tm-nindy960.h, config/i960/tm-vx960.h,
8115 config/ia64/nm-aix.h, config/ia64/nm-linux.h,
8116 config/ia64/tm-aix.h, config/ia64/tm-ia64.h,
8117 config/ia64/tm-linux.h, config/ia64/xm-aix.h,
8118 config/ia64/xm-linux.h, config/m68k/nm-apollo68b.h,
8119 config/m68k/nm-delta68.h, config/m68k/nm-dpx2.h,
8120 config/m68k/nm-hp300bsd.h, config/m68k/nm-hp300hpux.h,
8121 config/m68k/nm-linux.h, config/m68k/nm-sun3.h,
8122 config/m68k/tm-apollo68b.h, config/m68k/tm-cisco.h,
8123 config/m68k/tm-dpx2.h, config/m68k/tm-es1800.h,
8124 config/m68k/tm-hp300bsd.h, config/m68k/tm-hp300hpux.h,
8125 config/m68k/tm-isi.h, config/m68k/tm-linux.h,
8126 config/m68k/tm-m68k.h, config/m68k/tm-m68kv4.h,
8127 config/m68k/tm-mac.h, config/m68k/tm-monitor.h,
8128 config/m68k/tm-nbsd.h, config/m68k/tm-news.h,
8129 config/m68k/tm-os68k.h, config/m68k/tm-sun3.h,
8130 config/m68k/tm-vx68.h, config/m68k/xm-3b1.h,
8131 config/m68k/xm-apollo68b.h, config/m68k/xm-dpx2.h,
8132 config/m68k/xm-hp300bsd.h, config/m68k/xm-hp300hpux.h,
8133 config/m68k/xm-linux.h, config/m68k/xm-m68kv4.h,
8134 config/m68k/xm-mpw.h, config/m68k/xm-news.h,
8135 config/m68k/xm-sun2.h, config/m68k/xm-sun3.h,
8136 config/m68k/xm-sun3os4.h, config/m88k/nm-delta88v4.h,
8137 config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h,
8138 config/m88k/tm-m88k.h, config/m88k/xm-cxux.h,
8139 config/m88k/xm-delta88.h, config/m88k/xm-delta88v4.h,
8140 config/m88k/xm-dgux.h, config/mcore/tm-mcore.h,
8141 config/mips/nm-irix3.h, config/mips/nm-irix4.h,
8142 config/mips/nm-irix5.h, config/mips/nm-mips.h,
8143 config/mips/nm-news-mips.h, config/mips/tm-bigmips.h,
8144 config/mips/tm-embed.h, config/mips/tm-embed64.h,
8145 config/mips/tm-embedl.h, config/mips/tm-embedl64.h,
8146 config/mips/tm-irix3.h, config/mips/tm-irix5.h,
8147 config/mips/tm-mips.h, config/mips/tm-mips64.h,
8148 config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h,
8149 config/mips/tm-tx39.h, config/mips/tm-tx39l.h,
8150 config/mips/tm-vr4100.h, config/mips/tm-vr4300.h,
8151 config/mips/tm-vr4300el.h, config/mips/tm-vr4xxx.h,
8152 config/mips/tm-vr4xxxel.h, config/mips/tm-vr5000.h,
8153 config/mips/tm-vr5000el.h, config/mips/xm-irix3.h,
8154 config/mips/xm-irix4.h, config/mips/xm-irix5.h,
8155 config/mips/xm-mips.h, config/mips/xm-mipsm3.h,
8156 config/mips/xm-mipsv4.h, config/mips/xm-news-mips.h,
8157 config/mips/xm-riscos.h, config/mn10200/tm-mn10200.h,
8158 config/mn10300/tm-mn10300.h, config/nm-gnu.h,
8159 config/nm-linux.h, config/nm-lynx.h, config/nm-m3.h,
8160 config/nm-sysv4.h, config/none/nm-none.h,
8161 config/none/tm-none.h, config/none/xm-none.h,
8162 config/ns32k/nm-nbsd.h, config/ns32k/nm-umax.h,
8163 config/ns32k/tm-merlin.h, config/ns32k/tm-nbsd.h,
8164 config/ns32k/tm-ns32km3.h, config/ns32k/tm-umax.h,
8165 config/ns32k/xm-merlin.h, config/ns32k/xm-ns32km3.h,
8166 config/pa/nm-hppab.h, config/pa/nm-hppah.h,
8167 config/pa/nm-hppao.h, config/pa/tm-hppa.h,
8168 config/pa/tm-hppa64.h, config/pa/tm-hppah.h,
8169 config/pa/xm-hppab.h, config/pa/xm-hppah.h,
8170 config/powerpc/nm-aix.h, config/powerpc/nm-linux.h,
8171 config/powerpc/nm-macos.h, config/powerpc/nm-nbsd.h,
8172 config/powerpc/tm-cygwin.h, config/powerpc/tm-linux.h,
8173 config/powerpc/tm-macos.h, config/powerpc/tm-ppc-aix.h,
8174 config/powerpc/tm-ppc-eabi.h, config/powerpc/tm-ppc-nw.h,
8175 config/powerpc/tm-ppcle-eabi.h, config/powerpc/tm-solaris.h,
8176 config/powerpc/xm-aix.h, config/powerpc/xm-linux.h,
8177 config/powerpc/xm-mpw.h, config/rs6000/nm-rs6000.h,
8178 config/rs6000/tm-rs6000.h, config/rs6000/tm-rs6000ly.h,
8179 config/rs6000/xm-aix4.h, config/rs6000/xm-rs6000.h,
8180 config/sh/tm-linux.h, config/sh/tm-sh.h, config/sh/tm-wince.h,
8181 config/sparc/nm-linux.h, config/sparc/nm-nbsd.h,
8182 config/sparc/nm-nbsdelf.h, config/sparc/nm-sparclynx.h,
8183 config/sparc/nm-sun4os4.h, config/sparc/nm-sun4sol2.h,
8184 config/sparc/tm-linux.h, config/sparc/tm-sp64.h,
8185 config/sparc/tm-sp64sim.h, config/sparc/tm-sparc.h,
8186 config/sparc/tm-sparclet.h, config/sparc/tm-sparclite.h,
8187 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
8188 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
8189 config/sparc/xm-sun4os4.h, config/sparc/xm-sun4sol2.h,
8190 config/tic80/tm-tic80.h, config/tm-linux.h, config/tm-lynx.h,
8191 config/tm-sysv4.h, config/v850/tm-v850.h, config/vax/tm-vax.h,
8192 config/w65/tm-w65.h, config/xm-aix4.h, config/xm-lynx.h,
8193 config/xm-mpw.h, config/xm-nbsd.h, config/xm-sysv4.h,
8194 config/z8k/tm-z8k.h, configure.in, core-aout.c, core-regset.c,
8195 core-sol2.c, corefile.c, corelow.c, cp-valprint.c,
8196 cpu32bug-rom.c, cxux-nat.c, d10v-tdep.c, d30v-tdep.c,
8197 dbug-rom.c, dbxread.c, dcache.c, dcache.h, defs.h,
8198 delta68-nat.c, demangle.c, dink32-rom.c, dpx2-nat.c, dsrec.c,
8199 dstread.c, dve3900-rom.c, dwarf2read.c, dwarfread.c,
8200 elfread.c, environ.c, environ.h, eval.c, event-loop.c,
8201 event-loop.h, event-top.c, exec.c, expprint.c, f-exp.y,
8202 f-lang.c, f-lang.h, f-typeprint.c, f-valprint.c, findvar.c,
8203 fork-child.c, fr30-tdep.c, frame.c, frame.h, gdb-events.c,
8204 gdb-events.h, gdb-events.sh, gdb-stabs.h, gdb.1, gdb_string.h,
8205 gdb_thread_db.h, gdbcmd.h, gdbcore.h, gdbserver/Makefile.in,
8206 gdbserver/gdbreplay.c, gdbserver/gdbserver.1,
8207 gdbserver/low-hppabsd.c, gdbserver/low-linux.c,
8208 gdbserver/low-lynx.c, gdbserver/low-nbsd.c,
8209 gdbserver/low-sim.c, gdbserver/low-sparc.c,
8210 gdbserver/low-sun3.c, gdbserver/remote-utils.c,
8211 gdbserver/server.c, gdbserver/server.h, gdbserver/utils.c,
8212 gdbthread.h, gdbtypes.c, gdbtypes.h, gnu-nat.c, gnu-nat.h,
8213 gnu-regex.c, gnu-regex.h, h8300-tdep.c, h8500-tdep.c,
8214 hp-psymtab-read.c, hp-symtab-read.c, hp300ux-nat.c,
8215 hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c, hpread.c,
8216 hpread.h, hpux-thread.c, i386-tdep.c, i386aix-nat.c,
8217 i386b-nat.c, i386gnu-nat.c, i386ly-tdep.c, i386m3-nat.c,
8218 i386mach-nat.c, i386nbsd-nat.c, i386nbsd-tdep.c, i386v-nat.c,
8219 i386v4-nat.c, i387-tdep.c, i960-tdep.c, infcmd.c, inferior.h,
8220 inflow.c, infptrace.c, infrun.c, inftarg.c, infttrace.c,
8221 irix4-nat.c, irix5-nat.c, isi-xdep.c, jv-exp.y, jv-lang.c,
8222 jv-lang.h, jv-typeprint.c, jv-valprint.c, kdb-start.c,
8223 kod-cisco.c, kod.c, language.c, language.h, lin-thread.c,
8224 linespec.c, linespec.h, linux-thread.c, lynx-nat.c, m2-exp.y,
8225 m2-lang.c, m2-lang.h, m2-typeprint.c, m2-valprint.c, m3-nat.c,
8226 m32r-rom.c, m32r-tdep.c, m68k-tdep.c, m68klinux-nat.c,
8227 m68knbsd-nat.c, m88k-nat.c, m88k-tdep.c, mac-nat.c,
8228 mac-xdep.c, main.c, maint.c, mcore-rom.c, mcore-tdep.c,
8229 mdebugread.c, mem-break.c, minimon.h, minsyms.c, mips-nat.c,
8230 mips-tdep.c, mipsm3-nat.c, mipsread.c, mipsv4-nat.c,
8231 mn10200-tdep.c, mn10300-tdep.c, mon960-rom.c, monitor.c,
8232 monitor.h, news-xdep.c, nindy-share/env.h, nindy-tdep.c,
8233 nlm/Makefile.in, nlmread.c, ns32k-tdep.c, ns32km3-nat.c,
8234 ns32knbsd-nat.c, objfiles.c, objfiles.h, ocd.c, ocd.h,
8235 op50-rom.c, os9kread.c, osfsolib.c, p-exp.y, pa64solib.c,
8236 pa64solib.h, parse.c, parser-defs.h, partial-stab.h,
8237 ppc-bdm.c, ppc-linux-nat.c, ppc-linux-tdep.c, ppcbug-rom.c,
8238 ppcnbsd-nat.c, printcmd.c, proc-api.c, proc-events.c,
8239 proc-flags.c, proc-utils.h, proc-why.c, procfs.c, ptx4-nat.c,
8240 rdi-share/Makefile.in, rdi-share/aclocal.m4, regcache.c,
8241 regcache.h, remote-adapt.c, remote-array.c, remote-bug.c,
8242 remote-e7000.c, remote-eb.c, remote-es.c, remote-est.c,
8243 remote-hms.c, remote-mips.c, remote-mm.c, remote-nindy.c,
8244 remote-nrom.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
8245 remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
8246 remote-utils.c, remote-utils.h, remote-vx.c, remote.c,
8247 remote.h, reply_mig_hack.awk, rom68k-rom.c, rs6000-nat.c,
8248 rs6000-tdep.c, scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h,
8249 scm-valprint.c, ser-e7kpc.c, ser-mac.c, ser-ocd.c, ser-pipe.c,
8250 ser-tcp.c, ser-unix.c, serial.c, serial.h, sh-tdep.c,
8251 sh3-rom.c, sol-thread.c, solib-aix5.c, solib-svr4.c, solib.c,
8252 solib.h, solist.h, somread.c, somsolib.c, somsolib.h,
8253 source.c, sparc-nat.c, sparc-tdep.c, sparcl-tdep.c,
8254 sparclet-rom.c, srec.h, stabsread.c, stabsread.h, stack.c,
8255 standalone.c, stop-gdb.c, stuff.c, sun3-nat.c, sun386-nat.c,
8256 symfile.c, symfile.h, symm-nat.c, symm-tdep.c, symmisc.c,
8257 symtab.c, symtab.h, target.c, target.h, terminal.h, thread.c,
8258 tic80-tdep.c, top.c, top.h, tracepoint.c, tracepoint.h,
8259 typeprint.c, ui-file.c, ui-file.h, ui-out.h, ultra3-nat.c,
8260 ultra3-xdep.c, umax-xdep.c, utils.c, v850-tdep.c, v850ice.c,
8261 valarith.c, valops.c, valprint.c, value.h, values.c, varobj.h,
8262 vax-tdep.c, version.h, vx-share/vxWorks.h, vx-share/xdr_ld.c,
8263 vx-share/xdr_ptrace.c, vx-share/xdr_ptrace.h,
8264 vx-share/xdr_rdb.c, w65-tdep.c, w89k-rom.c, win32-nat.c,
8265 wrapper.c, wrapper.h, xcoffread.c, xcoffsolib.c, xcoffsolib.h,
8266 xmodem.c, xmodem.h, z8k-tdep.c: Update/correct copyright
8267 notices.
8268
8269 2001-03-05 Kevin Buettner <kevinb@redhat.com>
8270
8271 * acconfig.h (HAVE_PRSYSENT_T, HAVE_PR_SIGSET_T,
8272 HAVE_PR_SIGACTION64_T, HAVE_PR_SIGINFO64_T): New configure
8273 macros.
8274 * configure.in (prsysent_t, pr_sigset_t, pr_sigaction64_t,
8275 pr_siginfo64_t): Test for these typedefs in <sys/procfs.h>.
8276 (sys/fault.h, sys/select.h): Test for presence of these
8277 header files.
8278 (ia64-*-aix*): Define NEW_PROC_API for this host.
8279 * configure: Regenerate.
8280 * config.in: Regenerate.
8281
8282 * configure.host (ia64-*-aix*): New host.
8283 * configure.tgt (ia64-*-aix*): New target.
8284
8285 2001-03-05 Andrew Cagney <ac131313@redhat.com>
8286
8287 * TODO (GDB 5.1 Known Problems): Document z8k as broken.
8288
8289 Mon Mar 5 11:56:09 2001 Christopher Faylor <cgf@cygnus.com>
8290
8291 * wince.c: Change realloc to xrealloc throughout.
8292 (handle_load_dll): Use void * rather than PTR in argument.
8293
8294 2001-03-04 Andrew Cagney <ac131313@redhat.com>
8295
8296 * ocd.h (ocd_xfer_memory): Add ``attrib'' parameter.
8297 * ocd.c (ocd_xfer_memory): Ditto.
8298 * ser-ocd.c (ocd_setstopbits): New function. Add to ocd_ops.
8299 * MAINTAINERS: Document powerpc-eabi and powerpcle-eabi as
8300 buildable with ,-Werror.
8301
8302 * Makefile.in (symfile_h): Define.
8303 (mcore-tdep.o): Add $(symfile_h), $(gdbcore_h) and $(inferior_h).
8304 * mcore-tdep.c: Include "symfile.h", "gdbcore.h" and "inferior.h".
8305 * MAINTAINERS: Document mcore-elf and mcore-pe as buildable with
8306 ,-Werror.
8307
8308 * dsrec.c (make_srec): Fix internal_error fmt arg.
8309 * MAINTAINERS: Document i960-coff as buildable with ,-Werror.
8310
8311 2001-03-03 Kevin Buettner <kevinb@redhat.com>
8312
8313 * solib-aix5.c (aix5_relocate_main_executable): Don't use ANOFFSET
8314 as an lvalue.
8315
8316 2001-03-02 Andrew Cagney <ac131313@redhat.com>
8317
8318 * MAINTAINERS (paper trail): Update.
8319
8320 * CONTRIBUTE: Update note on ``Fix PR gdb/4706'' convention.
8321
8322 2001-03-02 Andrew Cagney <ac131313@redhat.com>
8323
8324 From 2001-03-01 Tom Rix <trix@redhat.com>:
8325 * mn10200-tdep.c (mn10200_frame_chain): Pass 0 for ``pc''
8326 parameter to mn10200_analyze_prologue.
8327
8328 * config/mn10200/tm-mn10200.h: Include "regcache.h".
8329 * MAINTAINERS: Document that mn10200-elf target is buildable.
8330
8331 2001-03-02 Kevin Buettner <kevinb@redhat.com>
8332
8333 * config/ia64/xm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): Move defines
8334 from here...
8335 * config/ia64/nm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): ...to here.
8336 (MONTEREY): Don't define.
8337 (AIX5): Define.
8338
8339 2001-03-02 Matt Hiller <hiller@redhat.com>
8340
8341 * config/mn10300/tm-mn10300.h (E0_REGNUM): Correct to 15.
8342
8343 2001-03-02 Kevin Buettner <kevinb@redhat.com>
8344
8345 * sparc-nat.c (sparc-nat.c): Don't include self.
8346
8347 2001-03-01 J.T. Conklin <jtc@redback.com>
8348
8349 * defs.h (__CYGWIN__): Moved conditional which defines __CYGWIN__
8350 if __CYGWIN32__ is set from here.
8351 * config/i386/xm-cygwin.h: To here.
8352 * config/powerpc/xm-cygwin.h: To here.
8353
8354 * i386-stub.c (handle_exception): Use 'T' response packet.
8355
8356 2001-03-01 Michael Snyder <msnyder@mvstp600e.cygnus.com>
8357
8358 * m32r-tdep.c: Fix cut and paste error in comment.
8359
8360 2001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
8361
8362 * symtab.c (print_msymbol_info): Print addresses by portable method
8363 longest_local_hex_string_custom. Allow for 64-bit addresses.
8364
8365 2001-03-01 J.T. Conklin <jtc@redback.com>
8366
8367 * gdbtypes.h (builtin_type_f_integer): Removed duplicate declaration.
8368 (MAX_OF_TYPE): Wrap macro definition in parenthesis.
8369 (MIN_OF_TYPE): Likewise.
8370
8371 * memattr.h (mem_access_mode): Removed extraneous trailing comma.
8372
8373 2001-03-01 Andrew Cagney <ac131313@redhat.com>
8374
8375 * Makefile.in (os9kread.o): Do not compile with WERROR_CFLAGS.
8376 * os9kread.c (os9k_process_one_symbol): Add assert to detect
8377 ``loses if sizeof (char *) > sizeof (int)''.
8378
8379 2001-03-01 Andrew Cagney <ac131313@redhat.com>
8380
8381 * gdb_assert.h: Document pragmatics behind gdb_assert's case.
8382
8383 2001-03-01 Andrew Cagney <ac131313@redhat.com>
8384
8385 * Makefile.in (gdbtk-cmds.o): Add $(regcache_h) to dependency
8386 lists.
8387 (mi-main.o): Ditto.
8388
8389 2001-03-01 Andrew Cagney <ac131313@redhat.com>
8390
8391 * Makefile.in (regcache_h): Define. Add $(regcache_h) to
8392 dependency lists.
8393
8394 2001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
8395
8396 * printcmd.c (print_address_numeric): Update comments to refer
8397 to sizeof addr, not sizeof pointer.
8398 (x_command): Remove needless whitespace (shorten long line).
8399
8400 * breakpoint.c (print_one_breakpoint): Formatting clean-up.
8401 (read_memory_nobpt): Ditto.
8402 (ep_is_catchpoint): Ditto.
8403 (ep_is_shlib_catchpoint): Ditto.
8404 (ep_is_exception_catchpoint): Ditto.
8405 (describe_other_breakpoints): Ditto.
8406
8407 Wed Feb 28 20:37:36 2001 Andrew Cagney <ac131313@redhat.com>
8408
8409 * regcache.h (register_valid): Fix comment documenting valid
8410 states.
8411
8412 Tue Feb 27 23:56:23 2001 Andrew Cagney <ac131313@redhat.com>
8413
8414 From Steven Johnson:
8415 * regcache.h: New file.
8416
8417 * value.h (read_register_bytes, read_register_gen)
8418 (write_register_gen, write_register_bytes)
8419 (read_register, read_register_pid)
8420 (read_signed_register, read_signed_register_pid)
8421 (write_register, write_register_pid)
8422 (register_cached, set_register_cached)
8423 (register_changed, register_buffer)
8424 (registers_changed, supply_register): Move declaration from here.
8425 * regcache.h: To here.
8426 * gdbcore.h (registers_fetched): Ditto.
8427 * inferior.h (registers, registers_valid): Ditto.
8428
8429 * regcache.c (generic_target_read_pc, read_pc_pid, read_pc,
8430 generic_target_write_pc, write_pc_pid, write_pc,
8431 generic_target_read_sp, read_sp, generic_target_write_sp,
8432 write_sp, generic_target_read_fp, read_fp,
8433 generic_target_write_fp, write_fp): Add note that these functions
8434 will be moved from this file.
8435
8436 * a29k-tdep.c: Include "regcache.h".
8437 * a68v-nat.c: Ditto.
8438 * abug-rom.c: Ditto.
8439 * alpha-nat.c: Ditto.
8440 * alpha-tdep.c: Ditto.
8441 * alphabsd-nat.c: Ditto.
8442 * arc-tdep.c: Ditto.
8443 * arm-linux-nat.c: Ditto.
8444 * arm-linux-tdep.c: Ditto.
8445 * arm-tdep.c: Ditto.
8446 * blockframe.c: Ditto.
8447 * core-aout.c: Ditto.
8448 * core-sol2.c: Ditto.
8449 * corelow.c: Ditto.
8450 * cpu32bug-rom.c: Ditto.
8451 * cxux-nat.c: Ditto.
8452 * d10v-tdep.c: Ditto.
8453 * d30v-tdep.c: Ditto.
8454 * dbug-rom.c: Ditto.
8455 * dink32-rom.c: Ditto.
8456 * dve3900-rom.c: Ditto.
8457 * findvar.c: Ditto.
8458 * fr30-tdep.c: Ditto.
8459 * frame.c: Ditto.
8460 * go32-nat.c: Ditto.
8461 * h8300-tdep.c: Ditto.
8462 * h8500-tdep.c: Ditto.
8463 * hp300ux-nat.c: Ditto.
8464 * hppa-tdep.c: Ditto.
8465 * hppab-nat.c: Ditto.
8466 * hppah-nat.c: Ditto.
8467 * hppam3-nat.c: Ditto.
8468 * hpux-thread.c: Ditto.
8469 * i386-linux-nat.c: Ditto.
8470 * i386-linux-tdep.c: Ditto.
8471 * i386-tdep.c: Ditto.
8472 * i386aix-nat.c: Ditto.
8473 * i386b-nat.c: Ditto.
8474 * i386bsd-nat.c: Ditto.
8475 * i386gnu-nat.c: Ditto.
8476 * i386ly-tdep.c: Ditto.
8477 * i386m3-nat.c: Ditto.
8478 * i386mach-nat.c: Ditto.
8479 * i386nbsd-nat.c: Ditto.
8480 * i386v4-nat.c: Ditto.
8481 * i387-nat.c: Ditto.
8482 * i387-tdep.c: Ditto.
8483 * i960-tdep.c: Ditto.
8484 * ia64-aix-nat.c: Ditto.
8485 * ia64-linux-nat.c: Ditto.
8486 * ia64-tdep.c: Ditto.
8487 * infptrace.c: Ditto.
8488 * infrun.c: Ditto.
8489 * irix4-nat.c: Ditto.
8490 * irix5-nat.c: Ditto.
8491 * lin-lwp.c: Ditto.
8492 * lin-thread.c: Ditto.
8493 * lynx-nat.c: Ditto.
8494 * m3-nat.c: Ditto.
8495 * m32r-rom.c: Ditto.
8496 * m32r-tdep.c: Ditto.
8497 * m68hc11-tdep.c: Ditto.
8498 * m68k-tdep.c: Ditto.
8499 * m68klinux-nat.c: Ditto.
8500 * m68knbsd-nat.c: Ditto.
8501 * m68knbsd-tdep.c: Ditto.
8502 * m88k-nat.c: Ditto.
8503 * m88k-tdep.c: Ditto.
8504 * mac-nat.c: Ditto.
8505 * mcore-rom.c: Ditto.
8506 * mcore-tdep.c: Ditto.
8507 * mi/mi-main.c: Ditto.
8508 * mips-nat.c: Ditto.
8509 * mips-tdep.c: Ditto.
8510 * mipsm3-nat.c: Ditto.
8511 * mipsv4-nat.c: Ditto.
8512 * mn10200-tdep.c: Ditto.
8513 * mn10300-tdep.c: Ditto.
8514 * monitor.c: Ditto.
8515 * ns32km3-nat.c: Ditto.
8516 * ns32knbsd-nat.c: Ditto.
8517 * ocd.c: Ditto.
8518 * pa64solib.c: Ditto.
8519 * ppc-bdm.c: Ditto.
8520 * ppc-linux-nat.c: Ditto.
8521 * ppc-linux-tdep.c: Ditto.
8522 * ppcbug-rom.c: Ditto.
8523 * ppcnbsd-nat.c: Ditto.
8524 * ptx4-nat.c: Ditto.
8525 * regcache.c: Ditto.
8526 * remote-adapt.c: Ditto.
8527 * remote-array.c: Ditto.
8528 * remote-bug.c: Ditto.
8529 * remote-e7000.c: Ditto.
8530 * remote-eb.c: Ditto.
8531 * remote-es.c: Ditto.
8532 * remote-est.c: Ditto.
8533 * remote-hms.c: Ditto.
8534 * remote-mips.c: Ditto.
8535 * remote-mm.c: Ditto.
8536 * remote-nindy.c: Ditto.
8537 * remote-os9k.c: Ditto.
8538 * remote-rdi.c: Ditto.
8539 * remote-rdp.c: Ditto.
8540 * remote-sds.c: Ditto.
8541 * remote-sim.c: Ditto.
8542 * remote-st.c: Ditto.
8543 * remote-udi.c: Ditto.
8544 * remote-utils.c: Ditto.
8545 * remote-vx.c: Ditto.
8546 * remote-vx29k.c: Ditto.
8547 * remote-vx68.c: Ditto.
8548 * remote-vx960.c: Ditto.
8549 * remote-vxmips.c: Ditto.
8550 * remote-vxsparc.c: Ditto.
8551 * remote.c: Ditto.
8552 * rom68k-rom.c: Ditto.
8553 * rs6000-nat.c: Ditto.
8554 * rs6000-tdep.c: Ditto.
8555 * sh-tdep.c: Ditto.
8556 * sh3-rom.c: Ditto.
8557 * sol-thread.c: Ditto.
8558 * solib-svr4.c: Ditto.
8559 * somsolib.c: Ditto.
8560 * sparc-nat.c: Ditto.
8561 * sparc-tdep.c: Ditto.
8562 * sparcl-tdep.c: Ditto.
8563 * sparclet-rom.c: Ditto.
8564 * sun3-nat.c: Ditto.
8565 * sun386-nat.c: Ditto.
8566 * symm-nat.c: Ditto.
8567 * target.c: Ditto.
8568 * thread-db.c: Ditto.
8569 * thread.c: Ditto.
8570 * tic80-tdep.c: Ditto.
8571 * tracepoint.c: Ditto.
8572 * ultra3-nat.c: Ditto.
8573 * umax-xdep.c: Ditto.
8574 * uw-thread.c: Ditto.
8575 * v850-tdep.c: Ditto.
8576 * v850ice.c: Ditto.
8577 * valops.c: Ditto.
8578 * w65-tdep.c: Ditto.
8579 * w89k-rom.c: Ditto.
8580 * win32-nat.c: Ditto.
8581 * wince.c: Ditto.
8582 * z8k-tdep.c: Ditto.
8583
8584 2001-02-28 Matt Hiller <hiller@redhat.com>
8585
8586 * MAINTAINERS: Add Matt Hiller to Write After Approval list.
8587
8588 2001-02-27 Matt Hiller <hiller@redhat.com>
8589
8590 * mn10300-tdep.c (mn10300_stab_reg_to_regnum): New function.
8591 (mn10300_gdbarch_init): Set appropriate elements of gdbarch to
8592 mn10300_stab_reg_to_regnum.
8593
8594 Tue Feb 27 16:56:13 2001 David Taylor <taylor@redhat.com>
8595
8596 * symtab.c (search_symbols): Fix off by one error in test for
8597 error.
8598
8599 2001-02-23 Andrew Cagney <ac131313@redhat.com>
8600
8601 * config/sparc/sp64linux.mt: New file.
8602 * configure.tgt: Recognize sparc64-*-linux* as a sp64linux target.
8603 * configure.host: Recognize sparc64-*-linux* as a linux host.
8604
8605 From 2000-03-17 Jakub Jelinek <jakub@redhat.com>:
8606 * config/sparc/tm-sp64linux.h: New file.
8607
8608 2001-02-24 Kevin Buettner <kevinb@redhat.com>
8609
8610 * buildsym.c (push_subfile, pop_subfile): Replace call to abort()
8611 with call to internal_error().
8612 * dbxread.c (process_one_symbol): Likewise.
8613 * exec.c (build_section_table, xfer_memory): Likewise.
8614 * h8500-tdep.c (h8500_register_size, h8500_register_virtual_type):
8615 Likewise.
8616 * hpread.c (hpread_type_translate, hpread_read_array_type)
8617 (hpread_type_lookup): Likewise.
8618 * i386-tdep.c (gdb_print_insn_i386): Likewise.
8619 * i960-tdep.c (mem): Likewise
8620 * inflow.c (set_sigio_trap, clear_sigio_trap): Likewise.
8621 * infptrace.c (child_resume): Likewise.
8622 * infttrace.c (_initialize_infttrace): Likewise.
8623 * language.c (binop_result_type, add_language): Likewise.
8624 * lynx-nat.c (store_inferior_registers): Likewise.
8625 * m3-nat.c (port_chain_insert, m3_trace_me): Likewise.
8626 * mdebugread.c (parse_partial_symbols): Likewise.
8627 * monitor.c (monitor_printf_noecho, monitor_printf)
8628 (monitor_dump_regs): Likewise.
8629 * ocd.c (stu_put_packet): Likewise.
8630 * printcmd.c (decode_format, print_scalar_formatted): Likewise.
8631 * remote-bug.c (bug_open): Likewise.
8632 * remote-e7000.c (fetch_regs_from_dump, e7000_wait): Likewise.
8633 * remote-es.c (es1800_read_bytes): Likewise.
8634 * remote-mips.c (common_breakpoint): Likewise.
8635 * remote-rdp.c (send_rdp): Likewise.
8636 * remote-sds.c (putmessage): Likewise.
8637 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
8638 Likewise.
8639 * sparcl-tdep.c (sparclite_download): Likewise.
8640 * symtab.c (lookup_partial_symbol): Likewise.
8641 * target.c (push_target, pop_target, initialize_targets): Likewise.
8642 * utils.c (internal_verror, malloc_botch, wrap_here, decimal2str):
8643 Likewise.
8644 * valprint.c (print_decimal, print_longest, print_longest)
8645 (strcat_longest): Likewise.
8646 * w65-tdep.c (init_frame_pc, w65_push_dummy_frame): Likewise.
8647 * xmodem.c (xmodem_send_packet): Likewise.
8648 * z8k-tdep.c (init_frame_pc, z8k_push_dummy_frame): Likewise.
8649 * config/h8500/tm-h8500.h (STORE_STRUCT_RETURN): Likewise.
8650 * config/mn10200/tm-mn10200.h (EXTRACT_RETURN_VALUE)
8651 (STORE_RETURN_VALUE): Likewise.
8652 * config/ns32k/nm-umax.h (REGISTER_U_ADDR): Likewise.
8653 * config/ns32k/xm-merlin.h (REGISTER_U_ADDR): Likewise.
8654 * config/z8k/tm-z8k.h (STORE_STRUCT_RETURN, STORE_RETURN_VALUE):
8655 Likewise.
8656
8657 2001-02-23 Andrew Cagney <ac131313@redhat.com>
8658
8659 * CONTRIBUTE: Document how to cite a problem report.
8660 * TODO: Note need to replace CONTRIBUTE with generated file.
8661
8662 * CONTRIBUTE: Mention that patches do not need to include the
8663 generated files gdbarch.h and gdbarch.c.
8664
8665 2001-02-21 Andrew Cagney <ac131313@redhat.com>
8666
8667 * value.h (get_saved_register): Move from here.
8668 * frame.h: To here.
8669
8670 2001-02-21 Kevin Buettner <kevinb@redhat.com>
8671
8672 * solib.h (in_svr4_dynsym_resolve_code): Delete declaration.
8673 (in_solib_dynsym_resolve_code): Add declaration.
8674 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Changed define to invoke
8675 in_solib_dynsym_resolve_code() rather than
8676 in_svr4_dynsym_resolve_code(). Also, removed the ifdefs
8677 which caused this macro to only be defined when
8678 SVR4_SHARED_LIBS is defined.
8679 * solib.c (in_solib_dynsym_resolve_code): New function.
8680 * solist.h (struct target_so_ops): Add new member
8681 in_dynsym_resolve_code.
8682 * solib-aix5.c (aix5_in_dynsym_resolve_code): Renamed from
8683 in_svr4_dynsym_resolve_code. Also, made static.
8684 (_initialize_aix5_solib): Initialize in_dynsym_resolve_code
8685 member in aix5_so_ops.
8686 * solib-svr4.c (svr4_in_dynsym_resolve_code): Renamed from
8687 in_svr4_dynsym_resolve_code. Also, added second version
8688 of this function which will be used when SVR4_SHARED_LIBS
8689 is not defined.
8690 (_initialize_svr4_solib): Initialize in_dynsym_resolve_code
8691 member in svr4_so_ops.
8692
8693 * ia64-aix-nat.c, ia64-aix-tdep.c, config/ia64/aix.mh,
8694 config/ia64/aix.mt, config/ia64/nm-aix.h, config/ia64/tm-aix.h,
8695 config/ia64/xm-aix.h: New files.
8696 * ia64-tdep.c (_initialize_ia64_tdep): Remove declaration.
8697 (ia64_aix_sigcontext_register_address): New declaration.
8698 (ia64_gdbarch_init): Provide for initialization of
8699 sigcontext_register_address member of struct tdep when
8700 on target is detected to be running AIX.
8701 * config/ia64/linux.mt (TDEPFILES): Add ia64-aix-tdep.o to
8702 this list.
8703
8704 2001-02-20 Kevin Buettner <kevinb@redhat.com>
8705
8706 * ia64-tdep.c (ia64_frameless_function_invocation): Implement.
8707 * config/ia64/linux.mh (NATDEPFILES): Use thread-db.o and lin-lwp.o
8708 for thread support instead of linux-thread.o and lin-thread.o.
8709 * config/ia64/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS,
8710 ATTACH_LWP): Define to use the following lin-lwp.c functions...
8711 (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals,
8712 lin_lwp_attach_lwp): Declare.
8713
8714 2001-02-20 Andrew Cagney <ac131313@redhat.com>
8715
8716 * mips-tdep.c (do_fp_register_row, do_fp_register_row): Fix printf
8717 formatting.
8718
8719 2001-02-20 Kevin Buettner <kevinb@redhat.com>
8720
8721 * solib-aix5.c (solib-svr4.h): Remove include.
8722 (solib_break_names): Delete names which aren't actually
8723 used by AIX5.
8724 (bkpt_names): Remove.
8725 (aix5_relocate_main_executable, bfd_lookup_symbol): Replace calls
8726 to STREQ() with equivalent calls to strcmp().
8727 (in_svr4_dynsym_resolve_code, enable_break, bfd_lookup_symbol,
8728 aix5_solib_create_inferior_hook): Revise comments.
8729 (enable_break): Remove old ``bkpt_names'' code.
8730
8731 2001-02-19 Andrew Cagney <ac131313@redhat.com>
8732
8733 * Makefile.in (SFILES): Add frame.c .
8734 (COMMON_OBS): Add frame.o .
8735 (frame.o): New target.
8736
8737 * frame.c (find_saved_register):
8738 (default_get_saved_register):
8739 (get_saved_register):
8740 (read_relative_register_raw_bytes_for_frame):
8741 (read_relative_register_raw_bytes): Moved to here.
8742 * regcache.c: From here.
8743
8744 2001-02-20 Kevin Buettner <kevinb@redhat.com>
8745
8746 * solib-aix5.c: New file.
8747
8748 2001-02-20 Martin M. Hunt <hunt@redhat.com>
8749
8750 * solib.c (info_sharedlibrary_command): Don't assume pointers
8751 are the same size of long, call longest_local_hex_string_custom().
8752
8753 * solib-svr4.c (LM_ADDR): LM_ADDR is a signed offset, so
8754 extract_signed_integer() should be called instead of
8755 extract_address().
8756
8757 2001-02-20 Martin M. Hunt <hunt@redhat.com>
8758
8759 * MAINTAINERS: Add Martin Hunt to Write After Approval list.
8760
8761 2001-02-19 Andrew Cagney <ac131313@redhat.com>
8762
8763 Frm 2001-02-09 Jim Kingdon <jkingdon@engr.sgi.com>:
8764 * mips-tdep.c (mips_register_raw_size): If FP_REGISTER_DOUBLE,
8765 then floating point registers are 8 bytes.
8766
8767 2001-02-19 Michael Snyder <msnyder@mvstp600e.cygnus.com>
8768
8769 * parse.c (write_exp_msymbol): Make the type CORE_ADDR, to
8770 accomodate 64-bit addresses.
8771
8772 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8773
8774 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>
8775 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux, not
8776 lookup_symbol, when trying to find a symbol with a mangled name,
8777 to avoid infinite recursion.
8778
8779 2001-02-18 Andrew Cagney <ac131313@redhat.com>
8780
8781 * TODO (5.2): Mention G++ 3.0 ABI. General cleanups.
8782
8783 2001-02-19 Jonathan Larmour <jlarmour@redhat.com>
8784
8785 * arm-tdep.c (check_prologue_cache): Fix off by 1 error.
8786 (save_prologue_cache): Ditto.
8787
8788 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8789
8790 From: innadadadavida@yahoo.com:
8791 * partial-stab.h (switch): Check that pst is not null
8792 before dereferencing it.
8793
8794 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8795
8796 From Andrew Cagney <cagney@b1.cygnus.com>:
8797 * symfile.c (add_symbol_file_command): Always initialize
8798 my_cleanup using a NULL cleanup.
8799
8800 2001-02-19 Eli Zaretskii <eliz@is.elta.co.il>
8801
8802 * demangle.c (demangling_style_names): New variable.
8803 (_initialize_demangler): Fill demangling_style_names with the
8804 names of known demangling styles from libiberty_demanglers[]. Use
8805 add_set_enum_cmd instead of add_set_cmd, to get completion on
8806 demangling style names.
8807
8808 * proc-api.c (_initialize_proc_api): Make `procfs-file' use
8809 file-name completion.
8810
8811 * remote-rdi.c (_initialize_remote_rdi): Ditto for `rdilogfile'.
8812
8813 * solib.c (_initialize_solib): Ditto for `solib-search-path' and
8814 `solib-absolute-prefix'.
8815
8816 * tracepoint.c (_initialize_tracepoint): Ditto for
8817 `save-tracepoints'.
8818
8819 * win32-nat.c (_initialize_inftarg): Ditto for `dll-symbols'.
8820
8821 * cli/cli-cmds.c (init_cli_cmds): Make `shell' and `make' use
8822 file-name completion.
8823
8824 * infcmd.c (_initialize_infcmd): Make the following commands use
8825 the file-name completer: `tty', `args', `path', `paths', and
8826 `run'.
8827
8828 2001-02-18 Eli Zaretskii <eliz@is.elta.co.il>
8829
8830 * go32-nat.c: Include i387-nat.h.
8831 (fetch_register): New function, uses some of the guts of
8832 go32_fetch_registers and calls i387_supply_register.
8833 (go32_fetch_registers): Most of the code moved into
8834 fetch_register. Use i387_supply_fsave.
8835 (store_register): Use i387_fill_fsave instead of custom code.
8836 (go32_store_registers): Use i387_fill_fsave.
8837
8838 * Makefile.in (go32-nat.o): Depend on i387-nat.h.
8839
8840 * config/i386/go32.mh (NATDEPFILES): Add i387-nat.o.
8841
8842 * completer.c (gdb_completer_file_name_break_characters): Remove
8843 slash from file-name break characters.
8844 [__MSDOS__]: Special definition for DOS/Windows file names.
8845 (line_completion_function): When completing on file names, bump
8846 `p' to the first file-name constituent character of `word', before
8847 invoking the completer.
8848
8849 2001-02-17 Mark Kettenis <kettenis@gnu.org>
8850
8851 * i387-nat.c: Include "i387-nat.h". Use regnum instead of regno
8852 consistently for parameter names. Fix comments accordingly.
8853 (i387_supply_register): New function.
8854 (i387_supply_fsave): Implement using i387_supply_register.
8855 * i387-nat.h: Use regnum instead of regno consistently for
8856 parameter names. Fix comments accordingly.
8857 (i387_supply_register): New prototype.
8858
8859 2001-02-16 Michael Snyder <msnyder@mvstp600e.cygnus.com>
8860
8861 * remote.c (build_remote_gdbarch_data): Use new TARGET_ADDR_BIT
8862 instead of TARGET_PTR_BIT (to support Harvard architectures).
8863
8864 2001-02-16 Andrew Cagney <ac131313@redhat.com>
8865
8866 From 2001-02-11 Paul Hilfinger <hilfingr@lisbon.int.act-europe.fr>
8867 * hpux-thread.c (hpux_thread_xfer_memory): Add mem_attrib
8868 argument to parameter list and to call in order to conform to
8869 to_xfer_memory field of struct target_ops.
8870
8871 2001-02-12 Michael Chastain <chastain@redhat.com>
8872
8873 * somsolib.c (som_solib_add_solib_objfile): Do not use
8874 section relocation feature of syms_from_objfile. Do my own
8875 section relocation, offsetting each section of the som by
8876 either text_addr - text_link_addr or data_start.
8877
8878 2001-02-16 Andrew Cagney <ac131313@redhat.com>
8879
8880 * TODO (5.1): Move ``Hardware watchpint problems'' out of 5.1.
8881
8882 2001-02-16 Andrew Cagney <ac131313@redhat.com>
8883
8884 * MAINTAINERS (paper trail): Update.
8885
8886 2001-02-16 Mark Kettenis <kettenis@gnu.org>
8887
8888 * target.h (target_fetch_registers): Fix comment.
8889
8890 2001-02-15 Andrew Cagney <ac131313@redhat.com>
8891
8892 * f-exp.y: Include <ctype.h>.
8893 (parse_number): Ensure that ``i'' is always initialized.
8894
8895 2001-02-14 Jim Kingdon <jkingdon@engr.sgi.com>
8896
8897 * MAINTAINERS: Add myself to paper trail section.
8898
8899 2001-02-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
8900
8901 * configure.in (AC_CHECK_HEADERS): Add sys/file.h.
8902 * configure, config.in: Regenerate.
8903 * corelow.c: Include <sys/file.h> if present.
8904
8905 2001-02-14 Andrew Cagney <ac131313@redhat.com>
8906
8907 * inflow.c (terminal_ours_1): Initialize ``osigtou''. Only
8908 declare when have SIGTTOU.
8909
8910 2001-02-14 Eli Zaretskii <eliz@is.elta.co.il>
8911
8912 * config/djgpp/fnchange.lst: Add entries for gdb/gdbtk/*/ChangeLog-*.
8913
8914 2001-02-12 Jim Kingdon <jkingdon@engr.sgi.com>
8915
8916 * MAINTAINERS: Update my email address.
8917
8918 2001-02-11 Eli Zaretskii <eliz@is.elta.co.il>
8919
8920 * NEWS: Document that "info symbol" works with COFF debug info and
8921 its variants.
8922
8923 * minsyms.c (lookup_minimal_symbol_by_pc_section): Don't skip
8924 symbols whose SYMBOL_BFD_SECTION is NULL.
8925
8926 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8927
8928 Get rid of AIX specific PC_LOAD_SEGMENT, replace with PC_SOLIB.
8929 * xcoffsolib.c (xcoff_solib_address): Renamed from
8930 pc_load_segment_name. Return NULL if address is not in a shared
8931 library. Cleanup shared library name construction, using xasprintf.
8932 Format shared library member names consistent with format in exec.c.
8933 (solib_info): Format shared library member names consistent with
8934 format in exec.c.
8935 * config/rs6000/nm-rs6000.h: Replace PC_LOAD_SEGMENT with PC_SOLIB,
8936 using xcoff_solib_address for PC_SOLIB definition.
8937 * stack.c (print_frame): Remove PC_LOAD_SEGMENT code, no longer
8938 needed.
8939
8940 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8941
8942 * mipsread.c (read_alphacoff_dynamic_symtab): Replace alloca calls
8943 with xmalloc calls and cleanups.
8944
8945 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8946
8947 * rs6000-nat.c (child_xfer_memory): Add missing parameter
8948 'struct mem_attrib *' required by 2001-01-23 change.
8949
8950 2001-02-08 Jim Kingdon <jkingdon@engr.sgi.com>
8951
8952 Updates to "make TAGS":
8953 * Makefile.in (ALLDEPFILES): Remove altos-xdep.c arm-convert.s
8954 arm-xdep.c convex-tdep.c convex-xdep.c pyr-tdep.c pyr-xdep.c
8955 tahoe-tdep.c.
8956 (TAGFILES_NO_SRCDIR): Add $(SUBDIR_CLI_SRCS).
8957
8958 2001-02-08 Eli Zaretskii <eliz@is.elta.co.il>
8959
8960 * config/djgpp/fnchange.lst: Remove extraneous "too many dots".
8961
8962 Wed Feb 7 22:39:26 2001 Andrew Cagney <cagney@redhat.com>
8963
8964 From Dean Luick <luick@cray.com>:
8965 * defs.h (continuation): Remove unused global variable.
8966
8967 Wed Feb 7 22:28:31 2001 Andrew Cagney <cagney@redhat.com>
8968
8969 * configure.tgt: Remove references to convex, pyramid, altos and
8970 tahoe.
8971 * configure.host: Ditto.
8972 * MAINTAINERS: Ditto.
8973 * NEWS: Update.
8974
8975 * tahoe-tdep.c: Delete obsolete file.
8976 * pyr-xdep.c: Ditto.
8977 * pyr-tdep.c: Ditto.
8978 * convex-tdep.c: Ditto.
8979 * convex-xdep.c: Ditto.
8980 * config/tahoe/xm-tahoe.h: Ditto.
8981 * config/tahoe/tm-tahoe.h: Ditto.
8982 * config/tahoe/tahoe.mt: Ditto.
8983 * config/tahoe/tahoe.mh: Ditto.
8984 * config/pyr/xm-pyr.h: Ditto.
8985 * config/pyr/tm-pyr.h: Ditto.
8986 * config/pyr/pyramid.mt: Ditto.
8987 * config/pyr/pyramid.mh: Ditto.
8988 * config/m68k/xm-altos.h: Ditto.
8989 * config/m68k/tm-altos.h: Ditto.
8990 * config/m68k/altos.mt: Ditto.
8991 * config/m68k/altos.mh: Ditto.
8992 * config/convex/xm-convex.h: Ditto.
8993 * config/convex/tm-convex.h: Ditto.
8994 * config/convex/convex.mt: Ditto.
8995 * config/convex/convex.mh: Ditto.
8996 * config/convex/Convex.notes: Ditto.
8997 * config/arm/xm-arm.h: Ditto.
8998 * config/arm/nm-arm.h: Ditto.
8999 * config/arm/arm.mt: Ditto.
9000 * config/arm/arm.mh: Ditto.
9001 * arm-convert.s: Ditto.
9002 * arm-xdep.c: Ditto.
9003 * altos-xdep.c: Ditto.
9004
9005 Wed Feb 7 19:41:21 2001 Andrew Cagney <cagney@redhat.com>
9006
9007 * defs.h (internal_error, internal_verror): Add __FILE__ and
9008 __LINE__ parameter.
9009 * utils.c (internal_error, internal_verror): Update.
9010
9011 * v850-tdep.c: Update calls to internal_error.
9012 * utils.c: Ditto.
9013 * ui-out.c: Ditto.
9014 * ui-file.c: Ditto.
9015 * target.h: Ditto.
9016 * symtab.h: Ditto.
9017 * symm-nat.c: Ditto.
9018 * sparc-tdep.c: Ditto.
9019 * source.c: Ditto.
9020 * serial.c: Ditto.
9021 * rs6000-tdep.c: Ditto.
9022 * rs6000-nat.c: Ditto.
9023 * remote.c: Ditto.
9024 * remote-vx.c: Ditto.
9025 * remote-sim.c: Ditto.
9026 * remote-mips.c: Ditto.
9027 * regcache.c: Ditto.
9028 * objfiles.h: Ditto.
9029 * objfiles.c: Ditto.
9030 * mn10300-tdep.c: Ditto.
9031 * mips-tdep.c: Ditto.
9032 * maint.c: Ditto.
9033 * m68k-tdep.c: Ditto.
9034 * m3-nat.c: Ditto.
9035 * language.c: Ditto.
9036 * infptrace.c: Ditto.
9037 * inferior.h: Ditto.
9038 * infcmd.c: Ditto.
9039 * ia64-tdep.c: Ditto.
9040 * i386-tdep.c: Ditto.
9041 * i386-linux-nat.c: Ditto.
9042 * hppah-nat.c: Ditto.
9043 * go32-nat.c: Ditto.
9044 * findvar.c: Ditto.
9045 * f-lang.c: Ditto.
9046 * elfread.c: Ditto.
9047 * event-loop.c: Ditto.
9048 * dwarf2read.c: Ditto.
9049 * dsrec.c: Ditto.
9050 * d30v-tdep.c: Ditto.
9051 * d10v-tdep.c: Ditto.
9052 * cli/cli-setshow.c: Ditto.
9053 * cli/cli-script.c: Ditto.
9054 * ch-exp.c: Ditto.
9055 * breakpoint.c: Ditto.
9056 * ax-gdb.c: Ditto.
9057 * arch-utils.c: Ditto.
9058 * a29k-tdep.c: Ditto.
9059 * gdb_assert.h: Ditto.
9060 * gdbarch.sh: Ditto.
9061 * gdbarch.h, gdbarch.c: Re-generate.
9062
9063 2001-02-07 Andrew Cagney <ac131313@redhat.com>
9064
9065 From Mark Kettenis <kettenis@gnu.org>:
9066 * event-top.h [!STOP_SIGNAL]: #include <signal.h>.
9067
9068 2001-02-07 Andrew Cagney <ac131313@redhat.com>
9069
9070 * remote-sim.c (dump_mem): Cleanup printf format argument.
9071 * MAINTAINERS: Update, mn10300-elf now builds.
9072
9073 2001-02-07 Mark Kettenis <kettenis@gnu.org>
9074
9075 * event-top.c: Remove duplicate #include <signal.h>.
9076
9077 2001-02-06 Andrew Cagney <ac131313@redhat.com>
9078
9079 * sol-thread.c (restore_inferior_pid): Save the PID in a freshly
9080 allocated buffer.
9081 (save_inferior_pid): Restore the PID from that tempoary
9082 buffer. Delete the buffer.
9083 * utils.c (make_cleanup_close, do_close_cleanup): Ditto for FD.
9084
9085 2001-02-06 Andrew Cagney <ac131313@redhat.com>
9086
9087 * MAINTAINERS: Add ``The Obvious Fix Rule''.
9088
9089 2001-02-06 Andrew Cagney <ac131313@redhat.com>
9090
9091 * MAINTAINERS: Add Michael Snyder to Solaris/SPARC list.
9092
9093 2001-02-06 Andrew Cagney <ac131313@cygnus.com>
9094
9095 * gdbarch.sh: Include "gdb_assert.h".
9096 (struct gdbarch): Change ``nr_data'' to unsigned.
9097 (alloc_gdbarch_data, free_gdbarch_data): New functions.
9098 (gdbarch_free): Free the data-pointer vector. Use xfree to delete
9099 architecture vector.
9100 (struct gdbarch_data, struct gdbarch_data_registration): Move init
9101 method to gdbarch_data. Add free method, make index unsigned.
9102 (struct gdbarch_data_registry): Make nr unsigned.
9103 (register_gdbarch_data): Add free parameter. Store in
9104 gdbarch_data.
9105 (init_gdbarch_data): Use set_gdbarch_data.
9106 (set_gdbarch_data): New function.
9107
9108 * gdbarch.h, gdbarch.c: Re-generate.
9109
9110 2001-02-06 Michael Sokolov <msokolov@ivan.Harhan.ORG>
9111
9112 * ser-unix.c (hardware_print_tty_state) [HAVE_SGTTY]: Call
9113 fprintf_filtered with correct arguments.
9114
9115 2001-02-06 Michael Snyder <msnyder@makita.cygnus.com>
9116 Submitted by Paul Hilfinger (hilfingr@gnat.com)
9117 and Andrei Petrov (and@genesyslab.com).
9118 * findvar.c: Buffers of size MAX_REGISTER_RAW_SIZE or REGISTER_BYTES
9119 must be allocated dynamically, since these are no longer constants.
9120 * infcmd.c: Ditto.
9121 * regcache.c: Ditto.
9122 * remote.c: Ditto.
9123 * sol-thread.c: Ditto.
9124 * valops.c: Ditto.
9125 * config/sparc/sun4sol2.mh (MH_CFLAGS): Add -I/usr/include/v9, as a
9126 work-around for a missing Sun header file in solaris for sparc64.
9127
9128 2001-02-04 Philip Blundell <philb@gnu.org>
9129
9130 * config/arm/linux.mh (NATDEPFILES): Add proc-service.o,
9131 thread-db.o, lin-lwp.o; remove lin-thread.o, linux-thread.o.
9132 * config/arm/nm-linux.h (PREPARE_TO_PROCEED, ATTACH_LWP,
9133 GET_THREAD_SIGNALS): Define.
9134 * arm-linux-nat.c (fill_gregset): Correct type of argument.
9135 (supply_gregset): Likewise.
9136 (fill_fpregset): Likewise.
9137 (supply_fpregset): Likewise.
9138
9139 Tue Feb 6 11:58:57 2001 David Taylor <taylor@redhat.com>
9140
9141 * valops.c (value_cast): If casting a scalar to a pointer, do not
9142 issue a message about truncation unless it exceeds the length of
9143 an address, not the length of a pointer. This is because what the
9144 user gives us is an address, not a pointer, and we will ultimately
9145 convert it (via ADDRESS_TO_POINTER) to a pointer, not truncate it
9146 to a pointer. This allows things like "print *(int *)0x01000234"
9147 to work without generating a misleading message on a target having
9148 two byte pointers and four byte addresses.
9149
9150 2001-02-05 Christopher Faylor <cgf@cygnus.com>
9151
9152 * win32-nat.c: Change PTR to void * throughout.
9153
9154 2001-02-05 J.T. Conklin <jtc@redback.com>
9155
9156 * signals.h: Removed.
9157 * event-top.c (#include <signal.h>): Changed from signals.h.
9158 * inflow.c: Likewise.
9159 * mac-xdep.c: Likewise.
9160 * ser-pipe.c: Likewise.
9161 * ser-tcp.c: Likewise.
9162 * standalone.c: Likewise.
9163 * top.c: Likewise.
9164 * utils.c: Likewise.
9165 * Makefile.in: Removed signals.h from dependencies.
9166
9167 2001-02-05 Christopher Faylor <cgf@cygnus.com>
9168
9169 Change suggested by Dean Luick <luick@cray.com>
9170 * inferior.h (step_over_calls_kind): Remove trailing comma from
9171 last enum element.
9172 (step_over_calls): Declare as extern rather than global.
9173
9174 2001-02-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
9175
9176 * sh-tdep.c: Update copyright.
9177 (sh_extract_return_value): Rewrite.
9178 (sh3e_sh4_extract_return_value): New function.
9179 (sh_gdbarch_init): Initialize gdbarch_extract-return_value to new
9180 version of the function for sh3e and sh4 CPUs.
9181
9182 2001-02-05 Michael Chastain <chastain@redhat.com>
9183
9184 * hppah-nat.c (child_xfer_memory): Add parameter 'struct mem_attrib *'
9185 to conform with interface change.
9186
9187 2001-02-04 Eli Zaretskii <eliz@is.elta.co.il>
9188
9189 * config/djgpp/fnchange.lst: Tweak to make consistent with the
9190 new files.
9191
9192 * config/djgpp/djconfig.sh: Use explicit absolute file name when
9193 invoking `find'.
9194
9195 * ser-go32.c (dos_write) [UART_FIFO_WORKS]: Use outportsb only if
9196 UART_FIFO_WORKS is defined. Otherwise use outportb.
9197 From Francisco Pastor <fpastor.etra-id@etra.es>
9198
9199 * go32-nat.c (go32_xfer_memory): Make the argument list consistent
9200 with target.h's `to_xfer_memory' member.
9201
9202 2001-02-02 J.T. Conklin <jtc@redback.com>
9203
9204 * ppc-bdm.c (#include <signal.h>): Removed.
9205 * remote-array.c: Likewise.
9206 * remote-bug.c: Likewise.
9207 * remote-e7000.c: Likewise.
9208 * remote-mips.c: Likewise.
9209 * remote-os9k.c: Likewise.
9210 * remote-st.c: Likewise.
9211 * remote-udi.c: Likewise.
9212 * remote-vx29k.c: Likewise.
9213 * remote-vx68.c: Likewise.
9214 * remote-vx960.c: Likewise.
9215 * remote-vxmips.c: Likewise.
9216 * remote-vxsparc.c: Likewise.
9217
9218 2001-02-02 John Moore <jmoore@redhat.com>
9219
9220 * remote-utils.h (sr_set_device): Changed free() to xfree() where
9221 appropriate. Also changed Copyright to include 2001.
9222 * symtab.h (obstack_chunk_free, SYMBOL_INIT_DEMANGLED_NAME): Likewise.
9223 * value.h (value_free): Likewise.
9224 * gdbarch.sh (gdbarch_free): Likewise.
9225 * gdbarch.c, gdbarch.h: Regenerated.
9226
9227 2001-02-02 John Moore <jmoore@redhat.com>
9228
9229 * cli/cli-cmds.c (apropos_command): Changed occurance of free() to
9230 xfree(). Also changed Copyright to include 2001.
9231
9232 2001-02-02 J.T. Conklin <jtc@redback.com>
9233
9234 * monitor.c (#include "gdb_wait.h"): Removed.
9235 * ocd.c: Likewise.
9236 * ppc-bdm.c: Likewise.
9237 * remote-adapt.c: Likewise.
9238 * remote-array.c: Likewise.
9239 * remote-bug.c: Likewise.
9240 * remote-e7000.c: Likewise.
9241 * remote-eb.c: Likewise.
9242 * remote-es.c: Likewise.
9243 * remote-mips.c: Likewise.
9244 * remote-mm.c: Likewise.
9245 * remote-nindy.c: Likewise.
9246 * remote-os9k.c: Likewise.
9247 * remote-rdi.c: Likewise.
9248 * remote-rdp.c: Likewise.
9249 * remote-sds.c: Likewise.
9250 * remote-sim.c: Likewise.
9251 * remote-st.c: Likewise.
9252 * remote-udi.c: Likewise.
9253 * remote-vx.c: Likewise.
9254 * remote-vx29k.c: Likewise.
9255 * remote-vx68.c: Likewise.
9256 * remote-vx960.c: Likewise.
9257 * remote-vxmips.c: Likewise.
9258 * remote-vxsparc.c: Likewise.
9259 * remote.c: Likewise.
9260 * ser-pipe.c: Likewise.
9261 * ser-unix.c: Likewise.
9262 * Makefile.in: Updated dependencies.
9263
9264 2001-01-31 David Smith <dsmith@redhat.com>
9265
9266 * event-loop.c: Change inclusion of string.h to gdb_string.h and
9267 updated the copyright notice.
9268 * ser-pipe.c: Ditto.
9269 * mi/mi-cmds.c: Ditto.
9270 * mi/mi-console.c: Ditto.
9271 * mi/mi-getopt.c: Ditto.
9272 * mi/mi-parse.c: Ditto.
9273
9274 2001-01-31 David Smith <dsmith@redhat.com>
9275
9276 * MAINTAINERS: Add David Smith to Write After Approval list.
9277
9278 Tue Jan 30 15:43:08 2001 Andrew Cagney <cagney@cygnus.com>
9279
9280 * cli/cli-utils.c (putchar_filtered): Move function from here.
9281 * utils.c (putchar_filtered): To here.
9282 * cli/cli-utils.h (putchar_filtered): Move declaration from here.
9283 * defs.h (putchar_filtered): To here.
9284
9285 Tue Jan 30 17:27:11 2001 Andrew Cagney <cagney@redhat.com>
9286
9287 * configure.in (AC_CHECK_FUNCS): Replace vfork test with
9288 AC_FUNC_VFORK macro.
9289 * config.in, configure: Re-generate.
9290
9291 * gdb_vfork.h: New file.
9292 * ser-pipe.c (pipe_open): Update. Include "gdb_vfork.h".
9293 * fork-child.c (fork_inferior): Ditto.
9294
9295 Tue Jan 30 17:09:07 2001 Andrew Cagney <cagney@redhat.com>
9296
9297 * defs.h (strsave): Delete declaration.
9298 * utils.c (strsave): Delete definition.
9299 * TODO (strsave): Update
9300
9301 * mac-xdep.c (tilde_expand): Replace strsave with xstrdup.
9302 * sparcl-tdep.c (sparclite_open): Ditto.
9303 * mips-tdep.c (mips_set_processor_type_command): Ditto.
9304 (_initialize_mips_tdep): Ditto.
9305 * solib.c (solib_open): Ditto.
9306 * symfile.c (add_filename_language): Ditto.
9307 (set_ext_lang_command): Ditto.
9308 * source.c (init_source_path): Ditto.
9309 (mod_path): Ditto.
9310 * sh3-rom.c (sh3_open): Ditto.
9311 (sh3e_open): Ditto.
9312 * serial.c (serial_open): Ditto.
9313 * remote-mips.c (common_open): Ditto.
9314 * monitor.c (monitor_open): Ditto.
9315 * m32r-rom.c (m32r_upload_command): Ditto.
9316 * infcmd.c (path_command): Ditto.
9317 * f-exp.y (parse_number): Ditto.
9318 * breakpoint.c (create_longjmp_breakpoint): Ditto.
9319 (create_thread_event_breakpoint): Ditto.
9320 * arc-tdep.c (arc_set_cpu_type_command): Ditto.
9321 (_initialize_arc_tdep): Ditto.
9322
9323 Tue Jan 30 15:14:26 2001 Andrew Cagney <cagney@skil>
9324
9325 * cli/cli-script.c (define_command): Check for a bad hook value in
9326 switch statement.
9327
9328 2001-01-30 J.T. Conklin <jtc@redback.com>
9329
9330 * configure/sh/embed.mt: New file.
9331 * configure/sh/linux.mt: New file.
9332 * configure/sh/sh.mt: Removed.
9333 * configure.tgt (sh-*-hms,sh-*-coff*,sh-*-elf*,sh-*-linux): New targets.
9334 (sh-*-*): Removed.
9335
9336 2001-01-29 Michael Chastain <chastain@redhat.com>
9337
9338 * symtab.c (lookup_block_symbol): Use 'namespace' parameter in
9339 symbol comparisons in binary search.
9340
9341 2001-01-27 Christopher Faylor <cgf@cygnus.com>
9342
9343 * win32-nat.c (child_xfer_memory): Add missing argument required by
9344 2001-01-23 change.
9345
9346 2001-01-27 Mark Kettenis <kettenis@gnu.org>
9347
9348 * ui-out.c (do_list_end): New function.
9349 (make_cleanup_ui_out_list_end): New function.
9350 * ui-out.h: Provide prototype for make_cleanup_ui_out_list_end.
9351 * stack.c (print_frame) [UI_OUT]: Call
9352 make_cleanup_ui_out_list_end to make sure we mark the end of the
9353 list if we do a non-local exit. At the end of the function,
9354 instead of calling ui_out_list_end directly, let do_cleanups
9355 handle it.
9356
9357 2001-01-26 Fernando Nasser <fnasser@redhat.com>
9358
9359 Fix double parsing of filenames passed as command line arguments
9360 to GDB (causes weird handling of escape characters).
9361 Also, remove dependencies on the CLI from libgdb.
9362 * call-cmds.h: Remove declaration of exec_file_command().
9363 * gdbcore.h: Remove declaration of exec_file_command().
9364 Add declarations for exec_open() and exec_file_clear().
9365 * symfile.h: Add declarations for symbol_file_add_main() and
9366 symbol_file_clear().
9367 * exec.c (exec_open): New function. Implements to_open for exec
9368 targets.
9369 (exec_file_clear): New function. Makes GDB forget about a previously
9370 specified executable file.
9371 (exec_file_attach): Move parsing of arguments from here ...
9372 (exec_file_command): ... to here.
9373 (init_exec_ops): Use exec_open(), not exec_file_command() to
9374 implement to_open for exec targets.
9375 * symfile.c (symbol_file_add_main): New function. Call symbol_file_add()
9376 with default values. Used when the file name has already been parsed.
9377 (symbol_file_clear): New function. Makes GDB forget about previously
9378 read symbols.
9379 (symbol_file_command): Call the above function instead of inline code.
9380 * main.c: Include "symfile.h" and "gdbcore.h" instead of the deprecated
9381 "call-cmds.h".
9382 (captured_main): Call exec_file_attach() and symbol_file_add_main()
9383 instead of exec_file_command() and symbol_file_command().
9384 (captured_main): Add comment.
9385 * corefile.c: Include "symfile.h".
9386 (core_file_command): Call symbol_file_add_main() instead of
9387 symbol_file_command().
9388 (reopen_exec_file): Call exec_open() instead of exec_file_command().
9389 * infcmd.c: Include "symfile.h".
9390 (attach_command): Call symbol_file_add_main() instead of
9391 symbol_file_command().
9392 * infrun.c: Remove comment about the inclusion of "symfile.h",
9393 not any longer appropriate.
9394 (follow_exec): Call symbol_file_add_main() instead of
9395 symbol_file_command().
9396 * remote-es.c: Include "symfile.h".
9397 (es1800_load): Call symbol_file_add_main() instead of
9398 symbol_file_command().
9399 * remote-vx.c: Remove comment about the inclusion of "symfile.h",
9400 not any longer appropriate.
9401 (vx-wait): Call symbol_file_add_main() instead of
9402 symbol_file_command().
9403 * solib-svr4.c (open_symbol_file_object): Call symbol_file_add_main()
9404 instead of symbol_file_command().
9405 * v850ice.c (ice_file): Call exec_open(), exec_file_attach() and
9406 symbol_file_add_main() instead of exec_file_command() and
9407 symbol_file_command().
9408 * Makefile.in: Update dependencies.
9409
9410 2001-01-26 Jeff Holcomb <jeffh@redhat.com>
9411
9412 * remote-udi.c (udi_open): Change strdup to xstrdup.
9413 * thread.c (thread_apply_all_command): Change strdup to xstrdup.
9414 Update copyright message.
9415 * varobj.c (delete_variable_1): Likewise.
9416
9417 * gdb_string.h: Remove declaration of strdup. Update copyright
9418 message.
9419 * config/xm-mpw.h: Likewise.
9420 * config/i386/xm-i386mach.h: Likewise.
9421 * config/m68k/xm-apollo68b.h: Likewise.
9422 * config/m68k/xm-hp300bsd.h: Likewise.
9423 * config/rs6000/xm-rs6000.h: Likewise.
9424 * config/vax/xm-vaxult.h: Remove declaration of strdup.
9425 * config/vax/xm-vaxult2.h: Likewise.
9426
9427 2001-01-26 Jeff Holcomb <jeffh@redhat.com>
9428
9429 * MAINTAINERS: Add Jeff Holcomb to Write After Approval list.
9430
9431 2001-01-25 J.T. Conklin <jtc@redback.com>
9432
9433 * target.c (target_xfer_memory_partial): Return -1 on failure due
9434 to invalid access mode attribute.
9435
9436 2001-01-25 Christopher Faylor <cgf@cygnus.com>
9437
9438 * win32-nat.c (_initialize_core_win32): Prototype correctly.
9439
9440 2001-01-25 Mark Kettenis <kettenis@gnu.org>
9441
9442 * config/alpha/tm-fbsd.h: Update copyright.
9443 (USE_STRUCT_CONVENTION): Define in terms of
9444 alphabsd_use_struct_convention.
9445 * config/alpha/fbsd.mt (TDEPFILES): Add alphafbsd-tdep.c.
9446 * alphafbsd-tdep.c: New file.
9447
9448 2001-01-24 Fernando Nasser <fnasser@redhat.com>
9449
9450 * top.c (print_gdb_version): Update Copyright year.
9451
9452 2001-01-24 J.T. Conklin <jtc@redback.com>
9453
9454 * dcache.c (dcache_write_line): Fix typo.
9455
9456 * memattr.c (delete_mem_region): Replace free() with xfree().
9457 (mem_number): Add explicit type.
9458
9459 * sol-thread.c (sol_thread_xfer_memory): Add attrib argument.
9460 (rw_common): Likewise.
9461
9462 2001-01-24 Fernando Nasser <fnasser@redhat.com>
9463
9464 * infcmd.c (get_inferior_args, set_inferior_args): Accessor functions
9465 for the inferior program arguments.
9466 (run_command, run_no_args_command, init_infcmd)): Use accessor
9467 functions to set the inferior program arguments.
9468 * inferior.h: Add definitions to the accessor functions above.
9469
9470 2001-01-23 Jim Blandy <jimb@redhat.com>
9471
9472 * dwarf2read.c (read_tag_const_type, read_tag_volatile_type):
9473 Implement these correctly, using make_cv_type.
9474
9475 2001-01-23 J.T. Conklin <jtc@redback.com>
9476
9477 * exec.c (xfer_memory): Add attrib argument.
9478 * infptrace.c (child_xfer_memory): Likewise.
9479 * lin-lwp.c (lin_lwp_xfer_memory): Likewise.
9480 * monitor.c (monitor_xfer_memory): Likewise.
9481 * remote-adapt.c (adapt_xfer_inferior_memory): Likewise.
9482 * remote-array.c (array_xfer_memory): Likewise.
9483 * remote-bug.c (bug_xfer_memory): Likewise.
9484 * remote-e7000.c (e7000_xfer_inferior_memory): Likewise.
9485 * remote-eb.c (eb_xfer_inferior_memory): Likewise.
9486 * remote-es.c (es1800_xfer_inferior_memory): Likewise.
9487 * remote-mips.c (mips_xfer_memory): Likewise.
9488 * remote-mm.c (mm_xfer_inferior_memory): Likewise.
9489 * remote-nindy.c (nindy_xfer_inferior_memory): Likewise.
9490 * remote-os9k.c (rombug_xfer_inferior_memory): Likewise.
9491 * remote-rdi.c (arm_rdi_xfer_memory): Likewise.
9492 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Likewise.
9493 * remote-sds.c (sds_xfer_memory): Likewise.
9494 * remote-sim.c (gdbsim_xfer_inferior_memory): Likewise.
9495 * remote-st.c (st2000_xfer_inferior_memory): Likewise.
9496 * remote-udi.c (udi_xfer_inferior_memory): Likewise.
9497 * remote-vx.c (vx_xfer_memory): Likewise.
9498 * remote.c (remote_xfer_memory): Likewise.
9499 * target.c (debug_to_xfer_memory, do_xfer_memory): Likewise.
9500 * target.h (child_xfer_memory, do_xfer_memory, xfer_memory): Likewise.
9501 * thread-db.c (thread_db_xfer_memory): Likewise.
9502
9503 * target.h (#include "memattr.h"): Added.
9504 (target_ops.to_xfer_memory): Add attrib argument.
9505
9506 * wince.c (_initialize_inftarg): Removed call to set_dcache_state.
9507 * dcache.h (set_dcache_state): Removed declaration.
9508 * dcache.c (set_dcache_state): Removed definition
9509
9510 * dcache.c: Update module comment, as dcache is now enabled and
9511 disabled with memory region attributes instead of by the global
9512 variable "remotecache". Add comment describing the interaction
9513 between dcache and memory region attributes.
9514 (dcache_xfer_memory): Add comment describing benefits of moving
9515 cache writeback to a higher level.
9516 (dcache_struct): Removed cache_has_stuff field. This was used to
9517 record whether the cache had been accessed in order to invalidate
9518 it when it was disabled. However, this is not needed because the
9519 cache is write through and the code that enables, disables, and
9520 deletes memory regions invalidate the cache. Add comment which
9521 suggests that we could be more selective and only invalidate those
9522 cache lines containing data from those memory regions.
9523 (dcache_invalidate): Updated.
9524 (dcache_xfer_memory): Updated.
9525
9526 (dcache_alloc): Don't abort() if dcache_enabled_p is clear.
9527 (dcache_xfer_memory): Removed code that called do_xfer_memory() to
9528 perform a uncached transfer if dcache_enabled_p was clear. This
9529 function is now only called if caching is enabled for the memory
9530 region.
9531 (dcache_info): Always print cache info.
9532
9533 * target.c (do_xfer_memory): Add attrib argument.
9534 (target_xfer_memory, target_xfer_memory_partial): Break transfer
9535 into chunks defined by memory regions, pass region attributes to
9536 do_xfer_memory().
9537 * dcache.c (dcache_read_line, dcache_write_line): Likewise.
9538
9539 * Makefile.in (SFILES): Add memattr.c.
9540 (COMMON_OBS): Add memattr.o.
9541 (dcache.o): Add target.h to dependencies.
9542 * memattr.c: New file.
9543 * memattr.h: Likewise.
9544
9545 * config/m32r/m32r.mt (GDBSERVER_LIBS): Added ../../intl/libintl.a.
9546 * config/mips/vr5000.mt (GDBSERVER_LIBS): Likewise.
9547 * config/tic80/tic80.mt (GDBSERVER_LIBS): Likewise.
9548 * gdbserver/low-sim.c (#include "defs.h"): Removed.
9549 (mygeneric_load): Rename from generic_load.
9550
9551 * gdbserver/low-hppabsd.c (#include "server.h"): Added.
9552 (#include "defs.h"): Removed.
9553 (inferior_pid, perror_with_name): Remove declarations.
9554 * gdbserver/low-linux.c: Likewise.
9555 * gdbserver/low-nbsd.c: Likewise.
9556 * gdbserver/low-sparc.c: Likewise.
9557 * gdbserver/low-sun3.c: Likewise.
9558
9559 * i386-stub.c: Re-indent.
9560 * m68k-stub.c: Re-indent.
9561
9562 2001-01-22 Nicholas Duffek <nsd@redhat.com>
9563
9564 * gdbarch.sh (PARM_BOUNDARY): Define.
9565 * gdbarch.c: Regenerate.
9566 * gdbarch.h: Regenerate.
9567
9568 2001-01-22 J.T. Conklin <jtc@redback.com>
9569
9570 * ns32k-tdep.c: #include "frame.h"
9571 * config/ns32k/tm-umax.h (FRAME_FIND_SAVED_REGS): Restore. It
9572 appears to have been inadvertantly removed sometime in May 1999.
9573
9574 * Revert 2000-11-09 changes where shared library objects were
9575 moved from NATDEPFILES to TDEPFILES on NetBSD targets. While
9576 we'd like to be able to debug dynamically linked executables,
9577 this makes it impossible to build a cross debugger on a many
9578 hosts.
9579
9580 * config/i386/nbsd.mt: Remove solib.o, solib-svr4.o from TDEPFILES.
9581 * config/i386/nbsdelf.mt: Likewise.
9582 * config/m68k/nbsd.mt: Likewise.
9583 * config/ns32k/nbsd.mt: Likewise.
9584 * config/powerpc/nbsd.mt: Likewise.
9585 * config/sparc/nbsd.mt: Likewise.
9586 * config/sparc/nbsdelf.mt: Likewise.
9587 * config/i386/nbsd.mh: Add solib.o, solib-svr4.o to NATDEPFILES.
9588 * config/i386/nbsdelf.mh: Likewise.
9589 * config/m68k/nbsd.mh: Likewise.
9590 * config/ns32k/nbsd.mh: Likewise.
9591 * config/powerpc/nbsd.mh: Likewise.
9592 * config/sparc/nbsd.mh: Likewise.
9593
9594 2001-01-19 Jason Merrill <jason@redhat.com>
9595
9596 * dbxread.c (read_ofile_symtab): Stay with AUTO_DEMANGLING for G++.
9597 (process_one_symbol): Likewise.
9598 * dwarfread.c (handle_producer): Likewise.
9599
9600 Thu Jan 18 12:08:57 2001 Andrew Cagney <cagney@b1.cygnus.com>
9601
9602 * configure.in (build_warnings): Disable -Wuninitialized until GDB
9603 compiles with -Wuninitialized,-Werror.
9604 * configure: Regenerate.
9605
9606 * MAINTAINERS: Add list of buildable targets.
9607
9608 Thu Jan 18 12:48:04 2001 Andrew Cagney <cagney@b1.cygnus.com>
9609
9610 * defs.h (STRCMP): Delete macro.
9611
9612 * objfiles.c (objfile_relocate): Replace STRCMP with call to
9613 strcmp.
9614 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9615 * symfile.c (compare_symbols): Ditto.
9616 * standalone.c (open): Ditto.
9617 * remote-es.c (verify_break): Ditto.
9618 * cli/cli-decode.c (add_cmd, add_show_from_set): Ditto.
9619
9620 * symfile.c (compare_psymbols): Delete comment refering to STRCMP.
9621
9622 Thu Jan 18 12:25:06 2001 Andrew Cagney <cagney@b1.cygnus.com>
9623
9624 * varobj.c (FREEIF): Delete macro.
9625 (varobj_set_value, free_variable): Replace FREEIF with ``xfree''
9626 call.
9627
9628 2001-01-18 Nick Clifton <nickc@redhat.com>
9629
9630 * arc-tdep.c (arc_cpu_type_table): Add new arc core numbers.
9631 (arc_print_insn): No bfd available, so pass NULL to
9632 arc_get_disassembler.
9633
9634 2001-01-09 James Ingham <jingham@inghji.apple.com>
9635
9636 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux to lookup
9637 a mangled symbol rather than recursing into lookup_symbol, since
9638 this will just re-unmangle the name & call lookup_symbol_aux -
9639 leading to an infinite recursion.
9640
9641 2001-01-18 Mark Kettenis <kettenis@gnu.org>
9642
9643 * infcmd.c (print_return_value): Restore another space lost by
9644 switch to UIOUT. ``$NN='' should be ``$NN =''.
9645
9646 Fri Jan 19 02:31:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
9647
9648 * target.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
9649 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Wrap macro
9650 definition in parenthesis.
9651
9652 Fri Jan 19 02:13:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
9653
9654 From 2000-10-27 Mark Salter <msalter@redhat.com>:
9655 * remote.c (remote_remove_hw_breakpoint): Add 'len' field to Z
9656 packet.
9657 (remote_insert_hw_breakpoint): Ditto.
9658
9659 2001-01-17 J.T. Conklin <jtc@redback.com>
9660
9661 * config/m68k/tm-nbsd.h (USE_STRUCT_CONVENTION): Define.
9662 (BPT_VECTOR, REMOTE_BPT_VECTOR): Change to 0xf.
9663 * config/m68k/nbsd.mt (TDEPFILES): Add m68knbsd-tdep.o.
9664 * m68knbsd-tdep.c: New file.
9665
9666 * i386nbsd-tdep.c: Remove #if 0'd out #includes.
9667
9668 * m68knbsd-nat.c: #include gdbcore.h.
9669
9670 Wed Jan 17 09:41:58 2001 Andrew Cagney <cagney@b1.cygnus.com>
9671
9672 * MAINTAINERS: Add J.T. Conklin to Blanket Write Privs.
9673
9674 2001-01-16 Michael Snyder <msnyder@cleaver.cygnus.com>
9675
9676 * procfs.c (procfs_stopped_by_watchpoint): Don't die if process
9677 goes away -- just return false (ie. not stopped by watchpoint).
9678 * source.c (openp): Fix typo in comment.
9679
9680 2001-01-12 Nicholas Duffek <nsd@redhat.com>
9681
9682 * blockframe.c (generic_get_saved_register): Spelling fix.
9683 * frame.h (FRAME_FP): Spelling fix.
9684
9685 Fri Jan 12 18:29:46 2001 Andrew Cagney <cagney@b1.cygnus.com>
9686
9687 * infcmd.c (print_return_value): Restore space lost by switch to
9688 UIOUT. ``$NN='' should be ``$NN =''.
9689
9690 2001-01-08 Nicholas Duffek <nsd@redhat.com>
9691
9692 * regcache.c (set_register_cached, register_buffer,
9693 real_register, pseudo_register fetch_register, store_register):
9694 New functions.
9695 (register_changed, read_relative_register_raw_bytes_for_frame,
9696 registers_changed, registers_fetched, read_register_bytes,
9697 read_register_gen, write_register_gen, read_register,
9698 read_signed_register, write_register, supply_register): Replace
9699 register_valid[] with register_cached() and
9700 set_register_cached().
9701 (read_register_bytes, read_register_gen, write_register_gen,
9702 read_register, read_signed_register, write_register,
9703 supply_register): Replace registers[] with register_buffer().
9704 (read_register_bytes, read_register_gen, read_register,
9705 read_signed_register): Call fetch_register().
9706 (write_register_gen, write_register): Call real_register() and
9707 store_register().
9708 (write_register_bytes): Call store_register().
9709 * value.h (set_register_cached, register_buffer): Prototype.
9710 * remote.c (remote_fetch_registers): Allocate regs[] with a
9711 run-time size. Replace register_valid[] with
9712 set_register_cached().
9713 (store_register_using_P, remote_store_registers): Replace
9714 registers[] with register_buffer().
9715
9716 2001-01-08 Nicholas Duffek <nsd@redhat.com>
9717
9718 * regcache.c: Change "write-back" comment to "write-through".
9719 Change "regno" to "regnum".
9720 (read_register, read_signed_register): Remove "raw" from return
9721 value description.
9722 (supply_register): Spelling fix.
9723 * value.h: Change "regno" to "regnum".
9724
9725 2001-01-08 Fernando Nasser <fnasser@redhat.com>
9726
9727 * Makefile.in (install-gdbtk): Add .itcl files to the list of files
9728 to be installed.
9729
9730 2001-01-04 Michael Snyder <msnyder@mvstp600e.cygnus.com>
9731
9732 * mips-tdep.c (mips_coerce_float_to_double): Fix typo in comment.
9733
9734 2001-01-04 Nicholas Duffek <nsd@redhat.com>
9735
9736 * valops.c (VALUE_SUBSTRING_START): Delete.
9737
9738 2001-01-04 Nicholas Duffek <nsd@redhat.com>
9739
9740 * Makefile.in (SUBDIR_CLI_OBS): Add cli/cli-utils.o.
9741 (SUBDIR_CLI_SRCS): Add cli/cli-utils.c.
9742 (cli_utils_h): New variable.
9743 (cli/cli-utils.o): New rule.
9744 * cli/cli-utils.c: New file.
9745 * cli/cli-utils.h: New file.
9746
9747 2001-01-04 Nicholas Duffek <nsd@redhat.com>
9748
9749 * config/i386/tm-i386.h (REGISTER_CONVERT_TO_VIRTUAL,
9750 REGISTER_CONVERT_TO_RAW): Delete trailing semicolon.
9751
9752 2001-01-03 J.T. Conklin <jtc@redback.com>
9753
9754 * alphabsd-nat.c, i386-linux-nat.c, i386bsd-nat.c: Fix typo in
9755 comment.
9756
9757 2001-01-02 Michael Snyder <msnyder@cleaver.cygnus.com>
9758
9759 * sh-tdep.c (sh_default_store_return_value): Allow for small return type.
9760 (sh3e_sh4_store_return_value): Call sh_default_store_return_value for
9761 non-float types.
9762 * sparc-tdep.c (sparc_frame_chain): Fix typo in comment.
9763 Update copyright notice.
9764
9765 For older changes see ChangeLog-2000
9766 \f
9767 Local Variables:
9768 mode: change-log
9769 left-margin: 8
9770 fill-column: 74
9771 version-control: never
9772 End:
This page took 0.233916 seconds and 4 git commands to generate.