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