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