* ser-mingw.c (free_pipe_state, pipe_wait_handle): Update
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
774a49c0
DJ
12006-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2
3 * ser-mingw.c (free_pipe_state, pipe_wait_handle): Update
4 for changes to pipe_select_thread.
5 (pipe_done_wait_handle): New.
6 (_initialize_ser_windows): Reference it.
7
9e35dae4
DJ
82006-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9 Daniel Jacobowitz <dan@codesourcery.com>
10
11 * Makefile.in (expprint.o, parse.o, target.o): Update.
12 * dwarf2loc.c (dwarf_expr_tls_address): Move body to
13 target_translate_tls_address. Call it.
14 * eval.c (evaluate_subexp_standard): Handle UNOP_MEMVAL_TLS.
15 * expprint.c (print_subexp_standard): Likewise.
16 (op_name_standard, dump_subexp_body_standard): Likewise.
17 * expression.h (enum exp_opcode): Add UNOP_MEMVAL_TLS.
18 (union exp_element): Add objfile.
19 * parse.c (write_exp_elt_objfile): New function.
20 (msym_tls_symbol_type): New.
21 (write_exp_msymbol): Handle TLS.
22 (operator_length_standard): Handle UNOP_MEMVAL_TLS.
23 (build_parse): Initialize msym_tls_symbol_type.
24 * parser-defs.h (write_exp_elt_objfile): New prototype.
25 * target.c (target_translate_tls_address): New.
26 * target.h (target_translate_tls_address): Add prototype.
27
58dc52c3
DJ
282006-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
29
30 * solib.c (solib_open): Handle an empty solib_absolute_prefix like a
31 missing one.
32
8bb75286
DJ
332006-10-09 Daniel Jacobowitz <dan@codesourcery.com>
34
35 * solib.c (solib_read_symbols): Stop if the file was not found.
36
d9639e13
DJ
372006-10-09 Paul Pluzhnikov <ppluzhnikov@charter.net>
38
39 PR c++/2116
40 * valops.c (find_overload_match): Check for a NULL name.
41
714e295e
JB
422006-10-06 Joel Brobecker <brobecker@adacore.com>
43
44 * dwarf2read.c (read_array_type): Set the type name if the name
45 attribute is present.
46
631b0ed0
JB
472006-10-05 Joel Brobecker <brobecker@adacore.com>
48
49 * blockframe.c (block_innermost_frame): Rewrite frame search logic.
50
dbc981de
DJ
512006-10-05 Daniel Jacobowitz <dan@codesourcery.com>
52
53 * Makefile.in (gdb_expat_h): New.
54 (xml_support_h): Add gdb_expat.h dependency.
55 (memory-map.o, xml-support.o): Likewise.
56 * gdb_expat.h: New file.
57 * xml-support.h: Include it.
58 * memory-map.c, xml-support.c: Likewise. Remove XML_STATUS_OK
59 definitions.
60
0b83947e
DJ
612006-10-05 Daniel Jacobowitz <dan@codesourcery.com>
62
63 * remote.c (get_remote_state_raw): Renamed from get_remote_state.
64 (get_remote_state): New function.
65 (init_remote_state, _initialize_remote): Use get_remote_state_raw.
66
8aceae7e
FF
672006-10-04 Fred Fish <fnf@specifix.com>
68
69 * vec.c: Include defs.h first. This pulls in config.h which can
70 affect other includes.
71
f31b3751
JB
722006-10-04 Joel Brobecker <brobecker@adacore.com>
73
74 * somread.c (som_symtab_read): Avoid using alloca for potentially
75 large buffers.
76
d0a0254a
DJ
772006-10-04 Daniel Jacobowitz <dan@codesourcery.com>
78
79 * arch-utils.h (gdbarch_info_fill): Remove duplicate prototype.
80
f2d483c4
DJ
812006-10-03 Daniel Jacobowitz <dan@codesourcery.com>
82
83 * memory-map.c (XML_STATUS_OK, XML_STATUS_ERROR): Provide default
84 definitions.
85 * xml-support.c (XML_STATUS_OK, XML_STATUS_ERROR): Likewise.
86
f08799f9
DJ
872006-09-22 Daniel Jacobowitz <dan@codesourcery.com>
88
89 * remote.c (remote_write_bytes_aux): Doc fix.
90
a76d924d
DJ
912006-09-21 Vladimir Prus <vladimir@codesourcery.com>
92 Daniel Jacobowitz <dan@codesourcery.com>
93
94 * Makefile.in (SFILES): Add target-memory.c.
95 (COMMON_OBS): Add target-memory.o.
96 * memattr.c (lookup_mem_region): Adjust handling for
97 the top of memory. Improve comments.
98 * remote.c (packet_check_result): New function, split out
99 from packet_ok. Recognize "E." as an error prefix.
100 (packet_ok): Use it.
101 (remote_write_bytes_aux): New function, renamed from
102 remote_write_bytes. Take packet header, packet format,
103 and length flag as arguments.
104 (remote_write_bytes): Rewrite to use remote_write_bytes_aux.
105 (remote_send_printf, restore_remote_timeout)
106 (remote_flash_timeout, remote_flash_erase, remote_flash_write)
107 (remote_flash_done): New.
108 (remote_xfer_partial): Handle flash writes.
109 (init_remote_ops, init_remote_async_ops): Set to_flash_erase
110 and to_flash_done.
111 * symfile.c (struct load_section_data): Include a pointer to
112 the cumulative stats and a request queue. Move most members
113 to other types.
114 (struct load_progress_data, struct load_progress_section_data): New
115 types.
116 (load_progress): Handle a NULL baton and zero bytes. Update for
117 type changes.
118 (load_section_callback): Create memory write requests instead of
119 writing to memory. Don't print the progress message here.
120 (clear_memory_write_data): New function.
121 (generic_load): Use target_write_memory_blocks.
122 * target-memory.c: New file.
123 * target.c (update_current_target): Mention new uninherited methods.
124 (memory_xfer_partial): Issue an error for flash writes.
125 (target_flash_erase, target_flash_done): New functions.
126 (target_write_with_progress): Call the progress callback at the
127 start also.
128 * target.h (enum target_object): Add TARGET_OBJECT_FLASH.
129 (target_write_with_progress): Update comment.
130 (struct target_ops): Add to_flash_erase and to_flash_done.
131 (target_flash_erase, target_flash_done, struct memory_write_request)
132 (memory_write_request_s, enum flash_preserve_mode)
133 (target_write_memory_blocks): New, including a vector type
134 for memory_write_request_s.
135
fd79ecee
DJ
1362006-09-21 Vladimir Prus <vladimir@codesourcery.com>
137 Daniel Jacobowitz <dan@codesourcery.com>
138 Nathan Sidwell <nathan@codesourcery.com>
139
140 * Makefile.in (SFILES): Add memory-map.c and xml-support.c.
141 (memory_map_h, xml_support_h): New.
142 (target_h): Add vec_h dependency.
143 (COMMON_OBS): Add memory-map.o and xml-support.o.
144 (memory-map.o, xml-support.o): New rules.
145 (remote.o): Update.
146 * exceptions.h (enum errors): Add XML_PARSE_ERROR.
147 * infcmd.c (run_command_1, attach_command): Call target_pre_inferior.
148 * memattr.c (default_mem_attrib): Initialize blocksize.
149 (target_mem_region_list, mem_use_target)
150 (target_mem_regions_valid, mem_region_cmp, mem_region_init)
151 (require_user_regions, require_target_regions)
152 (invalidate_target_mem_regions): New.
153 (create_mem_region): Use mem_region_init.
154 (mem_clear): Move higher.
155 (lookup_mem_region): Use require_target_regions.
156 (mem_command): Implement "mem auto".
157 (mem_info_command): Handle target-supplied regions and flash
158 attributes.
159 (mem_enable_command, mem_disable_command, mem_delete_command): Use
160 require_user_regions.
161 (_initialize_mem): Mention "mem auto" in help.
162 * memattr.h (enum mem_access_mode): Add MEM_FLASH.
163 (struct mem_attrib): Add blocksize.
164 (invalidate_target_mem_regions, mem_region_init, mem_region_cmp): New
165 prototypes.
166 * remote.c: Include "memory-map.h".
167 (PACKET_qXfer_memory_map): New enum value.
168 (remote_protocol_features): Add qXfer:memory-map:read.
169 (remote_xfer_partial): Handle memory maps.
170 (remote_memory_map): New.
171 (init_remote_ops, init_remote_async_ops): Set to_memory_map.
172 (_initialize_remote): Register qXfer:memory-map:read.
173 * target.c (update_current_target): Mention to_memory_map.
174 (target_memory_map, target_pre_inferior): New.
175 (target_preopen): Call target_pre_inferior.
176 * target.h: Include "vec.h".
177 (enum target_object): Add TARGET_OBJECT_MEMORY_MAP.
178 (struct target_ops): Add to_memory_map.
179 (target_memory_map, target_pre_inferior): New prototypes.
180 * memory-map.c, memory-map.h, xml-support.c, xml-support.h: New files.
181
253c8abb
DJ
1822006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
183
184 * ada-lex.l (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
185 (strtoulst): Moved to ...
186 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
187 (strtoulst): ... here. Enhanced to behave more similarly
188 to strtoul.
189 * defs.h (strtoulst): New prototype.
190
c96fc75e
DJ
1912006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
192
193 * Makefile.in (memattr_h, memattr.o): Update.
194 * memattr.h: Include "vec.h".
195 (struct mem_region): Remove linked list pointer.
196 (mem_region_s): New typedef and corresponding vector.
197 * memattr.c: Include "vec.h".
198 (mem_region_chain): Delete.
199 (mem_region_list): New vector pointer.
200 (mem_region_lessthan): New function.
201 (create_mem_region): Remove unused return value. Use vector
202 operations. Remove linear search.
203 (delete_mem_region): Delete.
204 (lookup_mem_region): Use vector operations. Add a FIXME.
205 (mem_info_command): Update to work with vectors.
206 (mem_enable, mem_enable_command, mem_disable, mem_disable_command)
207 (mem_free, mem_delete): Likewise.
208
350da6ee
DJ
2092006-09-21 Nathan Sidwell <nathan@codesourcery.com>
210
211 * vec.h: New file.
212 * vec.c: New file.
213 * Makefile.in (SFILES): Add vec.c.
214 (vec_h): New.
215 (COMMON_OBJS): Add vec.o.
216 (vec.o): New target.
217
2e9f7625
DJ
2182006-09-20 Daniel Jacobowitz <dan@codesourcery.com>
219
220 PR remote/2154
221 * remote.c (remote_thread_alive): Remove local buf.
222 (remote_get_threadinfo): Remove local threadinfo_pkt.
223 (remote_get_threadlist): Remove unused threadlist_packet.
224 (remote_current_thread): Remove local buf.
225 (remote_threads_info): Set bufp after getpkt.
226 (remote_threads_extra_info): Remove local bufp.
227 (get_offsets): Set buf after getpkt.
228 (remote_check_symbols): Set reply after getpkt.
229 (remote_vcont_probe): Set buf after getpkt.
230 (remote_resume): Set buf after set_thread.
231 (remote_wait, remote_async_wait): Set buf after getpkt.
232 (fetch_register_using_p): Set buf after remote_send.
233 (remote_fetch_registers): Likewise.
234 (store_register_using_P): Don't use buf after remote_send.
235 (check_binary_download, remote_write_bytes)
236 (remote_read_bytes, remote_rcmd): Remove local buf.
237
6e90a7df
VP
2382006-09-17 Vladimir Prus <vladimir@codesourcery.com>
239
240 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Don't emit error
f28f46e7 241 if high requested frame number is larger than number of available
6e90a7df
VP
242 frames.
243
d51ca893
NR
2442006-09-16 Nick Roberts <nickrob@snap.net.nz>
245
246 * linux-nat.c (linux_test_for_tracefork): Don't leave zombie
247 process.
248
04d1f770
DJ
2492006-09-16 Andrzej Zaborowski <balrog@zabor.org>
250
251 * interps.c (interpreter_exec_cmd): Restore interpreter properties.
252
5a2901d9
DJ
2532006-09-10 Daniel Jacobowitz <dan@codesourcery.com>
254
255 PR threads/2149
256 * infrun.c (handle_inferior_event): Context switch after fork
257 and exec events.
258
4c850810
DJ
2592006-09-10 Daniel Jacobowitz <dan@codesourcery.com>
260
261 * infcall.c (call_function_by_hand): Check for function pointer
262 types.
263
0ba5a932
AS
2642006-09-10 Andreas Schwab <schwab@suse.de>
265
266 * m68k-tdep.c (m68k_analyze_register_saves): Fix decoding of
267 `move.l %R,-(%sp)'.
268
2ab1eb7a
VP
2692006-09-07 Vladimir Prus <vladimir@codesourcery.com>
270
6e90a7df 271 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Don't emit
2ab1eb7a
VP
272 error if high requested frame number is larger then number
273 of available frames.
274
7a0b0196
JB
2752006-09-07 Joel Brobecker <brobecker@adacore.com>
276
277 From Stephan Springl <springl-gdb@bfw-online.de>
278 * fork-child.c (fork_inferior): Fix typo.
279
d56874a7
DD
2802006-08-28 DJ Delorie <dj@redhat.com>
281
282 * m32c-tdep.c (m32c_decode_srcdest4): Initialize fields in sd
283 that may not be initialized elsewhere.
284 (m32c_decode_sd23): Likewise.
285
14711c82
DJ
2862006-08-25 Daniel Jacobowitz <dan@codesourcery.com>
287
288 * buildsym.c (finish_block): Don't adjust the boundaries of
289 nested functions.
290
f414f22f
AS
2912006-08-24 Andreas Schwab <schwab@suse.de>
292
293 * symfile.c (add_symbol_file_command): Fix off-by-one when
294 extending sect_opts.
295
461c8a2c
NR
2962006-08-24 Nick Roberts <nickrob@snap.net.nz>
297
298 * mi/gdb-mi.el: Refer to next release of Emacs as 22.1.
299
77a458b3
NR
3002006-08-23 Nick Roberts <nickrob@snap.net.nz>
301
302 * mi/gdb-mi.el (gdbmi): Remove gdb-force-update, initialize
303 other variables.
304 (gdbmi-send): Ensure any text properties can be removed.
305 (gdbmi-prompt1): Update to gdb-ui.el
306 (gud-gdbmi-marker-filter): Defer setting of gud-running.
307 Keep gdb-done-regexp for partial-output-buffer.
308 (gdb-stack-list-frames-handler): Add face to function names.
309
76b7178d
MK
3102006-08-22 Mark Kettenis <kettenis@gnu.org>
311
316703b9
MK
312 * valprint.c (val_print_type_code_flags): Fix GNU coding standards
313 violation.
314
2a1ce6ec
MK
315 * alpha-tdep.c (alpha_register_to_value, alpha_value_to_register)
316 (alpha_push_dummy_call, alpha_extract_return_value)
317 (alpha_breakpoint_from_pc, alpha_read_insn)
318 (alpha_get_longjmp_target, alpha_supply_int_regs)
319 (alpha_fill_int_regs, alpha_supply_fp_regs, alpha_fill_fp_regs)
320 (alpha_next_pc): Use gdb_byte instead of (unsigned) char where
321 appropriate.
322
fd936806
MK
323 * sparc64-tdep.c (sparc64_pstate_type, sparc64_fsr_type)
324 (sparc64_fprs_type): New variables.
325 (sparc64_init_types): New function.:
326 (sparc64_register_info): Use appropriate flag types for %fsr and
327 %fprs.
328 (sparc64_pseudo_register_info): Use appropriate type for %pstate.
329 (_initialize_sparc64_tdep): New function.
330
befae759
MK
331 * valprint.c (val_print_type_code_flags): Fix for bitfields larger
332 than 32 bits.
333
76b7178d
MK
334 * gdbtypes.c (init_flags_type): Set all fields to zero instead of
335 just the first one.
336
d3f4f91a
DJ
3372006-08-22 Daniel Jacobowitz <dan@codesourcery.com>
338
339 * Makefile.in (INTERNAL_CPPFLAGS): New.
340 (INTERNAL_CFLAGS_BASE): Use it.
341
a98b27f2
MS
3422006-08-22 Michael Snyder <Michael.Snyder@PalmSource.com>
343
344 * MAINTAINERS: Update my email address.
345
8695c747
DJ
3462006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
347
348 * Makefile.in (amd64_linux_tdep_h): New.
349 (amd64-linux-nat.o, amd64-linux-tdep.o): Update.
350 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Add
351 ORIG_RAX.
352 (_initialize_amd64_linux_nat): Set amd64_native_gregset64_num_regs.
353 * amd64-linux-tdep.c (amd64_linux_register_name)
354 (amd64_linux_register_type, amd64_linux_register_reggroup_p)
355 (amd64_linux_write_pc): New.
356 (amd64_linux_init_abi): Use them, and update num_regs.
357 * amd64-linux-tdep.h: New file.
358 * amd64-tdep.c (amd64_register_name, amd64_register_type): Make
359 public.
360 * amd64-tdep.h (amd64_register_name, amd64_register_type): New
361 prototypes.
362
363 * regformats/reg-x86-64-linux.dat: New file.
364
c17eaafe
DJ
3652006-08-18 Daniel Jacobowitz <dan@codesourcery.com>
366
367 * infrun.c (handle_inferior_event): Check the current frame ID
368 before unwinding to the previous frame.
369
61049d3b
DJ
3702006-08-18 Daniel Jacobowitz <dan@codesourcery.com>
371
372 * dwarf2read.c (quirk_gcc_member_function_pointer): Add GCC PR
373 number in a comment.
374
2c9771d3
MK
3752006-08-18 Mark Kettenis <kettenis@gnu.org>
376
377 * sparc-nat.c (sparc_xfer_wcookie): Signal EOF. Tweak comment.
378
c0dd20ea
DJ
3792006-08-18 Daniel Jacobowitz <dan@codesourcery.com>
380
381 * dwarf2read.c (quirk_gcc_member_function_pointer): New.
382 (read_structure_type): Call it.
383
17218d91
DJ
3842006-08-16 Daniel Jacobowitz <dan@codesourcery.com>
385
386 * NEWS: Mention "set trust-readonly-sections" fix.
387
2bc416ba
DJ
3882006-08-16 Daniel Jacobowitz <dan@codesourcery.com>
389
390 * remote.c, target.c: Strip trailing whitespace.
391
cf7a04e8
DJ
3922006-08-15 Daniel Jacobowitz <dan@codesourcery.com>
393
394 PR remote/1966
395 * dcache.c (dcache_write_line): Use target_write.
396 (dcache_read_line): Use target_read.
397 * mi/mi-main.c (mi_cmd_data_read_memory): Use target_read.
398 * symfile.c (struct load_section_data): Add new per-section
399 members.
400 (load_progress): New function.
401 (load_section_callback): Pass load_progress to the new
402 target_write_with_progress.
403 * target.c (current_xfer_partial, memory_xfer_partial): New.
404 (target_xfer_partial): New prototype.
405 (target_xfer_memory, target_xfer_partial_p, xfer_using_stratum)
406 (do_xfer_memory, target_xfer_memory_partial)
407 (target_read_memory_partial, target_write_memory_partial): Delete.
408 (trust_readonly): Move higher in the file.
409 (update_current_target): Use current_xer_partial.
410 (target_xfer_partial): Use memory_xfer_partial. Handle
411 TARGET_OBJECT_RAW_MEMORY specially.
412 (target_read_memory): Use target_read.
413 (target_write_memory): Use target_write.
414 (default_xfer_partial): Call to_xfer_partial directly.
415 (target_write_with_progress): New function, based on target_write.
416 (target_write): Call it.
417 * target.h (enum target_object): Add TARGET_OBJECT_RAW_MEMORY.
418 (target_write_with_progress): New prototype.
419 (do_xfer_memory, target_read_memory_partial)
420 (target_write_memory_partial): Delete prototypes.
421
b2182ed2
DJ
4222006-08-15 Daniel Jacobowitz <dan@codesourcery.com>
423
424 * remote.c (remote_write_bytes): Take a const buffer argument.
425 Do the checks from remote_xfer_memory.
426 (remote_read_bytes): Do the checks from remote_xfer_memory.
427 (remote_xfer_memory): Remove checks pushed into lower level
428 functions.
429 (remote_xfer_partial): Call remote_write_bytes and remote_read_bytes
430 directly.
431 * remote.h (remote_write_bytes): Update prototype.
432
9fa66fd7
AS
4332006-08-11 Andrew Stubbs <andrew.stubbs@st.com>
434
435 * NEWS: Add 'set trace-commands' command.
436
8625200f
AS
4372006-08-10 Andrew Stubbs <andrew.stubbs@st.com>
438
439 * cli/cli-script.c (execute_user_command): Update command_next_depth
440 on user-command call.
441
4f8253f3
JB
4422006-08-09 Joel Brobecker <brobecker@adacore.com>
443
444 * NEWS: Add entry for new substitute-path commands.
445
2f61ca93
JB
4462006-08-08 Joel Brobecker <brobecker@adacore.com>
447
448 * source.c: #include gdb_assert.h.
449 (substitute_path_rule): New struct.
450 (substitute_path_rules): New static global variable.
451 (substitute_path_rule_matches): New function.
452 (get_substitute_path_rule): New function.
453 (rewrite_source_path): New function.
454 (find_and_open_source): Add source path rewriting support.
455 (strip_trailing_directory_separator): New function.
456 (find_substitute_path_rule): New function.
457 (add_substitute_path_rule): New function.
458 (delete_substitute_path_rule): New function.
459 (show_substitute_path_command): New function.
460 (unset_substitute_path_command): New function.
461 (set_substitute_path_command): New function.
462 (_initialize_source): Add new substitute-path commands.
463 * Makefile.in (source.o): Add dependency on gdb_assert.h.
464
24a2a654
JB
4652006-08-08 Joel Brobecker <brobecker@adacore.com>
466
467 * i386-tdep.c (i386_follow_jump): Use read_memory_nobpt to read
468 instructions.
469 (i386_analyze_struct_return): Likewise.
470 (i386_skip_probe): Likewise.
471 (i386_match_insn): Likewise.
472 (i386_analyze_frame_setup): Likewise.
473 (i386_analyze_register_saves): Likewise.
474 (i386_skip_prologue): Likewise.
475
359a9262
JB
4762006-08-08 Joel Brobecker <brobecker@adacore.com>
477
478 * gdbcore.h (read_memory_nobpt): New function name instead of
479 deprecated_read_memory_nobpt.
480 * breakpoint.c (read_memory_nobpt): New function name instead
481 of deprecated_read_memory_nobpt.
482 Adjust calls to old deprecated_read_memory_nobpt accordingly.
483 * alpha-tdep.c: Adjust calls to deprecated_read_memory_nobpt
484 accordingly.
485 * alphanbsd-tdep.c: Likewise.
486 * frame.c: Likewise.
487 * frv-tdep.c: Likewise.
488 * hppa-linux-tdep.c: Likewise.
489 * hppa-tdep.c: Likewise.
490 * i386-linux-nat.c: Likewise.
491 * m68klinux-tdep.c: Likewise.
492 * mips-tdep.c: Likewise.
493 * s390-tdep.c: Likewise.
494
7fa2210b
DJ
4952006-08-08 Daniel Jacobowitz <dan@codesourcery.com>
496
497 * configure.ac: Check for expat.
498 * acinclude.m4: Include AC_LIB_HAVE_LINKFLAGS dependencies.
499 * Makefile.in (LIBEXPAT): New.
500 (CLIBS): Include $(LIBEXPAT).
501 * README: Mention expat.
502 * configure, config.in: Regenerated.
503
ce928021
DJ
5042006-08-08 Joel Sherrill <joel.sherrill@oarcorp.com>
505
506 * config/sparc/embed.mt: New file.
507 * configure.tgt (sparc-*-rtems*): Use embed.mt.
508
9bdcbae7
DJ
5092006-08-08 Daniel Jacobowitz <dan@codesourcery.com>
510
511 * Makefile.in (objfiles.o, symfile.o): Update.
512 * objfiles.c: Include "expression.h" and "parser-defs.h".
513 (free_objfile): Clear global blocks.
514 * symfile.c: Include "parser-defs.h".
515 (clear_symtab_users): Clear global blocks.
516
67985547
TS
5172006-08-08 Thiemo Seufer <ths@mips.com>
518
519 * breakpoint.c (update_breakpoints_after_exec): Fix type mismatch.
520
3d00d119
DJ
5212006-08-08 Vladimir Prus <vladimir@codesourcery.com>
522
523 * symfile.c (download_write_size): Remove.
524 (show_download_write_size): Remove.
525 (load_section_callback): Don't use download_write_size.
526 (_initialize_symfile): Don't register download_write_size.
527 * NEWS: Mention 'download-write-size' removal.
528
0534816d
DJ
5292006-08-06 Daniel Jacobowitz <dan@codesourcery.com>
530
531 * expprint.c (print_subexp_standard, dump_subexp_body_standard): Add
532 support for member pointers.
533
47ccd048
MK
5342006-08-02 Mark Kettenis <kettenis@gnu.org>
535
536 * arm-tdep.h: Add multiple inclusion protection.
537 (struct gdbarch): Add forward declaration.
538 (armobsd_regset_from_core_section): New prototype.
539 * armbsd-tdep.c: New file.
540 * armobsd-tdep.c: Include "gdb_string.h".
541 (armobsd_init_abi): Set regset_from_core_section.
542 (armobsd_core_osabi_sniffer): New function.
543 (_initialize_armobsd_tdep): Register armobsd_core_osabi_sniffer.
544 * Makefile.in (ALLDEPFILES): Add armbsd-tdep.c.
545 (armbsd-tdep.o): New dependency.
546 (armnbsd-tdep.o): Update dependencies.
547 * config/arm/obsd.mt (TDEPFILES): Add armbsd-tdep.o and corelow.o.
548
87177905
TS
5492006-08-02 Thiemo Seufer <ths@mips.com>
550
551 * linux-thread-db.c (thread_db_get_thread_local_address): Fix type
552 mismatch.
553 * tui/tui-stack.c (tui_show_frame_info): Likewise.
554
a22229c4
DJ
5552006-08-01 Daniel Jacobowitz <dan@codesourcery.com>
556
557 * c-exp.y (type): Remove incorrect pointer to member case.
558 * objc-exp.y (type): Likewise.
559 * p-exp.y (type): Likewise.
560
7c00367c
MK
5612006-08-01 Mark Kettenis <kettenis@gnu.org>
562
563 * arm-tdep.h (enum struct_return): New.
564 (struct gdbarch_tdep): Add struct_return member.
565 * arm-tdep.c (arm_return_value): Return
566 RETURN_VALUE_STRUCT_CONVENTION for aggregates when the ABI uses
567 pcc_struct_return.
568 (arm_gdbarch_init): Default to reg_struct_return.
569 * armobsd-tdep.c (armobsd_init_abi): Set pcc_struct_return.
570
4816ec69
MK
5712006-07-31 Mark Kettenis <kettenis@gnu.org>
572
573 * alpha-tdep.h (ALPHA_S0_REGNUM): New define.
574 * alphabsd-nat.c: Include <sys/types.h>, <sys/signal.h>,
575 <machine/pcb.h> and "bsd-kvm.h".
576 (alphabsd_supply_pcb): New function.
577 (_initialize_alphabsd_nat): Enable libkvm interface.
578 * Makefile.in (alphabsd-nat.o): Update dependencies.
579 * config/alpha/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
580 (LOADLIBES): New variable.
581 * config/alpha/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
582 (LOADLIBES): New variable.
583
35d5d4ee
FF
5842006-07-31 Fred Fish <fnf@specifix.com>
585
586 * arm-tdep.c (arm_make_prologue_cache): Use FRAME_OBSTACK_ZALLOC
587 instead of calling frame_obstack_zalloc directly.
588 (arm_make_stub_cache): Ditto.
589 * frame-unwind.h: Ditto.
590 * frame.c (create_new_frame): Ditto.
591
0f9e5f32
BW
5922006-07-27 Bob Wilson <bob.wilson@acm.org>
593
594 * MAINTAINERS (Write After Approval): Add myself.
595
e896d70e
DJ
5962006-07-27 Bob Wilson <bob.wilson@acm.org>
597
598 * main.c (captured_main): Print a newline after calling
599 print_gdb_version instead of waiting until after the symbol file
600 has been read. Adjust error_pre_print, quit_pre_print, and
601 warning_pre_print values.
602
f58b68aa
DJ
6032006-07-27 Roger Sayle <roger@eyesopen.com>
604 Daniel Jacobowitz <dan@codesourcery.com>
605
606 * irix5-nat.c (fetch_core_registers): Simplify and correct logic.
607
159f81f3
DJ
6082006-07-27 Daniel Jacobowitz <dan@codesourcery.com>
609
610 * target.h (target_read_stralloc): New prototype.
611 * target.c (target_read_alloc_1): Renamed from target_read_alloc.
612 Take new PADDING argument.
613 (target_read_alloc): Use it.
614 (target_read_stralloc): New function.
615
40e57cf2
DJ
6162006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
617
618 * remote.c (remote_protocol_features): Correct qPart to qXfer.
619
ab5c9f60
DJ
6202006-07-25 Daniel Jacobowitz <dan@codesourcery.com>
621
622 * eval.c (evaluate_subexp_for_address): Don't incorrectly discard
623 calls to C++ operator*.
624
725a826f
DJ
6252006-07-24 Roger Sayle <roger@eyesopen.com>
626 Daniel Jacobowitz <dan@codesourcery.com>
627
628 * solib-irix.c (gdb_int32_bytes): Use gdb_byte instead of char.
629 (gdb_int64_bytes): Likewise.
630 (fetch_lm_info): Use .b fields of gdb_int32_bytes and gdb_int64_bytes
631 as first argument to extract_unsigned_integer to silence compiler
632 warnings.
633
72dca2f5
FR
6342006-07-24 Frederic Riss <frederic.riss@st.com>
635
636 * dwarf2read.c (struct dwarf2_per_objfile): Add has_section_at_zero
637 field.
638 (dwarf2_locate_sections): Initialize
639 dwarf2_per_objfile->has_section_at_zero.
640 (dwarf2_get_pc_bounds): Use dwarf2_per_objfile->has_section_at_zero
641 instead of HAS_RELOC test.
642 (read_partial_die): Ditto.
643
4c42eaff
DJ
6442006-07-24 Daniel Jacobowitz <dan@codesourcery.com>
645
646 * corefile.c (reopen_exec_file): Only check for an open exec file.
647 Use exec_file_attach.
648 * exec.c (exec_open): Make static.
649 (exec_file_command): Don't use target_preopen. Query directly about
650 changing the file.
651 * gdbcore.h (exec_open): Remove prototype.
652
6532006-07-24 Frederic Riss <frederic.riss@st.com>
b05e64e5
FR
654
655 * regcache.c (struct regcache): Make register_valid_p a signed char
656 array.
657
3f64f7b1
DJ
6582006-07-24 Jan Kratochvil <jan.kratochvil@redhat.com>
659 Daniel Jacobowitz <dan@codesourcery.com>
660
661 * linux-thread-db.c (thread_db_wait): Remove libthread_db
662 after exec events.
663
6aec2e11
DJ
6642006-07-24 Daniel Jacobowitz <dan@codesourcery.com>
665
666 * NEWS: Mention Windows cross debugging support.
667
83eba059
DJ
6682006-07-23 Daniel Jacobowitz <dan@codesourcery.com>
669
670 * linux-nat.c (linux_nat_add_target): Remove extern.
671 * linux-nat.h (thread_db_init): New prototype.
672
b80864fb
DJ
6732006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
674
675 * configure.tgt: Build gdbserver for Cygwin and mingw32.
676
66a79c16
DJ
6772006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
678
679 * config/i386/cygwin.mt (DEPRECATED_TM_FILE): Delete.
680 * config/i386/nm-cygwin.h: Add contents of tm-cygwin.h.
681 * config/i386/tm-cygwin.h: Delete file.
682
fc5261f2
MK
6832006-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
684
685 * infrun.c (handle_inferior_event): Typo.
686
16026cd7
AS
6872006-07-21 Andrew Stubbs <andrew.stubbs@st.com>
688
689 * cli/cli-cmds.c (source_verbose, trace_commands): New variables.
690 (source_script): New function.
691 (source_verbose_cleanup): New function.
692 (source_command): Move old contents to source_script.
693 Make function static. Parse -v option and call source_script.
694 (init_cli_cmds): Update source command help.
695 Add 'set trace-commands' command.
696 * cli/cli-script.c (command_next_depth): New static variable.
697 (suppress_next_print_command_trace): New static variable.
698 (reset_command_nest_depth): New function.
699 (print_command_trace): New function.
700 (execute_control_command): Split the continue_control and break_control
701 cases, add calls to print_command_trace and count the nest depth.
702 (while_command): Set suppress_next_print_command_trace.
703 (if_command): Likewise.
704 * top.c (execute_command): Call print_command_trace.
705 * cli/cli-cmds.h (source_verbose, trace_commands): New extern variables.
706 (source_command): Change to source_script.
707 * main.c (captued_main): Use source_script instead of source_command.
708 * top.h (source_command): Change to source_script.
709 * event-top.c (display_gdb_prompt): Call reset_command_nest_depth.
710 * cli/cli-script.h (print_command_trace): Export.
711 (reset_command_nest_depth): Likewise.
712
16963cb6
DJ
7132006-07-20 Daniel Jacobowitz <dan@codesourcery.com>
714
715 * eval.c (evaluate_struct_tuple): Skip static fields.
716
6b26d61a
MK
7172006-07-19 Mark Kettenis <kettenis@gnu.org>
718
6ea0ec3f
MK
719 * alphaobsd-tdep.c: Include "obsd-tdep.h".
720 (alphaobsd_init_abi): Set skip_solib_resolver.
721 * Makefile.in (alphaobsd-tdep.o): Update dependencies.
722 * config/alpha/obsd.mt (TDEPFILES): Add obsd-tdep.o.
723
6b26d61a
MK
724 * arm-tdep.c (arm_gdbarch_init): Get default floating-point model
725 from ELF flags for binaries produced by the GNU toolchain.
726
86cc68a8
NS
7272006-07-18 Nathan Sidwell <nathan@codesourcery.com>
728
729 * remote-fileio.c (remote_fileio_func_rename): Reorder to process
730 input buffer before reading memory.
731 (remote_fileio_func_stat): Likewise.
732
29e8a844
DJ
7332006-07-18 Daniel Jacobowitz <dan@codesourcery.com>
734
735 * blockframe.c (find_pc_partial_function): Use the minimal symbol
736 size to control the cache entry, if available.
737 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle minimal
738 symbols with zero and non-zero sizes differently.
739
28b17333
DJ
7402006-07-18 Daniel Jacobowitz <dan@codesourcery.com>
741
742 * linux-thread-db.c (td_thr_getfpregs_p, td_thr_getgregs_p)
743 (td_thr_setfpregs_p, td_thr_setgregs_p, thread_db_get_info)
744 (thread_db_fetch_registers, thread_db_store_registers)
745 (thread_db_thread_alive, thread_db_state_str): Delete.
746 (thread_db_load): Don't look up regset functions.
747 (thread_db_pid_to_str): Simplify.
748 (thread_db_extra_thread_info): New.
749 (init_thread_db_ops): Do not set to_fetch_registers,
750 to_store_registers, or to_thread_alive. Set to_extra_thread_info.
751 * Makefile.in: Remove linux-thread-db.o rule.
752
e3ac4a1e
MK
7532006-07-18 Mark Kettenis <kettenis@gnu.org>
754
755 * armobsd-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
756 (armobsd_sigframe_init): New function.
757 (armobsd_sigframe): New variable.
758 (armobsd_init_abi): Prepend armobsd_sigframe unwinder.
759 * Makefile.in (armobsd-tdep.o): Update dependencies.
760
08ae6d95
DJ
7612006-07-18 Denis PILAT <denis.pilat@st.com>
762
763 * monitor.c: Remove unused prototypes.
764
6962ad99
VP
7652006-07-18 Vladimir Prus <vladimir@codesourcery.com>
766
767 * target.c (tcomplain): Mark with ATTR_NORETURN.
768
0152ebd7
VP
769 * defs.h (print_transfer_performance): Improve comments.
770
aa88762a
MK
7712006-07-17 Mark Kettenis <kettenis@gnu.org>
772
675dcf4f
MK
773 * printcmd.c: Coding style fixes: add missing spaces in comments
774 and wrapping long lines.
775 (delete_display, enable_display_command, disable_display_command)
776 (printf_command, display_info, undisplay_command, free_display)
777 (display_command, x_command, address_info, set_command)
778 (inspect_command, call_command, print_command, print_command_1)
779 (validate_format, print_formatted, decode_format, sym_format):
780 Remove prototypes.
781 (x_command): Make static.
782 (printf_command): Convert error into internal consistency check.
783 (address_info): Avoid assignment within function call.
784 (printf_command): Avoid redundant cast.
785 * tracepoint.c (x_command): Remove extern prototype.
786
aa88762a
MK
787 * armobsd-tdep.c (armobsd_init_abi): Set skip_solib_resolver.
788 * Makefile.in (armobsd-tdep.o): Update dependencies.
789 * config/arm/obsd.mt (TDEPFILES): Add obsd-tdep.o.
790
1cd566a4
MK
7912006-07-16 Mark Kettenis <kettenis@gnu.org>
792
a58dc200
MK
793 * armobsd-tdep.c: New file.
794 * Makefile.in (ALLDEPFILES): Add armobsd-tdep.c.
795 (armobsd-tdep.o): New dependency.
796 * config/arm/obsd.mt: New file.
797 * configure.tgt: (arm*-*-openbsd*): Set gdb_target to obsd.
798
d7b7af6f 799 * gdbarch.sh (deprecated_saved_pc_after_call): Delete.
a4bc5cf9 800 * gdbarch.h, gdbarch.c: Re-generate.
d7b7af6f 801
1cd566a4
MK
802 * arm-tdep.c (arm_saved_pc_after_call): Delete.
803 (arm_gdbarch_init): Do not set deprecated_saved_pc_after_call.
804
96ffcb62
AS
8052006-07-16 Alfred M. Szmidt <ams@gnu.org>
806
807 * gnu-nat.c: Undefine _process_user_ before including
808 <hurd/process_request.h>.
809 (gnu_resume): Supply missing argument to error().
810 (gnu_read_inferior): Add extra parenthesis around arithmetic
811 expression to silence warnings from GCC.
812 (gnu_write_inferior): Likewise.
813 (gnu_xfer_memory): Changed type of MYADDR to `gdb_byte *'.
814
424f3115
MK
8152006-07-16 Mark Kettenis <kettenis@gnu.org>
816
817 * armnbsd-tdep.c (arm_netbsd_elf_init_abi): Use
818 svr4_ilp_fetch_link_map_offsets.
819
a4ab4a25
MK
8202006-07-15 Mark Kettenis <kettenis@gnu.org>
821
822 * armnbsd-tdep.c: Don't include "nbsd-tdep.h".
823 * config/arm/nbsd.mt (TDEPFILES): Remove nbsd-tdep.o.
824 (DEPRECATED_TM_FILE): Remove.
825 * Makefile.in (armnbsd-tdep.o): Update dependencies.
826
cd24f626
JB
8272006-07-14 Joel Brobecker <brobecker@adacore.com>
828
829 * PROBLEMS: Document threads/2137.
830
06d65a1d
MK
8312006-07-13 Mark Kettenis <kettenis@gnu.org>
832
833 * config/alpha/tm-nbsd.h: Remove file.
834 * config/alpha/nbsd.mt (DEPRECATED_TM_FILE): Remove.
835
4844f454
CV
8362006-07-13 Corinna Vinschen <vinschen@redhat.com>
837
838 * mips-tdep.c (mips_integer_to_address): Simplify be calling
839 extract_signed_integer directly. Fix comment.
840
7830cb4f
CV
8412006-07-13 Corinna Vinschen <vinschen@redhat.com>
842
843 * m32c-tdep.c (m32c_banked_register): New function.
844 (m32c_banked_read): Use m32c_banked_register function to evaluate
845 real register number.
846 (m32c_banked_write): Ditto.
847 (m32c_virtual_frame_pointer): New function.
848 (m32c_gdbarch_init): Add set_gdbarch_virtual_frame_pointer call.
849
9bb47d95
NS
8502006-07-13 Nathan Sidwell <nathan@codesourcery.com>
851
852 * m68k-tdep.c (m68k_frame_align): New.
853 (m68k_gdbarch_init): Set frame_align here.
854
9af2a054
AS
8552006-07-13 Denis PILAT <denis.pilat@st.com>
856
857 * interps.c (interpreter_completer): Allocate one more item to the
858 'matches' list and set them all to 0 with a xcalloc.
859
79ee37bc
NR
8602006-07-13 Nick Roberts <nickrob@snap.net.nz>
861
862 * annotate.c (annotate_frame_begin): Re-instate frame-begin
863 annotation for level 3 annotations.
864
fb933624
DJ
8652006-07-13 Paul N. Hilfinger <Hilfinger@adacore.com>
866 Daniel Jacobowitz <dan@codesourcery.com>
867
868 * infcall.c (value_arg_coerce): Use value_cast_pointers for
869 references. Avoid value_cast to a reference type. Don't silently
870 convert pointers to references.
871 * valops.c (value_cast_pointers): New, based on value_cast.
872 (value_cast): Use it. Reject reference types.
873 (value_ref): New.
874 (typecmp): Use it.
875 * value.h (value_cast_pointers, value_ref): New prototypes.
876
d49c44d5
DJ
8772006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
878
879 * remote.c (unpack_varlen_hex): Correct type of retval.
880 Reported by Zhigang Gong <zhigang.gong@gmail.com>.
881
99bcc461
DJ
8822006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
883
884 * dwarf2read.c (dwarf2_symbol_mark_computed): Handle corrupted
885 or missing location list information. Suggested by Jan
886 Kratochvil <lace@jankratochvil.net>.
887
cb587d83
DJ
8882006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
889
890 * Makefile.in (arm_linux_tdep_h): New variable.
891 (arm-linux-nat.o, arm-linux-tdep.o): Update.
892 * arm-linux-nat.c: Include "arm-linux-tdep.h".
893 (typeNone, typeSingle, typeDouble, typeExtended)
894 (FPWORDS, ARM_CPSR_REGNUM, FPREG, FPA11)
895 (fetch_nwfpe_single, fetch_nwfpe_double, fetch_nwfpe_none)
896 (fetch_nwfpe_extended, fetch_nwfpe_register, store_nwfpe_single)
897 (store_nwfpe_double, store_nwfpe_extended, store_nwfpe_register):
898 Delete.
899 (fetch_fpregister, fetch_fpregs, store_fpregister, store_fpregs):
900 Use gdb_byte buffers, NWFPE_FPSR_OFFSET, supply_nwfpe_register,
901 and collect_nwfpe_register.
902 (fill_gregset, supply_gregset, fill_fpregset, supply_fpregset): Use
903 new regset functions.
904 * arm-linux-tdep.c: Include "regset.h" and "arm-linux-tdep.h".
905 (arm_apcs_32): New declaration.
906 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
907 (arm_linux_collect_gregset, typeNone, typeSingle, typeDouble)
908 (typeExtended, supply_nwfpe_register, collect_nwfpe_register)
909 (arm_linux_supply_nwfpe, arm_linux_collect_nwfpe)
910 (arm_linux_regset_from_core_section): New.
911 (arm_linux_init_abi): Register arm_linux_regset_from_core_section.
912 * arm-linux-tdep.h: New file.
913 * arm-tdep.h (struct regset): Declare.
914 (struct gdbarch_tdep): Add gregset, fpregset members.
915 * config/arm/linux.mh (NATDEPFILES): Remove corelow.o and
916 core-regset.o.
917 * config/arm/linux.mt (TDEPFILES): Add corelow.o.
918
8802d8ed
DJ
9192006-07-12 Jan Kratochvil <lace@jankratochvil.net>
920
921 * infrun.c (handle_inferior_event): Fixed typos in printf.
922
6765f3e5
DJ
9232006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
924 Nathan Sidwell <nathan@codesourcery.com>
925
926 * remote.c (REMOTE_ALIGN_WRITES): New.
927 (remote_write_bytes): Align large write packets. Remove unused
928 payload_start variable.
929
0876f84a
DJ
9302006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
931
932 * remote.c (PACKET_qXfer_auxv): New, renamed from PACKET_qPart_auxv.
933 (remote_supported_packet): Remove #if 0.
934 (remote_protocol_features): Add qPart:auxv:read.
935 (remote_unescape_input): New function.
936 (readchar): Don't mask off the high bit.
937 (read_frame): Use fputstrn_filtered for packet data.
938 (getpkt_sane): Return the number of bytes read or -1. Use
939 fputstrn_unfiltered.
940 (remote_read_qxfer): New.
941 (remote_xfer_partial): Use it for TARGET_OBJECT_AUXV.
942 (_initialize_remote): Update packet registration.
943 * defs.h (fputstrn_filtered): New prototype.
944 * utils.c (fputstrn_filtered): New.
945 * NEWS: Mention qXfer.
946
13547ab6
DJ
9472006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
948
949 * target.c (target_read): Stop if target_read_partial returns 0
950 when some bytes have already been read.
951 (target_write): Likewise for target_write_partial.
952 (target_read_partial, target_write_partial): Make static.
953 (target_read_alloc): New.
954 * target.h: Doc fixes.
955 (target_read_partial, target_write_partial): Delete prototypes.
956 (target_read_alloc): New prototype.
957
958 * auxv.c (target_auxv_read): Delete.
959 (target_auxv_search, fprint_target_auxv): Use target_read_alloc.
960 * auxv.h (target_auxv_read): Delete prototype.
961 * avr-tdep.c (avr_io_reg_read_command): Use target_read_alloc.
962 * ia64-tdep.c (getunwind_table, get_kernel_table): Likewise.
963 * linux-nat.c (linux_nat_make_corefile_notes): Likewise.
964 * procfs.c (procfs_make_note_section): Likewise.
965 * remote.c (remote_xfer_partial): Don't loop here.
966 * sparc-tdep.c (sparc_fetch_wcookie): Use target_read.
967
edfb1a26
DJ
9682006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
969
970 * arm-linux-tdep.c: Doc fixes.
971 (ARM_SIGCONTEXT_R0, ARM_UCONTEXT_SIGCONTEXT)
972 (ARM_OLD_RT_SIGFRAME_SIGINFO, ARM_OLD_RT_SIGFRAME_UCONTEXT)
973 (ARM_NEW_RT_SIGFRAME_UCONTEXT, ARM_NEW_SIGFRAME_MAGIC): New
974 constants.
975 (arm_linux_sigreturn_init, arm_linux_rt_sigreturn_init): Support
976 the new signal frame layouts.
977
6e2c7fa1
DJ
9782006-07-12 Mike Frysinger <vapier@gentoo.org>:
979 Daniel Jacobowitz <dan@codesourcery.com>
980
981 * Makefile.in (init.c) [LANG, LC_ALL]: Set to `c'.
982 * gdb_indent.sh, gdb_mbuild.sh, observer.sh: Likewise.
983 * gdbarch.sh: Correct comment.
984
e0f2823e
DJ
9852006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
986
987 * MAINTAINERS: Add Alfred Szmidt for the Hurd.
988
24c41760
MK
9892006-07-11 Mark Kettenis <kettenis@gnu.org>
990
991 * alpha-tdep.h (ALPHA_INSN_SIZE): New define.
992
8a112c90
MK
9932006-07-10 Mark Kettenis <kettenis@gnu.org>
994
995 * alphaobsd-tdep.c: New file.
996 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Do not register a
997 handler for GDB_OSABI_OPENBSD_ELF.
998 * Makefile.in (ALLDEPFILES): Add alphaobsd-tdep.c.
999 (alphaobsd-tdep.o): New target.
1000 * config/alpha/obsd.mt: New file.
1001 * configure.tgt (alpha*-*-openbsd*): Set gdb_target to obsd.
1002
9823e921
RH
10032006-07-10 Richard Henderson <rth@redhat.com>
1004
1005 * alpha-tdep.h (struct gdbarch_tdep): Add return_in_memory.
1006 * alpha-tdep.c (alpha_register_byte): Remove.
1007 (alpha_extract_struct_value_address): Remove.
1008 (alpha_return_value): New.
1009 (alpha_return_in_memory_always): New.
1010 (alpha_gdbarch_init): Set tdep->return_in_memory. Don't call
1011 set_gdbarch_deprecated_register_byte. Do call set_gdbarch_return_value
1012 instead of set_gdbarch_deprecated_use_struct_convention,
1013 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
1014 or set_gdbarch_deprecated_extract_struct_value_address.
1015 * alphafbsd-tdep.c (alphafbsd_return_in_memory): Rename from
1016 alphafbsd_use_struct_convention, remove gcc_p argument.
1017 (alphafbsd_init_abi): Set tdep->return_in_memory instead of
1018 set_gdbarch_deprecated_use_struct_convention.
1019
789f3b5f
MK
10202006-07-09 Mark Kettenis <kettenis@gnu.org>
1021
b0ca8573
MK
1022 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): New
1023 prototype.
1024 * alphanbsd-tdep.c (alphanbsd_regset_from_core_section): Handle
1025 a.out-style core file format here. Make global.
1026 (alphanbsd_regset_from_core_section): Remove.
1027 (alphanbsd_sigtramp_offset): Make static.
1028 (alphanbsd_aout_init_abi): Remove.
1029 (alphanbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_ELF for
1030 a.out style core files.
1031 (_initialize_alphanbsd_tdep): Do not register a handler for
1032 GDB_OSABI_NETBSD_AOUT.
1033
3beabdb2 1034 * alphabsd-tdep.h: Tweak comments.
3b03cc43 1035 (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove.
3beabdb2
MK
1036 * alphanbsd-tdep.c: Reorder includes. Include "regset.h".
1037 (ALPHANBSD_SIZEOF_GREGS, ALPHANBSD_SIZEOF_FPREGS): New defines.
1038 (alphanbsd_supply_fpregset, alphanbsd_supply_gregset)
1039 (alphanbsd_aout_supply_gregset): New functions.
1040 (alphanbsd_gregset, alphanbsd_fpregset, alphanbsd_aout_gregset):
1041 New variables.
1042 (alphanbsd_regset_from_core_section)
1043 (alphanbsd_aout_regset_from_core_section): New functions.
1044 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1045 (alphanbsd_core_fns, alphanbsd_elf_fns): Remove variables.
1046 (alphanbsd_init_abi): Set regset_from_core_section.
1047 (alphanbsd_aout_init_abi, alphanbsd_core_osabi_sniffer): New
1048 functions.
1049 (_initialize_alphanbsd_tdep): Register NetBSD core file sniffer.
1050 Use alphanbsd_aout_init_abi whre appropriate. Don't call
1051 deprecated_add_core_fns.
1052 * Makefile.in (alphanbsd-tdep.o): Update dependencies.
1053
8fe7c54b
MK
1054 * alphabsd-tdep.c (alphabsd_supply_reg, alphabsd_fill_reg)
1055 (alphabsd_supply_fpreg, alphabsd_fill_fpreg): Add missing spaces.
1056
789f3b5f
MK
1057 * alphanbsd-tdep.c (alphanbsd_init_abi): Use
1058 svr4_lp64_fetch_link_map_offsets instead of
1059 nbsd_lp64_solib_svr4_fetch_link_map_offsets.
1060
09153d55
AS
10612006-07-06 Andrew Stubbs <andrew.stubbs@st.com>
1062
1063 * parse.c (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block
1064 write_exp_elt_longcst, write_exp_elt_dblcst, write_exp_elt_type,
1065 write_exp_elt_intern): Zero initialize tmp.
1066
2ec3381a
DJ
10672006-07-05 Daniel Jacobowitz <dan@codesourcery.com>
1068
1069 * remote.c (remote_xfer_partial): Remove KOD support.
1070 * target.h (enum target_object): Remove TARGET_OBJECT_KOD.
1071 * MAINTAINERS: Move Kernel Object Display entry to past maintainers.
071d802b
MK
1072 * Makefile.in (SFILES, kod_h, COMMON_OBS, kod.o, kod-cisco.o):
1073 Remove KOD support.
2ec3381a
DJ
1074 * mi/mi-cmds.c (mi_cmds): Remove dummy KOD commands.
1075 * NEWS: Mention KOD.
1076 * kod.h, kod.c, kod-cisco.c: Delete files.
1077
7fca722e
DJ
10782006-07-04 Daniel Jacobowitz <dan@codesourcery.com>
1079
1080 * remote.c (init_remote_state): Use xrealloc instead of xmalloc.
1081
4a35b02a
NW
10822006-07-03 Nathan J. Williams <nathanw@wasabisystems.com>
1083
1084 * bsd-kvm.c (bsd_kvm_open): Open the KVM interface read-write if
1085 write_files is set.
1086
a6f0780a
EZ
10872006-06-24 Eli Zaretskii <eliz@gnu.org>
1088
1089 * defs.h (DIRNAME_SEPARATOR) [!__CYGWIN__ && _WIN32]: Define to `;'.
1090
e4c16157
DJ
10912006-06-23 Daniel Jacobowitz <dan@codesourcery.com>
1092
1093 * arm-tdep.c (arm_register_type): Use unsigned types for registers.
1094 Add special types for sp and pc.
1095 * Makefile.in (arm-tdep.o): Update.
1096
a31ea83d
DJ
10972006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
1098
1099 * remote.c (remote_escape_output): New function.
1100 (remote_write_bytes): Use remote_escape_output.
1101
be2a5f71
DJ
11022006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
1103
1104 * NEWS: Mention qSupported.
1105 * remote.c (struct remote_state): Add explicit_packet_size.
1106 (get_remote_packet_size): Check explicit_packet_size.
1107 (get_memory_packet_size): Likewise.
1108 (PACKET_qSupported): New enum value.
1109 (struct protocol_feature, remote_supported_packet)
1110 (remote_packet_size, remote_protocol_features)
1111 (remote_query_supported): New.
1112 (remote_open_1): Reset explicit_packet_size. Call
1113 remote_query_supported.
1114 (_initialize_remote): Register qSupported.
1115
42b575e5
AS
11162006-06-21 Andrew Stubbs <andrew.stubbs@st.com>
1117
1118 * cli/cli-script.c (realloc_body_list): Zero new parts of body_list.
1119
9ae03986
JB
11202006-06-20 Joel Brobecker <brobecker@adacore.com>
1121
1122 * GDB 6.5 released from GDB 6.5 branch.
1123
8b07f6d8
MS
11242006-06-19 Michael Snyder <msnyder@redhat.com>
1125
1126 * mips-tdep.c (mips_eabi_push_dummy_call): For 32 bit ABI, to
1127 decide how many registers it takes to pass a floating point
1128 argument, what matters is the size of a floating point register
1129 (not the size of a general purpose register).
1130 (mips_o32_push_dummy_call): Ditto.
1131
ec5a4d75
KI
11322006-06-19 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1133
1134 * configure.tgt: Add gdbserver support for m32r-linux.
1135
8d3239d5
MK
11362006-06-18 Mark Kettenis <kettenis@gnu.org>
1137
1138 * m68klinux-tdep.c (m68k_linux_init_abi): Fix typo in comment.
1139
14e60db5
DJ
11402006-06-15 Daniel Jacobowitz <dan@codesourcery.com>
1141
1142 * infrun.c (insert_step_resume_breakpoint_at_caller): New function,
1143 based on insert_step_resume_breakpoint_at_frame.
1144 (handle_inferior_event): Update comments. Use
1145 insert_step_resume_breakpoint_at_caller.
1146 (insert_step_resume_breakpoint_at_frame): Revise comments.
1147
81a17f79
JB
11482006-06-14 Daniel Jacobowitz <dan@codesourcery.com>
1149
1150 * dwarf2read.c (read_unspecified_type): New function.
1151 (read_type_die): Handle DW_TAG_unspecified_type.
1152 (Committed by Julian Brown.)
1153
6490cafe
DJ
11542006-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1155
1156 * symfile.c (load_command): Check for a changed executable before
1157 "load".
1158
22e47e37
FF
11592006-06-13 Fred Fish <fnf@specifix.com>
1160
1161 * mips-tdep.c (mips_find_long_section): New function.
1162 (mips_gdbarch_init): Use it to set long and pointer sizes.
1163
5600ea19
NS
11642006-06-13 Nathan Sidwell <nathan@codesourcery.com>
1165
1166 * remote-file.io.c (remote_fileio_func_system): Treat zero length
1167 string as NULL. Adjust for NULL pointer argument.
1168 * doc/gdb.texinfo (system): Document behaviour with zero length
1169 string.
1170
bb572ddd
DJ
11712006-06-12 Daniel Jacobowitz <dan@codesourcery.com>
1172
1173 * remote.c (set_remote_protocol_packet_cmd)
1174 (show_remote_protocol_packet_cmd): New prototypes.
1175 (remote_set_cmdlist, remote_show_cmdlist): Move higher.
1176 (struct packet_config): Make name and title const.
1177 (add_packet_config_cmd): Remove unnecessary arguments.
1178 (_initialize_remote): Update calls.
1179
98739726
DJ
11802006-06-10 Daniel Jacobowitz <dan@codesourcery.com>
1181
1182 * mingw-hdep.c (gdb_select): Always check for NULL fd sets
1183 before calling FD_ISSET. Correct check for exceptfds which
1184 previously tested writefds.
1185
2b949cb6
JB
11862006-06-09 Daniel Jacobowitz <dan@codesourcery.com>
1187 Julian Brown <julian@codesourcery.com>
1188
4a9d57ab 1189 * dwarf2read.c (partial_read_comp_unit_head): Accept version 3.
2b949cb6 1190
5b031165
JB
11912006-06-09 Julian Brown <julian@codesourcery.com>
1192
1193 * MAINTAINERS (Write After Approval): Add myself.
1194
b2d6f210
MS
11952006-06-08 Michael Snyder <msnyder@redhat.com>
1196
1197 * mips-tdep.c (fp_register_arg_p): Recognize floating point typedefs.
1198
1dd41f16
NS
11992006-06-08 Nathan Sidwell <nathan@codesourcery.com>
1200
6dd0fba6
NS
1201 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): New.
1202 (m68k_gdbarch_init): Set it for dwarf & dwarf2 reg number
1203 conversion. Use M68K_NUM_REGS for number of regs.
1204
ad9a8f3f
NS
1205 * remote-fileio.c (remote_fileio_reset): New.
1206 * remote-fileio.h (remote_fileio_reset): Prototype.
1207 * remote.c (extended_remote_restart, remote_open_1): Call it.
1208
1209 * remote.c (remote_open_1): Do preopen tasks before
1dd41f16
NS
1210 irreversably destroying state.
1211
ea9c271d
DJ
12122006-06-08 Daniel Jacobowitz <dan@codesourcery.com>
1213
719abd53 1214 * remote.c (struct remote_state): New type, only containing
ea9c271d
DJ
1215 buf and buf_size.
1216 (remote_state): New variable.
1217 (get_remote_state): New function.
1218 (struct remote_arch_state): Renamed from struct remote_state.
1219 Removed buf and buf_size.
1220 (get_remote_arch_state): Renamed from get_remote_state. All
1221 necessary callers updated to call this function.
1222 (init_remote_state): Initialize the architecture-specific state.
1223 Update the target-specific state if necessary.
1224 (get_remote_packet_size): New function. All previous references
1225 changed to use this accessor function.
1226 (packet_reg_from_regnum, packet_reg_from_pnum): Take a
1227 remote_arch_state instead of a remote_state. All callers changed.
1228 (_initialize_remote): Initialize the packet buffer here.
1229
5cffb350
NS
12302006-06-06 Nathan Sidwell <nathan@codesourcery.com>
1231
ea9c271d 1232 * remote.c (remote_insert_watchpoint): Return -1, rather than
5cffb350
NS
1233 fatal error if packet is disabled.
1234 (remote_remove_watchpoint, remote_insert_hw_breakpoint,
1235 remote_remove_hw_breakpoint): Likewise.
1236
8a786d82
NR
12372006-06-02 Nick Roberts <nickrob@snap.net.nz>
1238
1239 * breakpoint.c (print_it_typical): Use EXEC_ASYNC_LOCATION_REACHED.
1240
f49e4e6d
MS
12412006-05-31 Michael Snyder <msnyder@redhat.com>
1242
1243 * mips-tdep.c: Comment tweaks.
1244
20e95c23
DJ
12452006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
1246
1247 * Makefile.in (top_builddir): Update comments.
1248 (INTL_DIR, INTL_SRC): Delete.
1249 (INTL, INTL_DEPS, INTL_CFLAGS): Update.
1250 * acinclude.m4: Include new gettext macros.
1251 * configure.ac: Use ZW_GNU_GETTEXT_SISTER_DIR. Remove copied
1252 CATALOGS code.
1253 * aclocal.m4, configure: Regenerated.
1254
9308fc88
DJ
12552006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
1256
1257 * Makefile.in (arm-linux-nat.o): Update dependencies.
1258 * arm-linux-nat.c: Include "gdb_proc_service.h".
1259 (PTRACE_GET_THREAD_AREA): Define.
1260 (ps_get_thread_area): New function.
1261
46ea248b
AO
12622006-05-28 Alexandre Oliva <aoliva@redhat.com>
1263
1264 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
1265 DWARF2_FRAME_REG_SAVED_VAL_OFFSET and
1266 DWARF2_FRAME_REG_SAVED_VAL_EXP.
1267 * dwarf2-frame.c (execute_cfa_program): Handle val_offset,
1268 val_offset_sf and val_expression.
1269 (dwarf2_frame_prev_register): Handle the new reg rules.
1270 (dwarf2_frame_this_id): Use pc instead of function entry point.
1271
56c987f6
AO
12722006-05-28 Alexandre Oliva <aoliva@redhat.com>
1273
1274 * dwarf2-frame.c (struct dwarf2_cie): Add signal_frame field.
1275 (dwarf2_frame_sniffer): Use it.
1276 (decode_frame_entry_1): Set it according to augmentation "S".
1277
5648af48
JB
12782006-05-27 Joel Brobecker <brobecker@adacore.com>
1279
1280 From Peter Schauer <peterschauer@gmx.net>
1281 * m2-typeprint.c (m2_record_fields): Move variable declarations
1282 to the begining of the block.
1283
03a73f77
MM
12842006-05-23 Mark Mitchell <mark@codesourcery.com>
1285
1286 * mt-tdep.c (mt_register_name): Correct out-of-range logic to
1287 include additional registers.
1288
1289 * mt-tdep.c (mt_gdb_regnums): Add ZI2, ZQ2, Ichannel2,
1290 Iscramb2, Qscramb2, Qchannel2.
1291 (mt_register_name): Likewise.
1292 (mt_copro_register_type): Describe ZI2 and ZQ2.
1293
1294 * mt-tdep.c (mt_gdb_regnums): Define
1295 MT_COPRO_PSEUDOREG_MAC_REGNUM.
1296 (mt_register_name): Use it.
1297 (mt_copro_register_type): Likewise.
1298 (mt_register_type): Likewise.
1299 (mt_pseudo_register_read): Likewise. Read the MAC register, not
1300 the coprocessor register.
1301 (mt_pseudo_register_write): Likewise.
1302
2b3c8945
CF
13032006-05-21 Christopher Faylor <cgf@timesys.com>
1304
1305 * win32-nat.c (cygwin_exceptions): New variable.
1306 (handle_exception): Treat a cygwin exception like a normal exception if
1307 cygwin_exceptions is true.
1308 (_initialize_win32_nat): Add "set cygwin-exceptions" handler.
1309
f79daebb
GM
13102006-05-20 Gaius Mulley <gaius@glam.ac.uk>
1311
1312 * NEWS: (Improved Modula-2 language support): New section.
1313
b4e70030
JB
13142006-05-19 Joel Brobecker <brobecker@adacore.com>
1315
1316 * configure: Regenerate using proper version of autoconf.
1317
a1f5b845
FF
13182006-05-19 Fred Fish <fnf@specifix.com>
1319
1320 * Makefile.in: Fix spelling of 'explicitly' and 'explicit'.
1321 * dwarfread.c: Fix spelling of 'unexpected'.
1322 * mips-tdep.c: Fix spelling of 'possible' and 'Determine'.
1323 * stack.c: Fix spelling of 'RETURN_VALUE'.
1324
82d03102
PG
13252006-05-18 Paul Gilliam <pgilliam@us.ibm.com
1326
1327 * solib-svr4.c (enable_break): Breakup a long line into 3 shorter ones.
1328
f2da6b3a
DJ
13292006-05-17 Daniel Jacobowitz <dan@codesourcery.com>
1330
1331 * dwarf2-frame.c: Include "value.h".
1332 (read_reg): Use unpack_long and register_type.
1333 * Makefile.in (dwarf2-frame.o): Update.
1334
1f5befc1
DJ
13352006-05-17 Daniel Jacobowitz <dan@codesourcery.com>
1336
1337 * remote-rdp.c: Deleted.
1338 * NEWS: Mention removal of remote-rdp.c.
1339
1340 * Makefile.in (ALLDEPFILES): Remove remote-rdp.c.
1341 (remote-rdp.o): Delete.
1342 * README: Remove description of remote-rdp.c.
1343 * arm-tdep.c (arm_breakpoint_from_pc): Remove obsolete comment.
1344 * config/arm/embed.mt (TDEPFILES): Remove remote-rdp.o.
1345
cd96dfc9
DJ
13462006-05-16 Daniel Jacobowitz <dan@codesourcery.com>
1347
1348 * ser-e7kpc.c: Include <time.h> if it is available.
1349
13502006-05-16 Joel Brobecker <brobecker@adacore.com>
e374b601
JB
1351
1352 * version.in (version.in): Bump version number to 6.5.50 now
1353 that the gdb-6.5 branch has been created.
1354 * NEWS: Create a new section for changes that are included
1355 since gdb-6.5. Name the "since gdb-6.4" section as the "in gdb-6.5"
1356 section.
1357
13942a42
JB
13582006-05-16 Jim Blandy <jimb@codesourcery.com>
1359
1360 * MAINTAINERS (Authorized Committers): Gaius Mulley has accepted
1361 the Global Maintainers' invitation to be an authorized committer
1362 for the Modula-2 support.
1363
8599da2d
MK
13642006-05-15 Mark Kettenis <kettenis@gnu.org>
1365
1366 * ppcobsd-nat.c: Include "gdb_assert.h".
1367 [PT_GETFPREGS] (getfpregs_supplies): New function.
1368 (ppcobsd_fetch_registers, ppcobsd_fetch_registers): Hanlde OS
1369 versions that have PT_GETFPREGS.
1370 (_initialize_ppcobsd_nat) [PT_GETFPREGS]: Initialize
1371 ppcobsd_fpreg_offsets.
1372 * ppcobsd-tdep.h (ppcobsd_fpreg_offsets, ppcobsd_fpregset):
1373 Declare.
1374 * ppcobsd-tdep.c (ppcobsd_fpreg_offsets, ppcobsd_fpregset): New
1375 variables.
1376 (_initialize_ppcobsd_tdep): Initialize ppcobsd_fpreg_offsets.
1377 * Makefile.in (ppcobsd-nat.o): Update dependencies.
1378
4e8d927d
DJ
13792006-05-15 Daniel Jacobowitz <dan@codesourcery.com>
1380
1381 * configure.ac: Use GCC_HEADER_STDINT.
1382 * acinclude.m4: Include stdint.m4.
1383 * Makefile.in (gdb_stdint_h): Define.
1384 (distclean): Remove gdb_stdint.h.
1385 (Makefile, stamp-h): Update rules to generate only the correct
1386 files.
1387 (gdb_stdint.h, stamp-int): New rules.
1388 * config.in, configure: Regenerated.
1389
19ca80ba
DJ
13902006-05-15 Daniel Jacobowitz <dan@codesourcery.com>
1391
1392 * valprint.c: Include "exceptions.h".
1393 (val_print): If something goes wrong while printing, supply an
1394 error message.
1395
245c7f48
DJ
13962006-05-15 Peter O'Gorman <gdb-patches@mlists.thewrittenword.com>
1397
1398 * source.c (get_current_source_symtab_and_line)
1399 (set_current_source_symtab_and_line): Use { 0 }.
1400 * cli/cli-cmds.c (list_command): Likewise.
1401
53b33aeb
NR
14022006-05-14 Nick Roberts <nickrob@snap.net.nz>
1403
1404 * mi/gdb-mi.el (gdbmi-send): Correct regexp for repeat commands.
1405 (gdbmi): Use new variable name gdb-pc-address.
1406 (gdbmi-frame-handler): Use new variable name gdb-pc-address.
1407 Check that a match has been found.
1408
d3d3c7e6 14092006-05-13 Gaius Mulley <gaius@glam.ac.uk>
72019c9c 1410
d3d3c7e6 1411 * m2-lang.h: Added function extern prototypes for
229582b7 1412 m2_is_long_set and get_long_set_bounds.
d3d3c7e6
GM
1413 * m2-typeprint.c: Complete replacement.
1414 (m2_print_type): Walk the Modula-2 type tree.
1415 (m2_type_name): New function.
1416 (m2_range): New function.
1417 (m2_typedef): New function.
1418 (m2_array): New function.
1419 (m2_pointer): New function.
1420 (m2_ref): New function.
1421 (m2_unknown): New function.
1422 (m2_union): New function.
1423 (m2_procedure): New function.
1424 (m2_print_bounds): New function.
1425 (m2_short_set): New function.
1426 (m2_is_long_set): New function.
1427 (m2_get_discrete_bounds): New function.
1428 (m2_is_long_set_of_type): New function.
1429 (m2_long_set): New function.
1430 (m2_record_fields): New function.
1431 (m2_enum): New function.
1c547afb 1432 * dwarf2read.c: Modified.
d3d3c7e6
GM
1433 (read_set_type): New function.
1434 (process_die): Call read_set_type.
1c547afb 1435 (read_base_type): Modifed.
d3d3c7e6 1436 (set_cu_language): Added Modula-2 case clause.
1c547afb 1437 * m2-valprint.c: Complete replacement.
d3d3c7e6
GM
1438 (print_function_pointer_address): New function.
1439 (get_long_set_bounds): New function.
1440 (m2_print_long_set): New function.
1441 (print_unpacked_pointer): New function.
1442 (print_variable_at_address): New function.
1443 (m2_val_print): Replaced.
1444 * gdb/MAINTAINERS (Write After Approval): Added
1445 Gaius Mulley <gaius@glam.ac.uk>
72019c9c 1446
def18405
MK
14472006-05-12 Mark Kettenis <kettenis@gnu.org>
1448
1449 * ppcnbsd-tdep.h: Update copyright year. Include <stddef.h>
1450 (ppcnbsd_supply_reg, ppcnbsd_fill_reg, ppcnbsd_supply_fpreg)
1451 (ppcnbsd_fill_fpreg): Remove prototypes.
1452 (struct regset): Add forward declaration.
1453 (ppcnbsd_gregset, ppcnbsd_fpregset): Extern declarations.
1454 * ppcnbsd-tdep.c: Update copyright year. Include "gdbtypes.h",
1455 "regset.h" and "gdb_string.h". Don't include "breakpoint.h",
1456 "value.h", target.h and nbsd-tdep.h". Reorder includes.
1457 (REG_FIXREG_OFFSET, REG_LR_OFFSET, REG_CR_OFFSET, REG_XER_OFFSET)
1458 (REG_CTR_OFFSET, REG_PC_OFFSET, SIZEOF_STRUCT_REG)
1459 (FPREG_FPR_OFFSET, FPREG_FPSCR_OFFSET, SIZEOF_STRUCT_FPREG):
1460 Remove macros.
1461 (ppcnbsd_supply_reg, ppcnbsd_fill_reg, ppcnbsd_supply_fpreg)
1462 (ppcnbsd_fill_fpreg): Remove functions.
1463 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1464 (ppcnbsd_core_fns, ppcnbsd_elfcore_fns): Remove variables.
1465 (ppcnbsd_reg_offsets): New variable.
1466 (ppcnbsd_gregset, ppcnbsd_fpregset): New variables.
1467 (ppcnbsd_sigtramp_cache_init): Deal with new signal trampoline
1468 introduced in NetBSD 2.0.
1469 (ppcnbsd_sigtramp): Provide complete signal trampoline.
1470 (ppcnbsd2_sigtramp): New variable.
1471 (ppcnbsd_init_abi): Set svr4_fetch_link_map_offsets to
1472 svr4_ilp32_fetch_link_map_offsets. Set regset_from_core_section.
1473 Add ppcnbs2_sigtramp unwinder.
1474 (_initialize_ppcnbsd_tdep): Don't use deprecated_add_core_fns.
1475 Initialize ppcnbsd_reg_offsets.
1476 * ppcnbsd-nat.c: Update copyright year. Reorder includes.
1477 (getregs_supplies): Use regnum instead of regno.
1478 (getfpregs_supplies): Likewise.
1479 (ppcnbsd_fetch_inferior_registers): Likewise. Call
1480 ppc_supply_gregset and ppc_suppply_fpregset instead of
1481 ppcnbsd_supply_reg and ppcnbsd_supply_fpreg
1482 (ppcnbsd_store_inferior_registers): Likewise. Call
1483 ppc_collect_gregset and ppc_collect_fpregset instead of
1484 ppcnbsd_fill_reg and ppcnbsd_fill_fpreg.
1485 (ppcnbsd_supply_pcb): Use `gdb_byte *' instead of `char *'.
1486 (_initialize_ppcnbsd_nat): Add some whitespace.
1487 * Makefile.in (ppcnbsd-nat.o, ppcnbsd-tdep.o): Update dependencies.
1488 * config/powerpc/nbsd.mh (NATDEPFILES): Remove infptrace.o.
1489 (NAT_FILE): Remove.
1490 * config/powerpc/nbsd.mt (TDEPFILES): Remove nbsd-tdep.o.
1491
c4c50d37
DJ
14922006-05-11 Alfred M. Szmidt <ams@gnu.org>
1493
1494 * gnu-nat.c (inf_validate_procs): Don't use lvalue in assignments.
1495
576c2025
FF
14962006-05-11 Fred Fish <fnf@specifix.com>
1497
1498 * symtab.c (skip_prologue_using_sal): Handle single line functions
1499 like "foo(){}", which may optimize down to a single return inst.
1500
ba906c08
SE
15012006-05-10 Steve Ellcey <sje@cup.hp.com>
1502
1503 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Remove
1504 message.
1505
4bf8967c
AS
15062006-05-09 Andreas Schwab <schwab@suse.de>
1507
1508 * dwarf2-frame.c (struct dwarf2_fde): Add eh_frame_p.
1509 (execute_cfa_program): Add parameter eh_frame_p. Call
1510 dwarf2_frame_eh_frame_regnum when true.
1511 (dwarf2_frame_cache): Pass eh_frame_p from fde to
1512 execute_cfa_program.
1513 (decode_frame_entry_1): Call dwarf2_frame_eh_frame_regnum when
1514 processing .eh_frame. Copy eh_frame_p to the new fde.
1515 (struct dwarf2_frame_ops): Add eh_frame_regnum.
1516 (dwarf2_frame_set_eh_frame_regnum): Define.
1517 (dwarf2_frame_eh_frame_regnum): Define.
1518
1519 * dwarf2-frame.h (dwarf2_frame_set_eh_frame_regnum): Declare.
1520 (dwarf2_frame_eh_frame_regnum): Declare.
1521
55e969c1
DM
15222006-05-06 David S. Miller <davem@sunset.davemloft.net>
1523
1524 * linux-nat.c (linux_nat_do_thread_registers): Check for
1525 NULL collect_regset method.
1526
92f38ec2
UW
15272006-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1528
1529 * s390-tdep.c (s390_collect_regset): New function.
1530 (s390_gregset, s390x_gregset, s390_fpregset): Add it.
1531
6fed56b4
NR
15322006-05-06 Nick Roberts <nickrob@snap.net.nz>
1533
1534 * dwarf2read.c: Make LOC_OPTIMIZED_OUT the default value for a
1535 symbol.
1536
6fc19103
UW
15372006-05-05 Ulrich Weigand <uweigand@de.ibm.com>
1538
1539 * linux-nat.c (exit_lwp): Fix NULL pointer access.
1540 (linux_nat_handle_extended): New parameter STOPPING.
1541 (wait_lwp): Call it with STOPPING equals 1.
1542 (linux_nat_wait): Call it with STOPPING equals 0.
1543
d539ed7e
UW
15442006-05-05 Ulrich Weigand <uweigand@de.ibm.com>
1545
1546 * linux-nat.c (linux_nat_wait): Do not short-cut reporting
1547 of 'uninteresting' signals when single-stepping.
1548
49101e1c
DJ
15492006-05-05 Daniel Jacobowitz <dan@codesourcery.com>
1550
1551 * MAINTAINERS: Move NEWS to the documentation entry.
1552
4f844a66
DM
15532006-05-05 David S. Miller <davem@sunset.davemloft.net>
1554
1555 * linux-nat.c (linux_nat_do_thread_registers): Use the
1556 regset_from_core_section infrastructure if the target
1557 supports it.
1558 * Makefile.in: Update dependencies.
bcc98f88
DM
1559 * linux-thread-db.c (thread_db_store_registers): Use
1560 regcache_raw_collect.
4f844a66 1561
411cb3f9
PG
15622006-05-05: Paul Gilliam <pgilliam@us.ibm.com>
1563
1564 * ppc-linux-nat.c: Clean up types for ptrace.
1565 Replace (CORE_ADDR) with (uintptr_t) to avoid the size difference
1566 between a CORE_ADDR and a void* on ppc64 systems compiled for 32-bits.
1567
597320e7
DJ
15682006-05-05 Daniel Jacobowitz <dan@codesourcery.com>
1569
1570 * remote.c (remote_disconnect): Add TARGET argument.
1571 * target.c (debug_to_disconnect): Delete.
1572 (update_current_target): Do not inherit to_disconnect.
1573 (target_disconnect): Search for a target to implement to_disconnect.
1574 (setup_target_debug): Do not reference to_disconnect.
1575 * target.h (struct target_ops): Add target argument to
1576 to_disconnect.
1577
401835eb
FF
15782006-05-06 Fred Fish <fnf@specifix.com>
1579
1580 * mips-tdep.c (mips_o64_push_dummy_call): Left shift big endian
1581 structs or unions independent of ABI register size.
1582
7a076fd2
FF
15832006-05-06 Fred Fish <fnf@specifix.com>
1584
1585 * mips-tdep.c (mips_o64_return_value): Replace stub that always
1586 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
1587
eec01795
DJ
15882006-05-05 Daniel Jacobowitz <dan@codesourcery.com>
1589
1590 * mi/mi-main.c (captured_mi_execute_command): Check the return
1591 value of -interpreter-exec.
1592
14b3d9c9
JB
15932006-05-03 Vladimir Prus <ghost@cs.msu.su>
1594
411cb3f9
PG
1595 * varobj.c (c_value_of_variable): Ignore top-level references.
1596 (Committed by Jim Blandy.)
14b3d9c9 1597
1893a4c0
MK
15982006-04-30 Mark Kettenis <kettenis@gnu.org>
1599
1600 * breakpoint.c (insert_single_step_breakpoint): Make a failure to
1601 insert a single-step breakpoint an error instead of a warning.
1602
21f79b33
NW
16032006-05-01 Nathan J. Williams <nathanw@wasabisystems.com>
1604
1605 * ppcnbsd-tdep.c (ppcnbsd_return_value): Change type of last two
1606 arguments from void * to gdb_byte *.
1607
b8db102d
MS
16082006-04-26 Michael Snyder <msnyder@redhat.com>
1609
1610 * linux-fork.c (_initialize_linux_fork): Rename "delete-fork"
1611 command to "delete fork" (no hyphen), compatible with other
1612 "delete" commands.
1613 (info_forks_command): Accept a fork ID argument, for info
1614 on a single fork. Report if no matching forks.
1615
bc0c849e
MK
16162006-04-25 Mark Kettenis <kettenis@gnu.org>
1617
1893a4c0
MK
1618 * breakpoint.c (remove_single_step_breakpoints): Bail out early if
1619 no breakpoints are inserted.
1620
bc0c849e
MK
1621 From Masaki MURANAKA <monaka@monami-software.com>:
1622 * mips-mdebug-tdep.c (mips_mdebug_frame_prev_register): Change
1623 type of last argument to `gdb_byte *'
1624
5f1fb6dc
JB
16252006-04-25 Jim Blandy <jimb@codesourcery.com>
1626
1627 Add support for 'target remote |' on MinGW.
1628 * ser-mingw.c (struct pipe_state): New structure.
1629 (make_pipe_state, free_pipe_state, cleanup_pipe_state)
1630 (pipe_windows_open, pipe_windows_close, pipe_windows_read)
1631 (pipe_windows_write, pipe_wait_handle): New functions.
1632 (_initialize_ser_windows): Register a "pipe" interface based on
1633 them.
1634
c3e2b812
DJ
16352006-04-24 Daniel Jacobowitz <dan@codesourcery.com>
1636
1637 * ser-mingw.c: Include <conio.h>.
1638 (struct ser_console_state, struct net_windows_state): Add exit_select,
1639 have_stopped, thread.
1640 (pipe_select_thread, console_select_thread)
1641 (net_windows_select_thread): Don't create a local state copy or
1642 close stop_select. Exit on exit_select instead of stop_select. Set
1643 have_stopped.
1644 (console_select_thread): Don't report control keypresses as pending
1645 input.
1646 (pipe_select_thread): Allow stop_select to interrupt sleeping.
1647 (set_console_wait_handle): Create exit_select and have_stopped.
1648 Save the thread handle. Check _kbhit before starting a thread.
1649 (ser_console_done_wait_handle): New.
1650 (ser_console_close): Close new handles. Wait for the thread to
1651 exit.
1652 (new_windows_select_thread): Assert that an event occurred.
1653 (net_windows_wait_handle): Check for pending input before starting
1654 a thread.
1655 (net_windows_done_wait_handle): New.
1656 (net_windows_open): Create exit_select and have_stopped.
1657 Save the thread handle.
1658 (net_windows_close): Close new handles. Wait for the thread to
1659 exit.
1660 (_intiialize_ser_windows): Register done_wait_handle methods.
1661
1662 * serial.c [USE_WIN32API] (serial_done_wait_handle): New.
1663 * serial.h [USE_WIN32API] (struct serial_ops): Add done_wait_handle.
1664 [USE_WIN32API] (serial_done_wait_handle): New prototype.
1665 * mingw-hdep.c (gdb_select): Use serial_done_wait_handle.
1666
b8eb021a
AS
16672006-04-23 Andreas Schwab <schwab@suse.de>
1668
1669 * rs6000-tdep.c: Include "reggroups.h" only once.
1670 * Makefile.in (rs6000-tdep.o): Update dependencies.
1671
4f1520fb
FR
16722006-04-21 Frederic Riss <frederic.riss@st.com>
1673
1674 * dwarf2read.c (dwarf2_start_subfile): Change prototype to accept
1675 compilation directory as last argument.
1676 Always pass comp_dir as second argument to start_subfile and prepend
1677 dirname to the filename when necessary.
1678 Remove now superfluous search for pre-existing subfile.
1679 (dwarf_decode_lines): Pass the compilation directory to
1680 dwarf2_start_subfile.
1681
0271fba4
MS
16822006-04-20 Michael Snyder <msnyder@redhat.com>
1683
1684 * 2006-03-22 Jim Blandy <jimb@redhat.com>
1685 Add support for the Renesas M32C and M16C.
1686
1687 * configure.tgt (m32c-*-*): New entry.
1688 * config/m32c/m32c.mt: New file.
1689 * m32c-tdep.c: New file.
1690 * Makefile.in (elf_m32c_h): New variable.
1691 (m32c-tdep.o): New rule.
1692 * NEWS: Mention new target.
1693 * MAINTAINERS: Designate Jim Blandy as responsible maintainer.
1694
cfde0993
MS
16952006-04-20 Michael Snyder <msnyder@redhat.com>
1696
1697 * remote.c: Fix spelling error in comment.
1698
cba5fab9
DJ
16992006-04-20 Daniel Jacobowitz <dan@codesourcery.com>
1700
1701 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_prev_register):
1702 Correct type of VALUEP. Reported by Jean-Rene Peulve
1703 <jr.peulve@wanadoo.fr>.
1704
cbba9205
KI
17052006-04-19 Masaki Muranaka <monaka@monami-software.com>
1706
1707 * m32r-rom.c: On MinGW, include winsock.h instead of sys/types.h,
1708 netdb.h, netinet/in.h.
1709 (m32r_upload_command); Add calls WSAStartup().
1710 * remote-m32r-sdi.c: On MinGW, include winsock.h instead of
1711 netinet/in.h.
1712
8181d85f
DJ
17132006-04-18 Daniel Jacobowitz <dan@codesourcery.com>
1714
1715 * breakpoint.c (deprecated_read_memory_nobpt): Update to use
1716 shadow_len.
1717 (insert_bp_location, reattach_breakpoints, remove_breakpoint)
1718 (delete_breakpoint): Update calls to changed methods.
1719 (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
1720 (single_step_breakpoints, insert_single_step_breakpoint)
1721 (remove_single_step_breakpoints): New.
1722 * breakpoint.h (struct bp_target_info): New.
1723 (struct bp_location): Replace shadow_contents with
1724 target_info and overlay_target_info.
1725 (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
1726 (insert_single_step_breakpoint, remove_single_step_breakpoints): New
1727 prototypes.
1728 * gdbarch.sh: Forward declare struct bp_target_info in gdbarch.h.
1729 (memory_insert_breakpoint, memory_remove_breakpoint): Update second
1730 argument.
1731 * mem-break.c (default_memory_insert_breakpoint): Update. Set
1732 placed_address, placed_size, and shadow_len.
1733 (default_memory_remove_breakpoint): Update. Don't use
1734 BREAKPOINT_FROM_PC.
1735 (memory_insert_breakpoint, memory_remove_breakpoint): Update.
1736 * target.c (update_current_target): Update prototypes for changed
1737 functions.
1738 (debug_to_insert_breakpoint, debug_to_remove_breakpoint)
1739 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint):
1740 Update.
1741 * target.h: Forward declare struct bp_target_info.
1742 (struct target_ops): Use a bp_target_info argument for
1743 to_insert_breakpoint, to_remove_breakpoint,
1744 to_insert_hw_breakpoint, and to_remove_hw_breakpoint.
1745 (target_insert_breakpoint, target_remove_breakpoint)
1746 (target_insert_hw_breakpoint, target_remove_hw_breakpoint)
1747 (memory_insert_breakpoint, memory_remove_breakpoint)
1748 (default_memory_insert_breakpoint, default_memory_remove_breakpoint):
1749 Update.
1750 * config/i386/nm-i386.h: Forward declare struct bp_target_info.
1751 (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): Update.
1752 (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Likewise.
1753
1754 * gdbarch.c, gdbarch.h: Regenerated.
1755
1756 * alpha-tdep.c (alpha_software_single_step): Use
1757 insert_single_step_breakpoint and remove_single_step_breakpoints.
1758 Remove unused statics.
1759 * arm-tdep.c (arm_software_single_step): Likewise. Add a note.
1760 * cris-tdep.c (cris_software_single_step): Likewise.
1761 * mips-tdep.c (mips_software_single_step): Likewise.
1762 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
1763 * sparc-tdep.c (sparc_software_single_step): Likewise.
1764 * wince.c (struct thread_info_struct): Remove step_prev.
1765 (undoSStep): Use remove_single_step_breakpoints.
1766 (wince_software_single_step): Use insert_single_step_breakpoint.
1767
1768 * corelow.c (ignore): Remove unneeded prototype. Update arguments.
1769 * exec.c (ignore): Likewise.
1770 * sol-thread.c (ignore): Likewise.
1771
1772 * procfs.c (dbx_link_shadow_contents): Delete.
1773 (dbx_link_bpt): New.
1774 (procfs_mourn_inferior): Remove it if necessary.
1775 (remove_dbx_link_breakpoint): Use it.
1776 (insert_dbx_link_bpt_in_file): Set it.
1777 (procfs_init_inferior): Don't update dbx_link_bpt_addr.
1778 * rs6000-nat.c (exec_one_dummy_insn): Use
1779 deprecated_insert_raw_breakpoint and
1780 deprecated_remove_raw_breakpoint.
1781 * solib-irix.c (shadow_contents, breakpoint_addr): Delete.
1782 (base_breakpoint): New.
1783 (disable_break): Use it.
1784 (enable_break): Set it.
1785
1786 * i386-nat.c (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint):
1787 Update.
1788 * ia64-tdep.c (ia64_memory_insert_breakpoint)
1789 (ia64_memory_remove_breakpoint): Likewise.
1790 * m32r-tdep.c (m32r_memory_insert_breakpoint)
1791 (m32r_memory_remove_breakpoint): Likewise.
1792 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
1793 Likewise. Remove unnecessary prototypes. Use placed_address
1794 and placed_size. Removed useless read from memory.
1795 * nto-procfs.c (procfs_insert_breakpoint)
1796 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
1797 (procfs_remove_hw_breakpoint): Update.
1798 * ocd.c (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
1799 * ocd.h (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
1800 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1801 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Likewise.
1802 * remote-e7000.c (e7000_insert_breakpoint)
1803 (e7000_remove_breakpoint): Likewise.
1804 * remote-m32r-sdi.c (m32r_insert_breakpoint)
1805 (m32r_remove_breakpoint): Likewise.
1806 * remote-mips.c (mips_insert_breakpoint)
1807 (mips_remove_breakpoint): Likewise.
1808 * remote-rdp.c (remote_rdp_insert_breakpoint)
1809 (remote_rdp_remove_breakpoint): Likewise.
1810 (rdp_step): Use deprecated_insert_raw_breakpoint and
1811 deprecated_remove_raw_breakpoint.
1812 * remote-sds.c (sds_insert_breakpoint, sds_remove_breakpoint):
1813 Update.
1814 * remote-sim.c (gdbsim_insert_breakpoint, gdbsim_remove_breakpoint):
1815 Delete.
1816 (init_gdbsim_ops): Use memory_insert_breakpoint and
1817 memory_remove_breakpoint.
1818 * remote-st.c (st2000_insert_breakpoint)
1819 (st2000_remove_breakpoint): Update. Remove unused
1820 BREAKPOINT_FROM_PC.
1821 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
1822 Update. Use placed_address and placed_size.
1823 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Likewise.
1824
01d3a6ce
DJ
18252006-04-12 Daniel Jacobowitz <dan@codesourcery.com>
1826
1827 * remote.c (extended_remote_restart): Pass the correct length
1828 to getpkt.
1829
2821caf1
JB
18302006-04-11 Jim Blandy <jimb@codesourcery.com>
1831
1832 * serial.c (serial_open): Check for special cases at the front of
1833 the "device" name before scanning for the ':' that would indicate
1834 an IP-based connection.
1835
02c5aecd
CF
18362006-04-10 Christopher Faylor <cgf@timesys.com>
1837
1838 * win32-nat.c (open_symbol_file_object): New function.
1839 (in_dynsym_resolve_code): Ditto.
1840 (init_win32_ops): Fill in fields which ought not to be NULL.
1841
cb832706
CF
18422006-04-10 Christopher Faylor <cgf@timesys.com>
1843
1844 * win32-nat.c (do_win32_fetch_inferior_registers): Don't do anything
1845 with saved context if __COPY_CONTEXT_SIZE is not defined.
1846 (handle_output_debug_string): Ditto.
1847
03926e1f
DJ
18482006-04-10 Daniel Jacobowitz <dan@codesourcery.com>
1849
1850 * arm-linux-tdep.c (arm_linux_extract_return_value): Use gdb_byte.
1851
b2a0b9b2
DM
18522006-04-09 David S. Miller <davem@sunset.davemloft.net>
1853
1854 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Append dwarf2
1855 frame sniffer.
1856 * sparc-tdep.c (sparc32_gdbarch_init): Make sure to call
1857 dwarf2_frame_set_init_reg() before gdbarch_init_osabi() so
1858 that the latter can override.
1859 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1860
ee1b3323
UW
18612006-04-09 Ulrich Weigand <uweigand@de.ibm.com>
1862
1863 * s390-tdep.c (struct s390_prologue_data): New field 'stack'.
1864 (s390_store): Call pv_area_store to track stack slots.
1865 (s390_load): Call pv_area_fetch to track stack slots.
1866 (s390_check_for_saved): New function.
1867 (s390_analyze_prologue): Call pv_area_scan. Allocate and free stack.
1868
3fc46200
UW
18692006-04-09 Ulrich Weigand <uweigand@de.ibm.com>
1870
1871 * Makefile.in (s390-tdep.o): Add dependency on $(prologue_value_h).
1872 * s390-tdep.c: Include "prologue-value.h".
1873 (struct prologue_value): Remove.
1874 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1875 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1876 pv_logical_and, pv_is_identical, pv_is_register): Remove.
1877 (compute_x_addr): Remove, replace by ...
1878 (s390_addr): ... this new function.
1879 (struct s390_prologue_data): Use pv_t instead of prologue_value.
1880 (s390_store, s390_load): Likewise.
1881 (s390_prologue_frame_unwind_cache): Likewise.
1882 (s390_analyze_prologue): Likewise. Also, simplify and combine
1883 several conditional statements.
1884
d750b939
JB
18852006-04-08 Jim Blandy <jimb@codesourcery.com>
1886
1887 * Makefile.in (COMMON_OBS): List prologue-value.o. (Omitted from
1888 last patch.)
1889
0b4294d3
DM
18902006-04-08 David S. Miller <davem@sunset.davemloft.net>
1891
1892 * sparc-linux-tdep.c (sparc32_linux_step_trap): New.
1893 (sparc32_linux_init_abi): Hook it into tdep->step_trap.
07c5f590
DM
1894 (sparc32_linux_core_gregset,
1895 sparc32_linux_supply_core_gregset,
1896 sparc32_linux_collect_core_gregset,
1897 sparc32_linux_supply_core_fpregset,
1898 sparc32_linux_collect_core_fpregset): New.
1899 (sparc32_linux_init_abi): Register them with generic sparc
1900 core regset infrastructure.
0b4294d3
DM
1901 * sparc64-linux-tdep.c (sparc64_linux_step_trap): New.
1902 (sparc64_linux_init_abi): Hook it into tdep->step_trap.
07c5f590
DM
1903 (sparc64_linux_core_gregset,
1904 sparc64_linux_supply_core_gregset,
1905 sparc64_linux_collect_core_gregset,
1906 sparc64_linux_supply_core_fpregset,
1907 sparc64_linux_collect_core_fpregset): New.
1908 (sparc64_linux_init_abi): Register them with generic sparc
1909 core regset infrastructure.
0b4294d3
DM
1910 * Makefile.in: Update dependencies.
1911
9c0dd46b
DM
19122006-04-07 David S. Miller <davem@sunset.davemloft.net>
1913
1914 * linux-nat.c (linux_nat_thread_alive): Handle targets that
1915 do not implement PTRACE_PEEKUSER.
1916
670aa98f
DJ
19172006-04-07 Daniel Jacobowitz <dan@codesourcery.com>
1918
1919 * remote.c (remote_wait): Convert warning to error before
1920 parsing corrupt packets.
1921
e28493f2
AS
19222006-04-07 Andrew Stubbs <andrew.stubbs@st.com>
1923
1924 * cli/cli-script.c (struct user_args): Add command field.
1925 (arg_cleanup): Free command string.
1926 (setup_user_args): Copy the command line before relying on it.
1927
7f198e01
JB
19282006-04-06 Joel Brobecker <brobecker@adacore.com>
1929
1930 * breakpoint.c (_initialize_breakpoint): Add "del" as an alias
1931 of the "delete" command.
1932
c9f7217e
RC
19332006-04-06 Randolph Chung <tausq@debian.org>
1934
1935 * MAINTAINERS (Patch champions): Add myself.
1936
d993720d
AS
19372006-04-05 Andreas Schwab <schwab@suse.de>
1938
1939 * Makefile.in: Update dependencies.
1940
f5a9b87d
DM
19412006-04-05 David S. Miller <davem@sunset.davemloft.net>
1942
1943 * sparc-tdep.c (sparc32_dwarf2_frame_init_reg): New.
1944 (sparc32_gdbarch_init): Pass it to dwarf2_frame_set_init_reg.
1945 * Makefile.in (sparc-tdep.o): Update dependencies.
80f9e3aa
DM
1946 * sparc-linux-tdep.c (sparc32_linux_sigframe_init): Pull register
1947 window out of the correct stack frame.
1948 * sparc64-linux-tdep.c (sparc64_linux_sigframe_init): Likewise.
aff37fc1
DM
1949 * dwarf2-frame.c (dwarf2_frame_ops init_reg): Add "next_frame"
1950 argument.
1951 (dwarf2_frame_default_init_reg): Likewise.
1952 (dwarf2_frame_set_init_reg): Update init_reg arg.
1953 (dwarf2_frame_init_reg): Take "next_frame" and pass it to
1954 ops->init_reg().
1955 (dwarf2_frame_cache): Pass next_frame to dwarf2_frame_init_reg.
1956 * dwarf2-frame.h (dwarf2-frame_set_init_reg): Update declaration.
1957 * cris-tdep.c (cris_dwarf2_frame_init_reg): Add next_frame arg.
1958 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
1959 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
1960 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
1961 * sparc-tdep.c (sparc32_struct_return_from_sym): New function.
1962 (sparc32_frame_cache): Call it.
1963 (sparc32_dwarf2_struct_return_p): New function.
1964 (sparc_dwarf2_frame_init_reg): Use it to determine if the function
1965 returns a structure and thus we have to indicate the return PC and
1966 NPC are 4 bytes later than usual.
faea95b1
DM
1967 * sparc-linux-tdep.c (sparc32_linux_init_abi): Append
1968 dwarf2 frame sniffer.
1969 * Makefile.in (sparc-linux-tdep.o): Update dependencies.
f5a9b87d 1970
75e192e6
DM
19712006-04-04 David S. Miller <davem@davemloft.net>
1972
1973 * config/linux.mh (NATDEPFILES): Remove sparc-sol2-nat.o
1974 * config/linux64.h (NATDEPFILES): Likewise
1975 * sparc-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
1976 fill_fpregset): New.
1977 * sparc64-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
1978 fill_fpregset): New.
0a59b3af
DM
1979 * Makefile.in (sparc-linux-nat.o, sparc64-linux-nat.o): Update for
1980 new includes.
1981
dbcd679b
AS
19822006-04-04 Andreas Schwab <schwab@suse.de>
1983
1984 * Makefile.in (elf_common_h): Define.
1985
357d3800
AS
19862006-04-03 Andrew Stubbs <andrew.stubbs@st.com>
1987
1988 * sh-tdep.c (sh_dwarf2_frame_init_reg): New function.
1989 (sh_gdbarch_init): Call dwarf2_frame_set_init_reg().
1990
d3c139e9
AS
19912006-03-31 Andrew Stubbs <andrew.stubbs@st.com>
1992
1993 * value.h (struct internalvar): Add field 'endian'.
1994 * value.c (lookup_internalvar): Initialise endian.
1995 (value_of_internalvar): Flip the endian of built-in types if required.
1996 (set_internalvar): Set the endian.
1997 (show_convenience): Access the value through value_of_internalvar().
1998
bb858e6a
DJ
19992006-03-30 Vladimir Prus <ghost@cs.msu.su>
2000
2001 * remote.c (watchpoint_to_Z_packet): Use values of Z_packet_type enum
2002 instead of hardcoded integer literals.
2003
61d9b92f
DJ
20042006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
2005
2006 * cli/cli-script.c (insert_args): Handle NULL user_args.
2007
f7060f85
DJ
20082006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
2009
2010 * arm-tdep.c (thumb_scan_prologue): Don't try to analyze
2011 the function at zero if we have no symbols.
2012
295bf0ff
DJ
20132006-03-30 Adrien Kunysz <a_kunysz@yahoo.com>
2014
2015 * i386-stub.c (getpacket): Fix array overflow.
2016 * m32r-stub.c (getpacket): Likewise.
2017 * m68k-stub.c (getpacket): Likewise.
2018 * sh-stub.c (getpacket): Likewise.
2019 * sparc-stub.c (getpacket): Likewise.
2020
7abfe014
DJ
20212006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
2022
2023 * frame.h (set_current_sal_from_frame): New prototype.
2024 * stack.c (set_current_sal_from_frame): Make global.
2025 * infrun.c (normal_stop): Call set_current_sal_from_frame.
2026
0ec9a092
DJ
20272006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
2028
2029 * linux-thread-db.c: Include "linux-nat.h".
2030 (check_for_thread_db): New function, split out from
2031 thread_db_new_objfile. Remove dead check for active
2032 thread_db on inapplicable targets.
2033 (thread_db_new_objfile): Call check_for_thread_db.
2034 * Makefile.in (linux-thread-db.o): Update.
2035 * linux-nat.c (child_post_attach): Call check_for_thread_db.
2036 (linux_child_post_startup_inferior): Likewise.
2037 (lin_lwp_attach_lwp): Call target_post_attach instead of
2038 child_post_attach.
2039 * linux-nat.h (check_for_thread_db): New prototype.
2040
6d820c5c
DJ
20412006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
2042
2043 * remote.c (struct remote_state): Add BUF and BUF_SIZE.
2044 (init_remote_state): Initialize the new fields.
2045 (get_memory_packet_size): Update BUF and BUF_SIZE if necessary.
2046 (set_thread, remote_thread_alive, remote_unpack_thread_info_response)
2047 (remote_get_threadinfo, parse_threadlist_response)
2048 (remote_get_threadlist, remote_current_thread, remote_threads_info)
2049 (remote_threads_extra_info, extended_remote_restart, get_offsets)
2050 (remote_check_symbols, remote_open_1, remote_detach)
2051 (remove_vcont_probe, remote_vcont_resume, remote_resume)
2052 (remote_wait, remote_async_wait, fetch_register_using_p)
2053 (remote_fetch_registers, store_register_using_P)
2054 (remote_store_registers, check_binary_download, remote_write_bytes)
2055 (remote_read_bytes, remote_insert_breakpoint)
2056 (remote_remove_breakpoint, remote_insert_watchpoint)
2057 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
2058 (remote_remove_hw_breakpoint, compare_sections_command)
2059 (remote_xfer_partial, remote_rcmd, packet_command)
2060 (remote_get_thread_local_address): Use the global incoming buffer
2061 instead of alloca or xmalloc. Limit outgoing packets to
2062 rs->remote_packet_size and incoming packets to rs->buf_size.
2063 Update calls to getpkt and remote_send.
2064 (remote_send): Take arguments by reference.
2065 (putpkt_binary): Eliminate junkbuf. Use skip_frame.
2066 (skip_frame): New function.
2067 (read_frame): Take arguments by reference. Expand the packet
2068 buffer instead of issuing an error.
2069 (getpkt, getpkt_sane): Take arguments by reference.
2070 * remote.h (getpkt): Update prototype and doc.
2071 * tracepoint.c (remote_get_noisy_reply): Take arguments by
2072 reference.
2073 (target_buf): Change from array to pointer.
2074 (target_buf_size): New variable.
2075 (remote_set_transparent_ranges): Update call to getpkt.
2076 (trace_start_command, trace_stop_command, trace_status_command):
2077 Update calls to remote_get_noisy_reply.
2078 (finish_tfind_command): Take arguments by reference.
2079 (trace_find_command, trace_find_pc_command)
2080 (trace_find_tracepoint_command, trace_find_line_command):
2081 (trace_find_range_command, trace_find_outside_command): Update
2082 calls to finish_tfind_command.
2083 (_initialize_tracepoint): Initialize target_buf_size and target_buf.
2084
3d8dcac6
RC
20852005-03-30 Randolph Chung <tausq@debian.org>
2086
2087 * hppa-linux-tdep.c: Include regset.h.
2088 (GR_REGNUM, TR_REGNUM, greg_map): New.
2089 (hppa_linux_supply_regset, hppa_linux_supply_fpregset): New.
2090 (hppa_linux_regset, hppa_linux_fpregset): New.
2091 (hppa_linux_regset_from_core_section): New.
2092 (hppa_linux_init_abi): Set regset_from_core_section.
2093 (_initialize_hppa_linux_tdep): Register osabi handler for
2094 64-bit Linux.
2095 * Makefile.in (hppa-linux-tdep.o): Update dependencies.
2096 * config/pa/linux.mh: Stop using core-regset.o
2097
29d375ac
RC
20982006-03-30 Randolph Chung <tausq@debian.org>
2099
2100 * hppa-tdep.c (hppa_find_unwind_entry_in_block): New.
2101 (hppa_frame_cache): Use new function to find unwind entry.
2102 (hppa_frame_this_id): Likewise.
2103 (hppa_frame_unwind_sniffer): Likewise.
2104
f4267320
DJ
21052006-03-29 Daniel Jacobowitz <dan@codesourcery.com>
2106
2107 * NEWS: Mention the removal of NLM.
2108
21092006-03-29 Steve Ellcey <sje@cup.hp.com>
2110
2111 * Makefile.in (nlm): Remove target.
2112 * configure.tgt (i[34567]86-*-netware*): Do not set build_nlm.
2113 * configure.ac: Remove AC_CONFIG_SUBDIRS of nlm.
2114 * configure: Regenerate.
2115 * doc/gdb.texinfo: Remove gdbserve.nlm documentation.
2116 * nlm: Remove directory.
2117
698ba934
DJ
21182006-03-29 Daniel Jacobowitz <dan@codesourcery.com>
2119
2120 * Makefile.in (utils.o): Update.
2121 * top.c (in_user_command): New.
2122 (command_line_input): Use input_from_terminal_p.
2123 (input_from_terminal_p): Don't check caution. Handle
2124 stdin == NULL for Insight.
2125 * top.h (in_user_command, caution): New declarations.
2126 * utils.c: Include "top.h".
2127 (query, defaulted_query): Check caution here. Move the call
2128 to input_from_terminal_p higher.
2129 * cli/cli-script.c (do_restore_user_call_depth): Only decrement
2130 the depth. Update in_user_command if necessary.
2131 (execute_user_command): Don't clobber old_chain. Set
2132 in_user_command. Let do_restore_user_call_depth handle
2133 user_call_depth.
2134 (read_command_lines): Check whether to prompt before calling
2135 Insight hooks.
2136 * tui/tui-hooks.c (tui_query_hook): Remove newly unnecessary
2137 input_from_terminal_p check.
2138
2f00de94
UW
21392006-03-29 Ulrich Weigand <uweigand@de.ibm.com>
2140
2141 * s390-nat.c (s390_insert_watchpoint): Add missing argument.
2142 (s390_remove_watchpoint): Likewise.
2143
7d30c22d
JB
21442006-03-28 Jim Blandy <jimb@codesourcery.com>
2145
2146 * prologue-value.c, prologue-value.h: New files.
2147 * Makefile.in (prologue_value_h): New variable.
2148 (HFILES_NO_SRCDIR): List prologue-value.h.
2149 (SFILES): List prologue-value.c.
2150 (COMMON_OBS): List prologue-value.o.
2151 (prologue-value.o): New rule.
2152
05c6a9a1
MS
21532006-03-27 Michael Snyder <msnyder@redhat.com>
2154
2155 * xstormy16-tdep.c (xstormy16_return_value, xstormy16_push_dummy_call,
2156 xstormy16_pointer_to_address, xstormy16_address_to_pointer,
2157 xstormy16_frame_prev_register): Change void* to gdb_byte*.
2158 (xstormy16_push_dummy_call): Add block-local char* val,
2159 to avoid type conflict with outer scope variable.
2160
4e6cbc38
AS
21612006-03-27 Andrew Stubbs <andrew.stubbs@st.com>
2162
2163 * sh-tdep.c (sh_gdbarch_init): Add missing architectures.
2164
75483fbe
NR
21652006-03-27 Nick Roberts <nickrob@snap.net.nz>
2166
2167 * varobj.c (c_name_of_child, c_value_of_child): Allow non-zero
2168 offsets for languages like Fortran.
2169
97ce3a05
RC
21702006-03-26 Randolph Chung <tausq@debian.org>
2171
2172 * config/pa/hppa64.mt: Use HPUX version of the tm file.
2173
be85b69f
NR
21742006-03-25 Nick Roberts <nickrob@snap.net.nz>
2175
2176 * mi/gdb-mi.el (gdbmi-send): Improve regexp to repeat commands.
2177 Try to deal with continuation line.
2178 (gdbmi, gdbmi-prompt1, gud-gdbmi-marker-filter): Update to new
2179 variable names.
2180 (gdb-break-list-regexp, gdb-stack-list-frames-regexp):
2181 Future proof against new fields being added to MI output.
2182 (gdbmi-prompt2, gdb-break-list-handler,gdb-get-source-file)
2183 (gdbmi-frame-handler): Update to new variable name
2184 gdb-get-buffer-create.
2185 (gdbmi-frame-handler): Use hollow-right-triangle for all selected
2186 frames which except the innermost (where execution has stopped).
2187
7fc4b1a1
RC
21882006-03-24 Randolph Chung <tausq@debian.org>
2189
2190 * solib-som.c (link_map_start): Don't error out if there is
2191 not yet a link map.
2192
f973ed9c
DJ
21932006-03-24 Daniel Jacobowitz <dan@codesourcery.com>
2194
2195 * linux-nat.c (linux_ops_saved): New.
2196 (super_mourn_inferior, kill_inferior, threaded, linux_nat_ops)
2197 (child_mourn_inferior, child_wait, linux_nat_create_inferior)
2198 (linux_nat_fetch_registers, linux_nat_store_registers)
2199 (linux_nat_child_post_startup_inferior, init_linux_nat_ops): Delete.
2200 (init_lwp_list): Don't set threaded.
2201 (add_lwp): Don't modify threaded.
2202 (delete_lwp): Don't mention non-threaded mode.
2203 (linux_nat_switch_fork): New.
2204 (linux_nat_attach): Update inferior_ptid.
2205 (linux_nat_wait): Handle num_lwps == 0 at entry. Don't check
2206 threaded flag.
2207 (linux_nat_kill): Handle pending forks and saved forks.
2208 (linux_nat_mourn_inferior): Handle saved forks.
2209 (linux_nat_pid_to_str): Don't use the LWP form when there is
2210 only one thread.
2211 (linux_target): Don't set to_wait, to_kill, or to_mourn_inferior.
2212 (linux_nat_add_target): New.
2213 (_initialize_linux_nat): Don't initialize the linux native target
2214 here.
2215 * linux-nat.h (linux_nat_add_target, linux_nat_switch_fork): New
2216 prototypes.
2217 * linux-fork.c: Include "linux-nat.h".
2218 (add_fork): Update initial PID.
2219 (fork_load_infrun_state): Call linux_nat_switch_fork.
2220 * Makefile.in (linux-fork.o): Update.
2221
2222 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
2223 linux_nat_add_target instead of add_target.
2224 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Likewise.
2225 * arm-linux-nat.c (_initialize_arm_linux_nat): Likewise.
2226 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Likewise.
2227 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Likewise.
2228 * i386-linux-nat.c (_initialize_i386_linux_nat): Likewise.
2229 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Likewise.
2230 * m68klinux-nat.c (_initialize_m68k_linux_nat): Likewise.
2231 * mips-linux-nat.c (_initialize_mips_linux_nat): Likewise.
2232 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Likewise.
2233 * s390-nat.c (_initialize_s390_nat): Likewise.
2234 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Likewise.
2235 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Likewise.
2236
791b663b
DJ
22372006-03-24 Daniel Jacobowitz <dan@codesourcery.com>
2238
2239 * linux-fork.c: Include "gdb_assert.h".
2240 (fork_load_infrun_state): Set inferior_ptid and stop_pc here.
2241 Update the register cache and selected frame also.
2242 (linux_fork_mourn_inferior): Use fork_load_infrun_state. Return
2243 to single fork mode if necessary.
2244 (linux_fork_context): Remove bits handled by fork_load_infrun_state.
2245 * Makefile.in (linux_fork_h): New.
2246 (linux-fork.o, linux-nat.o): Update.
2247
d311d956
AS
22482006-03-23 Andreas Schwab <schwab@suse.de>
2249
2250 * config/s390/s390.mh (NATDEPFILES): Add linux-fork.o.
2251
a849c9ab
JB
22522006-03-18 Jim Blandy <jimb@codesourcery.com>
2253
2254 * symtab.h (enum address_class): Doc fix.
2255
cf913f37
MS
22562006-03-16 Michael Snyder <msnyder@redhat.com>
2257
712e3020 2258 * tracepoint.c (tracepoint_save_command): Fix typo in error msg.
88c231eb 2259 * target.c (push_target): Fix typo in comment.
94e08568 2260 * remote.c (remote_watch_data_address): Fix typo in comment.
cf913f37
MS
2261 * i386-tdep.c (i386_push_dummy_call): Fix typo in comment.
2262
7c699b81
KB
22632006-03-15 Kevin Buettner <kevinb@redhat.com>
2264
2265 * frv-linux-tdep.c (gdbcore.h, regcache.h, regset.h, gdb_string.h):
2266 Include.
2267 (FRV_ELF_NGREG, FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR, FRV_PT_CCCR)
2268 (FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0, FRV_PT_GNER1)
2269 (FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR, FRV_PT_TBR)
2270 (FRV_PT_EXEC_FDPIC_LOADMAP, FRV_PT_INTERP_FDPIC_LOADMAP): Define.
2271 (frv_elf_greg_t, frv_elf_gregset_t, frv_elf_fpreg_t)
2272 (frv_elf_fpregset_t): Define types.
2273 (frv_linux_supply_gregset, frv_linux_supply_fpregset)
2274 (frv_linux_regset_from_core_section: New functions.
2275 (frv_linux_gregset, frv_linux_fpregset): New static globals.
2276 (frv_linux_init_abi): Register the `regset_from_core_section' method.
2277 * Makefile.in (frv-linux-tdep.o): Update dependencies.
2278 * solib-frv.c (frv_current_sos): Relocate main executable after
2279 loading core file.
2280 (frv_clear_solib): Clean up space associated with
2281 `main_executable_lm_info'.
2282 * config/frv/frv.mt (TDEPFILES): Add corelow.o to this list.
2283
d37eb719
DJ
22842006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
2285
2286 * Makefile.in (mips_linux_tdep_h): New.
2287 (mpis-linux-nat.o, mips-linux-tdep.o): Update.
2288 * mips-linux-nat.c: Include "inferior.h", "mips-linux-tdep.h", and
2289 <sys/ptrace.h>.
2290 (have_ptrace_regsets, super_fetch_registers, super_store_registers)
2291 (mips64_linux_regsets_fetch_registers)
2292 (mips64_linux_regsets_store_registers, mips64_linux_fetch_registers)
2293 (mips64_linux_store_registers): New.
2294 (_initialize_mips_linux_nat): Override to_fetch_registers and
2295 to_store_registers.
2296 * mips-linux-tdep.h: New file.
2297 * mips-linux-tdep.c: Include "mips-linux-tdep.c".
2298 (ELF_NGREG, ELF_NFPREG, elf_greg_t, elf_gregset_t, elf_fpreg_t)
2299 (elf_fpregset_t, FPR_BASE, PC, CAUSE, BADVADDR, MMHI, MMLO)
2300 (FPC_CSR, FPC_EIR, EF_REG0, EF_REG31, EF_LO, EF_HI, EF_CP0_EPC)
2301 (EF_CP0_BADVADDR, EF_CP0_STATUS, EF_CP0_CAUSE, EF_SIZE)
2302 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, mips64_elf_greg_t)
2303 (mips64_elf_gregset_t, mips64_elf_fpreg_t, mips64_elf_fpregset_t)
2304 (MIPS64_FPR_BASE, MIPS64_PC, MIPS64_CAUSE, MIPS64_BADVADDR)
2305 (MIPS64_MMHI, MIPS64_MMLO, MIPS64_FPC_CSR, MIPS64_FPC_EIR)
2306 (MIPS64_EF_REG0, MIPS64_EF_REG31, MIPS64_EF_LO, MIPS64_EF_HI)
2307 (MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR, MIPS64_EF_CP0_STATUS)
2308 (MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE): Delete.
2309 (supply_32bit_reg): Use gdb_byte.
2310 (supply_64bit_reg): New.
2311 (mips_supply_gregset, mips_fill_gregset, mips_supply_fpregset)
2312 (mips_fill_fpregset, fetch_core_registers, supply_gregset)
2313 (fill_gregset, supply_fpregset): Update for renamed types.
2314 (mips64_supply_gregset): Use gdb_byte and supply_64bit_reg.
2315 (mips64_fill_gregset): Make global. Handle 32-bit register
2316 sizes.
2317 (mips64_fill_fpregset): Make global. Use gdb_byte. Handle
2318 FP regsets properly.
2319
9f62d0e2
DJ
23202006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
2321
2322 * mips-linux-tdep.c (mips_supply_gregset): Renamed from supply_gregset.
2323 (mips_fill_gregset): Renamed from fill_gregset.
2324 (mips_supply_fpregset): Renamed from supply_fpregset.
2325 (mips_fill_fpregset): Renamed from fill_fpregset.
2326 (fetch_core_registers): Update calls.
2327 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): New
2328 functions.
2329
26c53e50
DJ
23302006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
2331
2332 * mips-tdep.c (mips_gdbarch_init): Default 64-bit ELF files to N64.
2333
5b652102
DJ
23342006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
2335
2336 * mips-tdep.c (is_mips16_addr, mips32_next_pc, add_offset_16):
2337 Correct arithmetic for 64-bit CORE_ADDR.
2338
d05f6826
DJ
23392006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
2340
2341 * mips-linux-tdep.c: Include "floatformat.h".
2342 (mips_linux_init_abi): Use 128-bit long double for N32 and N64.
0a407ead
DJ
2343 * mips-tdep.c (mips_n32n64_return_value): Support 128-bit long
2344 double.
d05f6826
DJ
2345 (print_gp_register_row): Don't print spaces before ignored
2346 or floating point registers.
6367c6b1 2347 * Makefile.in (mips-linux-tdep.o): Update.
d05f6826 2348
3e5af19e
DJ
23492006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
2350
2351 * mips-mdebug-tdep.c (compare_pdr_entries): Use bfd_get_signed_32
2352 for code addresses.
2353 (non_heuristic_proc_desc): Likewise.
2354
dc60ece8
DJ
23552006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
2356
2357 * mips-linux-nat.c: Include "gdb_proc_service.h".
2358 (PTRACE_GET_THREAD_AREA): Define.
2359 (ps_get_thread_area): New.
2360 * Makefile.in (mips-linux-nat.o): Update.
2361
2f83030f
JB
23622006-03-13 Jim Blandy <jimb@codesourcery.com>
2363
2364 * MAINTAINERS: Use my work address.
2365
56aac7e8 23662006-03-09 Michael Snyder <msnyder@redhat.com>
a9877905 2367
56aac7e8
MS
2368 * linux-nat.c (kill_inferior): Just call target_mourn_inferior
2369 instead of getting tricky for the multi-fork case.
2370 * linux-fork.c (linux_fork_killall): Call PT_KILL and waitpid
2371 for each fork, and then use init_fork_list to delete them.
a9877905 2372
831004b7
AO
23732006-03-08 Alexandre Oliva <aoliva@redhat.com>
2374
2375 * solib-svr4.c (svr4_current_sos): Move up initialization of
2376 l_addr, such that it clearly covers all cases.
2377
f1b4b38e
AS
23782006-03-08 Andreas Schwab <schwab@suse.de>
2379
2380 * ia64-tdep.c (ia64_libunwind_frame_this_id): Adapt use of
2381 libunwind_frame_prev_register to use a gdb_byte buffer and
2382 extract_unsigned_integer.
2383 (ia64_libunwind_sigtramp_frame_prev_register): Likewise.
2384
2385 * libunwind-frame.c (libunwind_frame_prev_register): Change type
2386 of last argument to `gdb_byte *'
2387 * libunwind-frame.h: Adjust declaration.
2388
f53f0d0b
PB
23892006-03-08 Paul Brook <paul@codesourcery.com>
2390
2391 * arm-tdep.c (arm_push_dummy_call): Remove stack alignment.
2392 (arm_frame_align): New function.
2393 (arm_gdbarch_init): Use it.
2394
b67fd56f
AC
23952006-03-03 Khem Raj <khem@mvista.com>
2396
2397 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Use gdb_byte.
2398 Committed by Andrew Cagney.
2399
a64ae7e0
CV
24002006-03-02 Corinna Vinschen <vinschen@redhat.com>
2401
2402 * mn10300-tdep.c (mn10300_push_dummy_call): Write breakpoint
2403 address to MDR register.
2404
9733fc94
DJ
24052006-03-01 Daniel Jacobowitz <dan@codesourcery.com>
2406
2407 * gdbtypes.c (lookup_struct_elt_type): Correct noerr for recursive
2408 calls.
2409
4897bfb9
RC
24102006-03-01 Randolph Chung <tausq@debian.org>
2411
2412 * somread.c (som_symfile_read): Update comment and remove unneeded
2413 use of a deprecated variable.
2414
6fcecea0
RC
24152006-03-01 Randolph Chung <tausq@debian.org>
2416
2417 * hppa-tdep.h (unwind_table_entry): Update field names to match HP
2418 runtime specification.
2419 * hppa-tdep.c (internalize_unwinds, hppa_frame_cache): Likewise.
2420 (unwind_command): Likewise.
2421
46acf081
RC
24222006-03-01 Randolph Chung <tausq@debian.org>
2423
2424 * hppa-tdep.c (hppa_frame_cache): Handle Region_Description and
2425 Pseudo_SP_Set in unwind record.
2426
477e69e8
RC
24272006-03-01 Randolph Chung <tausq@debian.org>
2428
2429 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Use
2430 TDEP->is_elf to determine if we are working with a SOM binary.
2431 (null_symtab_and_line): Remove unused variable.
2432 * config/pa/hppa64.mt: Use tm-hppa.h.
2433 * config/pa/tm-hppa64.h: Remove file.
2434
848359ac
WZ
24352006-03-01 Wu Zhou <woodzltc@cn.ibm.com>
2436
2437 * f-typeprint.c (f_type_print_base): Delete the redundant space.
2438
f9ec92b6
KB
24392006-02-28 Kevin Buettner <kevinb@redhat.com>
2440
2441 * Makefile.in (mn10300-linux-tdep.o): Update dependencies.
2442 * mn10300-linux-tdep.c (frame.h, trad-frame.h, tramp-frame.h):
2443 Include.
2444 (am33_linux_sigframe_cache_init): New function.
2445 (am33_linux_sigframe, am33_linux_rt_sigframe): New signal frame
2446 descriptions.
2447 (AM33_SIGCONTEXT_D0, AM33_SIGCONTEXT_D1, AM33_SIGCONTEXT_D2)
2448 (AM33_SIGCONTEXT_D3, AM33_SIGCONTEXT_A0, AM33_SIGCONTEXT_A1)
2449 (AM33_SIGCONTEXT_A2, AM33_SIGCONTEXT_A3, AM33_SIGCONTEXT_E0)
2450 (AM33_SIGCONTEXT_E1, AM33_SIGCONTEXT_E2, AM33_SIGCONTEXT_E3)
2451 (AM33_SIGCONTEXT_E4, AM33_SIGCONTEXT_E5, AM33_SIGCONTEXT_E6)
2452 (AM33_SIGCONTEXT_E7, AM33_SIGCONTEXT_LAR, AM33_SIGCONTEXT_LIR)
2453 (AM33_SIGCONTEXT_MDR, AM33_SIGCONTEXT_MCVF, AM33_SIGCONTEXT_MCRL)
2454 (AM33_SIGCONTEXT_MCRH, AM33_SIGCONTEXT_MDRQ, AM33_SIGCONTEXT_SP)
2455 (AM33_SIGCONTEXT_EPSW, AM33_SIGCONTEXT_PC, AM33_SIGCONTEXT_FPUCONTEXT):
2456 New constants.
2457 (am33_linux_init_osabi): Register signal frame unwinders.
2458
e92e42f5
KB
24592006-02-28 Kevin Buettner <kevinb@redhat.com>
2460
2461 * mn10300-tdep.c (mn10300_analyze_prologue): Implement backtrack
2462 out of pattern match by saving relevant state. Fix stack size
2463 adjustment bug.
2464
cc10cae3
AO
24652006-02-28 Alexandre Oliva <aoliva@redhat.com>
2466
2467 * solib-svr4.h (struct link_map_offsets): Add l_ld_offset and
2468 l_ld_size fields.
2469 * solib-svr4.c (struct lm_info): Add l_addr field.
2470 (LM_ADDR_FROM_LINK_MAP): Renamed from LM_ADDR.
2471 (HAS_LM_DYNAMIC_FROM_LINK_MAP): New.
2472 (LM_DYNAMIC_FROM_LINK_MAP): New.
2473 (LM_ADDR_CHECK): New. Use it instead of LM_ADDR.
2474 (svr4_current_sos): Initialize l_addr. Adjust.
2475 (svr4_relocate_section_addresses): Adjust.
2476 (svr4_ilp32_fetch_link_map_offsets): Define new members.
2477 (svr4_lp64_fetch_link_map_offsets): Likewise.
2478 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
2479 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Likewise.
2480 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
2481 * Makefile.in (solib-svr4.o): Depend on $(elf_bfd_h).
2482
691342f9
DM
24832006-02-26 David S. Miller <davem@sunset.davemloft.net>
2484
2485 * config/sparc/linux.mt (TDEPFILES): Add sol2-tdep.o.
2486 * config/sparc/linux64.mt (TDEPFILES): Likewise.
2487
2c387241
AM
24882006-02-27 Alan Modra <amodra@bigpond.net.au>
2489
2490 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Correct return type.
2491 (ppc_linux_remove_watchpoint): Likewise, and args.
2492
3597fb82
MK
24932006-02-26 Mark Kettenis <kettenis@gnu.org>
2494
2495 * i386obsd-tdep.c (i386obsd_trapframe_sniffer): Also recognize
2496 "soft" interrupts.
2497
637d6690
CW
24982006-02-24 Charles Wilson <cygwin@cwilson.fastmail.fm>
2499
2500 * gdb/defs.h: unconditionally include <fcntl.h>, and
2501 ensure that O_BINARY is defined.
2502 * gdb/solib.c(solib_open): ensure solib files are opened in
2503 binary mode.
2504 * gdb/corelow.c: Remove O_BINARY macro definition.
2505 * gdb/exec.c: Remove O_BINARY macro definition
2506 * gdb/remote-rdp.c: Remove O_BINARY macro definition
2507 * gdb/source.c: Remove O_BINARY macro definition
2508 * gdb/symfile.c: Remove O_BINARY macro definition
2509
9846e541
RC
25102006-02-24 Randolph Chung <tausq@debian.org>
2511
2512 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Initialize
2513 argreg.
2514 * solib-som.c (som_solib_remove_inferior_hook): Remove unused
2515 function.
2516
2a5e440c
WZ
25172006-02-24 Wu Zhou <woodzltc@cn.ibm.com>
2518
2519 * f-exp.y: Symbol '%' is not used as the modulus operator in
2520 Fortran. Delete this from Fortran expression.
2521 It is now used by Fortran 90 and later to access the member
2522 of derived type. Add this into Fortran expression.
2523 * f-valprint.c (f_val_print): Add code to handle TYPE_CODE_STRUCT.
2524 Print each elements in the derived type.
2525 * f-typeprint.c (print_equivalent_f77_float_type): Add a parameter
2526 level into the function definition to do indented printing. And
2527 call fprintfi_filtered instead to do indented printing.
2528 (f_type_print_base): Replace fprintf_filtered with the indented
2529 version (fprintfi_filtered).
2530 (f_type_print_base): Call indented print_equivalent_f77_float_type.
2531 (f_type_print_base): Add code to handle TYPE_CODE_STRUCT. Print
2532 the definition of the derived type.
2533
92128691
DJ
25342006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
2535
2536 * gdb_curses.h: Provide a fallback prototype for tgetnum.
2537
a6205f53
DJ
25382006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
2539
2540 * doublest.h: Conditionalize DOUBLEST on PRINTF_HAS_LONG_DOUBLE
2541 also.
2542 (DOUBLEST_FORMAT): Rename to DOUBLEST_PRINT_FORMAT.
2543 (DOUBLEST_SCAN_FORMAT): New.
2544 * ada-lex.l (PRINTF_HAS_LONG_DOUBLE): Remove redefinitions.
2545 (processReal): Use DOUBLEST_SCAN_FORMAT.
2546 * c-exp.y (parse_number): Likewise.
2547 * jv-exp.y (parse_number): Likewise.
2548 * objc-exp.y (parse_number): Likewise.
2549 * p-exp.y (parse_number): Likewise.
2550
0f0b8dcd
DJ
25512006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
2552
2553 * event-top.c (async_do_nothing, async_disconnect)
2554 (async_stop_sig, async_float_handler): Remove duplicated
2555 prototypes.
2556 (handle_sighup): Guard prototype with SIGHUP.
2557 (async_do_nothing): Guard function and prototype with
2558 SIGQUIT || SIGHUP.
2559 (async_disconnect): Guard prototype with SIGHUP.
2560 (async_stop_sig): Guard prototype with STOP_SIGNAL.
2561
4e91d01c
DJ
25622006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
2563
2564 * maint.c (maintenance_dump_me): Remove unnecessary prototype.
2565
1e0600be
DJ
25662006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
2567
2568 * win32-termcap.c (tputs): Return 0.
2569
094a342e
MK
25702006-02-21 Mark Kettenis <kettenis@gnu.org>
2571
2572 * configure.ac: Introduce ---enable-werror, which adds -Werror to
2573 the compiler command line. Enabled by default. Disable with
2574 --disable-werror.
2575 * configure regenerate.
2576
74763737
DJ
25772006-02-21 Daniel Jacobowitz <dan@codesourcery.com>
2578
2579 * elfread.c (elf_symtab_read): Skip symbols which BFD considers
2580 special.
2581
13d35ae5
AS
25822006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
2583
2584 * defs.h (directory_switch): Add prototype.
2585 * main.c (captured_main): Use directory_switch() instead of
2586 directory_command() to add directories from the -d switch.
2587 * source.c (directory_switch): New function.
2588 (add_path): Use buildargv() to parse spaces in filenames properly.
2589 Strip multiple trailing '/' rather than just one.
2590
5b96932b
AS
25912006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
2592
2593 * symfile.c (add_symbol_file_command): Use buildargv(), instead of
2594 hand decoding the command line, to allow use of quotes and spaces.
2595 (_initialize_symfile): Reorganize the help message for add-symbol-file
2596 such that 'help files' shows a better message.
2597
a6b0a3f3
AS
25982006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
2599
2600 * sh-tdep.c (sh_generic_show_regs): Reformat both code and output.
2601 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs): Likewise.
2602 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs): Likewise.
2603 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs): Likewise.
2604
17fbb0bd
DJ
26052006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
2606
2607 * linux-nat.c (lin_thread_get_thread_signals): Default to __SIGRTMIN
2608 and __SIGRTMIN + 1.
2609
444abaca
DJ
26102006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
2611
2612 * remote.c: Add an enumeration for configurable remote
2613 packets.
2614 (remote_protocol_packets, set_remote_protocol_packet_cmd)
2615 (show_remote_protocol_packet_cmd): New.
2616 (remote_protocol_vcont)
2617 (set_remote_protocol_vcont_packet_cmd)
2618 (show_remote_protocol_vcont_packet_cmd)
2619 (remote_protocol_qSymbol)
2620 (set_remote_protocol_qSymbol_packet_cmd)
2621 (show_remote_protocol_qSymbol_packet_cmd)
2622 (remote_protocol_P, set_remote_protocol_P_packet_cmd)
2623 (show_remote_protocol_P_packet_cmd)
2624 (remote_protocol_Z)
2625 (set_remote_protocol_Z_software_bp_packet_cmd)
2626 (show_remote_protocol_Z_software_bp_packet_cmd)
2627 (set_remote_protocol_Z_hardware_bp_packet_cmd)
2628 (show_remote_protocol_Z_hardware_bp_packet_cmd)
2629 (set_remote_protocol_Z_write_wp_packet_cmd)
2630 (show_remote_protocol_Z_write_wp_packet_cmd)
2631 (set_remote_protocol_Z_read_wp_packet_cmd)
2632 (show_remote_protocol_Z_read_wp_packet_cmd)
2633 (set_remote_protocol_Z_access_wp_packet_cmd)
2634 (show_remote_protocol_Z_access_wp_packet_cmd)
2635 (remote_protocol_binary_download)
2636 (set_remote_protocol_binary_download_cmd)
2637 (show_remote_protocol_binary_download_cmd)
2638 (remote_protocol_qPart_auxv)
2639 (set_remote_protocol_qPart_auxv_packet_cmd)
2640 (show_remote_protocol_qPart_auxv_packet_cmd)
2641 (remote_protocol_qGetTLSAddr)
2642 (set_remote_protocol_qGetTLSAddr_packet_cmd)
2643 (show_remote_protocol_qGetTLSAddr_packet_cmd)
2644 (remote_protocol_p)
2645 (set_remote_protocol_p_packet_cmd)
2646 (show_remote_protocol_p_packet_cmd): Delete.
2647
2648 (init_all_packet_configs): Simplify.
2649 (set_remote_protocol_Z_packet_cmd)
2650 (show_remote_protocol_Z_packet_cmd)
2651 (remote_check_symbols, remote_vcont_probe, remote_vcont_resume)
2652 (remote_fetch_registers, remote_prepare_to_store)
2653 (remote_store_registers, check_binary_download)
2654 (remote_write_bytes, remote_insert_breakpoint)
2655 (remote_remove_breakpoint, remote_insert_watchpoint)
2656 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
2657 (remote_remove_hw_breakpoint, remote_xfer_partial)
2658 (remote_get_thread_local_address): Update for packet array.
2659 (_initialize_remote): Likewise; also update for common
2660 set/show commands.
2661
3bd72c6f
DJ
26622006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
2663
2664 * symfile.c (place_section): Correct retry logic.
2665
a244bdca
CF
26662006-02-19 Christopher Faylor <cgf@timesys.com>
2667
2668 * win32_nat.c (cygwin_load_start): New variable.
2669 (cygwin_load_end): Ditto.
2670 (have_saved_context): Ditto.
2671 (saved_context): Ditto.
2672 (max_dll_name_len): Delete obsolete variable.
2673 (do_win32_fetch_inferior_registers): Use context saved from cygwin1.dll
2674 if we are in a cygwin signal rather than a windows signal.
2675 (solib_symbols_add): Detect and store beginning and end of cygwin DLL
2676 if dll being loaded is the cygwin DLL.
2677 (register_loaded_dll): Remove calculation of max_dll_name_len.
2678 (win32_clear_solib): Ditto.
2679 (handle_load_dll): Delete obsolete variable. Remove unneeded call to
2680 solib_add.
2681 (handle_output_debug_string): Detect and store signal information sent
2682 by Cygwin here.
2683 (handle_exception): Silently pass on errors in the cygwin DLL. Return
2684 -1 on first pass exception.
2685 (win32_continue): Remove spurious clearing of continue_status.
2686 (get_win32_debug_event): Deal differently first chance exception.
2687
806e23c0
RC
26882006-02-19 Randolph Chung <tausq@debian.org>
2689
2690 * hppa-tdep.c (hppa_in_solib_call_trampoline): Only use if no
2691 unwind entry.
2692
d843c49c
FF
26932006-02-16 Fred Fish <fnf@specifix.com>
2694
2695 * eval.c (evaluate_subexp_standard): For OP_TYPE, return
2696 a non lval value zero, of the appropriate type, when avoiding
2697 side effects.
2698 * typeprint.c (ptype_eval): Remove function and declaration.
2699 (ptype_command): Simplify to just a call to whatis_exp.
2700
1c5bada0
PB
27012006-02-15 Paul Brook <paul@codesourcery.com>
2702
2703 * arm-tdep.c (arm_skip_prologue, thumb_get_next_pc, arm_get_next_pc):
2704 Load insn opcodes as unsigned values.
2705
96c1eda2
AO
27062006-02-14 Alexandre Oliva <aoliva@redhat.com>
2707
2708 * doublest.h (DOUBLEST): Use long double only if we can scan
2709 it in. Undefine HAVE_LONG_DOUBLE otherwise.
2710 (DOUBLEST_FORMAT): New.
2711 * c-exp.y (parse_number): Use it.
2712 * jv-exp.y (parse_number): Likewise.
2713 * objc-exp.y (parse_number): Likewise.
2714 * p-exp.y (parse_number): Likewise.
2715 * varobj.c (free_variable): Silence type-punning warnings.
2716 * tui/tui-data.h (struct tui_list): Change type of list member.
2717 * tui/tui-data.c: Remove no-longer-needed type casts.
2718 (source_windows): Silence type-punning warnings.
2719 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Likewise.
2720
92dd43fa
MK
27212006-02-13 Mark Kettenis <kettenis@gnu.org>
2722
2723 Fix PR breakpoints/2080.
2724 * i386-tdep.c (struct i386_frame_cache): Add stack_align member.
2725 (i386_analyze_stack_align): New function.
2726 (i386_analyze_prologue): Use i386_analyze_stack_align.
2727 (i386_frame_cache): Deal with stack realignment.
2728
7314787a
NR
27292006-02-14 Nick Roberts <nickrob@snap.net.nz>
2730
2731 * mi/gdb-mi.el: Use more functions from gdb-ui.el.
2732 (gdb-break-list-regexp): Match "what" field if present.
be85b69f 2733 (gdb-stack-list-frames-regexp): Match "from" field if present.
7314787a
NR
2734 (gdb-stack-list-frames-handler): Present output like "info
2735 breakpoints" so regexps can be shared with gdb-ui
2736
0ea3f30e
DJ
27372006-02-10 Daniel Jacobowitz <dan@codesourcery.com>
2738
2739 * NEWS: Mention native Windows support.
2740 * Makefile.in (gdb_select_h, ser_tcp_h): New.
2741 (ALLDEPFILES): Add ser-mingw.c.
2742 (event-loop.o, inflow.o, mingw-hdep.o, posix-hdep.o, ser-base.o)
2743 (ser-tcp.o, ser-unix.o): Update.
2744 (ser-mingw.o): New rule.
2745 * configure: Regenerated.
2746 * configure.ac: Add ser-mingw.o for mingw32.
2747 * ser-mingw.c: New file.
2748 * event-loop.c: Include "gdb_select.h".
2749 (gdb_select): Remove, moved to mingw-hdep.c and posix-hdep.c.
2750 * ser-base.c: Include "gdb_select.h".
2751 (ser_base_wait_for): Use gdb_select.
2752 * serial.c (serial_for_fd): New function.
2753 (serial_fdopen): Try "terminal" before "hardwire". Initialize
2754 the allocated struct serial.
2755 (serial_wait_handle): New function.
2756 * serial.h (serial_for_fd, serial_wait_handle): New prototypes.
2757 (struct serial_ops) [USE_WIN32API]: Add wait_handle.
2758 * gdb_select.h: New file.
2759 * ser-tcp.c: Include "ser-tcp.h". Remove unused "ser-unix.h" include.
2760 (net_close, net_read_prim, net_write_prim): Make global.
2761 (net_open): Likewise. Pass an exception set to select. Whitespace fix.
2762 Document why we can not use gdb_select.
2763 (_initialize_ser_tcp) [USE_WIN32API]: Do not register TCP support here.
2764 * ser-tcp.h: New file.
2765 * inflow.c (gdb_has_a_terminal): Don't initialize stdin_serial here.
2766 (handle_sigio): Use gdb_select.
2767 (initialize_stdin_serial): New function.
2768 * terminal.h (initialize_stdin_serial): New prototype.
2769 * top.c (gdb_init): Call initialize_stdin_serial.
2770 * mingw-hdep.c (gdb_select): New function, moved from gdb_select in
2771 event-loop.c. Add exception condition support. Use serial_for_fd
2772 and serial_wait_handle. Fix timeout handling.
2773 * posix-hdep.c: Include "gdb_select.h".
2774 (gdb_select): New function.
2775 * remote-st.c (connect_command): Use gdb_select.
2776 * ser-unix.c: Include "gdb_select.h".
2777 (hardwire_send_break, wait_for): Use gdb_select.
2778
121ce6e5
DJ
27792006-02-10 Daniel Jacobowitz <dan@codesourcery.com>
2780
2781 * Makefile.in (mingw-hdep.o, posix-hdep.o): New dependencies.
2782 (ALLDEPFILES): Add mingw-hdep.c and posix-hdep.c.
2783 * configure.ac: Add gdb_host_obs to CONFIG_OBS. Set gdb_host_obs
2784 to posix-hdep.o by default.
2785 * configure: Regenerated.
2786 * configure.host: Document gdb_host_obs. Add an entry for
2787 i[34567]86-*-mingw32*.
2788 * mingw-hdep.c, posix-hdep.c: New files.
2789 * utils.c (safe_strerror): Remove, moved to posix-hdep.o.
2790
1f82754b
JB
27912006-02-10 Joel Brobecker <brobecker@adacore.com>
2792
2793 * defs.h (gdb_osabi): New enum value GDB_OSABI_AIX.
2794 * osabi.c (gdb_osabi_name): Add name of new value GDB_OSABI_AIX.
2795 * rs6000-tdep.h: New file.
2796 * rs6000-tdep.c: Include "rs6000-tdep.h".
2797 (rs6000_gdbarch_init): Remove enabling of software single step.
2798 Will be done in the AIX-specific initialization routine.
2799 * rs6000-aix-tdep.c: New file.
2800 * config/powerpc/aix.mt (TDEPFILES): Add rs6000-aix-tdep.o.
2801 * Makefile.in (rs6000_tdep_h): New variable.
2802 (rs6000-tdep.o): Update dependencies.
2803 (rs6000-aix-tdep.o): New rule.
2804
577b7047
JB
28052006-02-10 Joel Brobecker <brobecker@adacore.com>
2806
2807 * aix-thread.c (_initialize_aix_thread): Use add_setshow_boolean_cmd
2808 instead of add_setshow_zinteger_cmd to defined the aix-thread
2809 boolean setting.
2810
ff800d76
NR
28112006-02-10 Nick Roberts <nickrob@snap.net.nz>
2812
2813 * mi/gdb-mi.el: Update to reflect changes in Emacs 22.0.50.
2814
5afb4e99
DJ
28152006-02-09 Daniel Jacobowitz <dan@codesourcery.com>
2816
2817 * dwarf2read.c (struct dwarf2_per_cu_data): Reduce length to
2818 30 bits. Add load_all_dies flag.
2819 (load_partial_dies): Load all DIEs if per_cu->load_all_dies is set.
2820 Load DW_TAG_member by default. Remove internal_error call.
2821 (find_partial_die): Reload the compilation unit if we can not find
2822 a DIE in the cache. Call internal_error here if we still can not
2823 find the DIE.
2824
a832795c
NR
28252006-02-10 Nick Roberts <nickrob@snap.net.nz>
2826
2827 * breakpoint.c (print_one_breakpoint): Add break to case
2828 bp_catch_vfork in switch statement.
2829
c9dd6fef
WZ
28302006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
2831
2832 * config/i386/nm-i386sol2.h: Update copyright year.
2833 * config/mips/nm-irix5.h: Ditto.
2834 * config/sparc/nm-sol2.h: Ditto.
2835 * s390-nat.c: Ditto.
2836 * ppc-linux-nat.c: Ditto.
2837
2a3cdf79
WZ
28382006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
2839
2840 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Delete.
2841 * config/i386/nm-i386sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
2842 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
2843 * config/mips/nm-irix5.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
2844 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
2845 * config/sparc/nm-sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
2846 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
2847 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): New.
2848 (inf_ttrace_region_size_ok_for_hw_watchpoint): Delete.
2849 (inf_ttrace_target): Delete to_region_size_ok_for_hw_watchpoint and
2850 add to_region_ok_for_hw_watchpoint.
2851 * s390-nat.c (s390_region_size_ok_for_hw_watchpoint): Delete.
2852 (s390_region_ok_for_hw_watchpoint): New.
2853 (_initialize_s390_nat): Delete to_region_size_ok_for_hw_watchpoint
2854 and add to_region_ok_for_hw_watchpoint.
2855 * target.c (default_region_size_ok_for_hw_watchpoint,
2856 debug_to_region_size_ok_for_hw_watchpoint): Delete prototype.
2857 (update_current_target): Delete to_region_size_ok_for_hw_watchpoint
2858 inheritance and default_region_size_ok_for_hw_watchpoint.
2859 (default_region_ok_for_hw_watchpoint): If len is less than or equal
2860 the length of void pointer, return ok.
2861 (default_region_size_ok_for_hw_watchpoint): Delete.
2862 (debug_to_region_size_ok_for_hw_watchpoint): Delete.
2863 (setup_target_debug): Delete to_region_size_ok_for_hw_watchpoint.
2864 * target.h (struct target_ops): Delete
2865 to_region_size_ok_for_hw_watchpoint.
2866 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
2867
e0d24f8d
WZ
28682006-02-08 Ben Elliston <bje@au1.ibm.com>
2869 Wu Zhou <woodzltc@cn.ibm.com>
2870
2871 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG,
2872 PTRACE_GETSIGINFO): Define.
2873 (last_stopped_data_address): New.
2874 (ppc_linux_check_watch_resources): New function.
2875 (ppc_linux_region_ok_for_hw_watchpoint): New function.
2876 (ppc_linux_insert_watchpoint): New function.
2877 (ppc_linux_remove_watchpoint): New function.
2878 (ppc_linux_stopped_data_address): New function.
2879 (ppc_linux_stopped_by_watchpoint): New function.
2880 (_initialize_ppc_linux_nat): Set the above hardware watchpoint
2881 related target vectors.
2882 * rs6000-tdep.c (rs6000_gdbarch_init): Set PPC architectures
2883 to have nonsteppable watchpoint.
2884 * target.c (default_region_ok_for_hw_watchpoint,
2885 debug_to_region_ok_for_hw_watchpoint): New prototypes.
2886 (update_current_target): Inherit to_region_ok_for_hw_watchpoint
2887 and set default to_region_ok_for_hw_watchpoint.
2888 (default_region_ok_for_hw_watchpoint): New function.
2889 (debug_to_region_ok_for_hw_watchpoint): New function.
2890 (setup_target_debug): Set to_region_ok_for_hw_watchpoint of
2891 debug_target.
2892 * target.h (struct target_ops): Add a new target vector
2893 to_region_ok_for_hw_watchpoint.
2894 (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Define this if it is not
2895 defined anyplace else.
927890d0 2896
e0d24f8d 28972005-02-07 Joel Brobecker <brobecker@adacore.com>
927890d0
JB
2898 * symfile.c (add_symbol_file_command): Abort if the user forgot
2899 to provide the address when the file has been loaded.
2900
f4d408c6
DJ
29012006-02-07 Daniel Jacobowitz <dan@codesourcery.com>
2902
2903 * MAINTAINERS: Update file based on maintainers survey. Add
2904 a note to Past Maintainers. Move unresponsive or inactive
2905 maintainers to Authorized Committers or Past Maintainers as
2906 appropriate. Correct Jim Kingdon's email address. Remove
2907 vacant areas of responsibility.
2908
38fcd64c
DJ
29092006-02-06 Vladimir Prus <ghost@cs.msu.su>
2910
2911 * breakpoint.c (print_one_breakpoint): For MI-like UI, output
2912 fullname field.
2913
7b871fab
DJ
29142006-02-03 Daniel Jacobowitz <dan@codesourcery.com>
2915
2916 * exceptions.h (enum errors): Rename NO_ERROR to GDB_NO_ERROR.
2917 * exceptions.c (exception_none, exceptions_state_mc_init)
2918 (throw_vfatal): Use GDB_NO_ERROR.
2919
e4cd0d6a
MK
29202006-02-02 Mark Kettenis <kettenis@gnu.org>
2921
2922 * solib-svr4.h (struct link_map_offsets): Remove r_debug_size and
2923 r_map_size members. Add r_version_offset, r_version_size and
2924 r_ldsomap_offset members.
2925 * solib-svr4.c (solib_svr4_r_map): Renamed from
2926 fetch_link_map_member. Simplify using read_memory_typed_address.
2927 (solib_svr4_r_ldsomap): New function.
2928 (open_symbol_file_object): Use solib_svr_r_map.
2929 (svr4_current_sos): Use solib_svr4_r_map and look for the dynamic
2930 linker by using solib_svr4_r_ldsomap.
2931 (svr4_ilp32_fetch_link_map_offsets)
2932 (svr4_lp64_fetch_link_map_offsets): Adjust for changes to `struct
2933 link_map_offsets'.
2934 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Adjust for
2935 changes to `struct link_map_offsets'.
2936 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets)
2937 (mipsnbsd_lp64_fetch_link_map_offsets): Adjust for changes to
2938 `struct link_map_offsets'.
2939
e26af52f
DJ
29402006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2941
2942 * linux-nat.c (struct saved_ptids, threads_to_delete)
2943 (record_dead_thread, prune_lwps, find_thread_from_lwp)
2944 (exit_lwp): New.
2945 (linux_nat_resume): Call prune_lwps.
2946 (wait_lwp, linux_nat_wait): Call exit_lwp.
2947
46e9880c
DJ
29482006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2949
2950 * printcmd.c (printf_command): Make format string checking
2951 stricter. Add separate cases for long_arg, ptr_arg, and
2952 long_double_arg.
2953 * utils.c (xstrvprintf): Improve the error message issued
2954 for a bad format string.
2955 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT, INTERNAL_CFLAGS_BASE):
2956 New variables.
2957 (gnu-v3-abi.o, monitor.o, procfs.o, linux-thread-db.o): Remove
2958 $(NO_WERROR_CFLAGS).
2959 (printcmd.o): Likewise. Use $(GDB_WARN_CFLAGS_NO_FORMAT) and
2960 enable -Werror.
2961
37a105a1
DJ
29622006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2963
2964 * Makefile.in (remote.o): Update.
2965 * remote.c (show_packet_config_cmd): Shorten messages.
2966 (remote_set_cmdlist, remote_show_cmdlist): Make file-static.
2967 (show_remote_cmd): Iterate.
2968 (_initialize_remote): Remove remote_set_cmdlist,
2969 remote_show_cmdlist.
2970
ae5a43e0
DJ
29712006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2972
2973 * Makefile.in (gdbtypes_h, gdbtypes.o, utils.o): Update.
2974 * defs.h (hashtab_obstack_allocate, dummy_obstack_deallocate): Add
2975 prototypes.
2976 * dwarf2read.c (read_subroutine_type): Use TYPE_ZALLOC.
2977 (hashtab_obstack_allocate, dummy_obstack_deallocate): Moved to...
2978 * utils.c (hashtab_obstack_allocate, dummy_obstack_deallocate):
2979 ...here.
2980 * gdbtypes.c: Include "hashtab.h".
2981 (build_gdbtypes): Remove extra prototype.
2982 (struct type_pair, type_pair_hash, type_pair_eq)
2983 (create_copied_types_hash, copy_type_recursive): New.
2984 * gdbtypes.h: Include "hashtab.h".
2985 (TYPE_ZALLOC): New.
2986 (create_copied_types_hash, copy_type_recursive): New prototypes.
2987 * objfiles.c (free_objfile): Call preserve_values.
2988 * symfile.c (reread_symbols): Likewise.
2989 (clear_symtab_users): Remove calls to clear_value_history and
2990 clear_internalvars.
2991 * value.c (clear_value_history, clear_internalvars): Removed.
2992 (preserve_one_value, preserve_values): New functions.
2993 * value.h (clear_value_history, clear_internalvars): Removed.
2994 (preserve_values): New prototype.
2995
2996 * tracepoint.c (_initialize_tracepoint): Do not initialize convenience
2997 variables here.
2998
b929c77f
MK
29992006-01-29 Mark Kettenis <kettenis@gnu.org>
3000
3001 * amd64-tdep.c (amd64_classify): Handle TYPE_CODE_BOOL.
3002 Fixes PR tdep/2075.
3003
1581f359
JB
30042006-01-27 Joel Brobecker <brobecker@adacore.com>
3005
3006 * MAINTAINERS: Use a consistent email address for brobecker.
3007
37706b70
JB
30082006-01-27 Joel Brobecker <brobecker@adacore.com>
3009
3010 * infcmd.c (post_create_inferior): Fix copy/paste error introduced
3011 in the previous change.
3012
9353355f
DJ
30132006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
3014
3015 PR gdb/1914
3016 * fork-child.c (fork_inferior): Don't call
3017 solib_create_inferior_hook.
3018 * infcmd.c (post_create_inferior): Call solib_add,
3019 solib_create_inferior_hook, and re_enable_breakpoints_in_shlibs.
3020 (attach_command): Don't call solib_add or
3021 re_enable_breakpoints_in_shlibs. Call post_create_inferior
3022 instead.
3023 * remote.c (remote_open_1): Don't call solib_create_inferior_hook
3024 or observer_notify_inferior_created. Call post_create_inferior
3025 instead.
3026 * corelow.c: Don't include "observer.h".
3027 (solib_add_stub): Deleted.
3028 (core_open): Don't call observer_notify_inferior_created or
3029 solib_add_stub. Call post_create_inferior instead.
3030 * inf-ptrace.c: Don't include "observer.h".
3031 (inf_ptrace_attach): Don't call observer_notify_inferior_created.
3032 * inf-ttrace.c: Don't include "observer.h".
3033 (inf_ttrace_attach): Don't call observer_notify_inferior_created.
3034 * inferior.h (solib_create_inferior_hook): Remove redundant
3035 prototype.
3036 * inftarg.c: Don't include "observer.h".
3037 (child_attach): Don't call observer_notify_inferior_created.
3038 * Makefile.in: Update dependencies.
3039
281b533b
DJ
30402006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
3041
3042 * infcmd.c: Include "observer.h".
3043 (post_create_inferior): New function.
3044 (run_command_1): Call it. Also call proceed.
3045 * inferior.h (post_create_inferior): New prototype.
3046 * Makefile.in (infcmd.o): Update.
3047
3048 * gnu-nat.c (gnu_create_inferior): Don't call proceed.
3049 * go32-nat.c (go32_create_inferior): Likewise.
3050 * nto-procfs.c (procfs_create_inferior): Likewise.
3051 * procfs.c (procfs_create_inferior): Likewise.
3052 * remote-sim.c (gdbsim_create_inferior): Likewise.
3053 * remote.c (extended_remote_create_inferior)
3054 (extended_remote_async_create_inferior): Likewise.
3055 * win32-nat.c (win32_create_inferior): Likewise.
3056 * wince.c (child_create_inferior): Likewise.
3057
3058 * monitor.c (monitor_create_inferior): Don't call proceed.
3059 Set the PC manually.
3060 * ocd.c (ocd_create_inferior): Likewise.
3061 * remote-e7000.c (e7000_create_inferior): Likewise.
3062 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3063 * remote-mips.c (mips_create_inferior): Likewise.
3064 * remote-rdp.c (remote_rdp_create_inferior): Likewise.
3065 * remote-sds.c (sds_create_inferior): Likewise.
3066 * remote-st.c (st2000_create_inferior): Likewise.
3067
3068 * inf-ptrace.c (inf_ptrace_create_inferior): Don't call
3069 proceed or observer_notify_inferior_created.
3070 * inf-ttrace.c (inf_ttrace_create_inferior): Likewise.
3071 * inftarg.c (child_create_inferior): Likewise.
3072
e23fc6de
DJ
30732006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
3074
3075 * linux-thread-db.c (thread_db_mourn_inferior): Remove breakpoints
3076 after mourning the inferior.
3077
13d6656b
JB
30782006-01-24 Jim Blandy <jimb@redhat.com>
3079
3080 * valarith.c (binop_user_defined_p): Handle refs to typedefs.
3081
59f92a09
FF
30822006-01-24 Fred Fish <fnf@specifix.com>
3083
3084 * parse.c (source.h): Include.
3085 (parse_exp_in_context): Use static source context if no
3086 other context found.
3087
dda63807
AS
30882006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
3089
3090 * sh-tdep.c: Include reggroups.h.
3091 (sh_register_reggroup_p): New function.
3092 (sh_gdbarch_init): Add call to set_gdbarch_register_reggroup_p.
3093 * Makefile.in (sh-tdep.o): Add dependency on reggroups.h.
3094
4b505b12
AS
30952006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
3096
3097 * cli/cli-cmds.c: Include fcntl.h.
3098 (source_command): Use the GDB search path to find script files.
3099
721d14ba
DJ
31002006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
3101
3102 PR tdep/2029
3103 Suggested by Till Straumann <strauman@slac.stanford.edu>:
3104 * rs6000-tdep.c (skip_prologue): Update check for later mtlr
3105 instructions. Handle PIC bcl.
3106
3d64d617
DJ
31072006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
3108
3109 * config/djgpp/README: Typo fix.
3110 * config/djgpp/fnchange.lst: Update.
3111
0a8f48b9
MK
31122006-01-22 Mark Kettenis <kettenis@gnu.org>
3113
c893be75
MK
3114 * sparc-tdep.h (struct gdbarch_tdep): Add step_trap member.
3115 (sparc_address_from_register): New prototype.
3116 (sparcnbsd_step_trap): New prototype.
3117 * sparc-tdep.c (sparc_address_from_register): Make globally
3118 visible.
3119 (sparc_analyze_control_transfer): Change prototype to accept
3120 `struct gdbarch *' as first argument. Allow for optional hnadling
3121 for trap instructions.
3122 (sparc_step_trap): New function.
3123 (sparc_software_single_step): Adjust call to
3124 sparc_analyze_control_trabsfer.
3125 (sparc32_gdbarch_init): Initialize TDEP->step_trap.
3126 * sparcnbsd-tdep.c (sparcnbsd_step_trap): New function.
3127 (sparc32nbsd_init_abi): Set TDEP->step_trap.
3128 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Set TDEP->step_trap.
3129 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Set TDEP->step_trap.
3130
0a8f48b9
MK
3131 * sparc-tdep.c (sparc32_return_value): Convert to use
3132 RETURN_VALUE_ABI_PRESERVES_ADDRESS instead of
3133 RETURN_VALUE_STRUCT_CONVENTION.
3134 (sparc32_extract_struct_value_address): Remove.
3135
1f3a99d5
DJ
31362006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
3137
3138 * avr-tdep.c (avr_address_to_pointer, avr_pointer_to_address)
3139 (avr_extract_return_value, avr_frame_prev_register): Use gdb_byte.
3140
84eb3c4f
DJ
31412006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
3142
3143 * solib.c (info_sharedlibrary_command): Avoid internal_error.
3144
878d9193
MK
31452006-01-21 Mark Kettenis <kettenis@gnu.org>
3146
3147 * i386-tdep.c (i386_mxcsr_type): New variable.
3148 (i386_init_types): Initialize i386_mxcsr_type.
3149 (i386_register_type): Return i386_mxcsr_type for %mxcsr.
3150 * i386-tdep.c (i386_mxcsr_type): New extern.
3151 * amd64-tdep.c (amd64_register_info): Return i386_mxcsr_type for
3152 %mxcsr.
3153
acab6ab2
MM
31542006-01-20 Mark Mitchell <mark@codesourcery.com>
3155
3156 * Makefile.in (remote-rdi.o): Remove.
3157 (rdi-share/libangsd.a): Likewise.
3158 * README: Don't mention remote-rdi.c.
3159 * NEWS: Mention removal of rdi-share.
3160 * configure.ac: Don't configure rdi-share subdirectory.
3161 * remote-rdi.c: Remove.
3162 * config/arm/embed.mt (TDEPFILES): Remove remote-rdi.o.
3163 (TDEPLIBS): Remove rdi-share/libangsd.a.
3164 * rdi-share/Makefile.am: Remove.
3165 * rdi-share/Makefile.in: Likewise.
3166 * rdi-share/README.CYGNUS: Likewise.
3167 * rdi-share/aclocal.m4: Likewise.
3168 * rdi-share/adp.h: Likewise.
3169 * rdi-share/adperr.h: Likewise.
3170 * rdi-share/angel.h: Likewise.
3171 * rdi-share/angel_bytesex.c: Likewise.
3172 * rdi-share/angel_bytesex.h: Likewise.
3173 * rdi-share/angel_endian.h: Likewise.
3174 * rdi-share/ardi.c: Likewise.
3175 * rdi-share/ardi.h: Likewise.
3176 * rdi-share/armdbg.h: Likewise.
3177 * rdi-share/buffers.h: Likewise.
3178 * rdi-share/chandefs.h: Likewise.
3179 * rdi-share/channels.h: Likewise.
3180 * rdi-share/chanpriv.h: Likewise.
3181 * rdi-share/configure: Likewise.
3182 * rdi-share/configure.in: Likewise.
3183 * rdi-share/crc.c: Likewise.
3184 * rdi-share/crc.h: Likewise.
3185 * rdi-share/dbg_conf.h: Likewise.
3186 * rdi-share/dbg_cp.h: Likewise.
3187 * rdi-share/dbg_hif.h: Likewise.
3188 * rdi-share/dbg_rdi.h: Likewise.
3189 * rdi-share/devclnt.h: Likewise.
3190 * rdi-share/devices.h: Likewise.
3191 * rdi-share/devsw.c: Likewise.
3192 * rdi-share/devsw.h: Likewise.
3193 * rdi-share/drivers.c: Likewise.
3194 * rdi-share/drivers.h: Likewise.
3195 * rdi-share/etherdrv.c: Likewise.
3196 * rdi-share/ethernet.h: Likewise.
3197 * rdi-share/host.h: Likewise.
3198 * rdi-share/hostchan.c: Likewise.
3199 * rdi-share/hostchan.h: Likewise.
3200 * rdi-share/hsys.c: Likewise.
3201 * rdi-share/hsys.h: Likewise.
3202 * rdi-share/logging.c: Likewise.
3203 * rdi-share/logging.h: Likewise.
3204 * rdi-share/msgbuild.c: Likewise.
3205 * rdi-share/msgbuild.h: Likewise.
3206 * rdi-share/params.c: Likewise.
3207 * rdi-share/params.h: Likewise.
3208 * rdi-share/rx.c: Likewise.
3209 * rdi-share/rxtx.h: Likewise.
3210 * rdi-share/serdrv.c: Likewise.
3211 * rdi-share/serpardr.c: Likewise.
3212 * rdi-share/sys.h: Likewise.
3213 * rdi-share/tx.c: Likewise.
3214 * rdi-share/unixcomm.c: Likewise.
3215 * rdi-share/unixcomm.h: Likewise.
3216
4577207e
MK
32172006-01-21 Mark Kettenis <kettenis@gnu.org>
3218
3219 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register):
3220 Change type of last argument to `gdb_byte *'.
3221
34f55018
MK
32222006-01-20 Mark Kettenis <kettenis@gnu.org>
3223
3224 * hppa-tdep.h (hppa_in_solib_call_trampoline)
3225 (hppa_skip_trampoline_code): New prototypes.
3226 * hppa-tdep.c (struct insn_pattern): New.
3227 (hppa_long_branch_stub, hppa_long_branch_pic_stub)
3228 (hppa_import_stub, hppa_import_pic_stub, hppa_plt_stub): Moved
3229 here from hppa-linux-tdep.c
3230 (HPPA_MAX_INSN_PATTERN_LEN): New define.
3231 (hppa_match_insns, hppa_match_insns_relaxed, hppa_in_dyncall)
3232 (hppa_in_solib_call_trampoline, hppa_skip_trampoline_code): New
3233 functions based on functions removed from hppa-linux-tdep.c.
3234 * hppa-linux-tdep.c (hppa_long_branch_stub)
3235 (hppa_long_branch_pic_stub, hppa_import_stub)
3236 (hppa_import_pic_stub, hppa_plt_stub): Moved to hppa-tdep.c.
3237 (insns_match_pattern_relaxed, hppa_linux_in_dyncall)
3238 (hppa_linux_in_solib_call_trampoline)
3239 (hppa_linux_skip_trampoline_code): Removed.
3240 (hppa_linux_init_abi): Set TDEP->in_solib_call_tranpoline to
3241 hppa_in_solib_call_trampoline and skip_trampoline_code to
3242 hppa_skip_trampoline_code.
3243 * hppabsd-tdep.c (hppabsd_init_abi): Set
3244 TDEP->in_solib_call_trampoline and skip_trampoline_code.
3245
7be93b9e
JB
32462006-01-20 Jim Blandy <jimb@redhat.com>
3247
f408839d
JB
3248 * MAINTAINERS: Change my E-mail address.
3249
7be93b9e
JB
3250 * configure.ac: Add -Wno-pointer-sign to list of build warnings.
3251 * configure: Regenerated.
3252
b2a74f99
DJ
32532006-01-20 Daniel Jacobowitz <dan@codesourcery.com>
3254
3255 * MAINTAINERS: Overhaul.
3256
4f2aea11
MK
32572006-01-18 Mark Kettenis <kettenis@gnu.org>
3258
5ae96ec1
MK
3259 Based on a previous patch form Michal Ludvig:
3260 * amd64-tdep.c (amd64_sse_type): Remove.
3261 (amd64_register_info): Use i386_eflags_type and i386_sse_type
3262 where appropriate.
3263 (AMD64_NUM_REGS): Use ARRAY_SIZE.
3264 (amd64_register_type): Remove code to build amd_sse_type.
3265 * i386-tdep.c (i386_eflag_type): New variable.
3266 (i386_mmx_type, i386_sse_type): Make global.
3267 (i386_init_types): New function.
3268 (i386_build_mmx_type, i386_build_sse_type): Remove functions.
3269 (i386_register_type): Return i386_eflag_type, i386_sse_type and
3270 i386_mmx_type when appropriate.
3271 (_initialize_i386_tdep): Call i386_init_types.
3272 * i386-tdep.h (i386_eflags_type, i386_mmx_type, i386_sse_type):
3273 Declare extern.
3274
4f2aea11
MK
3275 Based on a previous patch form Michal Ludvig:
3276 * gdbtypes.c (append_flags_type_flag, init_flags_type): New
3277 functions.
3278 (is_integral_type, rank_one_type, recursive_dump_type): Add
3279 support for TYPE_CODE_FLAGS.
3280 * gdbtypes.h (enum type_code): Add TYPE_CODE_FLAGS.
3281 (append_flags_type_field, init_flags_type): New prototypes.
3282 * ada-valprint.c (ada_val_print_1): Add support for
3283 TYPE_CODE_FLAGS.
3284 * c-valprint.c (c_val_print): Likewise.
3285 * f-valprint.c (f_val_print): Likewise.
3286 * p-valprint.c (pascal_val_print): Likewise.
3287 * valprint.c (val_print_type_code_flags): New function.
3288 * valprint.h (val_print_type_code_flags): New prototype.
3289 * value.c (unpack_long, value_from_longest): Add support for
3290 TYPE_CODE_FLAGS.
3291
4cdb5adf
CF
32922006-01-17 Christopher Faylor <cgf@timesys.com>
3293
3294 * MAINTAINERS: Very belatedly remove myself from from the list of
3295 people caught up in the paper trail.
3296
1193688d
JB
32972006-01-17 Jim Blandy <jimb@redhat.com>
3298
4e38b386
JB
3299 * symtab.h (struct general_symbol_info): Use gdb_byte for
3300 value.bytes.
3301 * stabsread.c (define_symbol): Use gdb_byte for the buffer holding
3302 a floating-point constant's value.
3303 * dwarf2read.c (dwarf2_const_value): Remove casts of value buffer
3304 to char *.
3305 * findvar.c (read_var_value): Eliminate needless temporary.
3306
1193688d
JB
3307 * dwarf2-frame.c (dwarf2_read_section): Update forward declaration
3308 to match prior change to dwarf2_read_section's type.
3309
0d1243d9
PG
33102006-01-16 Paul Gilliam <pgilliam@us.ibm.com>
3311
3312 * ppc-tdep.h (PPC_MAX_EPILOGUE_INSTRUCTIONS): New define.
3313 * rs6000-tdep.c (insn_changes_sp_or_jumps)
3314 (rs6000_in_function_epilogue_p): New functions.
3315 (rs6000_gdbarch_init): Set in_function_epilogue_p.
3316
fe1b8b76
JB
33172006-01-17 Jim Blandy <jimb@redhat.com>
3318
3319 * dwarf2read.c (struct dwarf2_per_objfile, struct comp_unit_head)
3320 (struct line_header, struct partial_die_info, struct dwarf_block):
3321 Use gdb_byte for members that refer to Dwarf section contents.
3322 (dwarf2_read_abbrevs, dwarf2_read_section, dwarf_decode_lines,
3323 dwarf_decode_macros, load_comp_unit, load_partial_dies,
3324 locate_pdi_sibling, partial_read_comp_unit_head, peek_die_abbrev,
3325 read_1_byte, read_1_signed_byte, read_2_bytes, read_4_bytes,
3326 read_8_bytes, read_address, read_attribute, read_attribute_value,
3327 read_comp_unit, read_comp_unit_head, read_die_and_children,
3328 read_die_and_siblings, read_full_die, read_indirect_string,
3329 read_initial_length, read_n_bytes, read_offset, read_partial_die,
3330 read_signed_leb128, read_string, read_unsigned_leb128,
3331 skip_children, skip_leb128, skip_one_die): Same.
3332
a0841d7a
DJ
33332006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
3334
3335 * complaints.c (stop_whining): Make signed.
3336 * linux-thread-db.c (thread_db_store_registers): Use gdb_byte.
3337
939b2b42
DJ
33382006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
3339
3340 * dwarf2read.c, remote-fileio.c, remote.h: Update copyright
3341 notices.
3342
891d2f0b
DJ
33432006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
3344
3345 * dwarf2read.c (peek_die_abbrev, read_address, read_initial_length)
3346 (read_offset): Change BYTES_READ argument to unsigned int.
3347 (dwarf2_build_psymtabs_easy, read_comp_unit_head)
3348 (create_all_comp_units, dwarf2_get_pc_bounds)
3349 (dwarf_decode_line_header, var_decode_location)
3350 (dwarf_decode_macros): Change local BYTES_READ variables to
3351 unsigned int.
3352 (read_indirect_string): Remove obsolete cast.
3353
cfd77fa1
DJ
33542006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
3355
3356 * remote-fileio.c (remote_fileio_return_success): Take a gdb_byte
3357 argument.
3358 (remote_fileio_func_open, remote_fileio_func_rename)
3359 (remote_fileio_func_unlink, remote_fileio_func_stat)
3360 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
3361 (remote_fileio_func_system): Cast the arguments to
3362 remote_read_bytes and remote_write_bytes.
3363 (remote_fileio_func_read, remote_fileio_func_write): Use a
3364 gdb_byte buffer.
3365 * remote.h (remote_read_bytes, remote_write_bytes): Update
3366 prototypes.
3367 * remote.c (hex2bin, bin2hex): Use gdb_byte for the BIN argument.
3368 (threadref_to_int): Replace bogus char * cast.
3369 (remote_unpack_thread_info_response): Use int for tag.
3370 (remote_threads_extra_info, remote_check_symbols): Cast string
3371 arguments to hex2bin.
3372 (remote_wait): Use a char buffer for packets and a gdb_byte
3373 buffer for registers.
3374 (remote_async_wait): Likewise.
3375 (remote_prepare_to_store, store_register_using_P)
3376 (remote_store_registers): Use gdb_byte buffers.
3377 (remote_write_bytes, remote_read_bytes): Use a gdb_byte pointer
3378 for MYADDR and char buffers for strings.
3379 (remote_xfer_partial): Add casts for string operations on READBUF.
3380 (remote_rcmd): Cast strings passed to bin2hex.
3381
60bf0650
MM
33822006-01-16 Mark Mitchell <mark@codesourcery.com>
3383
3384 * aclocal.m4: Regenerate.
3385
60e81fcc
NS
33862006-01-16 Nathan Sidwell <nathan@codesourcery.com>
3387
3388 * mt-tdep.c (enum mt_gdb_regnums): Add MT_COPRO_PSEUDOREG_ARRAY,
3389 MT_COPRO_PSEUDOREG_DIM_1, MT_COPRO_PSEUDOREG_DIM_2,
3390 MT_COPRO_PSEUDOREG_REGS members. Adjust MT_NUM_PSEUDO_REGS.
3391 (mt_register_name): Lazily synthesize name for coprocessor pseudo
3392 array registers.
3393 (mt_copro_register_type): New. Broken out of ...
3394 (mt_register_type): ... here. Use it. Deal with coprocessor
3395 pseudo array.
3396 (mt_select_coprocessor): New.
3397 (mt_pseudo_register_read, mt_pseudo_register_write): Deal with
3398 coprocessor pseudo array.
3399
f365de73
AS
34002006-01-16 Andrew Stubbs <andrew.stubbs@st.com>
3401
3402 * breakpoint.c (insert_breakpoints): Check that a thread exists
3403 before inserting thread specific breakpoints.
3404
9d519230
MK
34052006-01-15 Mark Kettenis <kettenis@gnu.org>
3406
6062517a
MK
3407 * osabi.c (generic_elf_osabi_sniffer): Fix typo in previous
3408 commit.
3409
9d519230
MK
3410 * alpha-tdep.c (alpha_gdbarch_init): Set cannot_step_breakpoint.
3411 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Remove.
3412 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Remove.
3413 * config/alpha/nm-nbsd.h: Remove file.
3414 * config/alpha/nm-fbsd.h: Remove file
3415 * config/alpha/nbsd.mh (NAT_FILE): Remove.
3416 * config/alpha/fbsd.mh (NAT_FILE): Remove.
3417
0a029df5
DJ
34182006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
3419
3420 * macroexp.c (expand): Initialize argc.
3421 * stabsread.c (read_type): Handle errors from read_args.
3422 (read_args): Return NULL for errors.
3423
1731e543
MK
34242006-01-15 Mark Kettenis <kettenis@gnu.org>
3425
3426 * osabi.c (generic_elf_osabi_sniffer): Use memcmp instead of
3427 strcmp to compare string to a byte buffer.
3428
777ea8f1
DJ
34292006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
3430
3431 * printcmd.c (output_command): Always initialize fmt.size.
3432 (printf_command): Use gdb_byte.
3433 * symfile.c (separate_debug_file_exists): Use gdb_byte.
3434 (load_section_callback, read_target_long_array): Likewise.
3435 (simple_read_overlay_table, simple_read_overlay_region_table)
3436 (simple_overlay_update_1): Correct calls to read_target_long_array.
3437 * valprint.c (partial_memory_read): Change MYADDR to a gdb_byte *.
3438 Also change local pointers.
3439 (val_print_string): Use gdb_byte.
3440
4b17b389
MK
34412006-01-15 Mark Kettenis <kettenis@gnu.org>
3442
3443 * alphafbsd-tdep.c: Include "solib-svr4.h".
3444 (alphafbsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
3445 svr4_lp64_fetch_link_map_offsets.
3446 * Makefile.in (alphafbsd-tdep.o): Update dependencies.
3447 * config/alpha/fbsd.mt (TDEPFILES): Add corelow.o, solib.o and
3448 solib-svr4.o.
3449 * config/alpha/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
3450 and solib-legacy.o.
3451 * config/alpha/nm-fbsd.h: Don't include "solib.h".
3452
bd4109fb
DJ
34532006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
3454
3455 * source.c (_initialize_source): Use add_setshow_integer_cmd.
3456
1dce6535
DJ
34572006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
3458
3459 * linux-fork.c (delete_fork_command, detach_fork_command): Use
3460 PIDGET.
3461
76a9d10f
MK
34622006-01-15 Mark Kettenis <kettenis@gnu.org>
3463
3464 * arm-linux-tdep.c (arm_linux_svr4_fetch_link_map_offsets):
3465 Remove.
3466 (arm_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
3467 svr4_ilp32_fetch_link_map_offsets.
3468 * cris-tdep.c (cris_linux_svr4_fetch_link_map_offsets): Remove
3469 function.
3470 (cris_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
3471 svr4_ilp32_fetch_link_map_offsets.
3472 * mips-linux-tdep.c (mips_linux_svr4_fetch_link_map_offsets)
3473 (mips64_linux_svr4_fetch_link_map_offsets): Remove functions.
3474 (mips_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
3475 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
3476 where appropriate.
3477 * nbsd-tdep.c (nbsd_ilp32_solib_svr4_fetch_link_map_offsets):
3478 Simply call svr4_ilp32_fetch_link_map_offsets.
3479 (nbsd_lp64_solib_svr4_fetch_link_map_offsets): Simply call
3480 svr4_lp64_fetch_link_map_offsets.
3481 * ppc-linux-tdep.c (ppc_linux_svr4_fetch_link_map_offsets): Remove
3482 function.
3483 (ppc_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
3484 svr4_ilp32_fetch_link_map_offsets.
3485 * s390-tdep.c (s390_svr4_fetch_link_map_offsets)
3486 (s390x_svr4_fetch_link_map_offsets): Remove functions.
3487 (s390_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
3488 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
3489 where appropriate.
3490
469db033
MK
34912006-01-15 Mark Kettenis <kettenis@gnu.org>
3492
25224166
MK
3493 * arm-tdep.c (arm_return_value): Change type of readbuf and
3494 writebuf arguments to `gdb_byte *'.
3495
469db033
MK
3496 * s390-tdep.c: Do not include "tm.h" and "../bfd/bfd.h".
3497 * Makefile.in (s390-tdep.o): Update dependencies.
3498
4dd7c9f6
MK
34992006-01-14 Mark Kettenis <kettenis@gnu.org>
3500
081bf9da
MK
3501 * sol2-tdep.h. sol2-tdep.c: New files.
3502 * amd64-sol2-tdep.c: Include "sol2-tdep.h".
3503 (amd64_sol2_init_abi): Set skip_solib_resolver.
3504 * i386-sol2-tdep.c: Include "sol2-tdep.h".
3505 (i386_sol2_init_abi): Set skip_solib_resolver.
3506 * sparc-sol2-tdep.c: Include "sol2-tdep.h".
3507 (sparc32_sol2_init_abi): Set skip_solib_resolver.
3508 * sparc64-sol2-tdep.c: Include "sol2-tdep.h".
3509 (sparc64_sol2_init_abi): Set skip_solib_resolver.
3510 * Makefile.in (sol2_tdep_h): New variable.
3511 (ALLDEPFILES): Add sol2-tdep.c.
3512 (sol2-tdep.o): New target.
3513 (amd64-sol2-tdep.o, i386-sol2-tdep.o, sparc-sol2-tdep.o)
3514 (sparc64-sol2-tdep.o): Update dependencies
3515 * config/i386/i386sol2.mt (TDEPFILES): Add sol2-tdep.o.
3516 * config/i386/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
3517 * config/sparc/sol2.mt (TDEPFILES): Add sol2-tdep.o.
3518 * config/sparc/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
3519
c0f96416
MK
3520 * hppa-linux-tdep.c: Fix copyright indentation.
3521
4dd7c9f6
MK
3522 * hppa-tdep.h (enum hppa_regnum): Add HPPA_FP31R_REGNUM.
3523 * hppabsd-nat.c (hppabsd_fpregset_supplies_p)
3524 (hppabsd_supply_fpregset, hppabsd_collect_fpregset): New
3525 functions.
3526 (hppabsd_fetch_registers, hppabsd_store_registers): Handle
3527 floating-point registers.
3528
6da86618
MM
35292006-01-13 Mark Mitchell <mark@codesourcery.com>
3530
3531 * event-loop.c (gdb_select): Detect file descriptors that have
3532 been closed.
3533
ed944ce7
MK
35342006-01-13 Mark Kettenis <kettenis@gnu.org>
3535
3536 * hppabsd-tdep.c (hppabsd_init_abi): Set long_double_bit to 64,
3537 and long_double_format accordingly.
3538
03ee6b2e
PH
35392006-01-12 Paul N. Hilfinger <hilfinger@adacore.com>
3540
3541 * ada-exp.y (yyerror): Change message to ignore the argument, avoiding
3542 translation problems.
3543 * ada-lang.c (ada_value_struct_elt): Change interface and handling
3544 of errors to avoid translation problem (and less than optimal error
3545 messages).
3546 (ada_value_tag, ada_tag_name_1, ada_tag_name_2, ada_evaluate_subexp):
3547 Use new interface to ada_value_struct_elt.
3548 * ada_lang.h (ada_value_struct_elt): Update declaration to new
3549 interface.
3550
3551 * ChangeLog: remove reference to ada-tasks.c from entry of
3552 2006-01-07.
3553
24b06219
MK
35542006-01-11 Mark Kettenis <kettenis@gnu.org>
3555
3556 * remote.c (get_memory_packet_size, set_thread)
3557 (remote_unpack_thread_info_response, remote_get_threadinfo)
3558 (parse_threadlist_response, remote_get_threadlist)
3559 (remote_current_thread, remote_threads_info)
3560 (remote_threads_extra_info, extended_remote_restart, get_offsets)
3561 (remote_check_symbols, remote_open_1, remote_detach)
3562 (remote_async_wait, remote_fetch_registers)
3563 (remote_store_registers, check_binary_download, putpkt_binary)
3564 (remote_insert_breakpoint, remote_insert_watchpoint)
3565 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
3566 (remote_remove_hw_breakpoint, remote_xfer_partial, remote_rcmd)
3567 (packet_command): Remove redundant parenthesis.
3568
15550d6b
MK
35692006-01-10 Mark Kettenis <kettenis@gnu.org>
3570
dfb65433
MK
3571 * corefile.c (read_memory_integer, read_memory_unsigned_integer)
3572 (read_memory_typed_address, write_memory)
3573 (write_memory_unsigned_integer, write_memory_signed_integer): Use
3574 gdb_byte where appropriate.
3575
508416a1
MK
3576 * mi/mi-main.c (mi_cmd_data_read_memory): Change type of mbus into
3577 'gdb_byte *'.
3578
f6519ebc
MK
3579 * target.h (target_read_memory_partial, target_write_memory_partial):
3580 Change second argument to 'gdb_byte *'.
3581 * target.c (target_xfer_memory_partial): Change third argument to
3582 'gdb_byte *'.
3583 (target_read_memory_partial, target_write_memory_partial): Change
3584 second argument to 'gdb_byte *'.
3585
15550d6b
MK
3586 * linespec.c (decode_objc): Make i1 and i2 unsigned.
3587 (find_method): Set values.sals to NULL.
3588
d7a30af7
MK
35892006-01-09 Mark Kettenis <kettenis@gnu.org>
3590
3591 * amd64obsd-nat.c (amd64obsd_supply_pcb): Use 'gdb_byte *' instead
3592 of 'char *' in cast.
3593
e1d5a0d2
PH
35942006-01-07 Paul N. Hilfinger <hilfinger@adacore.com>
3595
3596 * ada-exp.y, ada-lex.l, ada-typeprint.c: I18n markup.
03ee6b2e 3597 * ada-lang.c: I18n markup.
e1d5a0d2
PH
3598 Editorial: change "can not" => "cannot" throughout.
3599
790124be
MK
36002006-01-07 Mark Kettenis <kettenis@gnu.org>
3601
3602 * Makefile.in: Sort dependencies.
3603
3c481fdc
EZ
36042006-01-07 Eli Zaretskii <eliz@gnu.org>
3605
3606 * top.c (control_level): Remove unused variable.
3607
cb5d864f
FF
36082006-01-06 Fred Fish <fnf@specifix.com>
3609
3610 * objfiles.c (source.h): Include.
3611 (free_objfile): Update comment about clear_symtab_users().
3612 (free_objfile): Check all symtabs of objfile being freed and if
3613 one of them is the current source symtab, call
3614 clear_current_source_symtab_and_line().
3615
ac264b3b
MS
36162006-01-04 Michael Snyder <msnyder@redhat.com>
3617
3618 Checkpoint/Restart for Linux.
3619 * linux-nat.c: Add support for debugging multiple forks.
3620 Add #include for linux-fork.h (interface spec).
3621 (super_mourn_inferior): New function pointer.
3622 (child_mourn_inferior): New function / target method.
3623 (linux_target): Claim to_mourn_inferior method pointer.
3624 (child_follow_fork): Call interface to linux-fork, conditionally
3625 add new fork processes to list of debugged processes.
3626 (kill_inferior): Use interface to linux-fork to kill
3627 multiple processes.
3628
3629 * linux-fork.h: New file.
3630 * linux-fork.c: New file. Support for debugging multiple forks
3631 of the same program. Support for checkpoint and restart commands.
3632
3633 * infrun.c (nullify_last_target_wait_ptid): New function.
3634
3635 * Makefile.in: Add linux-fork.
3636 * config/*/linux.mh: Add linux-fork.
3637 * NEWS: Mention new functionality.
3638
f98ce7c2
PH
36392006-01-02 Paul Hilfinger <hilfingr@nile.gnat.com>
3640
3641 * ada-exp.y (syntax definitions,write_var_or_type,write_name_assoc):
3642 Change uses of "illegal" to "invalid".
3643
52ce6436
PH
36442006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
3645
3646 * ada-exp.y: Considerable reorganization to move functionality
3647 from ada-lex.l to here, where it is logically more appropriate.
3648 The original reason, however, was to prevent premature name
3649 lookups for selector names in record aggregates.
3650 (BLOCKNAME, TYPENAME, OBJECT_RENAMING): Remove; lexer now returns
3651 NAME for all of these.
3652 (VAR): New artificial token to clarify precedence rules.
3653 (OTHERS): New lexeme.
3654 (empty_stoken): New symbol.
3655 (%union): Remove ssym, voidval.
3656 (%type): Remove <voidval> type declarations.
3657 (syntax definitions): Add aggregates.
3658 Remove distinction between NAME, TYPENAME, BLOCKNAME, OBJECT_RENAMING.
3659 Rename some non-terminals to be closer to reference manual usage.
3660 Tighten up expression syntax to disallow certain non-Ada
3661 constructions such as X and then Y or else Z.
3662 (ada_parse): Remove initialization of left_block_context.
3663 (write_var_from_name): Remove.
3664 (write_var_or_type): New function, containing previous code from
3665 defunct write_var_from_name and name_lookup.
3666 (block_lookup): New function, moved from ada-lex.l
3667 (select_possible_type_sym): New function, factored out of
3668 name_lookup, which used to be in ada-lex.l.
3669 (find_primitive_type): Ditto.
3670 (chop_selector): Ditto.
3671 (write_ambiguous_var): New function, factored out of defunct
3672 write_var_from_name.
3673 (write_selectors): New function.
3674 (write_name_assoc): New function.
3675 (write_exp_op_with_string): New function.
3676
3677 * ada-lex.l (processId): Change interface to return stoken.
3678 (tempbuf, resize_tempbuf, tempbuf_size, tempbuf_len): Remove.
3679 (block_lookup, name_lookup): Remove. Functionality moved to
3680 ada-exp.y.
3681 (state IN_STRING): Remove.
3682 (rules): Handle string escapes in processString.
3683 Add 'others' token.
3684 Return all NAMEs, BLOCKNAMEs, OBJECT_RENAMINGs, TYPENAMEs in
3685 yylval.sval (as simple strings).
3686 All name look-ups now handled in ada-exp.y.
3687 Introduce "::" (COLONCOLON) token and return as separate token.
3688 (processId): Change return convention. Comment.
3689 Leave leading "'" in place.
3690 (processString): New function.
3691 (find_dot_all): Add note to comment.
3692 Fix problem that allowed match only at the end.
3693
3694 * ada-lang.c: Introduce aggregates.
3695 (find_struct_field): Add new parameter to count fields skipped, and
3696 allow other output parameters to be NULL.
3697 (value_tag_from_contents_and_address, ada_value_struct_elt): Use
3698 new find_struct_field.
3699 (ada_index_struct_field, assign_aggregate, ada_is_array_type)
3700 (num_visible_fields, ada_index_struct_field_1, ada_index_struct_field)
3701 (num_component_specs, assign_component, assign_aggregate):
3702 (aggregate_assign_from_choices,aggregate_assign_positional)
3703 (aggregate_assign_others,add_component_interval):
3704 New functions.
3705 (ada_evaluate_subexp): Declare.
3706 Add aggregate-related operators.
3707 (ada_forward_operator_length): Declare.
3708 (resolve_subexp): Add cases for new aggregate operators and OP_NAME.
3709 Consolidate Ada operators, using ada_forward_operator_length.
3710 (ada_search_struct_field): Search in forward order.
3711 (ADA_OPERATORS): Add new aggregate operators.
3712 (ada_operator_length, ada_op_name, ada_forward_operator_length)
3713 (ada_dump_subexp_body, ada_print_subexp): Handle new aggregate
3714 operators and OP_NAME.
3715 (ada_type_of_array): Use longest_to_int.
3716 (value_assign_to_component): New function.
3717 (ada_forward_operator_length, ada_op_name, ada_dump_subexp_body):
3718 Add OP_NAME case.
3719 (ada_forward_operator_length, ada_dump_subexp_body):
3720 Add OP_STRING case.
3721
3722 * ada-lang.h (enum ada_operator): Add OP_AGGREGATE, OP_OTHERS,
3723 OP_CHOICES, OP_DISCRETE_RANGE, OP_POSITIONAL.
3724
529cad9c
PH
37252006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
3726
3727 * ada-lang.c (process_raise_exception_name): Remove extraneous
3728 definition from unsubmitted code.
3729
3730 (is_lower_alphanum): New function.
3731 (ada_decode): Add support for decoding protected object subprograms
3732 and entries, and of entities declared inside protected object
3733 subprograms.
3734 Also add missing handling for__{DIGITS}+ suffixes.
3735 Allow '$<digits>' as valid overloading suffix.
3736 (is_name_suffix): Add handling for protected type entriy suffixes.
3737 Also add support for protected type subprogram suffixes, but keep
3738 it commented out for now, as there is an ambiguity between these
3739 entities and other internally generated entities.
3740 Allow '$<digits>' as valid overloading suffix.
3741 (is_valid_name_for_wild_match): New function.
3742 (wild_match): Add an exra level of verification of the entity name
3743 before declaring it a match for the given pattern.
3744
3745 (ada_type_of_array, ada_evaluate_subexp): Use more proper
3746 longest_to_int rather than cast.
3747
3748 (ada_evaluate_subexp): Use "invalid" rather than "illegal" in comment.
3749
3750 (ada_coerce_to_simple_array): Call check_size to make sure
3751 that the object size is reasonable.
3752
3753 (ada_value_primitive_packed_val): Use correct location in target
3754 buffer for extracting packed record fields that are themselves records.
3755
3756 (add_defn_to_vec): Do not try to replace a stub type by its full
3757 type. Avoids a potential infinite loop.
3758
3759 (ada_lookup_symbol): Move return incorrectly placed return statement,
3760 causing a loop that should be scanning all object files to only
3761 scan the first one.
3762
3763 (ada_tag_name_2): New function.
3764 (ada_tag_name_1): If no 'tsd' field found in the dispatching table,
3765 use alternative representation.
3766
3767 (ada_find_renaming_symbol): Strip the function name suffix when
3768 computing the XR type name.
3769
3770 (ada_to_fixed_type): Try determining the tag only if we have the
3771 object's address.
3772 (to_fixed_array_type): Add comments.
3773
3774 (ada_check_typedef): Replace expression checking whether the given
3775 type is a stub or not by a "call" to TYPE_STUB. Clearer and more
3776 consistent.
3777
3778 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Allow
3779 '$' in addition to '.' for runtime auxiliary function name suffixes.
3780 See changes to ada_decode above.
3781
3782 (struct task_control_block): Add field called_task. (This change is
3783 to keep synchronized with our local sources; it does not affect the
3784 public version yet.)
3785
3786 * ada-typeprint.c (ada_print_type): Use int_string for printing
3787 modulus of modular type.
3788
3789 (print_range): Trivial editorial comment fix.
3790
3791 * ada-valprint.c (ada_emit_char): Use normal Ada syntax for
3792 double quote in string.
3793
9b799fe6
JB
37942006-01-01 Joel Brobecker <brobecker@adacore.com>
3795
3796 * top.c: Add 2006 to list of copyright years in file header.
3797
0bee0712
JB
37982006-01-01 Joel Brobecker <brobecker@adacore.com>
3799
3800 * top.c (print_gdb_version): Update copyright year to 2006.
3801
13c763f4
JB
38022006-01-01 Roger Sayle <roger@eyesopen.com>
3803 Elena Zannoni <ezannoni@redhat.com>
3804
3805 PR symtab/1651
3806 * xcoffread.c (xcoff_next_symbol_text): Check this_symtab_psymtab
3807 for NULL before assigning this_symtab_psymtab->objfile to objfile.
3808 (scan_xcoff_symtab): Initialize next_symbol_text_func.
3809 (Committed by Jim Blandy)
3810
e50f0da1 3811For older changes see ChangeLog-2005.
c906108c
SS
3812\f
3813Local Variables:
3814mode: change-log
3815left-margin: 8
3816fill-column: 74
3817version-control: never
3818End:
This page took 1.06344 seconds and 4 git commands to generate.