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