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