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