]> Git Repo - binutils.git/blame - gdb/ChangeLog
* xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
[binutils.git] / gdb / ChangeLog
CommitLineData
40c58d95
MD
12008-03-27 Markus Deuling <[email protected]>
2
3 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
4 objfile arch.
5
bb1ec7d2
NR
62008-03-27 Nick Roberts <[email protected]>
7
8 * mi/mi-main.c (enum captured_mi_execute_command_actions):
9 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
10
5e2b427d
UW
112008-03-26 Ulrich Weigand <[email protected]>
12
13 * objfiles.h (struct objfile): New GDBARCH member.
14 (get_objfile_arch): Add prototype.
15 * objfiles.c: Include "arch-utils.h".
16 (allocate_objfile): Look up gdbarch associated with bfd.
17 (get_objfile_arch): New function.
18 * Makefile (objfiles.o): Update dependencies.
19
20 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
21 by objfile arch.
22 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
23 by frame arch.
24 (locexpr_describe_location): Replace current_gdbarch by
25 objfile arch.
26 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
27 (dwarf2_add_field): Likewise.
28 (read_tag_pointer_type): Likewise.
29 (read_base_type): Likewise.
30 (new_symbol): Likewise.
31
32 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
33 (decode_base_type, decode_function_type): Likewise.
34 (coff_read_struct_type, coff_read_enum_type): Likewise.
35 (coff_symtab_read): Replace current_gdbarch by objfile arch.
36 (decode_base_type): Likewise.
37 (coff_read_enum_type): Likewise.
38 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
39 (coff_read_enum_type): Likewise.
40
41 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
42 (end_psymtab): Likewise.
43 (process_one_symbol): Likewise.
44
45 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
46 (parse_procedure): Likewise.
47 (parse_partial_symbols): Likewise.
48
49 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
50
51 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
52 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
53 built-in types.
54 (read_range_type): Replace current_gdbarch by objfile arch. Replace
55 static range_index_type by built-in type.
56 (read_one_struct_field): Replace current_gdbarch by objfile arch.
57 (read_enum_type): Likewise.
58
59 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
60 objfile arch.
61
5a413362
VP
622008-03-26 Vladimir Prus <[email protected]>
63
64 * varobj.h (varobj_floating_p): Declare.
65 * varobj.c (varobj_floating_p): New.
66 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
67 '@' as the name, update all floating varobjs.
68
a5defcdc
VP
692008-03-26 Vladimir Prus <[email protected]>
70
71 * varobj.c (struct varobj_root): Rename use_selected_frame to
72 floating, and clarify the meaning.
73 (varobj_create, varobj_update, new_root_variable): Adjust.
74 (value_of_root): Don't use type_changed as in variable,
75 adjust comment.
76 (c_value_of_root): Adjust.
5a413362 77
403fe197
PA
782008-03-25 Pedro Alves <[email protected]>
79
80 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
81 gdb's thread list.
82 (linux_nat_wait): Add main lwp to gdb's thread list.
83 * linux-thread-db.c (find_new_threads_callback): Also attach to
84 already listed threads which thread_db didn't know about yet.
85
710151dd
PA
862008-03-25 Pedro Alves <[email protected]>
87
88 * linux-nat.c (drain_queued_events): Fix comment typo.
89 (linux_nat_attach): In async mode, don't rely on storing a pending
90 status. Instead place the wait status on the pipe.
91 (linux_nat_resume): Remove unreacheable shortcut code in async
92 mode.
93 (stop_wait_callback): In async mode, don't store pending status.
94 Instead, cancel breakpoints or resend the signal appropriatelly.
95 (cancel_breakpoint): New, refactored from
96 cancel_breakpoints_callback.
97 (cancel_breakpoints_callback): Call cancel_breakpoint.
98 (pipe_to_local_event_queue): Remove special token processing.
99 (linux_nat_wait): Issue an internal error if a pending status is
100 found in async mode.
101
807bddf3
DJ
1022008-03-24 Daniel Jacobowitz <[email protected]>
103
104 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
105
c5b48eac
VP
1062008-03-24 Nick Roberts <[email protected]>
107 Vladimir Prus <[email protected]>
108
109 * varobj.c (struct varobj_root): New component thread_id.
110 (varobj_get_thread_id, check_scope): New functions.
111 (c_value_of_root): Use check_scope. Switch to the
112 proper thread if necessary.
113
114 * varobj.h (varobj_get_thread_id): New extern.
115
116 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
117
12f4afab
DJ
1182008-03-23 Daniel Jacobowitz <[email protected]>
119
120 PR gdb/544
121 * top.c: Revert 2008-03-21 changes.
122
6208b47d
VP
1232008-03-23 Vladimir Prus <[email protected]>
124
125 * thread.c (make_cleanup_restore_current_thread): Make it
126 globally visible.
127 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
128 * varobj.c (varobj_update): Don't save/restore frame.
129 (c_value_of_root): Save/restore thread and frame here,
130 using make_cleanup_restore_current_thread.
131 * Makefile.in: Update dependecies.
132
44a67aa7
VP
1332008-03-23 Vladimir Prus <[email protected]>
134
135 * varobj.c (struct varobj_root): Clarify
136 comment on the frame field.
137 (varobj_create): Don't set frame if we have no
138 block.
139
b562a0cb
DJ
1402008-03-21 Daniel Jacobowitz <[email protected]>
141
142 PR gdb/544
143 Suggested by Jan Kratochvil:
144 * top.c (gdb_rl_operate_and_get_next_completion): Call
145 rl_redisplay_function.
146 (gdb_rl_redisplay): New.
147 (init_main): Set rl_redisplay_function.
148
ed1bd5f5
JB
1492008-03-21 Thomas Mittelstaedt <[email protected]> (tiny change)
150
151 * aix-thread.c (pdc_read_regs): Fix compiler warning.
152 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
153 (store_regs_kernel_thread): Likewise.
154
b84876c2
PA
1552008-03-21 Pedro Alves <[email protected]>
156
157 Linux native async support.
158
159 * target.h (struct target_ops): Delete to_async_mask_value and add
160 to_async_mask.
161 (target_is_async_p, target_async): Formatting.
162 (target_async_mask_value): Delete.
163 (target_async_mask): Delete function declaration, and add new
164 target macro with the same name.
165
166 * target.c (update_current_target): Replace to_async_mask_value by
167 to_async_mask. Default to_async_mask to return_one.
168 (target_async_mask): Delete.
169 (find_default_can_async_p, find_default_is_async_p): New.
170 (init_dummy_target): register find_default_can_async_p and
171 find_default_is_async_p on the dummy target.
172
173 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
174 (debug_linux_nat_async): New global.
175 (show_debug_linux_nat_async): New function.
176 (linux_nat_async_enabled, linux_nat_async_mask_value)
177 (linux_nat_event_pipe, linux_nat_num_queued_events)
178 (linux_nat_async_events_enabled): New globals.
179 (struct waitpid_result): New struct.
180 (waitpid_queue): New global.
181 (queued_waitpid, push_waitpid, drain_queued_events): New.
182 (my_waitpid): Call queued_waitpid.
183 (linux_child_follow_fork): Disable async events during the call.
184 (blocked_mask): Delete.
185 (sync_sigchld_action, async_sigchld_action): New globals.
186 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
187 async mode, block events during the call.
188 (linux_nat_create_inferior): New.
189 (linux_nat_attach): In sync mode, restore the mask states. In
190 async mode, wake the event loop immediatelly.
191 (detach_callback): Drain all queued events of the lwp we're
192 detaching from.
193 (linux_nat_detach): Block async mode, and drain events of the main
194 process.
195 (linux_nat_resume): If in async mode, mask async events during the
196 call. If short circuiting, force event loop to wake up. If
197 resuming, set target_executing, and register target events in the
198 event loop.
199 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
200 (linux_nat_wait): In async mode, block events during the call.
201 Only enable/disable passing SIGINT to the inferior in sync mode.
202 Get events from local waitpid queue. If no interesting events was
203 found, return to events loop. Reregister target events in the
204 event loop on exit. In sync mode, no need to reblock SIGCHLD.
205 (linux_nat_kill): Disable events on entry.
206 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
207 here. Detach async mode from the event loop if there are no more
208 forks available, otherwise leave it on.
209 (sigchld_handler): Assure this is called only in sync mode.
210 (linux_async_permitted, linux_async_permitted_1): New globals.
211 (set_maintenance_linux_async_permitted)
212 (show_maintenance_linux_async_permitted): New functions.
213 (linux_nat_is_async_p, linux_nat_can_async_p)
214 (linux_nat_async_mask): New.
215 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
216 (get_pending_events, async_sigchld_handler): New.
217 (linux_nat_async_events): New.
218 (async_terminal_is_ours): New global.
219 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
220 (async_client_callback, async_client_context): New.
221 (linux_nat_async_file_handler, linux_nat_async)
222 (linux_nat_disable_async, linux_nat_enable_async): New.
223 (linux_nat_add_target): Register linux_nat_create_inferior,
224 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
225 linux_nat_async_mask, linux_nat_terminal_inferior and
226 linux_nat_terminal_ours.
227 (_initialize_linux_nat): Remove local action variable, and update
228 code that used it to use sync_sigchld_action. Add new
229 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
230 set/show command in the maintenance class. Add new "linux-async"
231 maintenance set/show command. Block SIGCHLD by default. Setup
232 async_sichld_action, and sync_sigchld_action. Install the default
233 async mode.
234 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
235 the cancel signals.
236
237 * linux-thread-db.c (re_check_for_thread_db): New.
238 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
239 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
240 (thread_db_async_mask): New.
241 (init_thread_db_ops): Register thread_db_can_async_p,
242 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
243
244 * remote.c (remote_async_mask_value): New.
245 (remote_return_zero): New.
246 (init_remote_ops): Register remote_return_zero as callbacks of
247 to_can_async_p and to_is_async_p.
248 (remote_can_async_p, remote_is_async_p, remote_async): Update to
249 use remote_async_mask_value.
250 (remote_async_mask): New.
251 (init_remote_async_ops): Remove to_async_mask_value setting and
252 register remote_async_mask as to_async_mask callback in
253 remote_async_ops.
254
255 * Makefile.in (linux-nat.o): Update.
256
17faa917
DJ
2572008-03-21 Daniel Jacobowitz <[email protected]>
258
259 * gdbthread.h (add_thread_with_info): New.
260 * linux-thread-db.c: Add some documentation.
261 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
262 (struct private_thread_info): Remove th_valid and ti_valid.
263 Replace ti with tid.
264 (thread_get_info_callback): Do not add TID to the new ptid. Do
265 not cache th or ti.
266 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
267 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
268 new PTID.
269 (attach_thread): Handle an already-existing thread. Use
270 add_thread_with_info. Cache the th and tid.
271 (detach_thread): Verify that private was set. Remove verbose
272 argument and printing. Update caller.
273 (thread_db_detach): Do not adjust inferior_ptid.
274 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
275 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
276 (thread_db_wait): Do not use lwp_from_thread.
277 (thread_db_pid_to_str): Use the cached TID.
278 (thread_db_extra_thread_info): Check that private is set.
279 (same_ptid_callback): Delete.
280 (thread_db_get_thread_local_address): Do not use it or check
281 is_thread. Check that private is set. Assume that the thread
282 handle is already cached.
283 (init_thread_db_ops): Remove to_resume and to_kill.
284 * thread.c (add_thread_with_info): New.
285 (add_thread): Use it.
286 * linux-nat.c (find_thread_from_lwp): Delete.
287 (exit_lwp): Do not use it. Check print_thread_events. Print before
288 deleting the thread.
289 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
290 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
291 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
292 printf_unfiltered for thread exits.
293 * procfs.c (procfs_wait): Likewise.
294
6214f497
DJ
2952008-03-21 Chris Demetriou <[email protected]>
296
297 * symtab.c (rbreak_command): Quote symbol name before passing
298 it to break_command.
299
63092375
DJ
3002008-03-21 Daniel Jacobowitz <[email protected]>
301
302 * eval.c (evaluate_subexp_for_address): Clarify error message.
303 Use value_must_coerce_to_target.
304 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
305 * valops.c (value_assign): Call value_coerce_to_target when
306 assigning to anything but internalvars. Leave GDB-side arrays
307 as arrays when assigning to internalvars.
308 (value_must_coerce_to_target, value_coerce_to_target): New.
309 (value_coerce_array, value_addr): Call value_coerce_to_target.
310 (value_array): Create the array in GDB's memory instead of
311 the inferior's.
312 * value.h (value_must_coerce_to_target, value_coerce_to_target):
313 Declare.
314
b21991b0
DJ
3152008-03-21 Daniel Jacobowitz <[email protected]>
316
317 * top.c (quit_confirm): Warn that we will kill the program.
318
49a834f9
PA
3192008-03-19 Pedro Alves <[email protected]>
320
321 * inflow.c (terminal_ours_1): Guard access to
322 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
323
ae0d2f24
UW
3242008-03-18 Ulrich Weigand <[email protected]>
325 Jim Blandy <[email protected]>
326 Daniel Jacobowitz <[email protected]>
327
328 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
329 (dwarf2_read_address): Update prototype.
330
331 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
332 (signed_address_type): Likewise.
333 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
334 (execute_stack_op): Update calls to unsigned_address_type,
335 signed_address_type and dwarf2_read_address. Fix implementation
336 of DW_OP_deref_size.
337
338 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
339 (dwarf2_per_cu_addr_size): Likewise.
340 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
341 (struct dwarf2_loclist_baton): Likewise.
342
343 * dwarf2loc.c (find_location_expression): Update calls to
344 dwarf2_read_address. Use dwarf2_per_cu_objfile and
345 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
346 (locexpr_describe_location): Likewise.
347 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
348 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
349 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
350 to dwarf2_per_cu_addr_size (per_cu).
351 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
352 (loclist_read_variable): Likewise.
353 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
354
355 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
356 instead of baton->objfile.
357 (dwarf2_per_cu_obfile): New function.
358 (dwarf2_per_cu_addr_size): Likewise.
359
360 * dwarf2-frame.c (struct comp_unit): Move higher.
361 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
362 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
363 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
364 parameter by using fde->eh_frame_p. Use read_encoded_value
365 to implement DW_CFA_set_loc.
366 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
367 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
368 execute_stack_op and execute_cfa_program.
369 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
370 (size_of_encoded_value): Remove.
371 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
372 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
373 (add_cie): Set cie->unit backlink.
374 (decode_frame_entry_1): Set cie->addr_size. Update calls to
375 read_encoded_value.
376 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
377
1c8201d1
MD
3782008-03-17 Markus Deuling <[email protected]>
379
380 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
381 gdbarch_bfd_arch_info.
382
46bba1ef
JB
3832008-03-17 Joel Brobecker <[email protected]>
384
385 * aix-thread.c (pdc_read_regs): Minor reformatting.
386
0bcd3e20
VP
3872008-03-17 Vladimir Prus <[email protected]>
388
389 * thread.c (print_thread_info): Don't insist
390 on having current thread if there are no
391 threads at all.
392
9356cf8d
PA
3932008-03-17 Pedro Alves <[email protected]>
394
395 * infcmd.c (attach_command_post_wait)
396 (attach_command_continuation): New.
397 (attach_command): Support background async execution, and async
398 execution in synchronous mode.
399
5c3ce3f7
DJ
4002008-03-17 Daniel Jacobowitz <[email protected]>
401
402 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
403 * symmisc.c (dump_symtab_1): Likewise.
404 * wrapper.c (gdb_value_struct_elt): Likewise.
405
fa2c6a57
PA
4062008-03-17 Pedro Alves <[email protected]>
407
408 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
409
02f3fc28
PA
4102008-03-17 Pedro Alves <[email protected]>
411
412 * linux-nat.c (linux_nat_filter_event): New, refactored from
413 linux_nat_wait.
414 (linux_nat_wait): Call linux_nat_filter_event.
415
2f77b315
UW
4162008-03-17 Ulrich Weigand <[email protected]>
417
418 * top.c (execute_command): Fix uninitialized variable error.
419
f01be29b
NH
4202008-03-16 Nick Hudson <[email protected]>
421
422 * Makefile.in (amd64nbsd-nat.o): New dependency.
423 * amd64nbsd-nat.c: Include "nbsd-nat.h".
424 (_initialize_amd64nbsd_nat): Update target vector to use
425 nbsd_pid_to_exec_file.
426 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
427
6cf32704
VP
4282008-03-15 Vladimir Prus <[email protected]>
429
430 Remove ignoring leading exec events code.
431 * fork-child.c (startup_inferior): Do not set
432 inferior_ignoring_leading_exec_events.
433 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
434 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
435 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
436 (handle_inferior_event): Remove code for ignoring leading exec
437 events.
438 * target.c (update_current_target): Do not inherit, or default,
439 to_reported_exec_events_per_exec_call.
440 (debug_to_reported_exec_events_per_exec_call): Remove.
441 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
442 * target.h (target_reported_exec_events_per_exec_call): Remove.
443 (struct target): Remove the to_reported_exec_events_per_exec_call
444 field.
445
8e8901c5
VP
4462008-03-15 Vladimir Prus <[email protected]>
447
448 Implement -thread-info.
449 * gdbthread.h (print_thread_info): Declare.
450
451 * thread.c (print_thread_info): New, extracted
452 from info_threads_command and adjusted to
453 work for CLI and MI.
454 (info_threads_command): Use print_thread_info.
455 * Makefile.in: Update dependencies.
456
457 * mi/mi-cmds.c (mi_cmds): Specify a handler
458 for -thread-info.
459 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
460 * mi/mi-main.c (mi_cmd_thread_info): New.
461 (mi_cmd_list_features): Include 'thread-info'.
462
7d1e6fb8
KB
4632008-03-14 Kevin Buettner <[email protected]>
464
465 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
466 to decide whether to match instruction patterns using "sw" and "sd".
467
89113898
PA
4682008-03-14 Pedro Alves <[email protected]>
469
470 * infcmd.c (jump_command): Postpone disabling stdin until after
471 the possible query.
472
64a0ac84
PA
4732008-03-14 Pedro Alves <[email protected]>
474
475 * inflow.c (gdb_getpgrp): New.
476 (gdb_has_a_terminal): Use get_getpgrp.
477 (terminal_ours_1): If attach_flag is set, don't refetch
478 inferior_process_group.
479
1fddbabb
PA
4802008-03-14 Pedro Alves <[email protected]>
481
482 * features/library-list.dtd: Allow "section" elements as children
483 of "library". Add "section" element and describe its attributes.
484
485 * solib-target.c (struct lm_info): Add section_bases member.
486 (library_list_start_segment): Error out if seen a section element.
487 (library_list_start_section): New.
488 (library_list_end_library): New.
489 (solib_target_free_library_list): Free section_bases.
490 (section_attributes): New.
491 (library_children): Make "segment" optional. Add "section" child.
492 (library_list_children): Register library_list_end_library.
493 (solib_target_relocate_section_addresses): Handle section bases.
494
495 * NEWS: Mention new qXfer:libraries:read section offsets support.
496
712af3be
VP
4972008-03-14 Vladimir Prus <[email protected]>
498
499 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
500 (make_exec_error_cleanup): Remove declarations.
501 * utils.c (exec_error_cleanup_chain): Remove.
502 (do_exec_error_cleanups, discard_exec_error_cleanups)
503 (make_exec_error_cleanup): Remove.
504 * event-loop.c (start_event_loop): Adjust call to
505 async_enable_stdin.
506 * event-top.c (async_enable_stdin): Remove the paramater dummy.
507 (async_disable_stdin): Don't register async_enable_stdin via
508 cleanup.
509 * inf-loop.c (inferior_event_handler): Don't
510 call do_exec_error_cleanups. Call async_enable_stdin instead.
511 * event-loop.c (start_event_loop): Adjust call to
512 async_enable_stdin.
513 * tui/tui-interp.c (tui_command_loop): Adjust call to
514 async_enable_stdin.
515
32c1e744
VP
5162008-03-14 Vladimir Prus <[email protected]>
517
518 Async mode fixes.
519 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
520 * breakpoint.c (bpstat_do_actions): In async mode,
521 don't jump to top expecting stop_bpstat to be already
522 updated.
523 * event-loop.c (start_event_loop): Call async_enable_stdin
524 on exception.
525 * event-top.c (async_enable_stdin): Do nothing if sync_execution
526 is not set.
527 (command_handler): Do not setup continuation here.
528 (command_line_handler_continuation): Move to...
529 * top.c (command_line_handler_continuation): ... here.
530 (execute_command): In async mode, register continuation.
531 Don't check frame's language in running in async mode.
532 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
533 * inf-loop.c (complete_execution): Inline into...
534 (inferior_event_handler): ... here. Clear target_executing before
535 doing any cleanups. Don't try to show prompt if the target was
536 resumed.
537 * infcmd.c (signal_command): Add support for async mode.
538 (finish_command): Only add continuation if the target was
539 successfully resumed.
540 * remote.c (init_async_opts): Register to_get_thread_local_address
541 handler.
542 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
543 with sync_execution.
544 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
545 on exception.
546
c04ea773
DJ
5472008-03-14 Daniel Jacobowitz <[email protected]>
548
549 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
550 * exec.c (exec_bfd_mtime): Define.
551 (exec_close): Clear it.
552 (exec_file_attach): Set it.
553 * gdbcore.h (exec_bfd_mtime): Declare.
554 * source.c (find_source_lines): Do not use bfd_get_mtime.
555
952dc227
VP
5562008-03-14 Vladimir Prus <[email protected]>
557
558 * top.c (simplified_command_loop): Remove.
559
4cf46804
VP
5602008-03-14 Vladimir Prus <[email protected]>
561
562 Remove unused remote.c hooks.
563 * remote.c (deprecated_target_resume_hook)
564 (deprecated_target_wait_loop_hook): Remove.
565 (remote_resume): Do not call deprecated_target_resume_hook.
566 (remote_wait): Do not call deprecated_target_wait_loop_hook.
567 (remote_async_wait): Likewise.
568
683f2885
VP
5692008-03-14 Vladimir Prus <[email protected]>
570
571 Implement MI notification for new threads.
572 * doc/observer.texi (new_thread): Document.
573 * observer.sh: Forward declare struct thread_info.
574 * thread.c (add_thread): Notify observer.
575
576 * interps.h (interp_init_ftype): New parameter
577 top_level.
578 (interp_set): Likewise.
579 (top_level_interpreter_data): Declare.
580 * interps.c (interp_set): New parameter top_level.
581 Pass it to interpreter's init function. Remember
582 top level interpreter.
583 (interpreter_exec_cmd): Adjust.
584 (top_level_interpreter_data): New.
585 * main.c (captured_main): Pass 1 for top_level
586 parameter of interp_set.
587 * cli/cli-interp.c (cli_interpreter_init): New
588 parameter top_level.
589 * tui/tui-interp.c (tui_init): New parameter top_level.
590
591 * mi/mi-interp.c (mi_new_thread): New.
592 (mi_interpreter_init): If top level, register
593 observer for new threads.
594
595 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
596
ff9b3928
PA
5972008-03-14 Pedro Alves <[email protected]>
598
599 * top.c (execute_command): Disable break and stop
600 commands in async mode.
601
b18392ef
PA
6022008-03-14 Pedro Alves <[email protected]>
603
604 revert:
605 2008-03-14 Pedro Alves <[email protected]>
606 * inf-loop.c (inferior_event_handler): Don't include remote.h.
607 Call target_stop in the INF_QUIT_REQ case.
608 * Makefile.in (inf-loop.o): Update.
609
0aca9f07
PA
6102008-03-14 Pedro Alves <[email protected]>
611
612 * inf-loop.c (inferior_event_handler): Don't include remote.h.
613 Call target_stop in the INF_QUIT_REQ case.
614 * Makefile.in (inf-loop.o): Update.
615
0b4e556c
PA
6162008-03-14 Pedro Alves <[email protected]>
617
618 * top.c (execute_command): Enable break, info and interrupt
619 commands in async mode.
620
8defab1a
DJ
6212008-03-13 Vladimir Prus <[email protected]>
622 Daniel Jacobowitz <[email protected]>
623
624 * breakpoint.h (breakpoint_restore_shadows): New
625 declaration.
626 * breakpoint.c (breakpoint_restore_shadows): New.
627 (read_memory_nobpt): Delete.
628 * gdbcore.h (read_memory_nobpt): Delete declaration.
629 * target.c (memory_xfer_partial): Call
630 breakpoint_restore_shadows.
631 (restore_show_memory_breakpoints)
632 (make_show_memory_beakpoints_cleanup): New.
633 (show_memory_breakpoints): New.
634 * target.h (make_show_memory_beakpoints_cleanup): Declare.
635 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
636 Make sure we see memory breakpoints when checking if
637 breakpoint is still there.
638 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
639 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
640 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
641 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
642
fd532e2e
PA
6432008-03-12 Pedro Alves <[email protected]>
644
645 * thread.c (add_thread): Use printf_unfiltered to print.
646
f749779f 6472008-03-12 Joel Brobecker <[email protected]>
965b60ee
JB
648
649 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
650 that is true only on x86-solaris and x86_64-solaris.
651 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
652 with proc_get_LDT_entry.
653
6542008-03-12 Thiago Jung Bauermann <[email protected]>
83116857
TJB
655
656 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
657 * config.in, configure: Regenerate.
658 * fork-child.c (fork_inferior): Call create_tty_session.
659 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
660 (create_tty_session): New function.
661 * terminal.h: Declare create_tty_session.
662
4fbb74a6
AM
6632008-03-12 Alan Modra <[email protected]>
664
665 PR 5900
666 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
667 * mipsread.c: Include elf/internal.h.
668 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
669 to internal range.
670
20a6ec49
MD
6712008-03-11 Markus Deuling <[email protected]>
672
673 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
674 to get at the current architecture and at the target specific vector.
675 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
676 remove define of I387_ST0_REGNUM.
677
678 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
679
680 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
681 get at the current architecture
682 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
683 parameter.
684
685 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
686 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
687
688 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
689 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
690 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
691
692 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
693 at the target specific vector.
694
695 (i386_get_longjmp_target): Use get_frame_arch to get at the current
696 architecture. Use gdbarch_tdep to get at the target specific vector.
697
698 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
699 update caller. Use gdbarch_tdep to get at the target specific vector.
700
701 (i386_register_to_value: Use get_frame_arch to get at the current
702 architecture.
703
704 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
705 parameter.
706
707 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
708 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
709 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
710 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
711
712 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
713 undef's.
714
715 (i387_convert_register_p, i387_register_to_value,
716 i387_value_to_register): Update call for i386_fp_regnum_p.
717
718 * i387-tdep.h: Remove comment.
719 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
720 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
721 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
722 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
723 I387_MXCSR_REGNUM): Add target specific vector as parameter.
724
ccd213ac
DJ
7252008-03-10 Daniel Jacobowitz <[email protected]>
726
727 * Makefile.in (fork-child.o): Update.
728 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
729 argument. Gather all gdbserver features together.
730 * fork-child.c (exec_wrapper): New variable.
731 (fork_inferior): Use it.
732 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
733 (unset_exec_wrapper_command, _initialize_fork_child): New.
734
7352008-03-10 Hidetaka Takano <[email protected]>
80618b99
MS
736
737 * source.c (directory_command): Modify the determination of
738 condition of terminal "from_tty".
739
22566fbd
DJ
7402008-03-10 Matt Rice <[email protected]>
741
742 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
743
9971ac47
UW
7442008-03-10 Hidetaka Takano <[email protected]>
745
746 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
747 of the data passing to strtoulst function.
748 (info_spu_signal_command): Likewise.
749
835670cf
VP
7502008-03-08 Vladimir Prus <[email protected]>
751
752 * mi/mi-interp.c (mi_command_loop): Remove
753 commented-out code.
754
be86555c
JB
7552008-03-07 Joel Brobecker <[email protected]>
756
757 * remote.c (extended_remote_attach_1): Make local variable pid an int
758 instead of a pid_t.
759
4d7b2d5b
JB
7602008-03-07 Joel Brobecker <[email protected]>
761
762 * solib-svr4.c (svr4_same_1): New function, originally extracted
763 from svr4_same and expanded to handle the sparc64 case.
764 (svr4_same): Move up and reimplement using svr4_same_1.
765 (enable_break): Use svr4_same_1 to do shared library name comparisons.
766
61fed90e
RR
7672008-03-07 Ramana Radhakrishnan <[email protected]>
768
769 * MAINTAINERS: Move self to Paper trail.
770
b803fb0f
DJ
7712008-03-05 Daniel Jacobowitz <[email protected]>
772
773 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
774 * event-loop.c (call_async_signal_handler): New.
775 * event-loop.h (call_async_signal_handler)
776 (gdb_call_async_signal_handler): Declare.
777 (mark_async_signal_handler): Add comments.
778 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
779 * mingw-hdep.c (sigint_event, sigint_handler): New.
780 (gdb_select): Use them. Wait for the readline signal handler
781 to finish.
782 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
783 * posix-hdep.c (gdb_call_async_signal_handler): New function.
784 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
785 New.
786 (remote_fileio_ctrl_c_signal_handler): Use
787 gdb_call_async_signal_handler.
788 (initialize_remote_fileio): Initialize sigint_fileio_token.
789 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
790 not initialize tokens here.
791 (handle_remote_sigint_twice): Likewise. Reinstall
792 handle_remote_sigint.
793 (async_remote_interrupt_twice): Just call interrupt_query.
794 (cleanup_sigint_signal_handler): Do not delete tokens.
795 (remote_interrupt, remote_interrupt_twice): Use
796 gdb_call_async_signal_handler.
797 (interrupt_query): Reinstall the default signal handler.
798 (_initialize_remote): Initialize tokens here.
799
8f4d54ed
JB
8002008-03-04 Joel Brobecker <[email protected]>
801
802 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
803 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
804 Change the type of the lr register to code_ptr.
805 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
806 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
807 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
808 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
809 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
810 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
811 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
812
95ece428
JW
8132008-03-03 James E. Wilson <[email protected]>
814
815 * MAINTAINERS: Update my email address.
816
686a5eed
KS
8172008-03-03 Keith Seitz <[email protected]>
818
819 From Dave Murphy <[email protected]>:
820 * configure.ac: Set tcl configdir to win under mingw.
821 * configure: Regenerate.
822
fa4727a6
DJ
8232008-03-03 Daniel Jacobowitz <[email protected]>
824
825 * breakpoint.c (fetch_watchpoint_value): New function.
826 (update_watchpoint): Set and clear val_valid. Use
827 fetch_watchpoint_value. Handle unreadable values on the
828 value chain. Correct check for user-requested array watchpoints.
829 (breakpoint_init_inferior): Clear val_valid.
830 (watchpoint_value_print): New function.
831 (print_it_typical): Use it. Do not free or clear old_val. Print
832 watchpoints even if old_val == NULL.
833 (watchpoint_check): Use fetch_watchpoint_value. Check for values
834 becoming readable or unreadable.
835 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
836 (do_enable_watchpoint): Likewise.
837 * breakpoint.h (struct breakpoint): Update comment for val. Add
838 val_valid.
839 * NEWS: Mention watchpoints on inaccessible memory.
840
c03374d5
DJ
8412007-02-29 Daniel Jacobowitz <[email protected]>
842
843 * Makefile.in (i386-nat.o): Update.
844 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
845 i386_use_watchpoints.
846 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
847 i386_use_watchpoints.
848 * i386-nat.c (i386_stopped_data_address): Take two arguments.
849 (i386_stopped_by_watchpoint): Update call.
850 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
851 * config/i386/nm-i386.h: Conditionalize definitions on
852 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
853 (i386_use_watchpoints): Declare.
854 (i386_stopped_data_address): Update.
855 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
856 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
857
c24d7425 8582008-02-29 Joel Brobecker <[email protected]>
859
860 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
861 * version.in: Bump version to 6.8.50.20080229-cvs.
862
a7dfd010
MD
8632008-02-28 Markus Deuling <[email protected]>
864
865 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
866 properly.
867
258c00cc
TT
8682008-02-28 Tom Tromey <[email protected]>
869
870 * infcmd.c (notice_args_read): Print result of get_inferior_args.
871
8edfe269
DJ
8722008-02-28 Daniel Jacobowitz <[email protected]>
873
874 * infcmd.c (kill_if_already_running): Make static. Use
875 target_require_runnable.
876 * target.c (target_require_runnable): New.
877 * target.h (target_require_runnable): Declare.
878
0d6ba1b1
DJ
8792008-02-28 Daniel Jacobowitz <[email protected]>
880
881 * frame.c (reinit_frame_cache): Only annotate if frames were
882 previously valid.
883
6fe305f7
UW
8842008-02-28 Ulrich Weigand <[email protected]>
885
886 * regformats/reg-ppc.dat: Rename "ps" to "msr".
887 * regformats/reg-ppc64.dat: Likewise.
888
9b4b61c8
UW
8892008-02-28 Ulrich Weigand <[email protected]>
890
891 * features/Makefile (%.dat): Emit xmltarget statement.
892
893 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
894 Generate code to set gdbserver_xmltarget in init_registers_${name}.
895
896 * regformats/arm-with-iwmmxt.dat: Regenerate.
897 * regformats/mips64-linux.dat: Regenerate.
898 * regformats/mips-linux.dat: Regenerate.
899 * regformats/rs6000/powerpc-32.dat: Regenerate.
900 * regformats/rs6000/powerpc-64.dat: Regenerate.
901 * regformats/rs6000/powerpc-e500.dat: Regenerate.
902
903 * regformats/reg-arm.dat: Add xmlarch statement.
904 * regformats/reg-i386.dat: Likewise.
905 * regformats/reg-i386-linux.dat: Likewise.
906 * regformats/reg-x86-64-linux.dat: Likewise.
907 * regformats/reg-spu.dat: Likewise.
908
20b4711e
DJ
9092008-02-27 Daniel Jacobowitz <[email protected]>
910
911 * remote.c (remote_wait, remote_async_wait): Stop if we receive
912 an error.
913
1843f87b
DJ
9142008-02-27 Daniel Jacobowitz <[email protected]>
915
916 * utils.c (debug_timestamp): New.
917 (vfprintf_unfiltered): Print timestamps if requested.
918 (show_debug_timestamp): New.
919 (initialize_utils): Register "set debug timestamp".
920 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
921
6a048695
JB
9222008-02-27 Joel Brobecker <[email protected]>
923
924 * breakpoint.c (skip_prologue_sal): New function.
925 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
926 computed from a line number.
927
0b998f49
JB
9282008-02-27 Joel Brobecker <[email protected]>
929
930 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
931 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
932 Set PC register type to "code_ptr".
933 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
934 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
935 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
936 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
937 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
938 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
939 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
940 Regenerate.
941
d05b4ac3
UW
9422008-02-27 Ulrich Weigand <[email protected]>
943
944 * regformats/regdat.sh: Rename init_registers function in
945 generated file to init_registers_${name}.
946
947 * regformats/reg-crisv32.dat: Set "name" to crisv32.
948 * regformats/reg-ppc64.dat: Set "name" to ppc64.
949 * regformats/reg-s390x.dat: Set "name" to s390x.
950
a5d9d57d
DJ
9512008-02-26 Greg Law <[email protected]>
952
953 * regcache.c (registers_changed): Call reinit_frame_cache.
954
e25c958c
DJ
9552008-02-26 Daniel Jacobowitz <[email protected]>
956
957 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
958 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
959 and svr4_fetch_objfile_link_map.
960 * Makefile.in (sh-linux-tdep.o): Update.
961
5daa78cc
TJB
9622008-02-26 Thiago Jung Bauermann <[email protected]>
963
964 * amd64-tdep.c (amd64_classify): Add support for decimal float
965 types.
966 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
967 use the struct return convention.
968
54e52265
VP
9692008-02-26 Nick Roberts <[email protected]>
970
971 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
972 to old format. Discard breakpoint address if shared library is
973 unloaded.
974 (breakpoint_1): Adjust formatting of table header accordingly.
975
d8f2712d
VP
9762008-02-25 Vladimir Prus <[email protected]>
977
978 * remote.c (remote_get_threadlist): If the response
979 is empty, don't try to parse it.
980
05ce04a4
VP
9812008-02-23 Vladimir Prus <[email protected]>
982
983 Unbreak 'target async'.
984 * serial.c (serial_async): Set the
985 handler function before enabling async
986 mode.
987
b36ec657
DJ
9882008-02-22 Daniel Jacobowitz <[email protected]>
989
990 * solib-svr4.c (enable_break): Convert r_brk to a code address.
991
df7df359
PA
9922008-02-21 Pedro Alves <[email protected]>
993
994 * remote.c (extended_remote_attach_1): Set attach_flag.
995 (extended_remote_create_inferior_1): Clear attach_flag.
996
7cd25cfc
DJ
9972008-02-20 Daniel Jacobowitz <[email protected]>
998
999 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
1000 r_brk_offset.
1001 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
1002 * solib-svr4.c (solib_svr4_r_brk): New.
1003 (open_symbol_file_object, svr4_current_sos): Always check the
1004 debug base.
1005 (svr4_fetch_objfile_link_map): Do not set debug_base.
1006 (enable_break): Use r_brk if it is set.
1007 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
1008 (svr4_lp64_fetch_link_map_offsets): Likewise.
1009 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
1010
07ea644b
MD
10112008-02-20 Markus Deuling <[email protected]>
1012 Mark Kettenis <[email protected]>
1013
1014 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
1015 trad_frame_saved_reg.
1016 (trad-frame.h): New include.
1017
1018 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
1019 instead of frame_obstack_zalloc.
1020 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
1021
1022 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
1023
40887e1a
MD
10242008-02-20 Markus Deuling <[email protected]>
1025
1026 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
1027 from disassemble_info instead of gdbarch_byte_order.
1028
1029 * mips-tdep.c (gdb_print_insn_mips): Likewise.
1030 * arm-tdep.c (gdb_print_insn_arm): Likewise.
1031
ae4b2284
MD
10322008-02-20 Markus Deuling <[email protected]>
1033
1034 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
1035 gdbarch as parameter.
1036
1037 * gdbarch.{c,h}: Regenerate.
1038
1039 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
1040 parameter.
1041 * mem-break.c (default_memory_insert_breakpoint)
1042 (default_memory_remove_breakpoint): Likewise.
1043 * target.h (default_memory_remove_breakpoint)
1044 (default_memory_insert_breakpoint): Likewise.
1045
1046 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
1047 parameter. Replace current_gdbarch by gdbarch.
1048 * m32r-tdep.c (m32r_memory_insert_breakpoint)
1049 (m32r_memory_remove_breakpoint): Likewise.
1050
d9bf65d5
DJ
10512008-02-19 Daniel Jacobowitz <[email protected]>
1052
1053 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
1054
b93b6ca7
JB
10552008-02-19 Joel Brobecker <[email protected]>
1056
1057 * NEWS: Add entry describing Add support improvements.
1058
4ed226fe
MD
10592008-02-18 Markus Deuling <[email protected]>
1060
1061 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
1062 M68K_FP0_REGNUM.
1063
caaa79ad
MD
10642008-02-18 Markus Deuling <[email protected]>
1065
1066 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
1067 register_offset_hack anymore.
1068
1069 * regcache.{c,h} (register_offset_hack): Remove.
1070
e38c262f
MD
10712008-02-18 Markus Deuling <[email protected]>
1072
1073 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
1074
1075 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
1076 current_gdbarch by gdbarch.
1077 (hppa64_hpux_find_global_pointer): Likewise.
1078 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
1079 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
1080 find_global_pointer.
1081
1082 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
1083 parameter.
1084 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
1085
1086 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
1087 of gdbarch_num_regs.
1088
1089 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
1090 replace current_gdbarch by gdbarch.
1091 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
1092
206988c4
MD
10932008-02-18 Markus Deuling <[email protected]>
1094
1095 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
1096 and replace current_gdbarch by gdbarch.
1097
1098 (store_register): Update call for exec_one_dummy_insn.
1099 (fetch_register, store_register): Update call of regmap.
1100
1101 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
1102 parameter and replace current_gdbarch by gdbarch.
1103
1104 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
1105 the current architecture. Update call for getregs_supplies and
1106 getfpregs_supplies.
1107 (ppcnbsd_fetch_inferior_registers): Likewise.
1108
1109 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
1110 replace current_gdbarch by gdbarch.
1111 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
1112 get_regcache_arch to get at the current architecture. Update call for
1113 getfpregs_supplies.
1114
f642be6b
MD
11152008-02-18 Markus Deuling <[email protected]>
1116
1117 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
1118 variables.
1119
b1f2bf01
MD
11202008-02-15 Markus Deuling <[email protected]>
1121
1122 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
1123
ee163bf5
VP
11242008-02-14 Vladimir Prus <[email protected]>
1125
1126 * NEWS: Mention pending breakpints in MI.
1127
f6fbcbf9
MD
11282008-02-14 Markus Deuling <[email protected]>
1129
1130 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
1131
36af4ef6
MD
11322008-02-13 Markus Deuling <[email protected]>
1133
1134 Add script to build and test GDB using enable-targets=all.
1135
1136 * gdb_buildall.sh: New file.
1137
94a0e877
MG
11382008-02-11 Maxim Grigoriev <[email protected]>
1139
1140 * NEWS (New native configurations): Xtensa GNU/Linux.
1141 (New targets): Xtensa GNU/Linux.
1142 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
1143 xtensa-linux-tdep.o
1144 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
1145 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
1146 * configure.tgt (xtensa*-*-linux*): New entry.
1147 * xtensa-config.c (xtensa_tdep): New variable.
1148 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
1149 (rmap): Change format based on new macro XTREG.
1150 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
1151 * xtensa-linux-nat.c: New.
1152 * xtensa-linux-tdep.c: New.
1153 * xtensa-xtregs.c: New.
1154 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
1155 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
1156 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
1157 (xtensa_register_t): New field coprocessor.
1158 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
1159 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
1160 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
1161 Update to handle privileged registers.
1162 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
1163 (xtensa_push_dummy_call): Set windowstart register correctly.
1164 (call0_analyze_prologue): Initialize xtensa_default_isa.
1165 (xtensa_derive_tdep): New.
1166 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
1167 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
1168 Call xtensa_derive_tdep().
1169 * config/xtensa/linux.mh: New.
1170 * regformats/reg-xtensa.dat: New.
1171
b7ee1b0a 11722008-02-09 Aleksandar Ristovski <[email protected]> (tiny change)
f90c07ac
EZ
1173
1174 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
1175 (filenames.h): New include.
1176 * Makefile.in (corelow.o): Add dependency for filenames.h.
1177
8da2a1df
DJ
11782008-02-08 Doug Evans <[email protected]>
1179
1180 * source.c (find_and_open_source): Always rewrite absolute filenames.
1181
776592bf
DE
11822008-02-07 Doug Evans <[email protected]>
1183
1184 * breakpoint.c: #include "hashtab.h".
1185 (ambiguous_names_p): New fn.
1186 (update_breakpoint_locations): When restoring bp enable status, don't
1187 compare function names if any functions have same name.
1188 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
1189
d6565258
JB
11902008-02-07 Joel Brobecker <[email protected]>
1191
1192 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
1193 instead of just a VEC*. Update use of SV.
1194 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
1195
6d53d0af
JB
11962007-02-07 Joel Brobecker <[email protected]>
1197
1198 * NEWS: Put all new commands since gdb-6.7 together.
1199
2ba95b9b
JB
12002007-02-07 Joel Brobecker <[email protected]>
1201
1202 * ada-lang.c: #include "vec.h".
1203 (struct string_vector, new_string_vector, string_vector_append):
1204 Delete.
1205 (char_ptr): New typedef.
1206 (DEF_VEC_P (char_ptr)): New VEC type.
1207 (symbol_completion_add): Update profile to take the new VEC type
1208 instead of the old string_vector structure. Update code accordingly.
1209 (ada_make_symbol_completion_list): Use the new VEC type instead of
1210 the old string_vector structure, and update the code accordingly.
1211 * Makefile.in (ada-lang.o): Add dependency on vec.h.
1212
4ae0885a
PM
12132008-02-06 Pierre Muller <[email protected]>
1214
1215 * p-exp.y: Set current_type in missing places.
1216 (leftdiv_is_integer): New static variable.
1217 Typecast right operand of BINOP_DIV to long_double if both operands
1218 are integers.
1219
06b1d59c
MR
12202008-02-06 Maciej W. Rozycki <[email protected]>
1221
1222 * remote-mips.c (set_breakpoint): Rename to...
1223 (mips_set_breakpoint): ... this.
1224 (clear_breakpoint): Rename to...
1225 (mips_clear_breakpoint): ... this.
1226 (common_breakpoint): Rename to...
1227 (mips_common_breakpoint): ... this.
1228 (check_lsi_error): Rename to...
1229 (mips_check_lsi_error): ... this.
1230
41d27058
JB
12312007-02-05 Joel Brobecker <[email protected]>
1232
1233 * language.h (struct language_defn): Add new field
1234 la_make_symbol_completion_list.
1235 * symtab.c (default_make_symbol_completion_list): Renames
1236 make_symbol_completion_list.
1237 (make_symbol_completion_list): New function.
1238 * symtab.h (default_make_symbol_completion_list): Add declaration.
1239 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
1240 (auto_language, local_language): Likewise.
1241 * objc-lang.c (objc_language_defn): Likewise.
1242 * scm-lang.c (scm_language_defn): Likewise.
1243 * m2-lang.c (m2_language_defn): Likewise.
1244 * f-lang.c (f_language_defn): Likewise.
1245 * jv-lang.c (java_language_defn): Likewise.
1246 * p-lang.c (pascal_language_defn): Likewise.
1247 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
1248 (minimal_language_defn): Likewise.
1249 * ada-lang.c (struct string_vector): New structure.
1250 (new_string_vector, string_vector_append, ada_unqualified_name)
1251 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
1252 (ada_make_symbol_completion_list): New functions.
1253 (ada_language_defn): Set la_make_symbol_completion_list.
1254 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
1255 this function is static.
1256
ee3a2f01
KB
12572008-02-05 Kevin Buettner <[email protected]>
1258
1259 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
1260 to account for call site optimizations.
1261
d844e34b
JB
12622008-02-05 Andrzej Zaborowski <[email protected]>
1263
1264 * tracepoint.c (read_actions): Handle end-of-text indicator
1265 in action list properly. (Committed by Jim Blandy)
1266
02e4669d
JB
12672008-02-05 Jim Blandy <[email protected]>
1268
1269 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
1270 pseudoregister, not an internal error.
85ecb32b 1271 Reported by: Andrzej Zaborowski
02e4669d 1272
c39c8256
VP
12732008-02-04 Vladimir Prus <[email protected]>
1274
1275 * varobj.c (c_value_of_variable): Use xstrdup.
1276
ae7d22a6
VP
12772008-02-04 Vladimir Prus <[email protected]>
1278
1279 Update stored rendition of varobj value when format changes.
1280 * varobj.c (varobj_set_display_format): Recomputed
1281 print_value.
1282 (c_value_of_variable): Return print_value.
1283
81fe8080
DE
12842008-02-03 Doug Evans <[email protected]>
1285
301f0ecf
DE
1286 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
1287 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
1288 * valops.c (value_one): New function.
1289 * value.h (value_one): Declare.
1290
1291 Fix argument promotion for binary arithmetic ops for C.
1292 * valarith.c (unop_result_type): New fn.
1293 (binop_result_type): New fn.
1294 (value_binop): Move result type computation to binop_result_type.
1295 (value_pos, value_neg, value_complement): Move result type
1296 computation to unop_result_type.
1297
81fe8080
DE
1298 PR 2384
1299 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
1300 Return basetype, fieldno if found. All callers updated.
1301 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
1302 objfile.
1303 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
1304 * symfile.h (fill_in_vptr_fieldno): Delete.
1305
41808ebe
DE
13062008-02-02 Doug Evans <[email protected]>
1307
f8597ac3
DE
1308 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
1309
41808ebe
DE
1310 * typeprint.c (*): Whitespace cleanup.
1311
f964a756
MK
13122008-02-02 Mark Kettenis <[email protected]>
1313 Luis Machado <[email protected]>
1314 Thiago Jung Bauermann <[email protected]>
1315
1316 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
1317 don't fit into registerson the stack the way GCC does.
1318
b06ead72
JB
13192008-02-01 Joel Brobecker <[email protected]>
1320
1321 * symtab.c (symbol_set_names): Do not add an entry in the demangling
1322 hash table for Ada symbols. Just store the linkage name as is,
1323 and leave the demangled_name as NULL.
1324
2cfa0c8d
JB
13252007-02-01 Joel Brobecker <[email protected]>
1326
1327 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
1328 in the global scope.
1329 (new_symbol): Likewise.
1330
98deb0da
VP
13312008-02-01 Vladimir Prus <[email protected]>
1332
1333 * breakpoint.c (break_command_1): Return void.
1334 (break_command_really): Return void. Rethrow
1335 exceptions instead of returning.
1336 (gdb_breakpoint): Remove the error_message parameter.
1337 Return void. Rename to set_breakpoint.
1338 * gdb.h (gdb_breakpoint): Rename and move to...
1339 * breakpoint.h (set_breakpoint): ...here.
1340 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
1341 event hooks even if exception is thrown. Adjust to
1342 gdb_breakpoint interface changes.
1343
1344
ce0451ad
TJB
13452008-02-01 Thiago Jung Bauermann <[email protected]>
1346
1347 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
1348 float in both first and second word in the doubleword, to support
1349 old and new ABIs.
1350
723a2275
VP
13512008-02-01 Vladimir Prus <[email protected]>
1352
1353 Properly rethrow exception. This fixes errors
1354 about non-existent functions for -break-insert.
1355 * breakpoint.c (break_command_really): Use throw_exception
1356 for rethrowing. If rethrowing, don't print the exception.
1357
d64a946d
TJB
13582008-01-31 Thiago Jung Bauermann <[email protected]>
1359
1360 * NEWS: Mention Decimal Floating Point support.
1361
02b156f5
JB
13622008-01-31 Joel Brobecker <[email protected]>
1363
1364 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
1365 value type to builtin_type_void_func_ptr.
1366
a16b8bcd
UW
13672008-01-31 Andreas Krebbel <[email protected]>
1368
1369 * s390-tdep.c (is_float_singleton, is_float_like,
1370 alignment_of, s390_return_value): Make checks for
1371 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
1372
f949c649
TJB
13732008-01-31 Luis Machado <[email protected]>
1374 Thiago Jung Bauermann <[email protected]>
1375
1376 * infcmd.c (default_print_registers_info): Also print hex
1377 raw contents for TYPE_CODE_DECFLOAT registers.
1378 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
1379 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
1380 (rs6000_register_name): Add support for DFP pseudo-registers.
1381 (rs6000_pseudo_register_type): Likewise.
1382 rs6000_pseudo_register_reggroup_p): Likewise.
1383 (ppc_pseudo_register_read): New function.
1384 (ppc_pseudo_register_write): Likewise.
1385 (rs6000_pseudo_register_read): Likewise.
1386 (rs6000_pseudo_register_write): Likewise.
1387 (e500_pseudo_register_read): Move checks to
1388 rs6000_pseudo_register_read.
1389 (e500_pseudo_register_write): Move checks to
1390 rs6000_pseudo_register_write.
1391 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
1392 rs6000_pseudo_register_read and rs6000_pseudo_register_write
1393 in gdbarch if SPE or DFP is available. Adjust gdbarch's
1394 num_pseudo_regs to account for DFP pseudo regs.
1395
5a9e69ba
TJB
13962008-01-31 Thiago Jung Bauermann <[email protected]>
1397
1398 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
1399 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
1400 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
1401 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
1402 e500_pseudo_register_read, e500_pseudo_register_write): Use
1403 IS_SPE_PSEUDOREG macro.
1404 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
1405 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
1406 Remove initialization of tdep->ppc_ev31_regnum.
1407
4e885b20
JB
14082008-01-08 Paul Hilfinger <[email protected]>
1409
1410 * printcmd.c (print_formatted): Handle references as for unformatted
1411 prints.
1412
80f064a2
JB
14132008-01-30 Joel Brobecker <[email protected]>
1414
1415 * eval.c (evaluate_subexp_standard): Add handling of user
1416 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
1417
9b3442ee
PM
14182008-01-30 Pierre Muller <[email protected]>
1419
1420 * eval.c (evaluate_subexp_standard): Support
1421 BINOP_INTDIV opcode.
1422
d118ef87
PH
14232008-01-30 Paul N. Hilfinger <[email protected]>
1424
1425 * valarith.c (value_binop): Add floating-point BINOP_MIN and
1426 BINOP_MAX cases.
1427 For BINOP_EXP, use length and signedness of left operand only for
1428 result, as for shifts.
1429 For integral operands to BINOP_EXP, use new integer_pow and
1430 uinteger_pow functions so as to get full range of results.
1431 (integer_pow): New function.
1432 (uinteger_pow): New function.
1433
d56d46f5
VP
14342008-01-30 Vladimir Prus <[email protected]>
1435
1436 Use vector for varobj_list_children interface.
1437 * gdb/varobj.c (varobj_list_children): Return vector
1438 of varobjs.
1439 * gdb/varobj.h (varobj_list_children): Adjust
1440 prototype.
1441 (varobj_p): Declare. Declare vector thereof.
1442 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
1443 for varobj_list_children change.
1444 * Makefile.in (varobj_h): Update dependencies.
1445
1300a2f4
TJB
14462008-01-30 Thiago Jung Bauermann <[email protected]>
1447
1448 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
1449 TYPE_CODE_DECFLOAT arguments.
1450 (ppc64_sysv_abi_push_dummy_call) Likewise.
1451 (get_decimal_float_return_value): New function.
1452 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
1453 values by calling get_decimal_float_return_value.
1454 (ppc64_sysv_abi_return_value): Likewise.
1455
95ef687d
NR
14562008-01-30 Nick Roberts <[email protected]>
1457
1458 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
1459 for preprocessor macro information. Formatting changes.
1460
2d717e4f
DJ
14612008-01-29 Daniel Jacobowitz <[email protected]>
1462
1463 * remote.c (struct remote_state): Add cached_wait_status.
1464 (remote_exec_file): New variable.
1465 (PACKET_vAttach, PACKET_vRun): New constants.
1466 (extended_remote_restart): Do not query for status.
1467 (struct start_remote_args): New.
1468 (remote_start_remote): Take it as a second argument. Check
1469 whether the target is running. Issue an error for non-running
1470 non-extended targets. Cache the wait status. Set inferior_ptid
1471 here.
1472 (remote_open_1): Prompt to disconnect non-running targets. Make
1473 sure the target is marked running. Do not set inferior_ptid here.
1474 Update call to remote_start_remote. Do not call remote_check_symbols
1475 if the target is not running.
1476 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
1477 argument. Handle a non-running target.
1478 (remote_detach): Use it.
1479 (extended_remote_detach): New.
1480 (remote_disconnect): Fix typo. Use remoute_mourn_1.
1481 (extended_remote_attach_1, extended_remote_attach)
1482 (extended_async_remote_attach): New.
1483 (remote_vcont_resume): Remove unused variable.
1484 (remote_wait, remote_async_wait): Use any cached wait status.
1485 (putpkt_binary, getpkt): Clear any cached wait status.
1486 (extended_remoute_mourn_1): New.
1487 (extended_remote_mourn): Use it.
1488 (extended_async_remote_mourn, extended_remote_run): New.
1489 (extended_remote_create_inferior_1): New.
1490 (extended_remote_create_inferior): Use it.
1491 (extended_remote_async_create_inferior): Likewise.
1492 (remote_xfer_partial): Skip for non-executing targets.
1493 (init_extended_remote_ops): Set to_detach and to_attach.
1494 (init_extended_async_remote_ops): Likewise. Use
1495 extended_async_remote_mourn.
1496 (_initialize_remote): Register vAttach, vRun, and
1497 set remote exec-file.
1498 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
1499
e85a822c
DJ
15002008-01-29 Daniel Jacobowitz <[email protected]>
1501
1502 * Makefile.in (symfile.o): Update.
1503 * NEWS: Mention exec tracing support.
1504 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
1505 exec events.
1506 * infcmd.c (kill_if_already_running, detach_command)
1507 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
1508 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
1509 (follow_exec): Do not check may_follow_exec. Do not mourn and push
1510 targets. Apply the sysroot path to the loaded executable. Use
1511 no_shared_libraries.
1512 * linux-nat.c (linux_child_follow_fork): Print fork following
1513 messages if verbose.
1514 (kill_wait_callback): Kill again before waiting a second time.
1515 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
1516 no_shared_libraries.
1517
9db13498
JB
15182008-01-29 Joel Brobecker <[email protected]>
1519
1520 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
1521
b4d5ed91
JB
15222008-01-29 Joel Brobecker <[email protected]>
1523
1524 * nto-tdep.h: Remove #include "defs.h".
1525 * nto-tdep.c: Add #include "defs.h".
1526 * Makefile.in (nto_tdep_h): Update dependencies.
1527 (nto-tdep.o): Likewise.
1528
107313f7 15292008-01-29 Joel Brobecker <[email protected]>
ae123ec6
JB
1530
1531 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
1532 and use it.
1533 (proceed, start_remote): Update call to wait_for_inferior.
1534 * inferior.h (wait_for_inferior): Update declaration.
1535 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
1536 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
1537 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
1538 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
1539
3f4178d6
DJ
15402008-01-29 Aleksandar Ristovski <[email protected]>
1541
1542 * varobj (adjust_value_for_child_access): Added checking for
1543 returned value from gdb_value_ind.
1544 (c_describe_child): Likewise.
1545 (cplus_describe_child): Fixed a typo.
1546
5eeba8d4
JB
15472008-01-29 Jim Blandy <[email protected]>
1548
1549 * MAINTAINERS: Update my info.
1550
a5606eee
VP
15512008-01-29 Vladimir Prus <[email protected]>
1552
1553 Use multiple locations for hardware watchpoints.
1554 This eliminates the need to traverse value chain, doing
1555 various checks, in three different places.
1556
1557 * breakpoint.h (struct bp_location): New fields
1558 lengths and watchpoint_type.
1559 (struct breakpoint): Remove the val_chain field.
1560 * breakpoint.c (is_hardware_watchpoint): New.
1561 (free_valchain): Remove.
1562 (update_watchpoint): New.
1563 (insert_bp_location): For hardware watchpoint, just
1564 directly insert it.
1565 (insert_breakpoints): Call update_watchpoint_locations
1566 on all watchpoints. If we have failed to insert
1567 any location of a hardware watchpoint, remove all inserted
1568 locations.
1569 (remove_breakpoint): For hardware watchpoints, directly
1570 remove location.
1571 (watchpoints_triggered): Iterate over locations.
1572 (bpstat_stop_status): Use only first location of
1573 a resource watchpoint.
1574 (delete_breakpoint): Don't call free_valchain.
1575 (print_one_breakpoint): Don't print all
1576 locations for watchpoints.
1577 (breakpoint_re_set_one): Use update_watchpoint for
1578 watchpoints.
1579
0b3de036
VP
15802008-01-29 Vladimir Prus <[email protected]>
1581
1582 Don't reset watchpoint block on solib load.
1583
1584 * breakpoint.c (insert_bp_location): For watchpoints,
1585 recompute condition.
1586 (breakpoint_re_set_one): Instead of recomputing value
1587 and condition for watchpoints, just reset value and
1588 let insert_breakpoints/insert_bp_location recompute it.
1589 Don't do anything about disabled watchpoint.
1590
c3940723
PM
15912008-01-29 Pierre Muller <[email protected]>
1592
1593 * valarith.c (value_binop): Handle unsigned integer
1594 division by zero.
1595
83845630
KB
15962008-01-28 Kevin Buettner <[email protected]>
1597
1598 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
1599 instruction pattern that appears frequently in position
1600 independent code. Fix bug in code which looks for "fmov" and
1601 backtracks if no "fmov" is found.
1602
9ce5d3bb
DE
16032008-01-28 Doug Evans <[email protected]>
1604
1605 * dbxread.c (read_dbx_symtab): Fix indentation.
131fe1bb
DE
1606 Reformat comments to 80 columns.
1607 Move local var def closer to only use.
9ce5d3bb 1608
c78d192c
DJ
16092008-01-28 Daniel Jacobowitz <[email protected]>
1610
1611 * fork-child.c (SHELL_FILE): Remove #ifndef.
1612 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
1613
e11481da
PM
16142008-01-25 Pierre Muller <[email protected]>
1615
1616 * i386-tdep.c (i386_skip_noop): New function.
1617 (i386_analyze_prologue): Call i386_skip_noop function.
1618
244e85c8
MS
16192008-01-24 Michael Snyder <[email protected]>
1620
1621 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
1622 * win32-nat.c (win32_xfer_partial): Ditto.
1623 * target.c (default_xfer_partial): Minor whitespace adjustment.
1624
dd6be234
PA
16252008-01-24 Pedro Alves <[email protected]>
1626
1627 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
1628 strip bit 1 even if pc doesn't point to thumb code.
1629
9fa2223d
DJ
16302008-01-23 Daniel Jacobowitz <[email protected]>
1631
1632 * remote.c (remote_wait): Handle SIGINT between packets.
1633 (remote_async_wait): Likewise.
1634
93815fbf
VP
16352008-01-23 Vladimir Prus <[email protected]>
1636 Chris Demetriou <[email protected]>
1637
1638 * thread.c (add_thread_silent): Renamed
1639 from add_thread.
1640 (print_thread_events): New variable definition.
1641 (show_print_thread_events): New function.
1642 (_initialize_thread): Add "set print thread-events" and
1643 "show print thread-events" commands.
1644 (add_thread): Announce new thread.
1645 * gdbthread.h (add_thread_silent): Declare.
1646 (print_thread_events): New variable declaration.
1647 * inf-ttrace.c (inf_ttrace_wait): Don't
1648 inform about new thread, as add_thread is always
1649 called too, and will take care of that.
1650 * infrun.c (handle_inferior_event): Likewise.
1651 * procfs.c (procfs_wait): Likewise.
1652 * remote.c (remote_currthread): Likewise.
1653 * sol-thread.c (sol_thread_wait): Likewise.
1654 * win32-nat.c (get_win32_debug_event): Likewise.
1655 * linux-thread-db.c (attach_thread): Likewise.
1656 Remove the verbose parameter.
1657 (check_event): Make detach_thread be verbose
1658 only if print_thread_events is set.
1659 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
1660 about new thread. This is called only from
1661 linux-thread-db.c:attach_thread, which will take care.
1662 Remove the verbose parameter.
1663 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
1664
b4d7c9a6
NR
16652008-01-23 Nick Roberts <[email protected]>
1666
1667 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
1668
60c46647
VP
16692008-01-22 Vladimir Prus <[email protected]>
1670
1671 * breakpoint.c (break_command_really): New parameter
1672 ignore_count.
1673 (break_command_1): Pass 0 as
1674 ignore_count to break_command_really.
1675 (gdb_breakpoint): Pass ignore_count to
1676 break_command_really.
1677
e84605cd
KB
16782008-01-21 Kevin Buettner <[email protected]>
1679
1680 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
1681 sigcontext struct via pointer.
1682 (struct sigframe comment): Update to show new field `psc'.
1683
9d9cd7ac
VP
16842008-01-21 Vladimir Prus <[email protected]>
1685
1686 * infrun.c (handle_inferior_event): If
1687 we failed to remove breakpoints, error,
1688 don't try to increment PC by hand.
1689
af5ca30d
NH
16902008-01-18 Nick Hudson <[email protected]>
1691
1692 Add NetBSD/hppa target and host support.
1693
1694 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
1695 (hppabsd_gregset): Move to ...
1696 (hppabsd_regset_from_core_section): Rename
1697 hppaobsd_regset_from_core_section and move to ...
1698 (hppabsd_find_global_pointer): Update comment.
1699 (hppabsd_init_abi): Make global. Do not register
1700 hppabsd_regset_from_core_section.
1701 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
1702 move to ...
1703 (_initialize_hppabsd_tdep): Move to ...
1704 * hppaobsd-tdep.c: ... here. New file.
1705 * hppnbsd-tdep.c: New file.
1706 * hppnbsd-nat.c: New file.
1707 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
1708 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
1709 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
1710 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
1711 * configure.host (hppa*-*-netbsd*): New entry.
1712 * configure.tgt (hppa*-*-netbsd*): New entry.
1713 (hppa*-*-openbsd*): Update.
1714 * NEWS (New native configuration): Mention NetBSD/hppa.
1715 (New targets): Mention NetBSD/hppa.
1716
32c9a795
MD
17172008-01-18 Markus Deuling <[email protected]>
1718
1719 * gdbarch.sh (function_list): Add new property bits_big_endian to
1720 gdbarch structure.
1721 * gdbarch.{c,h}: Regenerate.
1722
1723 * value.c (struct value): Replace BITS_BIG_ENDIAN by
1724 gdbarch_bits_big_endian (comment).
1725 (unpack_field_as_long, modify_field): Likewise.
1726 * value.h: Likewise (comment).
1727 * valops.c (value_slice): Likewise.
1728 * valarith.c (value_subscript, value_bit_index): Likewise.
1729 * gdbtypes.h (field): Likewise (comment).
1730 * eval.c (evaluate_subexp_standard): Likewise.
1731 * dwarf2read.c (dwarf2_add_field): Likewise.
1732 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
1733 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
1734
1735 * defs.h (BITS_BIG_ENDIAN): Remove.
1736
1e5e79d0
MD
17372008-01-18 Markus Deuling <[email protected]>
1738
1739 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
1740 function calls.
1741 * m2-exp.y (yylex): Likewise.
1742 * objc-exp.y (yylex): Likewise.
1743
1744 * defs.h (DEPRECATED_STREQN): Remove.
1745
fabda5a7
L
17462008-01-17 H.J. Lu <[email protected]>
1747
1748 * MAINTAINERS: Update my email address.
1749
92726479
JB
17502008-01-17 Jim Blandy <[email protected]>
1751
1752 * README: Mention gdbserver/README.
1753
ef80d18e
PM
17542008-01-17 Pierre Muller <[email protected]>
1755
1756 * valarith.c (value_binop): Handle BINOP_INTDIV
1757 for unsigned and signed integers.
1758
1de90795
UW
17592008-01-17 Ulrich Weigand <[email protected]>
1760
1761 * s390-tdep.c (s390_gdbarch_init): Set default long double
1762 type to 128-bit IEEE quad.
1763
c70bd6f3
JB
17642008-01-17 Joel Brobecker <[email protected]>
1765
1766 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
1767
ba759613
MK
17682008-01-16 Mark Kettenis <[email protected]>
1769
77d49ac6
MK
1770 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
1771
ba759613
MK
1772 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
1773 * value.c: All callers changed.
1774
7ecb6532
MD
17752008-01-16 Markus Deuling <[email protected]>
1776
1777 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
1778 DEPRECATED_STREQ by its expression.
1779 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
1780 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
1781 (scan_xcoff_symtab): Likewise.
1782 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
1783 * f-lang.c (find_common_for_function): Likewise.
1784 * objc-exp.y (parse_number): Likewise.
1785
1786 * defs.h (DEPRECATED_STREQ): Remove.
1787
d15cf01c
MD
17882008-01-16 Markus Deuling <[email protected]>
1789
1790 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
1791 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
1792 get_frame_arch to get at the current_architecture. Update AM33_MODE
1793 call.
1794 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
1795 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1796 architecture.
1797 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
1798
f8028488
MD
17992008-01-16 Markus Deuling <[email protected]>
1800
1801 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
1802 parameter.
1803 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
1804
1805 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
1806 current_gdbarch by gdbarch. Update caller.
1807
1808 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
1809 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
1810 the current architecture. Update calls of
1811 amd64_native_gregset_supplies_p.
1812 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
1813 (amd64bsd_store_inferior_registers): Likewise.
1814
e101270f
MD
18152008-01-16 Markus Deuling <[email protected]>
1816
1817 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
1818 Replace current_gdbarch by gdbarch. Update caller.
1819
063e58ba
MD
18202008-01-16 Markus Deuling <[email protected]>
1821
1822 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
1823 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
1824 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
1825 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
1826 (stabsect_build_psymtabs): Fix indentation.
1827
662fb31b
MS
18282008-01-15 Michael Snyder <[email protected]>
1829
1830 * corelow.c (core_xfer_partial): Comment, cut/paste error.
1831
c1766e7d
PM
18322008-01-14 Pierre Muller <[email protected]>
1833
1834 * win32-nat.c (win32_create_inferior): Restore code calling
1835 CloseHandle on ProcessInformation structure.
1836
5ed10e6e
NH
18372008-01-13 Nick Hudson <[email protected]>
1838
1839 * configure.ac: Check for void * as 3 argument of ptrace.
1840 * configure: regenerate.
1841
be8626e0
MD
18422008-01-11 Markus Deuling <[email protected]>
1843
1844 * alpha-tdep.c (alpha_heuristic_proc_start)
1845 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
1846 current_gdbarch by gdbarch.
1847
1848 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
1849 current architecture by frame_info. Update alpha_heuristic_proc_start
1850 call.
1851
1852 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
1853 get_frame_arch to get at the current architecture by frame_info. Update
1854 alpha_sigtramp_register_address call.
1855
1856 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
1857 current_gdbarch by gdbarch. Update caller.
1858 (convert_to_extended, convert_from_extended): Add endianess parameter
1859 for comparison. Update caller.
1860 (arm_extract_return_value, arm_store_return_value): Use
1861 get_regcache_arch to get at the current architecture.
1862
1863 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
1864 current_gdbarch by gdbarch. Update caller.
1865 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
1866 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
1867
1868 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
1869 gdbarch as parameter. Update caller.
1870 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
1871 current_gdbarch by gdbarch. Update caller.
1872
1873 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
1874 update caller. Replace current_gdbarch by gdbarch.
1875
1876 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
1877 the current architecture. Replace current_gdbarch by gdbarch.
1878 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1879 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
1880 expression. Add gdbarch as parameter and replace current_gdbarch with
1881 it. Update caller.
1882 (M6811_TDEP): Remove.
1883 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
1884 architecture.
1885 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
1886 current_gdbarch by gdbarch. Update caller.
1887
1888 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
1889 update caller.
1890 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
1891 by gdbarch.
1892
1893 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
1894 caller. Relace current_gdbarch by gdbarch.
1895 (altivec_register_p, spe_register_p): Likewise.
1896 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
1897 parameter.
1898 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
1899 altivec_register_p and spe_register_p.
1900
1901 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
1902 caller. Replace current_gdbarch by gdbarch.
1903 (score_analyze_prologue): use get_frame_arch to get at the current
1904 architecture.
1905
1906 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
1907 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
1908 current_gdbarch by gdbarch. Update caller.
1909 (sparc_frame_cache): Use get_frame_arch to get at the current
1910 architecture.
1911 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
1912 sparc_analyze_prologue.
1913
1914 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
1915 parameter.
1916
ed49a04f
MD
19172008-01-11 Markus Deuling <[email protected]>
1918
1919 * exec.c: #include "arch-utils.h"
1920 (print_section_info): Use gdbarch_from_bfd to get at the
1921 current architecture. Replace current_gdbarch. Fix indention. Replace
1922 deprecated_print_address_numeric by paddress.
1923 * Makefile.in (exec.o) Add dependency to arch-utils.h.
1924
1925 * valprint.c (val_print_string): Replace
1926 deprecated_print_address_numeric.
1927 * tracepoint.c (trace_mention, scope_info): Likewise.
1928 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
1929 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
1930 (maintenance_check_symtabs): Likewise.
1931 * symfile.c (list_overlays_command): Likewise.
1932 * stack.c (frame_info, print_block_frame_labels): Likewise.
1933 * printcmd.c (print_address, print_address_demangle)
1934 (address_info): Likewise.
1935 * corefile.c (memory_error): Likewise.
1936 * infcmd.c (jump_command): Likewise.
1937 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
1938 (mention, delete_breakpoint): Likewise.
1939 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
1940 * dwarf2read.c (dump_die): Likewise.
1941 * ada-valprint.c (ada_val_print_1): Likewise.
1942 * f-valprint.c (f_val_print): Likewise.
1943 * linux-fork.c (info_forks_command): Likewise.
1944 * m32r-com.c (m32r_load_section, m32r_load)
1945 (m32r_upload_command): Likewise.
1946
1947 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
1948
6093d2eb
MD
19492008-01-11 Markus Deuling <[email protected]>
1950
1951 * gdbarch.sh (skip_prologue): Add gdbarch
1952 as parameter.
1953 * gdbarch.{c,h}: Regenerate.
1954
1955 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
1956 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1957 * avr-tdep.c (avr_skip_prologue): Likewise.
1958 * cris-tdep.c (cris_skip_prologue): Likewise.
1959 * frv-tdep.c (frv_skip_prologue): Likewise.
1960 * h8300-tdep.c (h8300_skip_prologue): Likewise.
1961 * hppa-tdep.c (hppa_skip_prologue): Likewise.
1962 * i386-tdep.c (i386_skip_prologue): Likewise.
1963 * ia64-tdep.c (ia64_skip_prologue): Likewise.
1964 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
1965 * m32r-tdep.c (m32r_skip_prologue): Likewise.
1966 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
1967 * m68k-tdep.c (m68k_skip_prologue): Likewise.
1968 * m88k-tdep.c (m88k_skip_prologue): Likewise.
1969 * mep-tdep.c (mep_skip_prologue): Likewise.
1970 * mips-tdep.c (mips_skip_prologue): Likewise.
1971 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
1972 * mt-tdep.c (mt_skip_prologue): Likewise.
1973 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
1974 * score-tdep.c (score_skip_prologue): Likewise.
1975 * sh64-tdep.c (sh64_skip_prologue): Likewise.
1976 * sh-tdep.c (sh_skip_prologue): Likewise.
1977 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
1978 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
1979 * spu-tdep.c (spu_skip_prologue): Likewise.
1980 * v850-tdep.c (v850_skip_prologue): Likewise.
1981 * vax-tdep.c (vax_skip_prologue): Likewise.
1982 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
1983 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
1984
1985 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
1986 current_gdbarch by gdbarch.
1987 * m32c-tdep.c (m32c_skip_prologue): Likewise.
1988 * s390-tdep.c (s390_skip_prologue): Likewise.
1989
72f5cf0e
DE
19902008-01-10 Doug Evans <[email protected]>
1991
1992 * defs.h (struct continuation_arg): Fix typo in comment.
1993 * target.c (target_translate_tls_address): Fix comment spelling error.
1994
689e4e2d
TJB
19952008-01-09 Thiago Jung Bauermann <[email protected]>
1996
1997 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
1998 (DOUBLEST_SCAN_FORMAT): Likewise.
1999 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
2000 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
2001 * c-exp.y (parse_number): Likewise.
2002 * jv-exp.y (parse_number): Likewise.
2003 * objc-exp.y (parse_number): Likewise.
2004 * p-exp.y (parse_number): Likewise.
2005
ab0d6e0d
JB
20062008-01-09 Joel Brobecker <[email protected]>
2007
2008 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
2009 (check_typedef): Likewise.
2010
0aea4bf3
LM
20112008-01-09 Luis Machado <[email protected]>
2012
2013 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
2014 seen_double_big_d, treat the new H, D, and DD modifiers as length
2015 modifiers.
2016
137033e9
JB
20172008-01-08 Joel Brobecker <[email protected]>
2018
2019 * dwarf2read.c (read_enumeration_type): Add comment.
2020
dda297ec
TJB
20212008-01-08 Thiago Jung Bauermann <[email protected]>
2022
2023 * config.in: Regenerate.
2024
a93c0eb6
JB
20252008-01-08 Joel Brobecker <[email protected]>
2026
2027 * ada-lang.c (ada_convert_actual): Renames convert_actual.
2028 Make non-static.
2029 (ada_convert_actuals): Delete.
2030 * ada-lang.h (ada_convert_actual): Add declaration.
2031 (ada_convert_actuals): Remove declaration.
2032 * infcall.c: #include "ada-lang.h".
2033 (value_arg_coerce): Add new parameter sp. Update function
2034 documetnation. Add handling of Ada function call parameters.
2035 * Makefile.in (infcall.o): Update dependencies.
2036
a84a8a0d
JB
20372008-01-08 Paul Hilfinger <[email protected]>
2038
2039 * ada-lang.c (ensure_lval): Fix value lval kind.
2040 (convert_actual): Add handling for arguments passed by reference.
2041
d7f98cce
DE
20422008-01-08 Doug Evans <[email protected]>
2043
2044 * dbxread.c (read_dbx_symtab): Fix indentation.
2045
4ef30785
TJB
20462008-01-07 Thiago Jung Bauermann <[email protected]>
2047
2048 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
2049 (valarith.o): Depend on dfp.h.
2050 (valops.o): Likewise.
2051 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
2052 (set_decnumber_context): New function.
2053 (decimal_check_errors): Likewise.
2054 (decimal_from_number): Likewise.
2055 (decimal_to_number): Likewise.
2056 (decimal_from_string): Use set_decnumber_context and
2057 decimal_check_errors.
2058 (decimal_from_integral): New function.
2059 (decimal_from_floating): Likewise.
2060 (decimal_to_double): Likewise.
2061 (promote_decimal): Likewise.
2062 (decimal_binop): Likewise.
2063 (decimal_is_zero): Likewise.
2064 (decimal_compare): Likewise.
2065 (decimal_convert): Likewise.
2066 * dfp.h (decimal_from_integral): New prototype.
2067 (decimal_from_floating): Likewise.
2068 (decimal_to_double): Likewise.
2069 (decimal_binop): Likewise.
2070 (decimal_is_zero): Likewise.
2071 (decimal_compare): Likewise.
2072 (decimal_convert): Likewise.
2073 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
2074 call to value_from_decfloat.
2075 * valarith.c: Include dfp.h.
2076 (value_args_as_decimal): New function.
2077 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
2078 (value_logical_not): Likewise.
2079 (value_equal): Likewise.
2080 (value_less): Likewise.
2081 (value_pos): Likewise.
2082 (value_neg): Formatting fix.
2083 * valops.c: Include dfp.h.
2084 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
2085 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
2086 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
2087 (value_from_decfloat): Remove expect_type argument.
2088 * value.h (value_from_decfloat): Update prototype.
2089
a7c02bc8
VP
20902008-01-07 Vladimir Prus <[email protected]>
2091
2092 Ignore change in name of dynamic linker during
2093 execution on Solaris. This also unbreaks pending breakpoints.
2094
2095 * solist.h (struct target_so_ops): New field same.
2096 * solib-svr4.c (svr4_same): New.
2097 (_initialize_svr4_solib): Register svr4_same.
2098 * solib.c (update_solib_list): Use ops->same, if available.
2099
610dd7f9
CF
21002008-01-06 Christopher Faylor <[email protected]>
2101
2102 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
2103 when using MS-DOS paths.
2104
7a404eba
PA
21052008-01-05 Pedro Alves <[email protected]>
2106
2107 * NEWS: Mention --pid and --core command line behaviour changes.
2108
a4d9b460
PA
21092008-01-05 Pedro Alves <[email protected]>
2110
2111 * main.c (captured_main): Remove 'count' varible and the
2112 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
2113 --pid options were issued simultaneously. If an explicit pid
2114 option was passed, don't fallback to core file. Detect extra
2115 arguments better in the presence of explicit pid or core
2116 arguments.
2117
0c281816
JB
21182008-01-05 Joel Brobecker <[email protected]>
2119
2120 * ada-lang.c (ada_which_variant_applies): Correctly compute
2121 the value of the discriminant when the variant record is packed.
2122
babe1480
JB
21232008-01-04 Joel Brobecker <[email protected]>
2124
2125 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
2126 that are used to differentiate homonyms.
2127
727e3d2e
JB
21282008-01-04 Jerome Guitton <[email protected]>
2129
2130 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
2131 when the type is an anonymous pointer type.
2132 (ada_check_typedef): Avoid a seg fault when the type is null.
2133 * ada-typeprint.c (print_array_type): Add support for pointer
2134 to packed arrays.
2135
bb28a9dc
JB
21362008-01-04 Paul N. Hilfinger <[email protected]>
2137
2138 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
2139
6799def4
JB
21402008-01-04 Joel Brobecker <[email protected]>
2141
2142 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
2143 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
2144
d3353bbd
JB
21452008-01-04 Joel Brobecker <[email protected]>
2146
2147 * ada-exp.y (chop_separator): New function.
2148 (write_selectors): Rewrite to re-use chop_separator.
2149 (ada_nget_field_index, get_symbol_field_type): New functions.
2150 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
2151 expressions.
2152
82cf6c60
TJB
21532008-01-03 Thiago Jung Bauermann <[email protected]>
2154
2155 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
2156 of SYMBOL_VALUE when working with function symbols.
2157
b3dbf008
JB
21582008-01-03 Joel Brobecker <[email protected]>
2159
2160 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
2161 expressions. These expressions do not need to be rewriten.
2162
02eb380e
JB
21632008-01-03 Joel Brobecker <[email protected]>
2164
2165 * dwarf2read.c (read_enumeration_type): Flag type as stub if
2166 the given die is a declaration.
2167
abb68b3e
JB
21682008-01-03 Joel Brobecker <[email protected]>
2169
2170 * ada-lang.c (ada_array_bound_from_type): Make non-static.
2171 Handle properly the case when the index type is an enumerated type.
2172 Do not return the subtype of the bounds type, just return the
2173 bounds type directly - this is not needed and is more consistent
2174 with what we do for arrays when no XA parallel type exists.
2175
f192137b
JB
21762008-01-03 Joel Brobecker <[email protected]>
2177
2178 * ada-lang.c (static_unwrap_type): Add forward declaration.
2179 (template_to_static_fixed_type): Fields of dynamic types sometimes
2180 also need to be unwrapped. Take this into account.
2181 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
2182 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
2183 * ada-typeprint.c (ada_print_type): Get the typename from
2184 the original type, not the base type.
2185
1ed6ede0
JB
21862008-01-03 Jerome Guitton <[email protected]>
2187
2188 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
2189 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
2190 Update calls to ada_to_fixed_type.
2191 (ada_template_to_fixed_record_type_1): Ditto, but without looking
2192 for the tag.
2193 (ada_to_fixed_type): Add check_tag parameter; do not look for
2194 tag if null. When looking for a tag, use a fixed record type.
2195 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
2196 * ada-valprint.c (printable_val_type, ada_value_print): Update
2197 calls to ada_to_fixed_type.
2198
542a88d0
LM
21992008-01-03 Luis Machado <[email protected]>
2200
2201 * doublest.c (convert_floatformat_to_doublest): Call
2202 floatformat_to_doublest instead of floatformat_to_double and use
2203 DOUBLEST variables.
2204 (convert_doublest_to_floatformat): Call floatformat_from_doublest
2205 instead of floatformat_from_double and use DOUBLEST variables.
2206
dc2bbab2
NH
22072008-01-03 Nick Hudson <[email protected]>
2208
2209 * MAINTAINERS (Write After Approval): Add self.
2210
8b60591b
JB
22112008-01-03 Joel Brobecker <[email protected]>
2212
2213 * symfile.c (set_initial_language): Make non-static.
2214 * symfile.h (set_initial_language): Add declaration.
2215 * language.c: #include "symfile.h".
2216 (set_language): Call set_initial_language if the frame language
2217 could not be determined.
2218
ceef53c1
JB
22192008-01-03 Paul N. Hilfinger <[email protected]>
2220
2221 * eval.c (evaluate_subexp_for_address): Provide frame address to
2222 locate_var_value only if it will be needed.
2223
ef29ce1a
JK
22242008-01-02 Jan Kratochvil <[email protected]>
2225
2226 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
2227
0a07e705
JB
22282008-01-02 Joel Brobecker <[email protected]>
2229
2230 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
2231 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
2232 This is needed to make sure that any other treatment applied
2233 to the resulting value does not fail for spurious reason,
2234 such as trying to take the address of this value.
2235
f58b38bf
JB
22362008-01-02 Joel Brobecker <[email protected]>
2237
2238 * ada-lang.c (ada_value_equal): Dereference reference types when
2239 comparing arrays.
2240
9b254dd1
DJ
22412008-01-01 Daniel Jacobowitz <[email protected]>
2242
2243 Updated copyright notices for most files.
2244
33605d39
CF
22452008-01-01 Christopher Faylor <[email protected]>
2246
2247 * win32-nat.c (psapi_module_handle): Remove static.
2248 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
2249 return first module found if base_address is zero. Don't initialize
2250 psapi function pointers here. Convert to cygwin paths when
2251 appropriate.
2252 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
2253 executable name. Use get_module_name when that fails or when
2254 !__CYGWIN__.
2255 (_initialize_psapi): New function. Initialize psapi stuff before it is
2256 needed or issue a warning if it is not found. Move psapi_module_handle
2257 here.
2258
29480c32
JB
22592008-01-01 Joel Brobecker <[email protected]>
2260
2261 * ada-lang.c (ada_remove_trailing_digits): New function.
2262 (ada_remove_po_subprogram_suffix): New function.
2263 (ada_decode): Improve. Move the description of the algorithm
2264 directly inside the code, instead of in the function global
2265 description.
2266
969a1360
JB
22672008-01-01 Joel Brobecker <[email protected]>
2268
2269 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
2270 and always print the dereferenced value.
2271
b7789565
JB
22722008-01-01 Joel Brobecker <[email protected]>
2273
2274 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
2275 of the case where the first argument is a reference.
2276 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
2277
73fb9985
JB
22782008-01-01 Joel Brobecker <[email protected]>
2279
2280 Implement support for Ada interface types.
2281
2282 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
2283 (ada_is_ignored_field): Ignore fields that are a dispatch table
2284 of a tagged type.
2285
636265b6
JB
22862008-01-01 Joel Brobecker <[email protected]>
2287
2288 * top.c (print_gdb_version): Update copyright year.
2289
9d200a2e 22902008-01-01 Joel Brobecker <[email protected]>
b7589f7d 2291
9d200a2e
JB
2292 * ChangeLog-2007: New ChangeLog rotation.
2293 * ChangeLog: Reset for 2008.
2294 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
2295 ChangeLog-2007.
b7589f7d 2296
9d200a2e 2297For older changes see ChangeLog-2007.
c906108c
SS
2298\f
2299Local Variables:
2300mode: change-log
2301left-margin: 8
2302fill-column: 74
2303version-control: never
57da7796 2304coding: utf-8
c906108c 2305End:
This page took 2.155359 seconds and 4 git commands to generate.