90a73ce1f21a425351268b33e78565ea2294304f
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2008-08-22 Tom Tromey <tromey@redhat.com>
2
3 * NEWS: Move macro entries back under "New commands".
4
5 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
6
7 * breakpoint.c (create_overlay_event_breakpoint): Rename to ...
8 (create_overlay_event_breakpoint_1): ... this. Add OBJFILE parameter.
9 (create_overlay_event_breakpoint): Loop over all objfiles to install
10 multiple instances of the overlay event breakpoint if present.
11
12 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
13
14 * spu-tdep.c (spu_overlay_new_objfile): Only consider SPU objfiles.
15 (info_spu_event_command): Command only supported on SPU architecture.
16 (info_spu_signal_command): Likewise.
17 (info_spu_mailbox_command): Likewise.
18 (info_spu_dma_command): Likewise.
19 (info_spu_proxydma_command): Likewise.
20
21 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
22
23 * infrun.c (adjust_pc_after_break): Do not call get_thread_regcache
24 if the thread has already exited.
25
26 2008-08-22 Pedro Alves <pedro@codesourcery.com>
27
28 * infrun.c (proceed): Move back setting previous_inferior_ptid
29 from here ...
30 (wait_for_inferior): ... to here.
31 (fetch_inferior_event): ... and here.
32
33 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
34
35 * gdbarch.sh: Include "regcache.h" into gdbarch.c.
36 (deprecated_current_gdbarch_select_hack): Call registers_changed
37 instead of reinit_frame_cache.
38 * gdbarch.c: Regenerate.
39
40 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
41
42 * elfread.c (elf_symtab_read): Do not relocate thread-local symbols.
43
44 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
45
46 * xcoffread.c (SYMNAME_ALLOC): Correct syntax.
47
48 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
49
50 * findvar.c (locate_var_value): Do not call get_frame_arch
51 with a NULL frame argument.
52
53 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
54
55 * frame.h (frame_map_regnum_to_name): Remove prototype.
56 (frame_map_name_to_regnum): Remove prototype.
57 * frame.c (frame_map_regnum_to_name): Remove.
58 (frame_map_name_to_regnum): Remove.
59 (frame_unwind_register_value): Use user_reg_map_regnum_to_name
60 instead of frame_map_regnum_to_name.
61 * ax-gdb.c: Include "user-regs.h".
62 (gen_expr): Use user_reg_map_name_to_regnum instead of
63 frame_map_name_to_regnum.
64 * eval.c: Include "user-regs.h".
65 (evaluate_subexp_standard): Use user_reg_map_name_to_regnum
66 instead of frame_map_name_to_regnum.
67 * infcmd.c (registers_info): Likewise.
68 * parse.c: Include "user-regs.h".
69 (write_dollar_variable): Use user_reg_map_name_to_regnum
70 instead of frame_map_name_to_regnum.
71 * tracepoint.c: Include "user-regs.h".
72 (encode_actions): Use user_reg_map_name_to_regnum
73 instead of frame_map_name_to_regnum.
74 * valops.c: Include "user-regs.h".
75 (value_fetch_lazy): Use user_reg_map_regnum_to_name instead
76 of frame_map_regnum_to_name.
77
78 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
79
80 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Read
81 and manually relocate .opd contents from BFD instead of reading
82 them from target memory.
83
84 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
85
86 * dwarf2read.c (processing_current_prefix): Delete static
87 variable.
88 (process_full_comp_unit): Do not set processing_current_prefix.
89 (dwarf2_full_name): New function.
90 (read_func_scope): Do not set processing_current_prefix. Use
91 determine_prefix.
92 (read_structure_type): Do not set processing_current_prefix. Remove
93 unused inner cleanup.
94 (process_structure_scope): Do not set processing_current_prefix.
95 (read_enumeration_type): Use dwarf2_full_name.
96 (determine_class_name): Return a const char *. Put the result
97 on the objfile obstack. Use dwarf2_full_name.
98 (read_namespace_type): New function.
99 (read_namespace): Do not create the type here. Use
100 determine_prefix.
101 (read_typedef): Use dwarf2_full_name. Do not pass the name
102 to init_type.
103 (read_base_type): Do not pass the name to init_type. Handle
104 TYPE_FLAG_NOSIGN.
105 (read_unspecified_type): Do not pass the name to init_type.
106 (new_symbol): Use dwarf2_full_name instead of
107 processing_current_prefix.
108 (read_type_die): Do not set processing_current_prefix. Handle
109 DW_TAG_namespace.
110 (determine_prefix): Handle specifications. Return the result
111 on the objfile obstack. Handle unions correctly.
112
113 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
114
115 * buildsym.c (add_symbol_to_list): Do not call
116 cp_scan_for_anonymous_namespaces here.
117 (finish_block): Do not call cp_set_block_scope here.
118 * cp-namespace.c (processing_has_namespace_info)
119 (processing_current_prefix): Delete.
120 (cp_initialize_namespace): Do not initialize
121 processing_has_namespace_info.
122 (cp_scan_for_anonymous_namespaces): Use SYMBOL_DEMANGLED_NAME. Do
123 not check processing_has_namespace_info.
124 (cp_set_block_scope): Take prefix and namespace info flag as
125 arguments. Honor namespaces regardless of a demangled name.
126 * cp-support.h (processing_has_namespace_info)
127 (processing_current_prefix): Delete declarations.
128 (cp_set_block_scope): Update prototype.
129 * dwarf2read.c (processing_has_namespace_info)
130 (processing_current_prefix): New static variables.
131 (read_file_scope): Initialize processing_has_namespace_info.
132 (read_func_scope): Call cp_set_block_scope for C++.
133 (new_symbol): Call cp_scan_for_anonymous_namespaces for C++.
134 * symtab.c (symbol_demangled_name): Accept a const argument.
135 * symtab.h (symbol_demangled_name): Update prototype.
136
137 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
138
139 * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME.
140 * blockframe.c (find_pc_partial_function): Likewise.
141 * buildsym.c (find_symbol_in_list): Likewise.
142 * c-valprint.c (c_val_print): Likewise.
143 * coffread.c (patch_opaque_types, process_coff_symbol): Likewise.
144 (coff_read_enum_type): Likewise. Use SYMBOL_SET_LINKAGE_NAME.
145 * cp-support.c (cp_remove_params): Renamed from remove_params and
146 made global.
147 (overload_list_add_symbol): Update call to remove_params.
148 * cp-support.h (cp_remove_params): Declare.
149 * dwarf2read.c (process_enumeration_scope): Use SYMBOL_LINKAGE_NAME.
150 (dwarf2_const_value): Use SYMBOL_PRINT_NAME.
151 * expprint.c (dump_subexp_body_standard): Likewise.
152 * f-valprint.c (info_common_command, there_is_a_visible_common_named):
153 Use SYMBOL_LINKAGE_NAME to find symbols and SYMBOL_PRINT_NAME
154 for messages.
155 * findvar.c (read_var_value): Use SYMBOL_LINKAGE_NAME.
156 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
157 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
158 (hppa_hpux_skip_trampoline_code): Use SYMBOL_LINKAGE_NAME to find
159 symbols and SYMBOL_PRINT_NAME for messages.
160 * jv-lang.c (add_class_symbol): Use SYMBOL_SET_LINKAGE_NAME.
161 * linespec.c (decode_line_2): Use SYMBOL_LINKAGE_NAME.
162 * mdebugread.c (parse_symbol): Use SYMBOL_LINKAGE_NAME and
163 SYMBOL_SET_LINKAGE_NAME.
164 (mylookup_symbol): Use SYMBOL_LINKAGE_NAME.
165 * minsyms.c (add_minsym_to_demangled_hash_table): Use
166 SYMBOL_SEARCH_NAME.
167 (lookup_minimal_symbol): Use SYMBOL_LINKAGE_NAME or
168 SYMBOL_MATCHES_SEARCH_NAME, depending on the pass.
169 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Use SYMBOL_LINKAGE_NAME.
170 * printcmd.c (build_address_symbolic): Use SYMBOL_LINKAGE_NAME.
171 (address_info): Use SYMBOL_PRINT_NAME for messages and
172 SYMBOL_LINKAGE_NAME for lookups.
173 * sol-thread.c (info_cb): Use SYMBOL_PRINT_NAME for messages.
174 * stabsread.c (patch_block_stabs, define_symbol)
175 (read_type, read_enum_type, common_block_end)
176 (cleanup_undefined_types_1, scan_file_globals): Use
177 SYMBOL_LINKAGE_NAME, SYMBOL_SET_LINKAGE_NAME, ALL_OBJFILE_MSYMBOLS,
178 and SYMBOL_PRINT_NAME.
179 * stack.c (print_frame_args): Use SYMBOL_LINKAGE_NAME.
180 (print_frame, frame_info): Use SYMBOL_PRINT_NAME for output. Use
181 cp_remove_params instead of cplus_demangle.
182 (print_block_frame_labels, print_frame_arg_vars): Use
183 SYMBOL_LINKAGE_NAME.
184 * symmisc.c (dump_msymbols): Use ALL_OBJFILE_MSYMBOLS and
185 SYMBOL_LINKAGE_NAME.
186 (dump_symtab_1, print_symbol, print_partial_symbols)
187 (maintenance_check_symtabs): Use SYMBOL_LINKAGE_NAME.
188 * symtab.h (DEPRECATED_SYMBOL_NAME): Delete.
189 (SYMBOL_SET_LINKAGE_NAME): New.
190 (SYMBOL_SET_NAMES): Add a comment.
191 * tracepoint.c (set_traceframe_context, validate_actionline)
192 (collect_symbol, scope_info): Use SYMBOL_LINKAGE_NAME for
193 lookups and SYMBOL_PRINT_NAME for output.
194 * typeprint.c (typedef_print): Use SYMBOL_LINKAGE_NAME.
195 * xcoffread.c (process_xcoff_symbol): Use SYMBOL_SET_LINKAGE_NAME.
196
197 2008-08-21 Pedro Alves <pedro@codesourcery.com>
198
199 * arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr.
200 * hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise.
201 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use
202 obj_section_addr and obj_section_endaddr.
203 * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise.
204 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
205 * ia64-tdep.c (ia64_find_global_pointer): Likewise.
206 (find_extant_func_descr): Likewise.
207 * solib-frv.c (frv_relocate_main_executable): Use
208 obj_section_addr.
209 * xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use
210 obj_section_addr and obj_section_endaddr.
211
212 2008-08-21 Paul N. Hilfinger <hilfinger@adacore.com>
213
214 * NEWS: Amplify last entry on boolean types in Ada.
215
216 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
217
218 * dwarf2read.c (die_specification, dwarf2_extension, follow_die_ref):
219 Make the dwarf2_cu * parameter output as well as input. Update it if
220 we follow a reference to another CU.
221 (read_func_scope, determine_class_name, namespace_name, dwarf2_attr)
222 (die_type, die_containing_type): Update calls to changed functions.
223 Use the returned CU along with the returned DIE.
224 (read_namespace): Use dwarf2_attr instead of dwarf2_extension.
225
226 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
227
228 * dwarf2read.c (queue_comp_unit): Take an objfile argument. Read
229 in the DIEs here.
230 (process_queue): Do not read in the DIEs here.
231 (psymtab_to_symtab_1): Update call to queue_comp_unit.
232 (read_full_die): Do not call queue_comp_unit from here.
233 (maybe_queue_comp_unit): New function.
234 (follow_die_ref): Use it.
235
236 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
237
238 * dwarf2read.c (struct attribute): Move earlier.
239 (struct die_info): Change attrs to a trailing array.
240 (dwarf_alloc_die): Take the number of attributes. Allocate space
241 for them.
242 (read_full_die): Update call to dwarf_alloc_die. Do not manually
243 allocate attributes.
244
245 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
246
247 * dwarf2read.c (REF_HASH_SIZE): Delete.
248 (struct dwarf2_cu): Replace die_ref_table with die_hash.
249 (struct die_info): Remove next_ref.
250 (store_in_ref_table): Remove offset argument. Rewrite to use
251 htab_find_slot_with_hash.
252 (die_hash, die_eq): New.
253 (read_comp_unit): Allocate the die_hash.
254 (read_die_and_children): Update call to store_die_ref.
255 (follow_die_ref): Rewrite to use htab_find_with_hash.
256
257 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
258
259 * dwarf2read.c (free_die_list, copy_die): Delete.
260 (dwarf_alloc_die): Take a CU argument. Allocate the new DIE
261 on the obstack.
262 (read_full_die): Update call to dwarf_alloc_die. Allocate
263 attributes on the CU obstack.
264 (free_one_comp_unit): Do not call free_die_list.
265
266 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
267
268 * dwarf2read.c (read_die_and_children): Ignore NULL DIEs.
269 (read_die_and_siblings): Likewise. Do not add padding DIEs to the
270 sibling list.
271 (read_full_die): Do not allocate DIEs for abbrev 0.
272 (follow_die_ref): Correct error message.
273
274 2008-08-20 Pedro Alves <pedro@codesourcery.com>
275
276 * linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if
277 there are no symbols loaded, instead of throwing a generic error.
278 (decode_variable): Likewise.
279
280 2008-08-20 Pedro Alves <pedro@codesourcery.com>
281
282 * objfiles.h (struct obj_section): Remove addr and endaddr fields.
283 (obj_section_offset, obj_section_addr, obj_section_endaddr): New
284 macros.
285 * objfiles.c (add_to_objfile_sections): Don't set addr, endaddr
286 and offset. Use size_t instead of unsigned long.
287 (build_objfile_section_table): Use size_t instead of unsigned
288 long.
289 (objfile_relocate): Don't relocate s->addr and s->endaddr, they're
290 gone.
291 (find_pc_sect_section): Use obj_section_addr and
292 obj_section_endaddr.
293 * symfile.c (symfile.c): Remove code that maps sections
294 offsets in "addr" to the object's sections.
295 * blockframe.c (find_pc_partial_function): Use obj_section_endaddr.
296 * gcore.c (gcore_create_callback): Use obj_section_addr and
297 obj_section_endaddr.
298 * maint.c (print_objfile_section_info): Likewise.
299 * printcmd.c (sym_info): Use obj_section_addr and
300 obj_section_endaddr.
301 * symtab.c (fixup_section): Likewise.
302
303 2008-08-20 Mark Kettenis <kettenis@gnu.org>
304
305 * sparc-tdep.c: Make some comments catch up with reality.
306
307 2008-08-20 Vladimir Prus <vladimir@codesourcery.com>
308
309 * NEWS: Mention 'set target-async'
310
311 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
312
313 * infrun.c (resume): If the thread is placed to the deferred step
314 queue, mark it as running.
315
316 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
317
318 Make sure target supports non-stop.
319 * infcmd.c (run_command_1, attach_command): If non-stop mode
320 is requested, verify the target supports it.
321 * linux-nat.c (linux_nat_supports_non_stop): New.
322 (linux_nat_add_target): Register the above.
323 * target.c (find_default_supports_non_stop)
324 (target_supports_non_stop): New.
325 (init_dummy_target): Register find_default_supports_non_stop.
326 * target.h (struct target_ops): New field to_supports_non_stop.
327 (target_supports_non_stop): New.
328
329 2008-08-19 Pedro Alves <pedro@codesourcery.com>
330 Vladimir Prus <vladimir@codesourcery.com>
331
332 * target.c (target_async_permitted, target_async_permitted_1)
333 (set_maintenance_target_async_permitted)
334 (show_maintenance_target_async_permitted): New.
335 (initialize_targets): Register 'set target-async'.
336 * target.h (target_async_permitted): Declare.
337 * linux-nat.c (linux_nat_async_enabled)
338 (linux_nat_async_permitted, set_maintenance_linux_async_permitted)
339 (show_maintenance_linux_async_permitted): Remove.
340 (sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p)
341 (get_pending_events, linux_nat_async): Use target_async_permitted.
342 (linux_nat_set_async_mode): Remove, moving the only used bits
343 into...
344 (linux_nat_setup_async): This.
345 (_initialize_linux_nat): Do not register 'maint set linux-async'.
346 Use linux_nat_setup_async.
347 * remote.c (remote_async_permitted, remote_async_permitted_set)
348 (set_maintenance_remote_async_permitted)
349 (show_maintenance_remote_async_permitted): Remove.
350 (remote_open_1, remote_terminal_inferior, remote_can_async_p)
351 (remote_is_async_p): Use target_async_permitted.
352 (_initialize_remote): Don't register 'main set remote-async'.
353 * mi/mi-cmds.c (mi_cmds): Register -list-target-features.
354 * mi/mi-cmds.h (mi_cmd_list_target_features): New.
355 * mi/mi-main.c (mi_cmd_list_target_features): New.
356
357 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
358
359 * target.c (maybe_kill_then_attach)
360 (maybe_kill_then_create_inferior): Remove.
361 (update_current_target): Do not default to_attach,
362 to_create_inferiour, to_is_async_p.
363
364 2008-08-19 Paul N. Hilfinger <hilfinger@adacore.com>
365
366 Changes for supporting boolean types in debugging data.
367 * ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change
368 API to return LONGEST values rather than struct values.
369 (ada_evaluate_subexp): Change to use new API of discrete_type_low_bound
370 and discrete_type_high_bound.
371 (to_fixed_range_type): Create a range type in cases where
372 argument is base type and its limits are representable as ints.
373 (ada_is_modular_type): Correct so that base type must be integral.
374 * ada-lex.l (TRUEKEYWORD,FALSEKEYWORD): Make 'true' and 'false'
375 keywords when they appear alone, since we are phasing out
376 direct representation of these identifiers in debugging data.
377 * ada-exp.y: Define 'true' and 'false' as primaries.
378 (type_boolean): New function.
379 (type_int,type_long,type_long_long,type_floattype_double)
380 (type_long_double): Remove uses of current_gdbarch for consistency
381 with type_boolean.
382 (write_int): Change comment to indicate that it might write boolean
383 constant as well.
384 * ada-typeprint.c (ada_print_type): Print '(false, true)' for boolean
385 type, since will no longer be represented as enumerated type in
386 debugging data.
387 * ada-valprint.c (print_optional_low_bound): Handle boolean case
388 as well.
389 * NEWS: Note support boolean types.
390
391 2008-08-18 Pedro Alves <pedro@codesourcery.com>
392
393 * bsd-uthread.c (bsd_uthread_close): New.
394 (bsd_uthread_deactivate): Don't cleanup here, just unpush the
395 target.
396 (bsd_uthread_solib_loaded): Fix typo.
397 (bsd_uthread_target): Register bsd_uthread_close.
398
399 2008-08-18 Pedro Alves <pedro@codesourcery.com>
400
401 * corelow.c (core_open): Assume there was no upper layer left
402 behind from a previous inferior.
403 * target.c (pop_all_targets): Rename to ...
404 (pop_all_targets_above): ... this. Add a target stratum
405 parameter. Use it instead of hardcoding the dummy_stratum.
406 (pop_all_targets): New, defer to pop_all_targets_above.
407 (target_preopen): Use pop_all_targets_above.
408 * target.h (pop_all_targets_above): Declare.
409
410 2008-08-18 Pedro Alves <pedro@codesourcery.com>
411
412 * gdbthread.h (thread_change_ptid): Declare.
413 * infrun.c (infrun_thread_ptid_changed): New.
414 (_initialize_infrun): Attach infrun_thread_ptid_changed to the
415 thread_ptid_changed observer.
416 * regcache.c (regcache_thread_ptid_changed): New.
417 (_initialize_regcache): Attach regcache_thread_ptid_changed to the
418 thread_ptid_changed observer.
419 * thread.c (thread_change_ptid): New.
420
421 2008-08-18 Tom Tromey <tromey@redhat.com>
422
423 * symfile.c (reread_symbols): Update.
424 * solib-sunos.c (allocate_rt_common_objfile): Update.
425 * objfiles.c (allocate_objfile): Update.
426 * objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>:
427 Remove.
428
429 2008-08-18 Tom Tromey <tromey@redhat.com>
430
431 * gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's
432 obstack.
433
434 2008-08-18 Daniel Jacobowitz <dan@codesourcery.com>
435
436 * rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl,
437 lr_register.
438 (rs6000_in_function_epilogue_p): Check for bctr.
439 (skip_prologue): Initialize lr_register. Set lr_reg to a register
440 number. Set gpr_mask and used_bl. Continue scanning while some
441 expected registers are not saved. Set lr_register if LR is not
442 stored.
443 (rs6000_frame_cache): Handle gpr_mask and lr_register.
444
445 2008-08-17 Tom Tromey <tromey@redhat.com>
446
447 PR gdb/1535:
448 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros.
449 (ep_find_event_name_end): Remove.
450 (catch_fork_temporary, catch_vfork_temporary,
451 catch_fork_permanent, catch_vfork_permanent): New constants.
452 (catch_vfork, catch_fork): Remove.
453 (catch_fork_command_1): Add 'command' argument. Remove
454 'fork_kind' and 'tempflag'. Handle NULL 'arg'. Update switch for
455 all cases.
456 (catch_exec_command_1): Add 'command' argument; remove
457 'tempflag'. Handle NULL 'arg'.
458 (catch_load_command_1): Likewise.
459 (catch_unload_command_1): Likewise.
460 (catch_ada_exception_command): Likewise.
461 (catch_assert_command): Likewise.
462 (catch_catch_command): New function.
463 (catch_throw_command): Likewise.
464 (catch_command_1): Remove.
465 (catch_command): Just call error.
466 (tcatch_command): Likewise.
467 (catch_cmdlist): New global.
468 (tcatch_cmdlist): Likewise.
469 (add_catch_command): New function.
470 (_initialize_breakpoint): Create "catch" and "tcatch" as prefix
471 commands. Create all catch sub-commands.
472
473 2008-08-17 Pedro Alves <pedro@codesourcery.com>
474
475 * gdbthread.h: Add comments.
476 * stack.c (get_selected_block): Return 0 on an exited thread.
477 * top.c (execute_command): Check for is_stopped, not !is_running.
478 * event-top.c (command_handler): Likewise.
479
480 2008-08-16 Pedro Alves <pedro@codesourcery.com>
481
482 * mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction)
483 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
484 (mi_cmd_exec_finish): Remove "return".
485
486 2008-08-16 Pedro Alves <pedro@codesourcery.com>
487
488 * target.h (pop_all_targets): Declare.
489 * target.c (pop_all_targets): New.
490 * top.c (quit_target): Pop all targets instead of just closing the
491 current.
492
493 2008-08-16 Vladimir Prus <vladimir@codesourcery.com>
494 Thiago Jung Bauermann <bauerman@br.ibm.com>
495
496 * cli-script.c (read_next_line): Add parse_commands argument.
497 (recurse_read_control_structure): Adapt to new read_next_line
498 signature.
499 (read_command_lines): Add parse_commands argument.
500 (define_command): Adapt to new read_command_lines signature.
501 (document_command): Likewise.
502 * breakpoint.c (commands_command): Likewise.
503 * defs.h (read_command_lines): Adjust function prototype.
504
505 2008-08-16 Paul N. Hilfinger <hilfinger@adacore.com>
506
507 * ada-lang.c (pos_atr): Account for the possibility that the
508 argument may be a reference.
509
510 2008-08-16 Paul N. Hilfinger <hilfingr@adacore.com>
511
512 * xcoffread.c (scan_xcoff_symtab): Do not include global symbols
513 ('F' format) for @FIX names generated by the loader, retaining only
514 the minimal symbols (and no partial symbol tables) for these names.
515 Fixes warning messages about symbols that are found in partial
516 symbol tables, but not full symbol tables.
517
518 2008-08-16 Pedro Alves <pedro@codesourcery.com>
519
520 * infrun.c (fetch_inferior_event): Only call normal_stop if not
521 stopping quietly.
522
523 2008-08-15 Luis Machado <luisgpm@br.ibm.com>
524
525 * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c".
526 Include "features/rs6000/powerpc-vsx64.c".
527 (ppc_supply_vsxregset): New function.
528 (ppc_collect_vsxregset): New function.
529 (IS_VSX_PSEUDOREG): New macro.
530 (IS_EFP_PSEUDOREG): New macro.
531 (vsx_register_p): New function.
532 (ppc_vsx_support_p): New function.
533 (rs6000_builtin_type_vec128): New function.
534 (rs6000_register_name): Hide upper halves of vs0~vs31. Return
535 correct names for VSX registers and EFPR registers.
536 (rs6000_pseudo_register_type): Return correct types for VSX
537 and EFPR registers.
538 (rs6000_pseudo_register_reggroup_p): Return correct group for
539 VSX and EFPR registers.
540 (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read.
541 (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write.
542 (vsx_pseudo_register_read): New function.
543 (vsx_pseudo_register_write): New function.
544 (efpr_pseudo_register_read): New function.
545 (efpr_pseudo_register_write): New function.
546 (rs6000_pseudo_register_read): Call new VSX and EFPR read functions.
547 (rs6000_pseudo_register_write): Call new VSX and EFPR write functions.
548 (rs6000_gdbarch_init): Declare have_vsx.
549 Initialize new upper half VSX registers.
550 Initialize VSX-related and EFPR-related pseudo-registers variables.
551 Adjust the number of pseudo registers accordingly.
552
553 * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS
554 and SIZEOF_VSRREGS.
555 (gdb_vsxregset_t): New type.
556 (have_ptrace_getsetvsxregs): New variable.
557 (fetch_vsx_register): New function.
558 (fetch_register): Handle VSX registers.
559 (fetch_vsx_registers): New function.
560 (fetch_ppc_registers): Handle VSX registers.
561 (store_ppc_registers): Handle VSX registers.
562 (store_vsx_register): New function.
563 (store_register): Handle VSX registers.
564 (store_vsx_registers): New function.
565 (ppc_linux_read_description): Handle VSX-enabled inferiors.
566 (gdb_vsxregset_t): New type.
567 (supply_vsxregset): New function.
568 (fill_vsxregset): New function.
569
570 * ppc-tdep.h (vsx_register_p): New prototype.
571 (vsx_support_p): New prototype.
572 (ppc_vsr0_regnum): New variable.
573 (ppc_vsr0_upper_regnum): Likewise.
574 (ppc_efpr0_regnum): Likewise.
575 (ppc_builtin_type_vec128): New type.
576 (ppc_num_vsrs): New constant.
577 (ppc_num_vshrs): New constant.
578 (ppc_num_efprs): Likewise.
579 Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM.
580 (ppc_supply_vsxregset): New prototype.
581 (ppc_collect_vsxregset): New prototype.
582
583 * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c"
584 Include "features/rs6000/powerpc-vsx64l.c".
585 (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets.
586 (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field.
587 (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset.
588 (ppc_linux_regset_from_core_section): Handle VSX core section.
589 (ppc_linux_core_read_description): Support VSX-enabled core files.
590
591 * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l
592 Declare tdesc_powerpc_vsx64l
593
594 * corelow.c (get_core_register_section): Support VSX-enabled
595 core files.
596
597 * features/rs6000/power-vsx.xml: New VSX descriptions.
598 * features/rs6000/powerpc-vsx32.xml: New file.
599 * features/rs6000/powerpc-vsx32l.xml: New file.
600 * features/rs6000/powerpc-vsx64.xml: New file.
601 * features/rs6000/powerpc-vsx64l.xml: New file.
602 * features/rs6000/powerpc-vsx32.c: New file (generated).
603 * features/rs6000/powerpc-vsx32l.c: New file (generated).
604 * features/rs6000/powerpc-vsx64.c: New file (generated).
605 * features/rs6000/powerpc-vsx64l.c: New file (generated).
606 * features/Makefile: Updated with new descriptions.
607 * regformats/rs6000/powerpc-vsx32l.dat: New file (generated).
608 * regformats/rs6000/powerpc-vsx64l.dat: New file (generated).
609
610 2008-08-15 Vladimir Prus <vladimir@codesourcery.com>
611
612 * ia64-linux.nat (_initialize_ia64_linux_nat): Don't
613 call linux_target twice.
614
615 2008-08-14 Aleksandar Ristovski <aristovski@qnx.com>
616
617 * nto-tdep.c (lm_info): Updated struct lm_info definition from
618 solib-svr4.c
619 (LM_ADDR): Use l_addr if available; if not, use link map and set
620 l_addr.
621
622 2008-08-14 Tom Tromey <tromey@redhat.com>
623
624 * macrocmd.c (macro_define_command): Check for NULL argument.
625 (macro_undef_command): Likewise.
626
627 2008-08-14 Pedro Alves <pedro@codesourcery.com>
628
629 * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.
630
631 2008-08-13 Pedro Alves <pedro@codesourcery.com>
632
633 * breakpoint.c (always_inserted_auto, always_inserted_on)
634 (always_inserted_off, always_inserted_enums): New.
635 (always_inserted_mode): Change type to char* and point to
636 always_inserted_auto.
637 (show_always_inserted_mode): In auto mode, also show the current
638 effect of the option.
639 (breakpoints_always_inserted_mode): Adjust for the new auto mode.
640 (_initialize_breakpoint): Make the "set breakpoints
641 always-inserted" command an enum command. Extend help to describe
642 the auto mode.
643
644 2008-08-13 Ulrich Weigand <uweigand@de.ibm.com>
645
646 * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
647 query valid) bit. Ignore bits outside the condition field.
648 (info_spu_proxydma_command): Ignore bits outside the field.
649
650 2008-08-12 Michael Snyder <msnyder@vmware.com>
651
652 * MAINTAINERS: Update my email address.
653
654 2008-08-12 Ulrich Weigand <uweigand@de.ibm.com>
655
656 * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.
657
658 2008-08-12 Pedro Alves <pedro@codesourcery.com>
659
660 Add no-ack mode to the remote protocol --- optionally stop ACKing
661 packets and responses when we have a reliable communication
662 medium.
663
664 Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com>
665
666 * remote.c (struct remote_state): Add noack_mode field.
667 (PACKET_QStartNoAckMode): New.
668 (remote_start_remote): Don't any outstanding packet here.
669 (remote_open_1): Clear noack_mode. Ack any outstanding packet
670 here. Activate noack mode if requested.
671 (remote_protocol_features): Add QStartNoAckMode.
672 (remote_open_1):
673 (putpkt_binary): Don't send ack in noack mode.
674 (read_frame): Don't recompute the checksum in noack mode.
675 (getpkt_sane): Skip sending ack if in noack mode.
676 (_initialize_remote): Add set/show remote noack mode.
677 * NEWS: Note the new features.
678
679 2008-08-11 Kevin Buettner <kevinb@redhat.com>
680
681 * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
682 New macros.
683 (rs6000_skip_main_prologue): New function.
684 (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.
685
686 2008-08-11 Sandra Loosemore <sandra@codesourcery.com>
687
688 * MAINTAINERS (Write After Approval): Add self.
689
690 2008-08-11 Stan Shebs <stan@codesourcery.com>
691
692 ARM BE8 support.
693 * disasm.c (gdb_disassemble_info): Set endian_code.
694 * gdbarch.sh (gdbarch_info): New field byte_order_for_code.
695 * gdbarch.h, gdbarch.c: Regenerate.
696 * arch-utils.c (initialize_current_architecture): Set the
697 default byte_order_for_code.
698 (gdbarch_info_init): Ditto.
699 (gdbarch_info_fill): Ditto.
700 * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
701 (thumb_analyze_prologue): Swap halfword if code endianness is
702 different from general endianness.
703 (arm_skip_prologue): Similarly.
704 (arm_scan_prologue): Ditto.
705 (thumb_get_next_pc): Ditto.
706 (arm_get_next_pc): Ditto.
707 (arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
708 choose correct endianness for breakpoints.
709
710 2008-08-10 Pedro Alves <pedro@codesourcery.com>
711
712 * bsd-kvm.c: Include "gdbthread.h".
713 (bsd_kvm_ptid): New.
714 (bsd_kvm_open): Add a main thread.
715 (bsd_kvm_close): Delete it.
716 (bsd_kvm_thread_alive): New.
717 (bsd_kvm_pid_to_str): New.
718 (bsd_kvm_add_target): Register bsd_kvm_thread_alive and
719 bsd_kvm_pid_to_str.
720 (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
721
722 2008-08-09 Pedro Alves <pedro@codesourcery.com>
723
724 * buildsym.c (start_subfile): Properly cast sentinel in concat
725 call.
726 * cp-name-parser.y: Include "config.h".
727 * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
728 concat call.
729 * gdb_select.h: Include sys/time.h if sys/select.h is not
730 available.
731
732 2008-08-09 Pedro Alves <pedro@codesourcery.com>
733
734 * go32-nat.c: Include "gdbthread.h".
735 (go32_stop, go32_kill_inferior): Delete the main thread.
736 (go32_create_inferior): Add it.
737 (go32_thread_alive, go32_pid_to_str): New.
738 (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
739
740 2008-08-09 Pedro Alves <pedro@codesourcery.com>
741
742 * go32-nat.c (fetch_register, store_register): Pass the regcache
743 gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
744 (go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
745 (struct seg_descr, struct seg_descr): pack the whole struct
746 instead of each member individually.
747
748 2008-08-09 Andreas Schwab <schwab@suse.de>
749
750 * python/python.c (_initialize_python): Use unabbreviated commands
751 in prefix name.
752
753 2008-08-09 Daniel Jacobowitz <dan@codesourcery.com>
754
755 * Makefile.in (stamp-h): Also create .deps.
756
757 2008-08-09 Tom Tromey <tromey@redhat.com>
758
759 * Makefile.in (generated_files): Add GNULIB_H.
760
761 2008-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
762
763 * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
764 DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set.
765 Revise comment.
766 (pa64_current_sos): Remove map private warning warning.
767 * solib-som.c: Include string.h and sys/utsname.h.
768 (get_hpux_major_release): New function.
769 (som_solib_create_inferior_hook): Read dynamic linker header. Warn
770 about shared library private mapping on HP-UX 11 and later. Only force
771 private mapping of shared libraries on HP-UX 10 and earlier.
772 (link_map_start): Delete warning.
773
774 2008-08-09 Xuepeng Guo <xuepeng.guo@intel.com>
775 H.J. Lu <hongjiu.lu@intel.com>
776 Mark Kettenis <kettenis@gnu.org>
777
778 * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
779 (amd64_init_frame_cache): Initialize saved_sp_reg.
780 (amd64_analyze_stack_align): New.
781 (amd64_analyze_prologue): Call it.
782 (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set
783 %rip to 8 when halfway aligning the stack.
784
785 * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
786 AMD64_R14_REGNUM.
787
788 * i386-tdep.c (i386_frame_cache): Remove stack_align. Add
789 saved_sp_reg.
790 (i386_alloc_frame_cache): Remove stack_align. Initialize
791 saved_sp_reg to -1.
792 (i386_analyze_stack_align): Rewrite.
793 (i386_frame_cache): Use saved_sp_reg if it is valid.
794
795 2008-08-09 Ulrich Weigand <uweigand@de.ibm.com>
796
797 * target.c: Include "solib.h".
798 (target_pre_inferior): Call no_shared_libraries.
799 * infcmd.c (run_command_1): Do not call objfile_purge_solibs
800 or clear_solib.
801 (attach_command): Do not call clear_solib.
802
803 2008-08-09 Mark Kettenis <kettenis@gnu.org>
804
805 * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
806 the %eip register.
807
808 2008-08-08 Tom Tromey <tromey@redhat.com>
809
810 * Makefile.in (python.o): Remove dependencies. Use COMPILE and
811 POSTCOMPILE.
812 (python-utils.o): Likewise.
813
814 2008-08-08 Andreas Schwab <schwab@suse.de>
815
816 * corefile.c (_initialize_core): Remove spurious paren from set
817 gnutarget doc string.
818
819 2008-08-08 Luis Machado <luisgpm@br.ibm.com>
820
821 * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
822 Define PPC_FEATURE_BOOKE.
823 (ppc_linux_get_hwcap): New function.
824 (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
825 4-bytes alignment restrictions.
826 (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
827 positioning of the read/write flags.
828 (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
829 4-bytes alignment.
830
831 2008-08-08 Pedro Alves <pedro@codesourcery.com>
832
833 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
834
835 * win32-nat.c (win32_add_thread): Change thread argument type to
836 ptid_t. Adjust.
837 (win32_add_thread): Adjust.
838 (win32_delete_thread): Change thread argument type to ptid_t.
839 Adjust.
840 (win32_fetch_inferior_registers, win32_store_inferior_registers)
841 (win32_resume, get_win32_debug_event, get_win32_debug_event)
842 (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
843 (init_win32_ops): Put to_magic last.
844 (win32_win32_thread_alive): Adjust.
845
846 2008-08-08 Pedro Alves <pedro@codesourcery.com>
847
848 * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
849 (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.
850
851 2008-08-08 Pedro Alves <pedro@codesourcery.com>
852
853 * remote-m32r-sdi.c: Include "gdbthread.h".
854 (remote_m32r_ptid): New.
855 (m32r_close): Delete the main thread.
856 (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
857 main thread.
858 (m32r_kill, m32r_load, sdireset_command): Delete the main thread.
859 (_initialize_remote_m32r): Initialize remote_m32r_ptid.
860
861 2008-08-07 Tom Tromey <tromey@redhat.com>
862 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
863
864 * aclocal.m4, configure: Rebuild.
865 * configure.in: Call ZW_CREATE_DEPDIR,
866 ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
867 (MAKE, GMAKE): New substs.
868 * acinclude.m4: Include depstand.m4.
869 * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
870 COMPILE, POSTCOMPILE, depcomp): New variables.
871 Remove all _h variables.
872 Remove many .o targets.
873 ($(srcdir)/copying.c): avoid backslash-newline after comment
874 sign (@maintainer_mode_true@).
875 (HFILES_NO_SRCDIR): Regenerate.
876 (generated_files): New variable.
877 (all_gdbtk_cflags): Likewise.
878 (.c.o): Rewrote.
879 (init.o, version.o, copying.o): Remove.
880 (distclean): Remove DEPDIR.
881 (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
882 printcmd.o, procfs.o, v850ice.o): Rewrite.
883 (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
884 cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
885 (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
886 gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
887 gdbtk-wrapper.o): Likewise.
888 (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
889 mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
890 mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
891 mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
892 tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
893 tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
894 tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
895 tui-wingeneral.o, tui-winsource.o): Likewise.
896 (all_object_files): New variable.
897 ($(all_object_files)): New target.
898 Include dependency files, when using GNU Make.
899
900 2008-08-07 Ulrich Weigand <uweigand@de.ibm.com>
901
902 * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with
903 the valid bit set. Ensure display order respects partial
904 order defined by dependency bits.
905
906 2008-08-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
907
908 * solib-pa64.c (read_dld_descriptor): Return zero if load map is not
909 setup.
910
911 2008-08-06 Mark Kettenis <kettenis@gnu.org>
912
913 * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in
914 OpenBSD 4.3.
915
916 2008-08-06 Vladimir Prus <vladimir@codesourcery.com>
917 Tom Tromey <tromey@redhat.com>
918 Thiago Jung Bauermann <bauerman@br.ibm.com>
919 Doug Evans <dje@google.com>
920
921 * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS,
922 SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS,
923 PYTHON_CFLAGS): New.
924 (python_h, python_internal_h): New.
925 (cli-script.o): Depend on python.h
926 (python.o, python-utils.o): New.
927 * cli/cli-script.c (print_command_lines): Handle python_control.
928 (execute_control_command): Handle python_control.
929 (execute_control_command_untraced): New function.
930 (while_command): Call execute_control_command_untraced.
931 (if_command): Likewise.
932 (get_command_line): Remove static attribute.
933 (read_next_line): Handle "python".
934 (recurse_read_control_structure): Handle python_control.
935 (read_command_lines): Handle python_control.
936 Include python.h.
937 * cli/cli-script.h (get_command_line): Add prototype.
938 (execute_control_command_untraced): Likewise.
939 * configure.ac: Add --with-python.
940 * defs.h (enum command_control_type) <python_control>: New
941 constant.
942 * python/python-internal.h: New file.
943 * python/python.c: New file.
944 * python/python.h: New file.
945 * python/python-utils.c: New file.
946 * NEWS: Mention Python scripting support and its new commands.
947
948 2008-08-06 Ulrich Weigand <uweigand@de.ibm.com>
949
950 * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size.
951
952 2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
953
954 * MAINTAINERS (Write After Approval): Add self.
955
956 2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
957
958 * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
959 (insert_breakpoint_locations): Likewise.
960
961 2008-08-05 Phil Muldoon <pmuldoon@redhat.com>
962
963 * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
964 breakpoint.
965 (set_longjmp_breakpoint): Likewise.
966
967 2008-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
968
969 PR build/2490
970 * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are
971 defined.
972
973 2008-08-05 Tom Tromey <tromey@redhat.com>
974
975 * bcache.c (deprecated_bcache_added): Initialize obstack.
976 (bcache_xmalloc): Don't initialize obstack.
977 (bcache_xfree): Conditionally free obstack.
978 (bcache_memory_used): Update.
979
980 2008-08-05 Tom Tromey <tromey@redhat.com>
981
982 * symfile.c (add_psymbol_to_bcache): Return a const pointer. Use
983 bcache_full.
984 (append_psymbol_to_list): Accept a const pointer.
985 (add_psymbol_to_list): Fix const correctness.
986 * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove.
987 (bcache_full): Declare.
988 * bcache.c (bcache_data, deprecated_bcache): Remove.
989 (bcache): Use bcache_full.
990 (bcache_full): Rename from deprecated_bcache_added. Change return
991 type.
992
993 2008-08-04 Stan Shebs <stan@codesourcery.com>
994
995 * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined.
996 (bkpt_names): Remove SOLIB_BKPT_NAME, never defined.
997 (enable_break): Remove test of BKPT_AT_SYMBOL.
998
999 2008-08-02 Keith Seitz <keiths@redhat.com>
1000
1001 * acinclude.m4: Include ../config/tcl.m4 to pick up
1002 standard Tcl configury bits.
1003 Remove all Tcl, Tk, Itcl, Itk, etc definitions.
1004 * configure.ac: Don't check if ../itcl exists when building
1005 gdbtk. It could be installed.
1006 Rewrite gdbtk configury to allow for using system-supplied
1007 Tcl and Tk. Gdbtk no longer requires build-time access to
1008 itcl and itk.
1009 * Makefile.in: Remove everything related to itcl and itk.
1010 Rewrite the Tcl bits for gdbtk to correspond to rewrite of
1011 configure.ac.
1012 Remove v850ice.o build rule.
1013 (ALL_TCL_CFLAGS): New convenience defintion. Change all
1014 gdbtk sources to use it.
1015 * configure: Regenerate.
1016
1017 2008-07-31 Stan Shebs <stan@codesourcery.com>
1018
1019 * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE.
1020
1021 2008-07-30 Stan Shebs <stan@codesourcery.com>
1022
1023 * objfiles.c (TARGET_KEEP_SECTION): Remove.
1024 (add_to_objfile_sections): Remove use.
1025
1026 2008-07-29 Tom Tromey <tromey@redhat.com>
1027
1028 * cli/cli-decode.c (lookup_cmd_1): Use memcpy.
1029 (lookup_cmd_composition): Likewise.
1030
1031 2008-07-29 Tom Tromey <tromey@redhat.com>
1032
1033 * cli/cli-cmds.c (edit_command): Remove unused variables. Delete
1034 dead code. Fix indentation.
1035
1036 2008-07-29 Stan Shebs <stan@codesourcery.com>
1037
1038 * main.c (captured_main): Remove long-unused #if 0 blocks.
1039
1040 2008-07-28 Tom Tromey <tromey@redhat.com>
1041
1042 * annotate.h (deprecated_annotate_starting_hook): Remove.
1043 (deprecated_annotate_stopped_hook): Remove.
1044 (deprecated_annotate_exited_hook): Remove.
1045 * Makefile.in (annotate.o): Depend on observer_h.
1046 * top.c (deprecated_delete_breakpoint_hook): Remove.
1047 (deprecated_create_breakpoint_hook): Likewise.
1048 (deprecated_modify_breakpoint_hook): Likewise.
1049 * interps.c (clear_interpreter_hooks): Update for removed hooks.
1050 * breakpoint.c (mention): Don't call removed hook.
1051 (delete_breakpoint): Likewise.
1052 (disable_breakpoint): Likewise.
1053 (do_enable_breakpoint): Likewise.
1054 * annotate.c: Include observer.h.
1055 (breakpoint_changed): Change type of argument.
1056 (_initialize_annotate): Register observers.
1057 (deprecated_annotate_starting_hook): Remove.
1058 (deprecated_annotate_stopped_hook): Remove.
1059 (deprecated_annotate_exited_hook): Remove.
1060 (annotate_starting): Update for hook removal.
1061 (annotate_stopped): Likewise.
1062 (annotate_exited): Likewise.
1063 * defs.h (deprecated_delete_breakpoint_hook): Remove.
1064 (deprecated_create_breakpoint_hook): Likewise.
1065 (deprecated_modify_breakpoint_hook): Likewise.
1066
1067 2008-07-28 Tom Tromey <tromey@redhat.com>
1068
1069 * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
1070
1071 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
1072
1073 * configure.ac: Check for the GNU/Linux ptrace signature.
1074 * configure: Regenerated.
1075
1076 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
1077
1078 * linux-nat.c (resume_callback): Add more debugging output.
1079 (linux_nat_has_pending_sigint): New function, based on
1080 linux_nat_has_pending.
1081 (set_ignore_sigint, maybe_clear_ignore_sigint): New functions.
1082 (stop_wait_callback): Remove flush_mask handling. Honor
1083 ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL
1084 to recursive calls.
1085 (linux_nat_has_pending, flush_callback): Remove.
1086 (linux_nat_filter_event): Check for ignore_sigint.
1087 (linux_nat_wait): Remove flush_mask support and call to
1088 flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint.
1089 * linux-nat.h (struct lwp_info): Add ignore_sigint field.
1090
1091 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
1092
1093 * linux-nat.c (count_events_callback, select_event_lwp_callback): Only
1094 report events from resumed threads.
1095
1096 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
1097
1098 * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
1099 (mips_linux_init_abi): Set tdep->syscall_next_pc.
1100 * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to
1101 mips-tdep.h.
1102 (mips32_next_pc): Handle the syscall instruction.
1103 * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New,
1104 from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep.
1105
1106 2008-07-26 Tom Tromey <tromey@redhat.com>
1107
1108 PR gdb/1158:
1109 * valops.c (value_struct_elt): Treat function-valued field as a
1110 static method.
1111
1112 2008-07-26 Tom Tromey <tromey@redhat.com>
1113
1114 PR gdb/1136:
1115 * macroexp.c (get_punctuator) <punctuators>: Rearrange to put
1116 longer tokens first.
1117
1118 2008-07-26 Vladimir Prus <vladimir@codesourcery.com>
1119
1120 Kill cmd_async_ok.
1121 * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
1122 (get_cmd_async_ok): Remove.
1123 * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
1124 * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
1125 * infcmd.c (_initialize_infcmd): Likewise.
1126 * thread.c (_initialize_thread): Likewise.
1127
1128 2008-07-25 Joseph Myers <joseph@codesourcery.com>
1129
1130 * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
1131 128-bit long doubles in even-odd pairs of FPRs. Do not
1132 right-align float arguments for big-endian.
1133 (mips_n32n64_return_value): Apply return value convention for
1134 structs containing one or two floating-point values to soft-float
1135 as well as hard-float. Handle 128-bit long doubles in such
1136 structs.
1137 (mips_o32_push_dummy_call): Only skip one integer register for a
1138 float argument passed in an FPR.
1139
1140 2008-07-25 Tom Tromey <tromey@redhat.com>
1141
1142 * tui/tui-hooks.c: Include observer.h.
1143 (tui_event_default, tui_old_event_hooks, tui_event_hooks):
1144 Remove.
1145 (tui_bp_created_observer, tui_bp_deleted_observer,
1146 tui_bp_modified_observer): New globals.
1147 (tui_install_hooks): Use observers, not events.
1148 (tui_remove_hooks): Likewise.
1149 * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h.
1150 (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New
1151 globals.
1152 (breakpoint_notify): Check mi_can_breakpoint_notify.
1153 (breakpoint_hooks): Remove.
1154 (mi_cmd_break_insert): Attach observers. Don't use events.
1155 * tracepoint.c: Include observer.h, not gdb-events.h.
1156 (tracepoint_operation, trace_pass_command): Notify observer.
1157 * interps.c: Don't include gdb-events.h.
1158 (clear_interpreter_hooks): Don't call clear_gdb_event_hooks.
1159 * gdbarch.c: Rebuild.
1160 * gdbarch.sh: Emit include for observer.h, not gdb-events.h.
1161 (deprecated_current_gdbarch_select_hack): Notify observer.
1162 * breakpoint.h: Don't include gdb-events.h.
1163 * breakpoint.c: Don't include gdb-events.h.
1164 (condition_command): Notify observer.
1165 (commands_command): Likewise.
1166 (commands_from_control_command): Likewise.
1167 (mention, delete_breakpoint, set_ignore_count): Likewise.
1168 (disable_breakpoint, do_enable_breakpoint): Likewise.
1169 * Makefile.in (gdb_events_h): Remove.
1170 (breakpoint_h): Update.
1171 (COMMON_OBS): Remove gdb-events.o.
1172 (gdb-events.o): Remove.
1173 (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o,
1174 gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update.
1175 * gdb-events.c: Remove.
1176 * gdb-events.h: Remove.
1177 * gdb-events.sh: Remove.
1178
1179 2008-07-24 Pedro Alves <pedro@codesourcery.com>
1180
1181 * remote.c (remote_threads_extra_info): Don't query the remote
1182 server about info on the internally added main thread.
1183
1184 2008-07-24 Aleksandar Ristovski <aristovski@qnx.com>
1185
1186 * nto-procfs.c (procfs_attach): Populate initial thread list.
1187 (procfs_wait): Return new pid, built from the inferior status.
1188
1189 2008-07-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
1190
1191 * configure.ac (CONFIG_INITS): Delete long obsoleted variable.
1192 * configure: Regenerate.
1193
1194 2008-07-23 Aleksandar Ristovski <aristovski@qnx.com>
1195
1196 * nto-procfs.c (procfs_xfer_memory): Changed signature.
1197 (procfs_resume): Workaround for dereferencing type-punned pointer
1198 warning.
1199 * nto-tdep.c (nto_parse_redirection): Change signature to be const
1200 correct.
1201 * nto-tdep.h (nto_parse_redirection): Likewise.
1202
1203 2008-07-21 Stan Shebs <stan@codesourcery.com>
1204
1205 Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
1206 * gdbarch.sh: Adjust comment to refer to
1207 in_solib_dynsym_resolve_code().
1208 * gdbarch.h, gdbarch.c: Update.
1209 * solib-osf.c: Ditto.
1210 * infrun.c: Ditto.
1211 (handle_inferior_event): Use in_solib_dynsym_resolve_code
1212 unconditionally.
1213 * config/mips/nm-irix5.h: Remove undef of
1214 IN_SOLIB_DYNSYM_RESOLVE_CODE.
1215
1216 2008-07-21 Tom Tromey <tromey@redhat.com>
1217
1218 * symfile.c (reread_symbols): Don't pass argument to observer.
1219 * exec.c (exec_file_attach): Don't pass argument to observer.
1220 * ada-lang.c (ada_executable_changed_observer): Remove argument.
1221 * symtab.c (symtab_observer_executable_changed): Remove argument.
1222 * observer.sh: Handle functions with no arguments.
1223
1224 2008-07-20 Sergei Poselenov <sposelenov@emcraft.com>
1225 Chris Demetriou <cgd@google.com>
1226
1227 * elfread.c (elf_symfile_segments): Fix the check that each loadable
1228 section fits within an ELF segment to handle ELF segments that hit
1229 the end of the address space.
1230
1231 2008-07-20 Chris Demetriou <cgd@google.com>
1232
1233 * MAINTAINERS (Write After Approval): Add self.
1234
1235 2008-07-18 Tom Tromey <tromey@redhat.com>
1236
1237 PR gdb/855:
1238 * NEWS: Add entry for macro commands.
1239 * Makefile.in (macrocmd.o): Add gdb_string.h.
1240 * macroscope.h (user_macro_scope): Declare.
1241 (default_macro_scope): Update documentation.
1242 (macro_user_macros): Declare.
1243 * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
1244 Use user_macro_scope.
1245 (null_macro_lookup): Remove.
1246 * macrotab.h (macro_callback_fn): Declare.
1247 (macro_for_each): Likewise.
1248 (macro_allow_redefinitions): Likewise.
1249 * macrotab.c (foreach_macro): New function
1250 (macro_for_each): Likewise.
1251 (struct macro_table) <redef_ok>: New field.
1252 (macro_allow_redefinitions): New function.
1253 (new_macro_table): Update.
1254 (macro_define_function): Likewise.
1255 (macro_define_object): Likewise.
1256 * macroscope.c (user_macro_scope): New function.
1257 (default_macro_scope): Use it.
1258 (macro_user_macros): New global.
1259 (standard_macro_lookup): Look in macro_user_macros.
1260 (_initialize_macroscope): New function.
1261 * macroexp.h (macro_is_whitespace, macro_is_digit,
1262 macro_is_identifier_nondigit): Declare.
1263 * macroexp.c (macro_is_whitespace): Rename. No longer static.
1264 (macro_is_digit): Likewise.
1265 (macro_is_identifier_nondigit): Likewise.
1266 (get_identifier): Update.
1267 (get_pp_number): Likewise.
1268 (get_token): Likewise.
1269 * macrocmd.c (skip_ws): New function.
1270 (extract_identifier): Likewise.
1271 (free_macro_definition_ptr): Likewise.
1272 (user_macros): Remove.
1273 (macro_define_command): Implement.
1274 (_initialize_macrocmd): Update.
1275 (macro_undef_command): Implement.
1276 (print_one_macro): New function.
1277 (macro_list_command): Implement.
1278
1279 2008-07-18 Joseph Myers <joseph@codesourcery.com>
1280
1281 * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
1282 in BFD ELF check.
1283 * configure: Regenerate.
1284
1285 2008-07-17 Paul Pluzhnikov <ppluzhnikov@google.com>
1286
1287 * auxv.c (fprint_target_auxv): Stop at AT_NULL.
1288
1289 2008-07-15 Andreas Schwab <schwab@suse.de>
1290
1291 * valops.c (value_cast_pointers): Follow typedefs when checking
1292 result of coercion.
1293
1294 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
1295
1296 * block.c (block_function): Renamed to ...
1297 (block_linkage_function): ... this. All callers changed.
1298 * block.h (block_function): Renamed to ...
1299 (block_linkage_function): ... this.
1300
1301 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
1302
1303 * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
1304
1305 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
1306
1307 * frame.c (frame_sp_unwind): Delete.
1308 (get_frame_sp): Do not use it.
1309 * frame.h (frame_sp_unwind): Delete prototype.
1310
1311 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
1312
1313 * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
1314
1315 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
1316
1317 * dwarf2-frame.c (dwarf2_frame_cache): Update comment.
1318 * frame.c (frame_unwind_address_in_block): Delete.
1319 (get_frame_address_in_block): Do not use it. Check the type
1320 of the next frame first.
1321 (frame_cleanup_after_sniffer): Update comment.
1322 * frame.h (frame_unwind_address_in_block): Delete prototype.
1323 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
1324
1325 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
1326
1327 * frame.c (frame_func_unwind): Delete.
1328 (get_frame_func): Do not use it.
1329 * frame.h (frame_func_unwind): Delete prototype.
1330 * hppa-tdep.c (hppa_frame_cache): Update comment.
1331 * rs6000-tdep.c (rs6000_frame_cache): Update comment.
1332
1333 2008-07-14 Stan Shebs <stan@codesourcery.com>
1334
1335 * remote-sim.c (init_gdbsim_ops): Remove
1336 TARGET_REDEFINE_DEFAULT_OPS.
1337
1338 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
1339
1340 * findvar.c (read_var_value): Remove unused variable.
1341
1342 2008-07-15 Luis Machado <luisgpm@br.ibm.com>
1343
1344 * infrun.c (handle_inferior_event): Tag threads as stopped
1345 before inserting breakpoints.
1346
1347 2008-07-15 Hui Zhu <teawater@gmail.com>
1348
1349 * MAINTAINERS: Added myself to section Write After Approval.
1350
1351 2008-07-14 Paul Pluzhnikov <ppluzhnikov@google.com>
1352
1353 PR gdb/2477
1354 * cp-abi.c (value_virtual_fn_field): Handle invalid pointers.
1355
1356 2008-07-14 Pedro Alves <pedro@codesourcery.com>
1357
1358 * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
1359 (i386_dicos_push_dummy_code): New.
1360 (i386_dicos_init_abi): Don't register i386_dicos_frame_align.
1361 Register i386_dicos_push_dummy_code.
1362
1363 2008-07-14 Markus Deuling <deuling@de.ibm.com>
1364
1365 * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
1366 (mips_n32n64_push_dummy_call, mips_o64_return_value)
1367 (mips_eabi_push_dummy_call): Update call to fp_register_arg_p.
1368
1369 (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
1370 (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
1371 (mips_n32n64_fp_arg_chunk_p): Update caller.
1372
1373 (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
1374 (mips_n32n64_push_dummy_call): Update caller.
1375
1376 (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
1377 current_gdbarch.
1378 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1379 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.
1380
1381
1382 (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
1383 current_gdbarch.
1384 (mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
1385 (mips_o64_push_dummy_call): Update caller.
1386
1387 (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
1388 (fp_register_arg_p, mips_dump_tdep): Update caller.
1389
1390 (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
1391 (mips16_scan_prologue, mips32_scan_prologue): Update caller.
1392
1393 (reset_saved_regs): Make static. Add gdbarch as parameter. Replace
1394 current_gdbarch.
1395 (mips32_scan_prologue): Update caller.
1396
1397 (heuristic_proc_start): Add gdbarch as parameter. Replace
1398 current_gdbarch.
1399 (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.
1400
1401 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
1402 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
1403 the current architecture. Update call to getregs_supplies.
1404 (getregs_supplies): Add gdbarch as parameter and replace
1405 current_gdbarch.
1406
1407 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
1408 get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
1409 NBSD_MIPS_JB_ELEMENT_SIZE.
1410 (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
1411 replace current_gdbarch.
1412
1413 * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
1414 current_gdbarch.
1415 (mips_fetch_registers, mips_store_registers): Update call
1416 to mips_map_regno.
1417 (mips_load): Use get_regcache_arch to get at the current_architecture
1418 and replace current_gdbarch.
1419
1420 2008-07-13 Pedro Alves <pedro@codesourcery.com>
1421
1422 * thread.c (restore_selected_frame): On fail to restore, select
1423 the innermost frame, and don't crash when warning the user.
1424
1425 2008-07-13 Hui Zhu <teawater@gmail.com>
1426
1427 * symtab.c (expand_line_sal): Fix a memory leak.
1428
1429 2008-07-13 Pedro Alves <pedro@codesourcery.com>
1430
1431 * utils.c (struct continuation): Define as inheriting struct
1432 cleanup.
1433 (add_continuation, do_all_continuations)
1434 (discard_all_continuations, add_intermediate_continuation)
1435 (do_all_intermediate_continuations)
1436 (discard_all_intermediate_continuations): Adjust.
1437
1438 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
1439
1440 Skip varobj in running threads.
1441 * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
1442 thread is not stopped, skip the varobj.
1443 * Makefile.in: Update dependencies.
1444
1445 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
1446
1447 Enable all commands while inferiour is running
1448 * mi/mi-main.c (mi_cmd_execute): Don't check if
1449 inferiour is executing.
1450
1451 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
1452
1453 Allow all CLI command even if target is executing.
1454 * gdb/top.c (execute_command_1): Don't check if the inferiour
1455 is running.
1456
1457 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
1458
1459 * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
1460 Fix printing of frame, when frame is wrong.
1461
1462 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
1463
1464 * spu-tdep.c (spu_frame_unwind_cache): Do not error if
1465 backchain is unreadable.
1466
1467 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
1468
1469 * spu-linux-nat.c: Include "gdbthread.h".
1470 (spu_child_post_startup_inferior): Register main thread.
1471 (spu_child_post_attach): Likewise.
1472 * Makefile.in (spu-linux-nat.o): Update dependencies.
1473
1474 2008-07-12 Pedro Alves <pedro@codesourcery.com>
1475
1476 Rewrite continuations internals on top of cleanups and plug
1477 continuation arguments leaks.
1478
1479 * defs.h (struct continuation): Make it opaque.
1480 (add_continuation, add_intermediate_continuation): Drop the int
1481 argument of the continuation hook argument. Add
1482 continuation_free_args argument.
1483 (do_all_continuations, do_all_intermediate_continuations): Drop
1484 the error_p argument.
1485
1486 * utils.c (add_continuation): Drop the int argument of the
1487 continuation hook argument. Add continuation_free_args argument.
1488 Reimplement on top of cleanups.
1489 (do_all_continuations): Drop error argument. Reimplement on top
1490 of cleanups.
1491 (discard_all_continuations): Reimplement on top of cleanups.
1492 (add_intermediate_continuation): Drop the int argument of the
1493 continuation hook argument. Add continuation_free_args argument.
1494 Reimplement on top of cleanups.
1495 (do_all_intermediate_continuations): Drop error argument.
1496 Reimplement on top of cleanups.
1497 (discard_all_intermediate_continuations): Reimplement on top of
1498 cleanups.
1499
1500 * breakpoint.c (until_break_command_continuation): Drop error
1501 argument. Add xfree as continuation argument deleter.
1502
1503 * inf-loop.c (inferior_event_handler): On error, discard all
1504 continuations. Adjust to new do_all_intermediate_continuations
1505 and do_all_continuations interfaces.
1506
1507 * infcmd.c (step_1_continuation): Drop error_p argument. Adjust.
1508 Pass xfree as continuation argument deleter.
1509 (finish_command_continuation): Drop error_p argument. Adjust.
1510 (finish_command_continuation_free_arg): New.
1511 (finish_command): Pass finish_command_continuation_free_arg as
1512 continuation argument deleter. Adjust to new do_all_continuations
1513 interfaces.
1514 (attach_command_continuation): Drop error_p argument.
1515 (attach_command_continuation_free_args): New.
1516 (attach_command): Pass attach_command_continuation_free_args as
1517 continuation argument deleter.
1518
1519 * interps.c (interp_set): Adjust to new do_all_continuations
1520 interfaces.
1521
1522 * event-top.c (stdin_event_handler): In error, also discard the
1523 intermediate continuations.
1524
1525 2008-07-12 Pedro Alves <pedro@codesourcery.com>
1526
1527 Replace struct continuation_args by void* and per command structs.
1528
1529 * top.c (execute_command): Remove unused arg1 and arg2 locals.
1530
1531 * breakpoint.c (struct until_break_command_continuation_args):
1532 New.
1533 (until_break_command_continuation): Take a void* instead of a
1534 continuations_arg. Adjust.
1535 (until_break_command): Adjust to use struct
1536 until_break_command_continuation_args instead of struct
1537 continuation_arg.
1538
1539 * infcmd.c (struct step_1_continuation_args): New.
1540 (step_1_continuation): Take a void* instead of a
1541 continuations_arg. Adjust to use struct step_1_continuation_args.
1542 (step_once): Adjust to use struct step_1_continuation_args.
1543
1544 (struct finish_command_continuation_args): New.
1545 (finish_command_continuation): Take a void* instead of a
1546 continuations_arg. Adjust to use struct
1547 finish_command_continuation_args.
1548 (finish_command): Adjust to use struct
1549 finish_command_continuation_args.
1550 (struct attach_command_continuation_args): New.
1551 (attach_command_continuation): Take a void* instead of a
1552 continuations_arg. Adjust to use struct
1553 attach_command_continuation_args.
1554 (attach_command): Adjust to use struct
1555 attach_command_continuation_args.
1556
1557 * defs.h (struct continuation_arg): Delete.
1558 (struct continuation): Replace the struct continuation_arg*
1559 parameter of continuation_hook by a void*. Replace "arg_list"
1560 member by a new "args" member with void* type.
1561 (add_continuation, add_intermediate_continuation): Replace struct
1562 continuation_arg type usages by void* usages.
1563
1564 * utils.c (add_continuation, do_all_continuations)
1565 (add_intermediate_continuation)
1566 (do_all_intermediate_continuations): Replace struct
1567 continuation_arg type usages by void* usages. Pass "args" instead
1568 of "arg_list".
1569
1570 2008-07-12 Pedro Alves <pedro@codesourcery.com>
1571
1572 * infrun.c (struct thread_stepping_state): Delete sal member.
1573 (init_thread_stepping_state): Add local sal. Use it instead of
1574 tss->sal.
1575 (handle_inferior_event): New local stop_pc_sal. Use it instead of
1576 tss->sal.
1577 (step_into_function): Add local stop_func_sal. Use it instead of
1578 tss->sal.
1579
1580 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
1581
1582 Implement -exec-continue/-exec-interrupt --all.
1583 * infcmd.c (continue_1): New, extracted from
1584 (continue_command): ...here.
1585 (interrupt_target_1): New, extracted from
1586 (interrupt_target_command): ...here.
1587 * inferior.h (continue_1, interrupt_target_1): New.
1588 * mi/mi-main.c (mi_cmd_exec_continue)
1589 (mi_cmd_exec_interrupt): Handle --all.
1590
1591 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
1592
1593 Implement --thread and --frame.
1594 * gdbthread.h (find_thread_id): Declare.
1595 * thread.c (find_thread_id): Make non-static.
1596 * mi/mi-main.c (mi_cmd_execute): Switch to the right
1597 thread and frame, if necessary.
1598 * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
1599 * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
1600
1601 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
1602
1603 * infrun.c (resume): Discard cleanups on early exit path.
1604
1605 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
1606
1607 * infrun.c (normal_stop): For MI, report which threads
1608 were stopped.
1609
1610 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
1611
1612 Report thread state in -thread-info output.
1613 * thread.c (print_thread_info): Add new field "state".
1614
1615 2008-07-11 Pedro Alves <pedro@codesourcery.com>
1616
1617 * infrun.c (handle_inferior_event): Also ignore a
1618 TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
1619
1620 2008-07-11 Tom Tromey <tromey@redhat.com>
1621
1622 * completer.c (complete_line_internal): New function, from
1623 complete_line. Add 'for_help' parameter.
1624 (complete_line): Use it.
1625 (command_completer): Move later. Rewrite.
1626
1627 2008-07-11 Pedro Alves <pedro@codesourcery.com>
1628
1629 * thread.c (thread_apply_command): Move making the cleanup out of
1630 the loop.
1631
1632 2008-07-11 Pedro Alves <pedro@codesourcery.com>
1633
1634 Exited threads.
1635
1636 * thread.c (enum thread_state): New.
1637 (thread_state main_thread_running): Delete, in favor of...
1638 (thread_state main_thread_state): ... this. Update throughout.
1639 (clear_thread_inferior_resources): New, split from free_thread.
1640 (free_thread): Call clear_thread_inferior_resources.
1641 (init_thread_list): Set main thread to stopped state.
1642 (add_thread_silent): Take care of PTID reuses.
1643 (delete_thread): If deleting inferior_ptid or a thread with
1644 refcount > 0, mark it as exited, but still keep it in the list.
1645 Only notify of thread exits, if we haven't done so yet.
1646 (iterate_over_threads): Make it safe to delete threads while
1647 iterating over them.
1648 (do_captured_list_thread_ids): Don't account for exited threads.
1649 (thread_alive): Check for the THREAD_EXITED state, and don't set
1650 ptid to -1 on exited threads.
1651 (set_running): Update to account for extra possible states.
1652 (is_thread_state): New.
1653 (is_stopped, is_exited): New.
1654 (is_running): Implement in terms of is_thread_state.
1655 (any_running): Update.
1656 (print_thread_info): Update. Account for exited threads. Don't
1657 warn about missed frame restoring here, its done in the cleanup.
1658 (switch_to_thread): Don't read from a thread that has gone.
1659 (restore_current_thread): In non-stop mode, do a full context
1660 switch.
1661 (restore_selected_frame): Add a frame_level argument. Rewrite.
1662 (struct current_thread_cleanup): Add selected_frame_level and
1663 was_stopped members.
1664 (do_restore_current_thread_cleanup): Check if thread was stopped
1665 and still is, and if the target has registers, stack and memory
1666 before restoring the selected frame. Don't delete the cleanup
1667 argument here.
1668 (restore_current_thread_cleanup_dtor): New.
1669 (make_cleanup_restore_current_thread): Remove all arguments.
1670 Rewrite.
1671 (thread_apply_all_command): Update. Prune threads.
1672 (thread_apply_command): Update.
1673 (thread_command): Account for currently selected exited thread.
1674 (do_captured_thread_select): Check for a running thread. Prune
1675 threads.
1676 (_initialize_thread): Make "info threads", "thread", "thread
1677 apply", and "thread apply all" appliable without a selected thread.
1678 * gdbthread.h (struct thread_info): Replace running_ by state_.
1679 Add refcount.
1680 (is_exited, is_stopped): Declare.
1681 (make_cleanup_restore_current_thread): Remove all arguments.
1682 * infrun.c: Include "event-top.h".
1683 (fetch_inferior_event): In non-stop mode, restore selected thread
1684 and frame after handling the event and running breakpoint
1685 commands. Display GDB prompt if needed.
1686 (normal_stop): In non-stop mode, don't print thread switching
1687 notice.
1688 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
1689 (get_cmd_no_selected_thread_ok): New.
1690 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
1691 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
1692 Declare.
1693 * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
1694 no-selected-thread ok.
1695 * top.c (execute_command): Check for non no-selected-thread-ok
1696 commands.
1697 * linux-nat.c (struct saved_ptids, threads_to_delete)
1698 (record_dead_thread, prune_lwps): Delete.
1699 (exit_lwp): Unconditionally delete thread.
1700 (linux_nat_resume): Remove prune_lwps call.
1701 * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
1702 of is_running. Adjust to make_cleanup_restore_current_thread
1703 interface change.
1704 * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
1705 selected thread has exited.
1706 * inf-loop.c (inferior_event_handler): Don't display the prompt
1707 here.
1708 * varobj.c (c_value_of_root): Update.
1709 * defs.h (make_cleanup_dtor): Declare.
1710 * utils.c (make_cleanup_dtor): New.
1711
1712 * Makefile.in (infrun.o): Depend on $(event_top_h).
1713
1714 2008-07-11 Pedro Alves <pedro@codesourcery.com>
1715
1716 Add "continue -a" and "interrupt -a" options for non-stop mode.
1717
1718 * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
1719 (continue_command): Add "-a" option.
1720 (interrupt_target_command): Add "-a" option.
1721 (_initialize_infcmd): Add extend help of continue and interrupt
1722 command to mention the new "-a" option. Mark "continue" async ok.
1723
1724 2008-07-10 Doug Evans <dje@google.com>
1725
1726 Add "set print symbol-loading on|off".
1727 * NEWS: Document new option.
1728 * symfile.h (print_symbol_loading): Declare.
1729 * symfile.c (print_symbol_loading): New global.
1730 (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
1731 from ..." if print_symbol_loading.
1732 (_initialize_symfile): Add set/show print symbol-loading.
1733 * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
1734 if print_symbol_loading.
1735
1736 2008-07-10 Pedro Alves <pedro@codesourcery.com>
1737
1738 Non-stop linux native.
1739
1740 * linux-nat.c (linux_test_for_tracefork): Block events while we're
1741 here.
1742 (get_pending_status): Implement non-stop mode.
1743 (linux_nat_detach): Stop threads before detaching.
1744 (linux_nat_resume): In non-stop mode, always resume only a single
1745 PTID.
1746 (linux_handle_extended_wait): On a clone event, in non-stop mode,
1747 add new lwp to GDB's thread table, and mark as running, executing
1748 and stopped appropriately.
1749 (linux_nat_filter_event): Don't assume there are other running
1750 threads when a thread exits.
1751 (linux_nat_wait): Mark the main thread as running and executing.
1752 In non-stop mode, don't stop all lwps.
1753 (linux_nat_kill): Stop lwps before killing them.
1754 (linux_nat_thread_alive): Use signal 0 to detect if a thread is
1755 alive.
1756 (send_sigint_callback): New.
1757 (linux_nat_stop): New.
1758 (linux_nat_add_target): Set to_stop to linux_nat_stop.
1759
1760 * linux-nat.h (thread_db_attach_lwp): Declare.
1761
1762 * linux-thread-db.c (thread_get_info_callback): Check for new
1763 threads if we have none.
1764 (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
1765 stopped lwp. Check for new threads if we have none.
1766 (thread_db_attach_lwp): New.
1767 (thread_db_init): Set proc_handle.pid to inferior_ptid.
1768 (check_event): Set proc_handle.pid to the stopped lwp.
1769 (thread_db_find_new_threads): Set proc_handle.pid to any stopped
1770 lwp available, bail out if there is none.
1771
1772 * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
1773 PTRACE_KILL.
1774
1775 2008-07-10 Kevin Buettner <kevinb@redhat.com>
1776
1777 * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
1778 `current_pc' from CORE_ADDR to ULONGEST.
1779
1780 * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
1781 gdbsim_stop().
1782
1783 2008-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1784
1785 * NEWS (New commands): Mention "set disable-randomization".
1786 * configure.ac: Add check for HAVE_PERSONALITY and
1787 HAVE_DECL_ADDR_NO_RANDOMIZE.
1788 * configure, config.in: Regenerate.
1789 * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
1790 [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
1791 ADDR_NO_RANDOMIZE.
1792 (disable_randomization, show_disable_randomization)
1793 (set_disable_randomization): New.
1794 (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
1795 PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the
1796 variable DISABLE_RANDOMIZATION.
1797 (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
1798 DISABLE_RANDOMIZATION.
1799
1800 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1801
1802 Adjust all targets to new target_stop interface.
1803
1804 * gnu-nat.c (gnu_stop): Add ptid argument.
1805 * go32-nat.c (go32_stop): Add ptid argument.
1806 (go32_create_inferior): Pass inferior_ptid to go32_stop.
1807 * hpux-thread.c (hpux_thread_stop): Add ptid argument.
1808 * monitor.c (monitor_stop): Add ptid argument.
1809 (monitor_open): Pass inferior_ptid to monitor_stop.
1810 (monitor_interrupt): Pass inferior_ptid to target_stop.
1811 (monitor_stop): Add ptid argument.
1812 * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
1813 (procfs_create_inferior): Add ptid argument.
1814 * procfs.c (procfs_stop): Add ptid argument.
1815 * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
1816 * remote-sim.c (gdbsim_stop): Add ptid argument.
1817 * sol-thread.c (sol_thread_stop): Add ptid argument.
1818 * win32-nat.c (win32_stop): Add ptid argument.
1819
1820 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1821
1822 Non-stop inferior control.
1823
1824 * infrun.c (resume): In non-stop mode, always resume just one
1825 thread.
1826 (proceed): Don't call prepare_to_proceed in non-stop mode.
1827 (fetch_inferior_event): In non-stop mode, switch context before
1828 handling the event.
1829 (error_is_running, ensure_not_running): New.
1830 (handle_inferior_event): In non-stop mode: Mark only the event
1831 thread as stopped. Require that the target module manages adding
1832 threads to the thread list. Assert that there isn't a
1833 deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
1834 (normal_stop): Only mark not-running if inferior hasn't exited.
1835 In non-stop mode, only mark the event thread.
1836
1837 * thread.c:Include "cli/cli-decode.h".
1838 (print_thread_info): Don't read from a running thread.
1839 Output "(running)" if thread is running.
1840 (switch_to_thread): Don't read stop_pc if thread is executing.
1841 (do_restore_current_thread_cleanup): Don't write to a running
1842 thread.
1843 (thread_apply_all_command): Don't read from a running thread. In
1844 non-stop mode, do a full context-switch instead of just switching
1845 threads.
1846 (thread_apply_command): In non-stop mode, do a full context-switch
1847 instead of just switching threads.
1848 (do_captured_thread_select): Likewise. Inform user if selected
1849 thread is running.
1850 (_initialize_thread): Mark "info threads" and "thread" and
1851 async_ok.
1852
1853 * inf-loop.c (inferior_event_handler): In non-stop mode, don't
1854 unregister the target from the event loop.
1855
1856 * infcmd.c (continue_command, step_1, jump_command)
1857 (signal_command): Ensure the selected thread isn't running.
1858 (interrupt_target_command): In non-stop mode, interrupt only the
1859 selected thread.
1860
1861 * inferior.h (error_is_running, ensure_not_running): Declare.
1862
1863 * target.h (struct target_ops): Add ptid argument to the to_stop
1864 member.
1865 (target_stop): Add ptid_t argument.
1866
1867 * target.c (update_current_target): Add ptid argument to to_stop's
1868 type.
1869 (debug_to_stop): Add ptid_t argument.
1870 (debug_to_rcmd): Set to_stop_ptid.
1871
1872 * remote.c (remote_stop): Add ptid_t argument.
1873 (async_remote_interrupt): Add inferior_ptid to target_stop.
1874 * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
1875
1876 * Makefile.in (thread.o): Depend on $(cli_decode_h).
1877
1878 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1879
1880 Don't rely on ecs->wait_for_more.
1881
1882 * infrun.c (proceed): Clear the stepping state, set
1883 previous_inferior_ptid and clear infwait state.
1884 (wait_for_inferior): Don't clear the stepping state, set
1885 previous_inferior_ptid, or clear the infwait state here.
1886 (fetch_inferior_event): Don't clear the stepping state, set
1887 previous_inferior_ptid, or clear the infwait state here. Don't
1888 condition on wait_for_more.
1889
1890 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1891
1892 Refactor infrun a bit.
1893
1894 * infrun.c (currently_stepping): Take a struct
1895 thread_stepping_state instead of an execution_control_state.
1896 (struct thread_stepping_state): New, split from
1897 execution_control_state.
1898 (gtss, tss): New globals.
1899 (proceed): Clear the stepping state, set previous_inferior_ptid
1900 and clear infwait state.
1901 (init_wait_for_inferior): Clear the stepping state,
1902 previous_inferior_ptid and infwait state.
1903 (waiton_ptid, infwait_state): New, split from
1904 execution_control_state.
1905 (struct execution_control_state): Members that persist through
1906 events moved out to either struct thred_stepping_state or made
1907 global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
1908 (wait_for_inferior, fetch_inferior_event): Use local
1909 execution_control_state. Update to execution_control_state split.
1910 (init_execution_control_state): Adjust.
1911 (init_thread_stepping_state): New, extracted from
1912 init_execution_control_state.
1913 (context_switch): Take a ptid instead of an
1914 execution_control_state.
1915 (context_switch_to): Adjust.
1916 (adjust_pc_after_break): Adjust.
1917 (init_infwait_state): New.
1918 (handle_inferior_event): Adjust.
1919
1920 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1921 Vladimir Prus <vladimir@codesourcery.com>
1922
1923 Per-thread commands.
1924
1925 * gdbthread.h: Remove unneeded forward declarations.
1926 Include "inferior.h".
1927 (struct thread_info): Add continuations,
1928 intermediate_continuations, proceed_to_finish, step_over_calls,
1929 stop_step, step_multi and stop_signal members.
1930 (save_infrun_state): Add continuations,
1931 intermediate_continuations, proceed_to_finish, step_over_calls,
1932 stop_step, step_multi, stop_signal and stop_bpstat parameters.
1933 (load_infrun_state): Add continuations,
1934 intermediate_continuations, proceed_to_finish, step_over_calls,
1935 stop_step, step_multi, stop_signal and stop_bpstat parameters.
1936
1937 * thread.c (load_infrun_state): In non-stop mode, load
1938 continuations, intermediate_continuations, proceed_to_finish,
1939 step_over_calls, stop_step, step_multi and stop_signal.
1940 (save_infrun_state): Store continuations,
1941 intermediate_continuations, proceed_to_finish, step_over_calls,
1942 stop_step, step_multi, stop_signal and stop_bpstat.
1943 (save_infrun_state): Store continuations,
1944 intermediate_continuations, proceed_to_finish, step_over_calls,
1945 stop_step, step_multi, stop_signal and stop_bpstat.
1946 (free_thread): Clear The thread's stop_bpstat.
1947
1948 * inferior.h (context_switch_to): Declare.
1949
1950 * infrun.c (ecss): New global.
1951 (context_switch): Context switch continuations,
1952 intermediate_continuations, proceed_to_finish, step_over_calls,
1953 stop_step, step_multi, stop_signal and stop_bpstat.
1954 (wait_for_inferior): Use global ecss.
1955 (async_ecss, async_ecs): Delete.
1956 (fetch_inferior_event): Use global ecss.
1957 (context_switch_to): New.
1958
1959 * top.c (execute_command): In non-stop, only check if the current
1960 thread is running, in all-stop, check if there's any thread
1961 running.
1962
1963 * breakpoint.c (bpstat_remove_breakpoint): New.
1964 (bpstat_remove_breakpoint_callback): New.
1965 (delete_breakpoint): Clear the stop_bpstats of all threads.
1966
1967 * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
1968 current thread is running, in all-stop, check if there's any
1969 thread running.
1970
1971 * Makefile.in (gdbthread_h): Depend on $(inferior_h).
1972
1973 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1974
1975 Add non_stop global.
1976
1977 * inferior.h (non_stop): Declare.
1978 * infrun.c (non_stop, non_stop_1): New.
1979 (set_non_stop, show_non_stop): New.
1980 (_initialize_infrun): Add "set/show non-stop" command.
1981
1982 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1983
1984 Adjust fork/vfork/exec to pass ptids around.
1985
1986 * target.h (struct target_waitstatus): Store related_pid as a ptid.
1987 (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
1988 Take a ptid_t.
1989 * breakpoint.h (struct breakpoint): Change forked_inferior_pid
1990 type to ptid.
1991 * breakpoint.c (print_it_typical, bpstat_check_location)
1992 (print_one_breakpoint_location, set_raw_breakpoint_without_location)
1993 (create_fork_vfork_event_catchpoint): Adjust.
1994 * infrun.c (fork_event): Change parent_pid and child_pid types to
1995 ptid.
1996 (follow_exec, inferior_has_forked, inferior_has_vforked)
1997 (inferior_has_execd): Take a ptid_t and don't trim it.
1998 * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
1999 * linux-nat.c (linux_child_follow_fork): Adjust.
2000 * inf-ptrace.c (inf_ptrace_wait): Adjust.
2001 * inf-ttrace.c (inf_ttrace_wait): Adjust.
2002 * win32-nat.c (get_win32_debug_event): Don't set related_pid.
2003
2004 2008-07-09 Pedro Alves <pedro@codesourcery.com>
2005
2006 Add "executing" property to threads.
2007
2008 * inferior.h (target_executing): Delete.
2009 * gdbthread.h (struct thread_info): Add executing_ field.
2010 (set_executing, is_executing): New.
2011 * thread.c (main_thread_executing): New.
2012 (init_thread_list): Clear it and also main_thread_running.
2013 (is_running): Return false if target has no execution.
2014 (any_running, is_executing, set_executing): New.
2015
2016 * top.c: Include "gdbthread.h".
2017 (target_executing): Delete.
2018 (execute_command): Replace target_executing check by any_running.
2019 * event-top.c: Include "gdbthread.h".
2020 (display_gdb_prompt, command_handler): Replace target_executing by
2021 is_running.
2022 * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
2023 here. Replace target_executing by is_running.
2024 * infrun.c (handle_inferior_event): Mark all threads as
2025 not-executing.
2026 * linux-nat.c (linux_nat_resume): Don't mark thread as executing
2027 here.
2028 * stack.c (get_selected_block): Return null if inferior is
2029 executing.
2030 * target.c (target_resume): Mark resumed ptid as executing.
2031 * breakpoint.c (until_break_command): Replace target_executing
2032 check by is_executing.
2033 * remote.c (remote_async_resume): Don't mark inferior as executing
2034 here.
2035 * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
2036 by any_running.
2037
2038 * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
2039 (mi_execute_async_cli_command): Replace target_executing by
2040 is_running.
2041
2042 * frame.c (get_current_frame): Error out if the current thread is
2043 executing.
2044 (has_stack_frames): New.
2045 (get_selected_frame, deprecated_safe_get_selected_frame): Check
2046 has_stack_frames.
2047
2048 * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
2049 $(gdbthread_h).
2050
2051 2008-07-09 Pedro Alves <pedro@codesourcery.com>
2052
2053 * symfile.c (load_command): Reopen the exec file and reread
2054 symbols before anything else.
2055
2056 2008-07-09 Pedro Alves <pedro@codesourcery.com>
2057
2058 * remote-sim.c: Include gdbthread.h.
2059 (remote_sim_ptid): New global.
2060 (gdbsim_create_inferior): Silently add the main task to GDB's
2061 thread list.
2062 (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
2063 task from GDB's thread list.
2064 (gdbsim_resume): Adjust to use remote_sim_ptid.
2065 (gdbsim_thread_alive, gdbsim_pid_to_str): New.
2066 (init_gdbsim_ops): Register gdbsim_thread_alive and
2067 gdbsim_pid_to_str.
2068 (_initialize_remote_sim): Initialize remote_sim_ptid.
2069 * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
2070
2071 2008-07-09 Pedro Alves <pedro@codesourcery.com>
2072
2073 * monitor (monitor_ptid): New global.
2074 (monitor_open): Silently add the main task to GDB's thread list.
2075 (monitor_close, monitor_mourn_inferior): Silently delete the main
2076 task from GDB's thread list.
2077 (monitor_thread_alive, monitor_pid_to_str): New.
2078 (init_base_monitor_ops): Register monitor_thread_alive and
2079 monitor_pid_to_str.
2080 (_initialize_remote_monitors): Initialize monitor_ptid.
2081
2082 * gdbthread.h (delete_thread_silent): Declare.
2083 * thread.c (delete_thread): Rename to ...
2084 (delete_thread_1): ... this. Add "silent" parameter. If silent,
2085 don't do exit notifications.
2086 (delete_thread, delete_thread_silent): New, as wrappers to
2087 delete_thread_1.
2088
2089 2008-07-08 Pedro Alves <pedro@codesourcery.com>
2090
2091 * breakpoint.c (update_global_location_list): Add boolean
2092 "should_insert" argument. Only insert locations if caller told it
2093 too.
2094 (update_global_location_list_nothrow): Add boolean "should_insert"
2095 argument. Pass it to update_global_location_list.
2096 (insert_breakpoints, create_longjmp_breakpoint)
2097 (create_overlay_event_breakpoint, enable_overlay_breakpoints)
2098 (create_thread_event_breakpoint, create_solib_event_breakpoint)
2099 (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
2100 (enable_watchpoints_after_interactive_call_stop)
2101 (set_momentary_breakpoint, create_breakpoints)
2102 (break_command_really, watch_command_1)
2103 (create_ada_exception_breakpoint, update_breakpoint_locations)
2104 (do_enable_breakpoint, enable_command): Pass true to
2105 update_global_location_list.
2106 (bpstat_stop_status, disable_overlay_breakpoints)
2107 (disable_watchpoints_before_interactive_call_start)
2108 (delete_breakpoint, disable_breakpoint, disable_command): Pass
2109 false to update_global_location_list.
2110 (update_breakpoints_after_exec): Don't temporarily disable
2111 always-inserted mode.
2112
2113 2008-07-08 Pedro Alves <pedro@codesourcery.com>
2114
2115 * breakpoint.c (mark_breakpoints_out): Make public.
2116 (update_breakpoints_after_exec): Don't call mark_breakpoints_out
2117 here. Update comment.
2118 * breakpoint.h (mark_breakpoints_out): Declare.
2119
2120 * linux-nat.c (linux_handle_extended_wait): On
2121 TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
2122 * inf-ttrace.c (inf_ttrace_wait): Likewise.
2123
2124 2008-07-08 Pedro Alves <pedro@codesourcery.com>
2125
2126 * infrun.c (follow_exec): Reset shared libraries before adding the
2127 main exec file.
2128
2129 2008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2130
2131 * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
2132
2133 2008-07-07 Pedro Alves <pedro@codesourcery.com>
2134
2135 * i386-dicos-tdep.c: Include "inferior.h".
2136 (i386_dicos_frame_align): New.
2137 (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
2138 dummy location ON_STACK.
2139 * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
2140
2141 2008-07-07 Joel Brobecker <brobecker@adacore.com>
2142
2143 * gstdint.h: New file.
2144
2145 2008-07-05 Vladimir Prus <vladimir@codesourcery.com>
2146
2147 * mi/mi-interp.c (mi_on_resume): Don't try to report
2148 resumed thread it the thread list is empty.
2149
2150 2008-07-05 Pierre Muller <muller@ics.u-strasbg.fr>
2151
2152 * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
2153 completer for set to filename_completer.
2154
2155 NEWS: Mention it.
2156
2157 2008-07-04 Vladimir Prus <vladimir@codesourcery.com>
2158
2159 Implement -target-attach.
2160 * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
2161
2162 2008-06-21 Hui Zhu <teawater@gmail.com>
2163
2164 * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
2165
2166 2008-07-03 Pedro Alves <pedro@codesourcery.com>
2167
2168 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
2169 * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
2170
2171 * target.h (struct target_ops): Add to_attach_no_wait member.
2172 (target_attach_no_wait): New.
2173 * target.c (update_current_target): Inherit to_attach_no_wait.
2174
2175 * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
2176 target_attach_no_wait runtime check.
2177
2178 * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
2179 * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
2180 win32_ops.
2181
2182 2008-07-03 Pedro Alves <pedro@codesourcery.com>
2183
2184 * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
2185 on debug_displaced being set.
2186
2187 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
2188
2189 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
2190 directly instead of get_frame_id.
2191
2192 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
2193
2194 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
2195 (deal_with_atomic_sequence): Update BC masks.
2196 (rs6000_gdbarch_init): Init displaced stepping infra-structure.
2197 Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
2198
2199 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
2200
2201 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
2202 register, not the previous frame's.
2203
2204 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
2205
2206 * source.c (select_source_symtab): Make sure we skip namespace
2207 symtabs when showing cpp source code.
2208
2209 2008-06-30 Hans-Peter Nilsson <hp@axis.com>
2210
2211 * MAINTAINERS (Authorized committers): Fix my email address.
2212
2213 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
2214
2215 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
2216 -target-download and -target-select via CLI, so that
2217 the quoting rules are the same as they were (unfortunately)
2218 in all prior gdb releases.
2219 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
2220 (mi_cmd_target_download, mi_cmd_target_select): Remove.
2221 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
2222 (mi_cmd_target_download, mi_cmd_target_select): Remove.
2223 (mi_cmd_execute): Set current_token even for commands
2224 routed via CLI.
2225
2226 2008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
2227
2228 * alphafbsd-tdep.c: Update for unwinder changes.
2229 * alpha-linux-tdep.c: Likewise.
2230 * alphanbsd-tdep.c: Likewise.
2231 * alphaobsd-tdep.c: Likewise.
2232 * avr-tdep.c: Likewise.
2233 * cris-tdep.c: Likewise.
2234 * frv-linux-tdep.c: Likewise.
2235 * frv-tdep.c: Likewise.
2236 * h8300-tdep.c: Likewise.
2237 * hppa-linux-tdep.c: Likewise.
2238 * iq2000-tdep.c: Likewise.
2239 * m32c-tdep.c: Likewise.
2240 * m32r-linux-tdep.c: Likewise.
2241 * m32r-tdep.c: Likewise.
2242 * m68hc11-tdep.c: Likewise.
2243 * mep-tdep.c: Likewise.
2244 * mn10300-tdep.c: Likewise.
2245 * mt-tdep.c: Likewise.
2246 * score-tdep.c: Likewise.
2247 * sh64-tdep.c: Likewise.
2248 * sh-tdep.c: Likewise.
2249 * sparc64fbsd-tdep.c: Likewise.
2250 * sparc64nbsd-tdep.c: Likewise.
2251 * sparc64obsd-tdep.c: Likewise.
2252 * v850-tdep.c: Likewise.
2253 * vaxobsd-tdep.c: Likewise.
2254 * vax-tdep.c: Likewise.
2255 * xstormy16-tdep.c: Likewise.
2256
2257 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
2258
2259 * mi/mi-main.c (enum captured_mi_execute_command_actions)
2260 (captured_mi_execute_command_args): Remove.
2261 (captured_mi_execute_command): Cast the closure to mi_parse
2262 pointer, not to captured_mi_execute_command_args, and don't
2263 set the action field thereof.
2264 (mi_execute_command): Pass struct mi_parse, not
2265 captured_mi_execute_command_args to captured_mi_execute_command.
2266 (mi_execute_command): Remove (dead) code for suppressing
2267 printing prompt.
2268
2269 2008-06-28 Pedro Alves <pedro@codesourcery.com>
2270
2271 * linux-nat.c (enum sigchld_state): New.
2272 (linux_nat_async_events_state): Renamed from
2273 linux_nat_async_events_enabled.
2274 (linux_nat_event_pipe_push, my_waitpid): Adjust.
2275 (sigchld_default_action): New.
2276 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
2277 unconditionally.
2278 (linux_nat_create_inferior): Set events state to sigchld_default
2279 state.
2280 (linux_nat_resume): Adjust.
2281 (linux_nat_wait): Call linux_nat_async_events unconditionally.
2282 (sigchld_handler): Adjust.
2283 (linux_nat_async_mask): Don't set SIGCHLD actions here.
2284 (get_pending_events): Adjust.
2285 (linux_nat_async_events): Rewrite to handle enum sigchld_state
2286 instead of a boolean.
2287 (linux_nat_async): Adjust.
2288 (_initialize_linux_nat): Capture default SIGCHLD action into
2289 sigchld_default_action.
2290
2291 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
2292
2293 * breakpoint.c (moribund_locations): New.
2294 (bpstat_stop_status): Process moribund locations.
2295 (update_global_location_list): Add removed
2296 locations to moribund_locations.
2297 (breakpoint_retire_moribund): New.
2298 * breakpoint.h (struct bp_location): New field
2299 events_till_retirement.
2300 (breakpoint_retire_moribund): Declare.
2301 * thread.c (thread_count): New.
2302 * infrun.c (handle_inferior_event): Call
2303 breakpoint_retire_moribund.
2304 * gdbthread.h (thread_count): Declare.
2305
2306 2008-06-27 Joseph Myers <joseph@codesourcery.com>
2307
2308 * dfp.c (decimal_convert): Call match_endianness before and after
2309 conversion.
2310
2311 2008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
2312
2313 * remote.c (remote_insert_breakpoint): Ensure that if Z0
2314 unsupported and we fall back to memory_insert_breakpoint, we
2315 use the unmodified requested address.
2316
2317 2008-06-27 Joel Brobecker <brobecker@adacore.com>
2318
2319 * dwarf2read.c (read_attribute_value): Issue a complaint when
2320 adjusting size attribute values of 0xffffffff as zero.
2321
2322 2008-06-27 Joseph Myers <joseph@codesourcery.com>
2323
2324 * i386-tdep.c (i386_16_byte_align_p): New.
2325 (i386_push_dummy_call): Determine stack space required for
2326 arguments going forwards allowing for 16-byte alignment, then push
2327 arguments going forwards.
2328
2329 2008-06-27 Pedro Alves <pedro@codesourcery.com>
2330
2331 * infrun.c (start_remote): Don't clear thread list here.
2332 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
2333 list here.
2334 * remote.c (record_currthread): Upgrade the main thread and its
2335 entry in the thread list if this is the first time we hear about
2336 threads.
2337 (remote_thread_alive): Consider magic_null_ptid or a ptid without
2338 a tid member always alive.
2339 (remote_find_new_threads): Don't update the main thread here.
2340 (remote_start_remote): Clear thread list here. Always add the
2341 main thread.
2342 (extended_remote_attach_1): Add the main thread here.
2343 (extended_remote_mourn_1): Re-add the main thread here.
2344 (extended_remote_create_inferior_1): Add a main thread.
2345
2346 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
2347
2348 2008-06-27 Pedro Alves <pedro@codesourcery.com>
2349
2350 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
2351
2352 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
2353 globals.
2354 (general_thread, continue_thread): Change type to ptid_t.
2355 (record_currthread): Take a ptid_t parameter instead of an
2356 integer.
2357 (MAGIC_NULL_PID): Delete.
2358 (set_thread): Take a ptid_t parameter and adjust.
2359 (set_general_thread, set_continue_thread): New.
2360 (remote_thread_alive, remote_newthread_step)
2361 (remote_current_thread, remote_find_new_threads)
2362 (remote_threads_info, remote_start_remote, remote_vcont_resume)
2363 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
2364 (threadalive_test, remote_pid_to_str)
2365 (remote_get_thread_local_address): Adjust.
2366 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
2367 and any_thread_ptid.
2368
2369 2008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2370
2371 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
2372 * configure: Regenerated.
2373
2374 2008-06-26 Joel Brobecker <brobecker@adacore.com>
2375
2376 * dwarf2read.c (read_attribute_value): Treat size attribute
2377 values of 0xffffffff as if the attribute value was zero.
2378
2379 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
2380
2381 * linux-nat.c: Add description of overall logic.
2382
2383 2008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
2384
2385 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
2386 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
2387 all dependencies on $(gdb_stdint_h).
2388 (distclean): Do not delete gdb_stdint.h.
2389 * acinclude.m4: Do not use stdint.m4.
2390 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
2391 uintptr_t, and gdb_stdint.h.
2392 * defs.h: Include <stdint.h>.
2393 * gdb_thread_db.h: Assume stdint.h is already included.
2394 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
2395 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
2396 include gdb_stdint.h.
2397 * configure, config.in: Regenerate.
2398
2399 2008-06-26 Joseph Myers <joseph@codesourcery.com>
2400
2401 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
2402 decimal floating-point values in GPRs for soft-float.
2403 (do_ppc_sysv_return_value): Handle returning decimal
2404 floating-point values in GPRs for soft-float.
2405
2406 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
2407
2408 * target.c (target_read_until_error): New.
2409 * target.h (target_read_until_error): Declare.
2410 * mi/mi-main.c (mi_cmd_data_read_memory): Use
2411 target_read_until_error.
2412
2413 2008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2414
2415 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
2416 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
2417 after the DECFLOAT detection to fix a memory leak. Remove the
2418 redundant NUM initialization. Protect the DECFLOAT detection memory
2419 access before the P block. Restore the P memory content for the
2420 DECFLOAT detection.
2421
2422 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
2423
2424 Kill the return value for all MI command functions.
2425 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
2426 (mi_cmd_argv_ftype): Change return type to void.
2427
2428 * mi/mi-main.c: Adjust all function that implement
2429 MI commands to return nothing.
2430 (struct captured_mi_execute_command_actions):
2431 Remove the rc field.
2432 (mi_cmd_execute): Return nothing.
2433 (mi_execute_async_cli_command): Return nothing.
2434 (mi_cmd_exec_interrupt): Don't print ^done here.
2435 (mi_cmd_target_select): Don't print ^connected here.
2436 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
2437 Special-case -target-select and output ^connected, not ^done.
2438
2439 * mi/mi-cmd-break.c: Adjust.
2440 * mi/mi-cmd-disas.c: Adjust.
2441 * mi/mi-cmd-env.c: Adjust.
2442 * mi/mi-cmd-file.c: Adjust.
2443 * mi/mi-cmd-stack.c: Adjust.
2444 * mi/mi-cmd-target.c: Adjust.
2445 * mi/mi-cmd-var.c: Adjust.
2446 * mi/mi-interp.c: Adjust.
2447 * mi/mi-symbol-cmds.c: Adjust.
2448
2449 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
2450
2451 Emit ^running via observer.
2452 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
2453 ^running here.
2454 (mi_on_resume): Print ^running if not previously output.
2455 * mi/mi-main.c (running_result_record_printed): New.
2456 (captured_mi_execute_command): Reset
2457 running_result_record_printed. Use running_result_record_printed
2458 to decide if we should skip ^done.
2459 (mi_execute_async_cli_command): Don't print ^running here.
2460 * mi/mi-main.h (current_token, running_result_record_printed):
2461 Declare.
2462
2463 2008-06-24 Michael Snyder <msnyder@specifix.com>
2464
2465 * infrun.c (_initialize_infrun): White space and typo fix.
2466
2467 2008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
2468
2469 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
2470 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
2471 when first loading DLL with "dll" command.
2472
2473 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
2474
2475 * gnu-nat.c (proc_string): Use capital T for "Thread".
2476
2477 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
2478
2479 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
2480
2481 2008-06-18 Joel Brobecker <brobecker@adacore.com>
2482
2483 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
2484 the target cannot run.
2485
2486 2008-06-18 Joel Brobecker <brobecker@adacore.com>
2487
2488 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
2489 we're attaching to a running process.
2490
2491 2008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
2492
2493 * win32-nat.c (handle_load_dll): Give dll name and load address
2494 if debug_events is on.
2495 (handle_unload_dll): Likewise.
2496
2497 2008-06-14 Vladimir Prus <vladimir@codesourcery.com>
2498
2499 Don't suppress *running when doing finish.
2500 * infcall.c (call_function_by_hand): Set both
2501 suppress_resume_observer and suppress_stop_observer.
2502 * infcmd.c (suppress_run_stop_observers): Split into...
2503 (suppress_resume_observer, suppress_stop_observer): ...those.
2504 (finish_command_continuation): Clear suppress_stop_observer.
2505 (finish_command): Set suppress_stop_observer.
2506 * inferior.h (suppress_run_stop_observers): Split into...
2507 (suppress_resume_observer, suppress_stop_observer): ...those.
2508 * infrun.c (normal_stop): Check for suppress_stop_observer.
2509 * thread.c (set_running): Check for suppress_resume_observer.
2510
2511 2008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
2512 Pierre Muller <muller@ics.u-strasbg.fr>
2513
2514 * gdbarch.sh (gdbarch_skip_main_prologue): New.
2515 * gdbarch.h, gdbarch.c: Regenerate.
2516 * i386-tdep.h (i386_skip_main_prologue): Declare.
2517 * i386-tdep.c (i386_skip_main_prologue): New.
2518 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
2519 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
2520 * symtab.c (find_function_start_sal): When pc points at the "main"
2521 function, call gdbarch_skip_main_prologue.
2522
2523 2008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
2524
2525 * value.c (value_primitive_field): Fetch lazy register values.
2526
2527 2008-06-11 Pedro Alves <pedro@codesourcery.com>
2528
2529 * NEWS: Mention support removal of undocumented S AA p PID stop
2530 reply packet.
2531
2532 * remote.c (remote_wait): Remove undocumented S AA p PID support.
2533
2534 2008-06-10 Stan Shebs <stan@codesourcery.com>
2535
2536 * MAINTAINERS: Update my affiliation and address.
2537
2538 2008-06-10 Andreas Schwab <schwab@suse.de>
2539
2540 * top.c (print_gdb_version): Don't print final newline.
2541
2542 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
2543
2544 Implement *running.
2545 * Makefile.in: Update dependencies.
2546 * gdbthread.h (struct thread_info): New field
2547 running_.
2548 (set_running, is_running): New.
2549 * thread.c (set_running, is_running): New.
2550 * inferior.h (suppress_normal_stop_observer): Rename to...
2551 (suppress_run_stop_observers): ..this.
2552 * infcmd.c (suppress_normal_stop_observer): Rename to...
2553 (suppress_run_stop_observers): ..this.
2554 (finish_command_continuation, finish_command): Adjust.
2555 * infcall.c (call_function_by_hand): Adjust.
2556 * infrun.c (normal_stop): Call set_running.
2557 * target.c (target_resume): New. Call set_running.
2558 * target.h (target_resume): Convert from macro to
2559 a function.
2560
2561 * mi/mi-interp.c (mi_on_resume): New.
2562 (mi_interpreter_init): Register mi_on_resume.
2563
2564 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
2565
2566 Use observers to report stop events in MI.
2567 * mi/mi-interp.c (mi_on_normal_stop): New.
2568 (mi_interpreter_init): Register mi_on_normal_stop.
2569 (mi_interpreter_exec_continuation): Remove.
2570 (mi_cmd_interpreter_exec): Don't register the above.
2571 * mi/mi-main.c (captured_mi_execute_command): Don't care
2572 about sync_execution.
2573 (mi_execute_async_cli_command): Don't install continuation. Don't
2574 print *stopped.
2575 (mi_exec_async_cli_cmd_continuation): Remove.
2576
2577 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
2578
2579 Suppress normal stop observer when it's problematic.
2580 * inferior.h (suppress_normal_stop_observer): New.
2581 * infcall.c (call_function_by_hand): Disable stop events when
2582 doing function calls.
2583 * infmcd.c (suppress_normal_stop_observer): New.
2584 (finish_command_continuation): Call normal_stop observer
2585 explicitly.
2586 (finish_command): Disable stop events inside proceed.
2587 * infrun.c (normal_stop): Don't call normal stop observer if
2588 suppressed of if multi-step is in progress.
2589
2590 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
2591
2592 Remove stale code.
2593 * infrun.c (finish_command): Don't pass cleanup
2594 to continuation.
2595 (finish_command_continuation): Don't grab cleanup from
2596 the passed data, as we don't use, and cannot, use it anyway.
2597
2598 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
2599
2600 Introduce common cleanup for restoring integers.
2601 * defs.h (make_cleanup_restore_integer): New declaration.
2602 (struct cleanup): New field free_arg.
2603 (make_my_cleanup_2): New.
2604 * utils.c (restore_integer_closure, restore_integer)
2605 (make_cleanup_restore_integer): New.
2606 (make_my_cleanup): Initialize the free_arg field and
2607 renamed to make_my_cleanup_2.
2608 (do_my_cleanups): Call free_arg.
2609 (discard_cleanups): Call free_arg.
2610 * breakpoint.c (restore_always_inserted_mode): Remove.
2611 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
2612
2613 2008-06-09 Doug Evans <dje@google.com>
2614
2615 * remote.c (remote_wait): Include beginning of malformed packet
2616 in error output.
2617
2618 2008-06-09 Tom Tromey <tromey@redhat.com>
2619
2620 * completer.c (complete_line): Don't special-case
2621 expression_completer.
2622 (expression_completer): Only pass last word to
2623 location_completer.
2624 * c-exp.y (yylex): Check 'token', not 'operator'.
2625
2626 2008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
2627
2628 * configure.ac (build_warnings): Add -Wno-format for mingw.
2629 * configure: Regenerated.
2630
2631 2008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
2632
2633 * NEWS: Make indentation consistent. Move exec tracing entry out
2634 of remote packet list.
2635
2636 2008-06-06 Tom Tromey <tromey@redhat.com>
2637
2638 * value.h (evaluate_subexpression_type, extract_field_op):
2639 Declare.
2640 * printcmd.c (_initialize_printcmd): Use expression_completer for
2641 'p', 'inspect', 'call'.
2642 * parser-defs.h (parse_field_expression): Declare.
2643 * parse.c: Include exceptions.h.
2644 (in_parse_field, expout_last_struct): New globals.
2645 (mark_struct_expression): New function.
2646 (prefixify_expression): Return int.
2647 (prefixify_subexp): Return int. Use expout_last_struct.
2648 (parse_exp_1): Update.
2649 (parse_exp_in_context): Add 'out_subexp' argument. Handle
2650 in_parse_field.
2651 (parse_field_expression): New function.
2652 * expression.h (parse_field_expression): Declare.
2653 (in_parse_field): Likewise.
2654 * eval.c (evaluate_subexpression_type): New function.
2655 (extract_field_op): Likewise.
2656 * completer.h (expression_completer): Declare.
2657 * completer.c (expression_completer): New function.
2658 (count_struct_fields, add_struct_fields): New functions.
2659 * c-exp.y (yyparse): Redefine.
2660 (COMPLETE): New token.
2661 (exp): New productions.
2662 (saw_name_at_eof, last_was_structop): New globals.
2663 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
2664 (c_parse): New function.
2665 * breakpoint.c (_initialize_breakpoint): Use expression_completer
2666 for watch, awatch, and rwatch.
2667 * Makefile.in (parse.o): Depend on exceptions_h.
2668
2669 2008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
2670
2671 PR gdb/1147
2672 * gdb/valopts.c (find_overload_match): Handle references
2673 to pointers.
2674
2675 2008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
2676
2677 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
2678 account the bitsize of the 'from' operand.
2679
2680 2008-06-06 Pedro Alves <pedro@codesourcery.com>
2681
2682 * annotate.h (annotate_thread_changed): Declare.
2683
2684 2008-06-06 Nick Roberts <nickrob@snap.net.nz>
2685
2686 * annotate.c (annotate_thread_changed): New function.
2687 * thread.c (thread_command) : Use it.
2688 * infrun.c (normal_stop): Use it.
2689
2690 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
2691 Nathan Sidwell <nathan@codesourcery.com>
2692 Joseph Myers <joseph@codesourcery.com>
2693
2694 * acinclude.m4: Include ../config/acx.m4.
2695 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
2696 * configure, config.in: Regenerate.
2697 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
2698 address.
2699 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
2700
2701 2008-06-05 Pedro Alves <pedro@codesourcery.com>
2702
2703 Replace 'target async' by 'maintenance set remote-async' and
2704 'target remote' combination.
2705
2706 * remote.c (remote_async_wait): Merge into remote_wait, and
2707 remove.
2708 (remote_async_permitted, remote_async_permitted_set): New
2709 variables.
2710 (set_maintenance_remote_async_permitted)
2711 (show_maintenance_remote_async_permitted): New functions.
2712 (remote_async_ops, extended_async_remote_ops): Delete.
2713 (remote_async_open, extended_remote_async_open): Delete.
2714 (remote_open_1): Drop async_p parameter. Update callers. Replace
2715 async_p with remote_async_permitted checks.
2716 (extended_async_remote_attach): Delete.
2717 (remote_resume, remote_async_resume): Merge and leave remote_resume.
2718 (remote_async_terminal_inferior): Rename to...
2719 (remote_terminal_inferior): ... this, and add
2720 remote_async_termitted check.
2721 (remote_async_terminal_ours): Rename to...
2722 (remote_terminal_ours): ... this, and add remote_async_termitted
2723 check.
2724 (remote_wait, remote_async_wait): Merge and leave remote_wait
2725 only.
2726 (remote_kill, remote_async_kill): Merge and leave remote_kill
2727 only.
2728 (remote_async_mourn, extended_async_remote_mourn): Delete.
2729 (extended_remote_create_inferior_1): Drop async_p parameter.
2730 Update callers. Always use extended_remote_ops.
2731 (extended_remote_async_create_inferior): Delete.
2732 (remote_return_zero): Delete.
2733 (init_remote_ops): Register remote_can_async_p, remote_async,
2734 remote_async_mask, remote_terminal_inferior and
2735 remote_terminal_ours.
2736 (remote_can_async_p, remote_is_async_p): Check for
2737 remote_async_permitted.
2738 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
2739 (set_remote_cmd): Don't add async and extended-async targets.
2740 (_initialize_remote): Add set/show remote-async maintenance
2741 commands.
2742
2743 2008-06-05 Pedro Alves <pedro@codesourcery.com>
2744
2745 * remote.c (kill_kludge): Delete.
2746 (remote_wait, remote_async_wait): Don't set it.
2747 (remote_kill, remote_async_kill): Don't do anything with it.
2748
2749 2008-06-05 Pedro Alves <pedro@codesourcery.com>
2750
2751 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
2752
2753 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
2754
2755 * bcache.c (bcache_data): Call deprecated_bcache_added function.
2756 (deprecated_bcache_added): New function name. Body of function
2757 bcache_data is used here with the addition of 'added' argument.
2758 * bcache.h (deprecated_bcache_added): New function.
2759 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
2760 work from add_psymbol_to_list - initialises partial symbol and stashes
2761 it in objfile's cache.
2762 (append_psymbol_to_list): New helper function, takes other part of
2763 work from add_psymbol_to_list - adds partial symbol to the given list.
2764 (add_psymbol_to_list): Call helper functions instead of doing work
2765 here. If adding to global list, do not duplicate partial symbols in the
2766 partial symtab.
2767
2768 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
2769
2770 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
2771 'exception caught|thrown' message.
2772
2773 2008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2774
2775 * Makefile.in: Update dependencies.
2776 * dwarf2expr.c: New include "gdb_assert.h".
2777 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
2778 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
2779 (execute_stack_op): Error out on too large RECURSION_DEPTH.
2780 Increase/decrease RECURSION_DEPTH around the function.
2781
2782 2008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
2783
2784 * remote.c (get_offsets): Handle a single segment.
2785 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
2786 than segments.
2787
2788 2008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
2789
2790 * solib-svr4.c (struct lm_info): Add lm_addr.
2791 (main_lm_addr): New.
2792 (svr4_default_sos): Set lm_addr.
2793 (svr4_current_sos): Set lm_addr and main_lm_addr.
2794 (svr4_fetch_objfile_link_map): Rewrite.
2795 (svr4_clear_solib): Clear main_lm_addr.
2796
2797 2008-06-03 Michael Snyder <msnyder@redhat.com>
2798 Joseph Myers <joseph@codesourcery.com>
2799
2800 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
2801 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
2802
2803 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
2804
2805 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
2806
2807 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
2808
2809 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
2810
2811 2008-06-01 Joel Brobecker <brobecker@adacore.com>
2812
2813 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
2814 treat pointers in data space as function descriptors if the
2815 target address is also in the data space.
2816
2817 2008-05-30 Joel Brobecker <brobecker@adacore.com>
2818
2819 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
2820 the trad-frame register value for the SP register.
2821
2822 2008-05-29 Mark Kettenis <kettenis@gnu.org>
2823
2824 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
2825
2826 2008-05-28 Joel Brobecker <brobecker@adacore.com>
2827
2828 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
2829 that identifies function descriptors outside of the .opd section.
2830
2831 2008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
2832
2833 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
2834 temporary catchpoints. In MI add missing fields 'reason', 'disp',
2835 'bkptno'.
2836 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
2837 catchpoints.
2838 (handle_gnu_v3_exceptions): Use tempflag.
2839
2840 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
2841
2842 Refactor varobj_update interface.
2843 * varobj.c (varobj_update): Report changes as vector. Also
2844 return not just a list of varobj, but a list of special structures
2845 that tell what exactly has changed.
2846 * varobj.h (enum varobj_update_error): Rename to
2847 varobj_scope_status.
2848 (struct varobj_update_result_t): New.
2849 (varobj_update): Adjust prototype.
2850 * mi/mi-cmd-var.c: Adjust for changes.
2851
2852 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
2853
2854 * varobj.c (varobj_update): Fix comment typo.
2855 Fix indentation.
2856
2857 2008-05-26 Joel Brobecker <brobecker@adacore.com>
2858
2859 Set the symtab field of symbols read from ECOFF debugging entries.
2860 * mdebugread.c (add_symbol): Add new parameter symtab.
2861 (parse_symbol): Update calls to add_symbol throughout.
2862
2863 2008-05-27 Andreas Schwab <schwab@suse.de>
2864
2865 * symtab.h (enum address_class): Remove LOC_REGPARM and
2866 LOC_COMPUTED_ARG.
2867 (struct symbol): Add is_argument.
2868 (SYMBOL_IS_ARGUMENT): Define.
2869
2870 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
2871 * buildsym.c (finish_block): Likewise.
2872 * stack.c (print_frame_args, print_block_frame_locals)
2873 (print_frame_arg_vars): Likewise.
2874 * symtab.c (lookup_block_symbol): Likewise.
2875 * tracepoint.c (add_local_symbols): Likewise.
2876 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2877
2878 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
2879 * dwarf2read.c (new_symbol): Likewise.
2880 * mdebugread.c (parse_symbol): Likewise.
2881 * stabsread.c (define_symbol): Likewise.
2882
2883 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
2884 and LOC_COMPUTED_ARG.
2885 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
2886 * ax-gdb.c (gen_var_ref): Likewise.
2887 * eval.c (evaluate_subexp_for_address): Likewise.
2888 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
2889 * m2-exp.y (yylex): Likewise.
2890 * printcmd.c (address_info): Likewise.
2891 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
2892 * tracepoint.c (collect_symbol, scope_info): Likewise.
2893
2894 2008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2895
2896 * gdbarch.sh: Added new gdbarch struct
2897 core_regset_sections.
2898 * gdbarch.c: Refreshed.
2899 * gdbarch.h: Refreshed.
2900 * regset.h (core_regset_section): Declared.
2901 * linux-nat.c (linux_nat_do_thread_registers): Added
2902 support for the new gdbarch struct core_regset_sections.
2903 * utils.c (host_address_to_string): New function.
2904 * defs.h (host_address_to_string): New prototype.
2905 * i386-linux-tdep.c (i386_regset_rections): New register
2906 sections list for i386.
2907 (i386_linux_init_abi): Initialized new gdbarch struct
2908 core_regset_sections.
2909 * Makefile.in: Updated to reflect dependency changes.
2910 * ppc-linux-tdep.c (ppc_regset_sections): Register
2911 sections list for ppc.
2912 (ppc_linux_init_abi): Initialized new gdbarch struct
2913 core_regset_sections
2914
2915 2008-05-24 Andreas Schwab <schwab@suse.de>
2916
2917 * linespec.c (decode_objc): Save current language around call to
2918 get_selected_block.
2919
2920 2008-05-23 Joel Brobecker <brobecker@adacore.com>
2921
2922 * valprint.h (get_array_bounds): Renames get_array_low_bound.
2923 * valprint.c (get_array_bounds): Renames get_array_low_bound.
2924 Return the proper bound value if the array index type is an
2925 enumerated type. Compute the high bound if requested.
2926 (val_print_array_elements): Handle the case when the array
2927 element has a null size.
2928 * ada-valprint.c (print_optional_low_bound): Add handling
2929 for empty arrays or arrays of zero-size elements.
2930 (ada_val_print_array): New function, extracted out from
2931 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
2932 handle empty arrays and arrays of zero-size elements.
2933 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
2934 code by call to ada_val_print_array.
2935 (ada_value_print): Remove handling of null array. The handling
2936 was incomplete and is now better handled by ada_val_print_array.
2937
2938 2008-05-23 Markus Deuling <deuling@de.ibm.com>
2939
2940 * annotate.c (annotate_source, annotate_frame_begin): Replace
2941 deprecated_print_address_numeric with paddress.
2942 * cli/cli-cmds.c (list_command, edit_command): Likewise.
2943 * tui/tui-stack.c (tui_make_status_line): Likewise.
2944
2945 * defs.h (deprecated_print_address_numeric): Remove.
2946 * printcmd.c (deprecated_print_address_numeric): Remove.
2947 * maint.c (maint_print_section_info): Fix comment.
2948
2949 2008-05-23 Markus Deuling <deuling@de.ibm.com>
2950
2951 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
2952 print_binary_chars, print_char_chars): Add byte_order parameter and
2953 replace gdbarch_byte_order.
2954 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
2955 expressions and remove them. Remove unused TWO_TO_FOURTH.
2956 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
2957 endianness. Update call to print_hex_chars.
2958 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
2959 print_binary_chars, print_char_chars): Add byte_order parameter.
2960 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
2961 get at the endianness. Update print_*_char calls to use byte_order.
2962
2963 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
2964
2965 * symtab.h (struct symbol): Make "aux_value" member a void pointer
2966 instead of a union.
2967 (SYMBOL_LOCATION_BATON): Update.
2968
2969 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
2970
2971 * symtab.h (enum address_class): Remove LOC_BASEREG and
2972 LOC_BASEREG_ARG.
2973 (struct symbol): Remove "basereg" member of "aux_value" union.
2974 (SYMBOL_BASEREG): Remove.
2975
2976 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
2977 or LOC_BASEREG_ARG.
2978 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
2979 (ada_add_block_symbols): Likewise.
2980 * ax-gdb.c (gen_var_ref): Likewise.
2981 * buildsym.c (finish_block): Likewise.
2982 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
2983 * m2-exp.y (yylex): Likewise.
2984 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2985 * printcmd.c (address_info): Likewise.
2986 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
2987 (print_frame_arg_vars): Likewise.
2988 * symmisc.c (print_symbol): Likewise.
2989 * symtab.c (lookup_block_symbol): Likewise.
2990 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
2991 (scope_info): Likewise.
2992
2993 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
2994
2995 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
2996
2997 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
2998 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
2999 (ada_add_block_symbols): Likewise.
3000 * ax-gdb.c (gen_var_ref): Likewise.
3001 * buildsyms.c (finish_block): Likewise.
3002 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
3003 * m2-exp.y (yylex): Likewise.
3004 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
3005 * printcmd.c (address_info): Likewise.
3006 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
3007 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
3008 * symtab.c (lookup_block_symbol): Likewise.
3009 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
3010 (scope_info): Likewise.
3011
3012 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
3013
3014 * symtab.h (enum address_class): Remove LOC_INDIRECT and
3015 LOC_HP_THREAD_LOCAL_STATIC.
3016
3017 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
3018 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
3019 (read_var_value): Likewise.
3020 * buildsym.c (finish_block): Likewise.
3021 * objfiles.c (objfile_relocate): Likewise.
3022 * printcmd.c (address_info): Likewise.
3023 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
3024 * tracepoint.c (scope_info): Likewise.
3025
3026 2008-05-21 Markus Deuling <deuling@de.ibm.com>
3027 Maxim Grigoriev <maxim2405@gmail.com>
3028
3029 * xtensa-tdep.c (xtensa_read_register): Remove.
3030 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
3031 argument litbase to call0_frame_cache().
3032 (call0_track_op, call0_analyze_prologue)
3033 (call0_frame_cache): Use extra argument litbase.
3034
3035 2008-05-21 Joel Brobecker <brobecker@adacore.com>
3036
3037 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
3038
3039 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
3040
3041 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
3042
3043 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
3044
3045 * alpha-mdebug-tdep.c: Include "trad-frame.h".
3046 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
3047 struct trad_frame_saved_reg *.
3048 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
3049 trad_frame_alloc_saved_regs. Update accesses. Record previous
3050 value of SP as being vfp.
3051 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
3052 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
3053
3054 2008-05-21 Markus Deuling <deuling@de.ibm.com>
3055
3056 * score-tdep.c (score_print_insn): Get the current endianess from
3057 disassemble_info instead of gdbarch_byte_order.
3058
3059 2008-05-21 Pedro Alves <pedro@codesourcery.com>
3060
3061 * frame.c (get_prev_frame_1): Build frame id before setting
3062 this_frame->prev_p, not after.
3063
3064 2008-05-21 Nick Roberts <nickrob@snap.net.nz>
3065
3066 * annotate.c (annotate_new_thread): New function for new-thread
3067 annotation.
3068 * annotate.h: (annotate_new_thread): New extern.
3069 * thread.c (add_thread_with_info): Use it.
3070 * Makefile.in (thread.o): Add dependency on annotate.h.
3071
3072 2008-05-20 Joel Brobecker <brobecker@adacore.com>
3073
3074 * win32-nat.c (win32_wait): Block the control-c event while
3075 waiting for a debug event.
3076
3077 2008-05-19 Pedro Alves <pedro@codesourcery.com>
3078
3079 * symtab.h (lookup_symbol_in_language): Update comment.
3080 * symtab.c (lookup_symbol_aux_block): Update comment.
3081 * ada-lang.c (ada_lookup_symbol_list): Update comment.
3082
3083 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
3084
3085 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
3086 (lookup_symbol): Likewise.
3087 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
3088 (lookup_symbol): Likewise.
3089 (search_symbols): Update.
3090
3091 * linespec.c (find_methods, collect_methods): Update.
3092 (add_matching_methods, add_constructors): Update.
3093 (decode_compound, decode_dollar, decode_variable): Update.
3094 (lookup_prefix_sym): Update.
3095
3096 (symbol_found): Remove SYM_SYMTAB parameter.
3097 Use SYMBOL_SYMTAB (sym) instead.
3098
3099 * gdbtypes.c (lookup_typename): Update.
3100 (lookup_struct, lookup_union, lookup_enum): Update.
3101 (lookup_template_type): Update.
3102 (check_typedef): Update.
3103 * language.c (lang_bool_type): Update.
3104 * mdebugread.c (parse_procedure): Update.
3105 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3106 * parse.c (write_dollar_variable): Update.
3107 * printcmd.c (address_info): Update.
3108 * source.c (select_source_symtab): Update.
3109 * stack.c (print_frame_args, print_frame_arg_vars): Update.
3110 * valops.c (find_function_in_inferior): Update.
3111 (value_struct_elt_for_reference): Update.
3112 * value.c (value_static_field, value_fn_field): Update.
3113
3114 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3115 * arm-tdep.c (arm_skip_prologue): Update.
3116 * mt-tdep.c (mt_skip_prologue): Update.
3117 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
3118
3119 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
3120 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
3121 (add_defn_to_vec): Likewise.
3122 (ada_add_block_symbols): Likewise.
3123 (lookup_cached_symbol, cache_symbol): Likewise.
3124 (standard_lookup): Update.
3125 (ada_lookup_symbol_list): Update.
3126
3127 * c-valprint.c (c_val_print): Update.
3128 * cp-support.c (cp_lookup_rtti_type): Update.
3129 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
3130 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
3131 * p-valprint.c (pascal_val_print): Update.
3132 * scm-lang.c (scm_lookup_name): Update.
3133
3134 * c-exp.y: Update.
3135 * f-exp.y: Update.
3136 * jv-exp.y: Update.
3137 * m2-exp.y: Update.
3138 * objc-exp.y: Update.
3139 * p-exp.y: Update.
3140
3141 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
3142
3143 * language.h (struct language_defn): Remove SYMTAB parameter from
3144 la_lookup_symbol_nonlocal callback function pointer.
3145
3146 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
3147 (ada_lookup_encoded_symbol): Likewise.
3148 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
3149 Always call fixup_symbol_section.
3150 (ada_lookup_symbol): Remove SYMTAB parameter.
3151 (ada_lookup_symbol_nonlocal): Likewise.
3152 * ada-exp.y (write_object_renaming): Update.
3153 (find_primitive_type): Likewise.
3154
3155 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
3156 (cp_lookup_symbol_namespace): Likewise.
3157 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
3158 (lookup_symbol_file): Likewise.
3159 (lookup_possible_namespace_symbol): Likewise.
3160 (cp_lookup_symbol_nonlocal): Likewise.
3161 (cp_lookup_symbol_namespace): Likewise.
3162 (cp_lookup_nested_type): Update.
3163
3164 * scm-valprint.c (scm_inferior_print): Update.
3165 * valops.c (value_maybe_namespace_elt): Update.
3166
3167 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
3168 lookup_lib_global_symbol callback function pointer.
3169 (solib_global_lookup): Remove SYMTAB parameter.
3170 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
3171 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
3172
3173 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
3174 (lookup_symbol_static): Likewise.
3175 (lookup_symbol_global): Likewise.
3176 (lookup_symbol_aux_block): Likewise.
3177 (lookup_global_symbol_from_objfile): Likewise.
3178 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
3179 (lookup_symbol_aux_local): Likewise.
3180 (lookup_symbol_aux_block): Likewise.
3181 (lookup_symbol_aux_symtabs): Likewise.
3182 (lookup_symbol_aux_psymtabs): Likewise.
3183 (lookup_global_symbol_from_objfile): Likewise.
3184 (basic_lookup_symbol_nonlocal): Likewise.
3185 (lookup_symbol_static): Likewise.
3186 (lookup_symbol_global): Likewise.
3187
3188 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
3189
3190 2008-05-17 Pedro Alves <pedro@codesourcery.com>
3191
3192 * remote.c (init_extended_remote_ops): Fix typo.
3193
3194 2008-05-16 Pedro Alves <pedro@codesourcery.com>
3195
3196 * NEWS: Mention new DICOS x86 target configuration.
3197
3198 2008-05-16 Pedro Alves <pedro@codesourcery.com>
3199 Ulrich Weigand <uweigand@de.ibm.com>
3200
3201 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
3202 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
3203
3204 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
3205 use it instead of ginfo->value.address. Look up minimal symbol by
3206 address and name. Assume OBJFILE is non-NULL.
3207 (fixup_symbol_section): Ensure we always have an objfile to look
3208 into. Extract and pass to fixup_section the symbol's address that
3209 will match the minimal symbol's address.
3210 (fixup_psymbol_section): Likewise.
3211
3212 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
3213 overlays and the addrmap returned the wrong section.
3214
3215 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
3216 calling fixup_symbol_section.
3217
3218 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
3219
3220 * minsyms.c: Include "target.h".
3221 (find_solib_trampoline_target): Handle minimal symbols pointing
3222 to function descriptors as well.
3223 * Makefile.in (minsyms.o): Update dependencies.
3224
3225 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
3226 (ppc64_standard_linkage1): ... this. Fix optional instructions.
3227 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
3228 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
3229 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
3230 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
3231 (ppc64_standard_linkage_target): Rename to ...
3232 (ppc64_standard_linkage1_target): ... this.
3233 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
3234 (ppc64_skip_trampoline_code): Support three variants of standard
3235 linkage stubs. Call find_solib_trampoline_target to handle
3236 glink stubs.
3237
3238 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
3239
3240 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
3241 ppc64_sysv_abi_adjust_breakpoint_address.
3242 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
3243 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
3244
3245 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
3246
3247 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
3248 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
3249 of ppc_linux_skip_trampoline_code.
3250
3251 2008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
3252
3253 * gdbarch.sh: Delete dwarf_reg_to_regnum.
3254 * gdbarch.c, gdbarch.h: Regenerated.
3255 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
3256 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
3257 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
3258
3259 2008-05-15 Pedro Alves <pedro@codesourcery.com>
3260
3261 * linux-nat.c (trap_ptid): Delete.
3262 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
3263 Adjust.
3264 * linux-thread-db.c (thread_db_wait): Adjust.
3265
3266 2008-05-15 Joel Brobecker <brobecker@adacore.com>
3267
3268 * linespec.c (decode_line_1): Fix a couple of comments.
3269
3270 2008-05-15 Alan Modra <amodra@bigpond.net.au>
3271
3272 * dbxread.c: Formatting.
3273 (INTERNALIZE_SYMBOL): Init n_other.
3274 (set_namestring): Take pointer to nlist arg rather than struct
3275 copy. Update all callers.
3276
3277 2008-05-15 Andreas Schwab <schwab@suse.de>
3278
3279 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
3280 (dwarf2read.o): Add $(addrmap_h).
3281
3282 2008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
3283
3284 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
3285 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
3286 to handle ppc32 PLT entries.
3287 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
3288 only on ppc64.
3289
3290 2008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
3291
3292 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
3293 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
3294 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
3295 (lookup_minimal_symbol_by_pc_section): Use
3296 lookup_minimal_symbol_by_pc_section_1.
3297 (lookup_solib_trampoline_symbol_by_pc): Likewise.
3298
3299 2008-05-13 Joel Brobecker <brobecker@adacore.com>
3300
3301 * findcmd.c: Add #include "gdb_stdint.h".
3302 * Makefile.in (findcmd.o): Update dependencies.
3303
3304 2008-05-11 David S. Miller <davem@davemloft.net>
3305
3306 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
3307 long double size override, Linux does use 128-bit now.
3308
3309 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
3310 (sparc_linux_write_pc): New function.
3311 (sparc32_linux_init_abi): Register it.
3312 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
3313 (sparc64_linux_write_pc): New function.
3314 (sparc64_linux_init_abi): Register it.
3315
3316 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
3317 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
3318
3319 2008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
3320
3321 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
3322 and info.tdep_info before calling gdbarch_init_osabi.
3323
3324 2008-05-09 Joel Brobecker <brobecker@adacore.com>
3325
3326 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
3327 the type of the right hand side of the assignment to the type
3328 of the left hand side if the left hand side is a convenience
3329 variable.
3330
3331 2008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
3332
3333 * NEWS: Mention gdbserver bi-arch capability.
3334
3335 2008-05-09 Doug Evans <dje@google.com>
3336
3337 New "find" command.
3338 * NEWS: Document find command and qSearch:memory packet.
3339 * Makefile.in (SFILES): Add findcmd.c.
3340 (COMMON_OBJS): Add findcmd.o.
3341 (findcmd.o): New rule.
3342 * findcmd.c: New file.
3343 * target.h (target_ops): New member to_search_memory.
3344 (simple_search_memory): Declare.
3345 (target_search_memory): Declare.
3346 * target.c (simple_search_memory): New fn.
3347 (target_search_memory): New fn.
3348 * remote.c (PACKET_qSearch_memory): New packet kind.
3349 (remote_search_memory): New fn.
3350 (init_remote_ops): Init to_search_memory.
3351 (init_extended_remote_ops): Ditto.
3352 (_initialize_remote): Add qSearch:memory packet config command.
3353
3354 2008-05-09 Eli Zaretskii <eliz@gnu.org>
3355
3356 * thread.c (_initialize_thread): Don't use commas and periods in
3357 first line of doc string of "set/show print thread-events".
3358
3359 2008-05-08 Joel Brobecker <brobecker@adacore.com>
3360
3361 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
3362 Update for unwinder changes.
3363
3364 2008-05-08 Joel Brobecker <brobecker@adacore.com>
3365
3366 * frame.c (get_frame_base_address, get_frame_locals_address)
3367 (get_frame_args_address): Pass the correct frame when calling
3368 frame_base_find_by_frame.
3369
3370 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
3371
3372 * remote.c (extended_remote_attach_1): Call target_find_description.
3373
3374 2008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
3375
3376 * remote.c (extended_remote_create_inferior_1): Clean up
3377 before marking the target running.
3378
3379 2008-05-08 Joel Brobecker <brobecker@adacore.com>
3380
3381 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
3382 changes.
3383
3384 2008-05-07 Joel Brobecker <brobecker@adacore.com>
3385
3386 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
3387 sparc64-sol2-tdep.c: Update for unwinder changes.
3388
3389 2008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
3390
3391 * cp-support.c (mangled_name_to_comp): Initialize storage.
3392 (unqualified_name_from_comp): Likewise.
3393
3394 2008-05-07 Jie Zhang <jie.zhang@analog.com>
3395
3396 * remote.c (remote_insert_breakpoint): Call get_remote_state
3397 after gdbarch_breakpoint_from_pc is called.
3398 (remote_insert_hw_breakpoint): Likewise.
3399
3400 2008-05-06 Joel Brobecker <brobecker@adacore.com>
3401
3402 * valprint.c (val_print): Add new language parameter and use it
3403 instead of using the current_language. Update calls to val_print
3404 throughout.
3405 (common_val_print): Add new langauge parameter and pass it to
3406 val_print.
3407 * value.h (struct language_defn): Add opaque declaration.
3408 (val_print, common_val_print): Update declarations.
3409 * stack.c (print_frame_args): Update call to common_val_print
3410 using the appropriate language.
3411 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
3412 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
3413 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
3414 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
3415 #include "language.h" if necessary.
3416 Update calls to val_print and common_val_print.
3417 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
3418 Update dependencies.
3419
3420 2008-05-06 Joel Brobecker <brobecker@adacore.com>
3421
3422 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
3423 pointing inside a non-executable section as function descriptors.
3424
3425 2008-05-06 Pedro Alves <pedro@codesourcery.com>
3426
3427 * inf-loop.c (inferior_event_handler): Run all continuations and
3428 print any language change before running the breakpoint commands.
3429
3430 2008-05-06 Joel Brobecker <brobecker@adacore.com>
3431
3432 * frame-unwind.c (frame_unwind_got_bytes): New function.
3433 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
3434 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
3435 for unwinder changes.
3436
3437 2008-05-05 Doug Evans <dje@google.com>
3438
3439 * NEWS: Mention new /m modifier for disassemble command.
3440 * cli/cli-cmds.c (print_disassembly): New function.
3441 (disassemble_current_function): New function
3442 (disassemble_command): Recognize /m modifier, print mixed
3443 source+assembly.
3444 (init_cli_cmds): Update disassemble help text.
3445
3446 2008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
3447
3448 * xtensa-tdep.c: Update for unwinder changes.
3449
3450 2008-05-05 Andreas Schwab <schwab@suse.de>
3451
3452 Update m68k port for unwinder changes.
3453 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
3454 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
3455 (m68k_frame_unwind): Use default_frame_sniffer.
3456 (m68k_frame_sniffer): Remove.
3457 (m68k_frame_base_address): Expect this_frame.
3458 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
3459 this_frame.
3460 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
3461 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
3462 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
3463 parameter instead of pc value.
3464 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
3465 Expect this_frame.
3466 (m68k_linux_sigtramp_frame_this_id)
3467 (m68k_linux_sigtramp_frame_prev_register)
3468 (m68k_linux_sigtramp_frame_sniffer): Update signature.
3469 (m68k_linux_sigtramp_frame_unwind): Use
3470 m68k_linux_sigtramp_frame_sniffer.
3471 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
3472
3473 * m68klinux-nat.c (store_register): Fix typo.
3474
3475 2008-05-05 Pedro Alves <pedro@codesourcery.com>
3476
3477 * infcmd.c (step_1): Put thread id on the stack to avoid possible
3478 NULL dereferencing.
3479
3480 2008-05-05 Luis Machado <luisgpm@br.ibm.com>
3481
3482 * symfile.c (reread_symbols): Update objfile's entry point.
3483
3484 2008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
3485 Joel Brobecker <brobecker@adacore.com>
3486
3487 * ada-lang.c: Update throughout to use symbol_matches_domain
3488 instead of matching the symbol domain explictly.
3489 * dwarf2read.c (add_partial_symbol): Do not add new psym for
3490 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
3491 class as typedefs. See lookup_partial_symbol function.
3492 (new_symbol): Similar to add_partial_symbol, do not create
3493 symbol for the typedef. See lookup_block_symbol.
3494 * symtab.c (symbol_matches_domain): New function, takes care
3495 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
3496 (lookup_partial_symbol): Use symbol_matches_domain to see if the
3497 found psym domain matches the given domain.
3498 (lookup_block_symbol): Likewise.
3499
3500 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
3501
3502 * top.c (command_line_handler_continuation): Remove.
3503 (execute_command): Do not install the above.
3504
3505 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
3506
3507 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
3508 and catch all exceptions from it.
3509 * top.c (command_line_handler_continuation): Don't
3510 call bpstat_do_action here.
3511
3512 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
3513
3514 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
3515 (struct die_info): Remove type.
3516 (read_type_die, read_typedef, read_base_type, read_subrange_type)
3517 (read_structure_type, read_enumeration_type, read_array_type)
3518 (read_tag_pointer_type, read_tag_ptr_to_member_type)
3519 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
3520 (read_tag_string_type, read_subroutine_type, read_set_type)
3521 (read_unspecified_type): Delete prototypes. Remove check for
3522 already-loaded type. Return the new type.
3523 (set_die_type): Return the new type.
3524 (reset_die_and_siblings_types): Delete.
3525 (load_comp_unit, load_full_comp_unit): Set type_hash.
3526 (process_queue): Remove call to reset_die_and_siblings_types.
3527 (process_die): Do not read most types here. Use read_type_die
3528 for others.
3529 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
3530 (quirk_gcc_member_function_pointer): Return the new type.
3531 (process_structure_scope, process_enumeration_scope): Use
3532 get_die_type and read the DIE's type.
3533 (read_full_die): Do not initialize die->type.
3534 (tag_type_to_type): Use read_type_die.
3535 (read_type_die): Check for already defined types. Return the
3536 type.
3537 (determine_prefix): Use get_die_type.
3538 (set_die_type): Return the type.
3539 (get_die_type): Take a CU argument. Check for no type_hash.
3540
3541 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
3542
3543 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
3544 locals.
3545
3546 2008-05-04 Pedro Alves <pedro@codesourcery.com>
3547
3548 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
3549 and bp_longjmp_resume breakpoints.
3550 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
3551 meaningful.
3552 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
3553 breakpoints. Create bp_longjmp breakpoints as momentary
3554 breakpoints.
3555 (enable_longjmp_breakpoint): Delete.
3556 (set_longjmp_breakpoint): New.
3557 (disable_longjmp_breakpoint): Delete.
3558 (delete_longjmp_breakpoint): New.
3559 (set_longjmp_resume_breakpoint): Delete.
3560 (set_momentary_breakpoint_at_pc): New.
3561 (breakpoint_re_set_one): Don't delete bp_longjmp and
3562 bp_longjmp_resume breakpoints.
3563 (breakpoint_re_set): Don't create longjmp and longjmp-resume
3564 breakpoints.
3565
3566 * infrun.c (step_resume_breakpoint): Add comment.
3567 (struct execution_control_state): Delete handling_longjmp member.
3568 (init_execution_control_state). Don't clear handling_longjmp.
3569 (context_switch): Don't context switch handling_longjmp.
3570 (handle_inferior_event): If handling a bp_longjmp breakpoint,
3571 create a bp_longjmp_resume breakpoint, and set it as current
3572 step_resume_breakpoint, then step over the longjmp breakpoint. If
3573 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
3574 breakpoint, delete the longjmp-resume breakpoint, and stop
3575 stepping.
3576 (currently_stepping): Remove handling_longjmp from expression.
3577 (insert_step_resume_breakpoint_at_sal): Update comment.
3578 (insert_longjmp_resume_breakpoint): New.
3579
3580 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
3581 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
3582 declarations.
3583 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
3584 (set_longjmp_resume_breakpoint): Delete declaration.
3585
3586 * gdbthread.h (save_infrun_state): Remove handling_longjmp
3587 parameter.
3588 (load_infrun_state): Delete *handling_longjmp parameter.
3589 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
3590 Update body.
3591 (load_infrun_state): Delete *handling_longjmp parameter. Update
3592 body.
3593
3594 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
3595 (delete_longjmp_breakpoint_cleanup): New.
3596 (step_1): Call set_longjmp_breakpoint instead of
3597 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
3598 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
3599 (step_1_continuation): Pass thread id in the continuation args to
3600 step_once.
3601 (step_once): Add thread parameter. Pass thread id the the
3602 continuation.
3603
3604 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3605
3606 Set CU BASE_ADDRESS already from partial DIEs.
3607 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
3608 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
3609 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
3610 from these variables if it was still unset.
3611
3612 * Makefile.in: Update dependencies.
3613 * dwarf2read.c: Include "addrmap.h"
3614 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
3615 (dwarf2_ranges_read): New prototype.
3616 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
3617 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
3618 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
3619 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
3620 comment for it. Add the found ranges to RANGES_PST. New variable
3621 BASEADDR, initialize it the common way.
3622 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
3623 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
3624 HAS_RANGES_OFFSET for the later processing.
3625 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
3626 * symtab.c: Include "addrmap.h"
3627 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
3628 Move the psymtab locator into ...
3629 (find_pc_sect_psymtab_closer): ... a new function.
3630
3631 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
3632
3633 * arch-utils.c (gdbarch_update_p): Use default values for
3634 info.abfd and info.target_desc if they are NULL.
3635 (gdbarch_from_bfd): Remove assertion.
3636 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
3637 using the current target description.
3638 (gdbarch_info_fill): Do not use default values for info->abfd
3639 and info->target_desc.
3640
3641 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3642
3643 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
3644
3645 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
3646
3647 * inferior.h (read_pc_pid, write_pc_pid): Remove.
3648 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
3649
3650 * regcache.c (read_pc_pid): Remove, replace by ...
3651 (regcache_read_pc): ... this function.
3652 (write_pc_pid): Remove, replace by ...
3653 (regcache_write_pc): ... this function.
3654 (read_pc, write_pc): Update.
3655
3656 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
3657 write_pc_pid by regcache_read_pc and regcache_write_pc.
3658 (displaced_step_fixup): Likewise.
3659 (resume): Likewise. Use regcache arch instead of current_gdbarch.
3660 (prepare_to_proceed): Likewise.
3661 (proceed): Likewise.
3662 (adjust_pc_after_break): Likewise.
3663 (handle_inferior_event): Likewise.
3664
3665 * linux-nat.c (cancel_breakpoint): Likewise.
3666 * linux-thread-db.c (check_event): Likewise.
3667 * aix-thread.c (aix_thread_wait): Likewise.
3668 * tracepoint.c (trace_dump_command): Likewise.
3669
3670 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3671
3672 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
3673 SYMBOL_LOCATION_BATON.
3674
3675 2008-05-04 Vladimir Prus <vladimir@codesourcery.com>
3676
3677 * target.h (struct target_ops): New field to_auxv_parse.
3678 * auxv.c (default_auxv_parse): New, renamed from previous
3679 target_auxv_parse.
3680 (target_auxv_parse): Try to call target method. Fallback to
3681 default_auxv_parse if not found.
3682 * procfs.c (procfs_auxv_parse): New.
3683 (init_procfs_ops): On Solaris, in 64-bit mode, install
3684 procfs_auxv_parse.
3685
3686 2008-05-03 Adam Nemet <anemet@caviumnetworks.com>
3687
3688 * symfile.c (add_symbol_file_command): Use paddress rather than
3689 hex_string to print the address.
3690
3691 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
3692
3693 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
3694 return the null frame ID to terminate the backtrace.
3695
3696 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
3697
3698 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
3699 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
3700 (SIG_FRAME_PC_OFFSET): Likewise.
3701 (SIG_FRAME_LR_OFFSET): Likewise.
3702 (SIG_FRAME_FP_OFFSET): Likewise.
3703 (rs6000_push_dummy_call): Likewise.
3704 (rs6000_return_value): Likewise.
3705 (rs6000_convert_from_func_ptr_addr): Likewise.
3706 (branch_dest, rs6000_software_single_step): Likewise.
3707 (deal_with_atomic_sequence): Rename to ...
3708 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
3709 Do not call branch_dest; inline required parts of that function.
3710 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
3711 with SYMBOL_LINKAGE_NAME.
3712 (struct reg, regsize): Delete.
3713 (read_memory_addr): Delete; inline into callers.
3714 (rs6000_skip_prologue): Move after skip_prologue.
3715 (skip_prologue): Remove prototype.
3716 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
3717 initialization as if this variable were true. Do not install
3718 ppc64_sysv_abi_adjust_breakpoint_address.
3719
3720 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
3721 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
3722 and "breakpoint.h".
3723 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
3724 (SIG_FRAME_PC_OFFSET): Likewise.
3725 (SIG_FRAME_LR_OFFSET): Likewise.
3726 (SIG_FRAME_FP_OFFSET): Likewise.
3727 (rs6000_push_dummy_call): Likewise.
3728 (rs6000_return_value): Likewise.
3729 (rs6000_convert_from_func_ptr_addr): Likewise.
3730 (branch_dest, rs6000_software_single_step): Likewise. Replace
3731 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
3732 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
3733 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
3734 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
3735 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
3736
3737 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
3738 (AIX_TEXT_SEGMENT_BASE): New macro.
3739 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
3740 by AIX_TEXT_SEGMENT_BASE.
3741
3742 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
3743 (struct gdbarch_tdep): Remove text_segment_base member.
3744 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
3745 ppc64_sysv_abi_adjust_breakpoint_address.
3746
3747 * Makefile.in (rs6000-tdep.o): Update dependencies.
3748 (rs6000-aix-tdep.o): Likewise.
3749
3750 2008-05-03 Luis Machado <luisgpm@br.ibm.com>
3751 Thiago Jung Bauermann <bauerman@br.ibm.com>
3752
3753 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
3754 * doublest.c (convert_typed_floating): Fix typo in comment.
3755 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3756 * frame-unwind.h (frame_sniffer_ftype): Likewise.
3757 * frame.c (frame_unwind_address_in_block): Likewise.
3758 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
3759 * symtab.h (struct symbol): Likewise.
3760 * tramp-frame.h (struct trad_frame_cache): Likewise.
3761 * value.c (allocate_repeat_value): Likewise.
3762
3763 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
3764
3765 * infrun.c (handle_inferior_event): Do not insert breakpoints at
3766 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
3767
3768 2008-05-03 Pedro Alves <pedro@codesourcery.com>
3769
3770 * parse.c (parse_exp_in_context): Don't override
3771 expression_context_pc if get_selected_block returned a valid
3772 block.
3773
3774 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
3775
3776 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
3777 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
3778 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
3779 Delete.
3780 * c-typeprint.c (c_type_print_base): Delete handling of template
3781 instantiations.
3782 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
3783 (METHOD_PTR_TO_VOFFSET): Delete.
3784 * defs.h (QUIT_FIXME): Delete.
3785 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
3786 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
3787 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
3788 ninstantiations, and instantiations.
3789 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
3790 (TYPE_FN_FIELD_INLINED): Delete.
3791 * srec.h (SREC_BINARY): Delete.
3792 * symtab.c (symbol_init_demangled_name): Delete.
3793 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
3794 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
3795 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
3796 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
3797 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
3798 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
3799 * target.h (enum thread_control_capabilities): Delete tc_switch.
3800 (target_can_switch_threads): Delete.
3801
3802 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
3803
3804 * Makefile.in (objfiles.o): Update.
3805 * exec.c (exec_set_section_address): Support p->addr != 0.
3806 * objfiles.c (objfile_relocate): Update exec_ops section
3807 addresses.
3808 * symfile.c (place_section): Move exec_set_section_address call...
3809 (default_symfile_offsets): ...to here.
3810
3811 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
3812
3813 * Makefile.in (ppc_linux_tdep_h): New macro.
3814 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
3815 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
3816 (powerpc_e500l_c): Likewise.
3817 (ppc-linux-nat.o): Update dependencies.
3818 (ppc-linux-tdep.o): Update dependencies.
3819 (rs6000-tdep.o): Update dependencies.
3820
3821 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
3822 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
3823 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
3824 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
3825 (tdesc_powerpc_e500): Remove.
3826
3827 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
3828 and "features/rs6000/powerpc-altivec64.c".
3829 (ppc_supply_reg, ppc_collect_reg): Make global.
3830 (variants): Use tdesc_powerpc_32 for "powerpc" and
3831 tdesc_powerpc_altivec64 for "powerpc64".
3832 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
3833
3834 * ppc-linux-tdep.h: New file.
3835
3836 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
3837 Include "features/rs6000/powerpc-32l.c".
3838 Include "features/rs6000/powerpc-altivec32l.c".
3839 Include "features/rs6000/powerpc-64l.c".
3840 Include "features/rs6000/powerpc-altivec64l.c".
3841 Include "features/rs6000/powerpc-e500l.c".
3842 (ppc_linux_supply_gregset): New function.
3843 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
3844 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
3845 (ppc64_linux_gregset): Likewise.
3846 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
3847 (ppc_linux_trap_reg_p): New function.
3848 (ppc_linux_write_pc): New function.
3849 (ppc_linux_core_read_description): New function.
3850 (ppc_linux_init_abi): Install ppc_linux_write_pc and
3851 ppc_linux_core_read_description. Install orig_r3 and trap
3852 registers if present in the target description.
3853 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
3854
3855 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
3856 (PT_ORIG_R3, PT_TRAP): Define if necessary.
3857 (ppc_register_u_addr): Handle orig_r3 and trap registers.
3858 (fetch_ppc_registers): Likewise.
3859 (store_ppc_registers): Likewise.
3860 (store_register): Likewise.
3861 (ppc_linux_read_description): Check whether AltiVec is supported.
3862 Check whether inferior is 32-bit or 64-bit. Return the appropriate
3863 Linux target description.
3864
3865 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
3866 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
3867 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
3868 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
3869 rs6000/powerpc-e500. Update -expedite variables accordingly.
3870
3871 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
3872 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
3873 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
3874 * features/rs6000/powerpc-e500.c: Regenerate.
3875 * features/rs6000/powerpc-32.c: Regenerate.
3876 * features/rs6000/powerpc-64.c: Regenerate.
3877
3878 * features/rs6000/power-linux.xml: New file.
3879 * features/rs6000/power64-linux.xml: New file.
3880 * features/rs6000/powerpc-32l.xml: New file.
3881 * features/rs6000/powerpc-altivec32l.xml: New file.
3882 * features/rs6000/powerpc-64l.xml: New file.
3883 * features/rs6000/powerpc-altivec64l.xml: New file.
3884 * features/rs6000/powerpc-e500l.xml: New file.
3885 * features/rs6000/powerpc-32l.c: New (generated) file.
3886 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
3887 * features/rs6000/powerpc-64l.c: New (generated) file.
3888 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
3889 * features/rs6000/powerpc-e500l.xml: New (generated) file.
3890
3891 * regformats/reg-ppc.dat: Remove.
3892 * regformats/reg-ppc64.dat: Remove.
3893 * regformats/rs6000/powerpc-32.dat: Remove.
3894 * regformats/rs6000/powerpc-64.dat: Remove.
3895 * regformats/rs6000/powerpc-e500.dat: Remove.
3896 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
3897 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
3898 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
3899 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
3900 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
3901
3902 2008-05-03 Pedro Alves <pedro@codesourcery.com>
3903
3904 * thread.c (delete_thread): Call observer_notify_thread_exit.
3905 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
3906 thread_exit observer.
3907 (mi_thread_exit): New.
3908
3909 2008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3910
3911 * breakpoint.c (create_exception_catchpoint): Remove prototype
3912 for already deleted function.
3913 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
3914 * frame.h (show_stack_frame): Remove prototype.
3915 * stack.c (show_stack_frame): Remove empty, unused function.
3916 * source.c (symtab_to_fullname, print_source_lines): Small fix
3917 in comment.
3918 * value.c (show_values): Update comments to mention "show values"
3919 command instead of "info history".
3920
3921 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
3922
3923 * linespec.c: Include "target.h".
3924 (minsym_found): Handle minimal symbols pointing to function
3925 descriptors. Use find_function_start_pc.
3926 * minsyms.c (msymbol_objfile): New function.
3927 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
3928 to function descriptors.
3929 * symtab.c (fixup_section): Only use minimal symbol at the same
3930 address to determine section of a symbol.
3931 (find_function_start_pc): New function.
3932 (find_function_start_sal): Use it.
3933 * symtab.h (msymbol_objfile): Add prototype.
3934 (find_function_start_pc): Likewise.
3935 * value.c: Include "objfiles.h".
3936 (value_fn_field): Handle minimal symbols pointing to function
3937 descriptors.
3938 * Makefile.in (linespec.o): Update dependencies.
3939 (value.o): Likewise.
3940
3941 2008-05-02 Joel Brobecker <brobecker@adacore.com>
3942
3943 * ada-lang.c (unwrap_value): Handle the case where the "F" field
3944 inside a PAD type is a bitfield.
3945
3946 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
3947
3948 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
3949 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
3950 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
3951 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
3952 Allow typedefs when checking for function pointer arguments.
3953 Right-align small structs passed on the stack.
3954 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
3955 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
3956 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
3957
3958 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
3959
3960 * Makefile.in (arm-tdep.o): Update.
3961 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
3962 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
3963 (arm_pc_is_thumb): Use mapping symbols.
3964 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
3965 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
3966 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
3967 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
3968 * gdbarch.sh: Add record_special_symbol.
3969 * gdbarch.c, gdbarch.h: Regenerated.
3970 * objfiles.c (struct objfile_data): Add cleanup member.
3971 (register_objfile_data_with_cleanup): New function, from
3972 register_objfile_data.
3973 (register_objfile_data): Use it.
3974 (objfile_free_data): Call clear_objfile_data.
3975 (clear_objfile_data): Call cleanup functions.
3976 * objfiles.h (register_objfile_data_with_cleanup): Declare.
3977
3978 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
3979
3980 * objfiles.c (init_entry_point_info): Handle shared libraries.
3981
3982 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
3983
3984 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
3985 lowest_pc.
3986
3987 2008-05-02 Jim Blandy <jimb@codesourcery.com>
3988 Pedro Alves <pedro@codesourcery.com>
3989
3990 Implement displaced stepping.
3991
3992 * gdbarch.sh (max_insn_length): New 'variable'.
3993 (displaced_step_copy, displaced_step_fixup)
3994 (displaced_step_free_closure, displaced_step_location): New
3995 functions.
3996 (struct displaced_step_closure): Add forward declaration.
3997 * gdbarch.c, gdbarch.h: Regenerated.
3998
3999 * arch-utils.c: #include "objfiles.h".
4000 (simple_displaced_step_copy_insn)
4001 (simple_displaced_step_free_closure)
4002 (displaced_step_at_entry_point): New functions.
4003 * arch-utils.h (simple_displaced_step_copy_insn)
4004 (simple_displaced_step_free_closure)
4005 (displaced_step_at_entry_point): New prototypes.
4006
4007 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
4008 (I386_MAX_MATCHED_INSN_LEN): ... this.
4009 (i386_absolute_jmp_p, i386_absolute_call_p)
4010 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
4011 (i386_displaced_step_fixup): New functions.
4012 (struct i386_insn, i386_match_insn): Update.
4013 (i386_gdbarch_init): Set gdbarch_max_insn_length.
4014 * i386-tdep.h (I386_MAX_INSN_LEN): New.
4015 (i386_displaced_step_fixup): New prototype.
4016 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
4017 Register gdbarch_displaced_step_copy,
4018 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
4019 and gdbarch_displaced_step_location functions.
4020
4021 * infrun.c (debug_displaced): New variable.
4022 (show_debug_displaced): New function.
4023 (struct displaced_step_request): New struct.
4024 (displaced_step_request_queue, displaced_step_ptid)
4025 (displaced_step_gdbarch, displaced_step_closure)
4026 (displaced_step_original, displaced_step_copy)
4027 (displaced_step_saved_copy, can_use_displaced_stepping): New
4028 variables.
4029 (show_can_use_displaced_stepping, use_displaced_stepping)
4030 (displaced_step_clear, cleanup_displaced_step_closure)
4031 (displaced_step_dump_bytes, displaced_step_prepare)
4032 (displaced_step_clear_cleanup, write_memory_ptid)
4033 (displaced_step_fixup): New functions.
4034 (resume): Call displaced_step_prepare.
4035 (proceed): Call read_pc once, and remember the value. If using
4036 displaced stepping, don't remove breakpoints.
4037 (handle_inferior_event): Call displaced_step_fixup. Add some
4038 debugging output. When we try to step over a breakpoint, but get
4039 a signal to deliver to the thread instead, ensure the step-resume
4040 breakpoint is actually inserted. If a thread hop is needed, and
4041 displaced stepping is enabled, don't remove breakpoints.
4042 (init_wait_for_inferior): Call displaced_step_clear.
4043 (_initialize_infrun): Add "set debug displaced" command. Add
4044 "maint set can-use-displaced-stepping" command. Clear
4045 displaced_step_ptid.
4046 * inferior.h (debug_displaced): Declare variable.
4047 (displaced_step_dump_bytes): Declare function.
4048
4049 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
4050 dependencies.
4051
4052 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
4053
4054 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
4055 (arm_force_mode_string, arm_show_fallback_mode)
4056 (arm_show_force_mode): New.
4057 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
4058 arm_frame_is_thumb.
4059 (_initialize_arm_tdep): Add "set arm fallback-mode"
4060 and "set arm force-mode".
4061 * NEWS: Document new commands.
4062
4063 2008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
4064
4065 * main.h (batch_silent): Declare.
4066 * event-top.c: Include main.h.
4067 (gdb_setup_readline): Remove extern batch_silent declaration.
4068 * infrun.c (normal_stop): Don't print source location when running in
4069 --batch-silent mode.
4070 * Makefile.in (event-top.o): Add main.h dependency.
4071
4072 2008-05-02 Andreas Schwab <schwab@suse.de>
4073
4074 * target.h (struct target_ops): Add
4075 to_watchpoint_addr_within_range.
4076 (target_watchpoint_addr_within_range): New function.
4077 * target.c (update_current_target): Inherit
4078 to_watchpoint_addr_within_range, defaulting to
4079 default_watchpoint_addr_within_range.
4080 (default_watchpoint_addr_within_range): New function.
4081 (debug_to_watchpoint_addr_within_range): New function.
4082 (setup_target_debug): Set to_watchpoint_addr_within_range.
4083 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
4084 New function.
4085 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
4086 * breakpoint.c (watchpoints_triggered): Use
4087 target_watchpoint_addr_within_range.
4088
4089 2008-05-01 Pedro Alves <pedro@codesourcery.com>
4090
4091 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
4092 (i[34567]86-*-dicos*, x86_64-*-dicos*):
4093 Set gdb_osabi to GDB_OSABI_DICOS.
4094
4095 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
4096 * osabi.c (gdb_osabi_name): Add "DICOS".
4097
4098 * i386-dicos-tdep.c: New file.
4099
4100 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
4101 (ALLDEPFILES): Add i386-dicos-tdep.c.
4102 (i386-dicos-tdep.o): New rule.
4103
4104 2008-05-01 Pedro Alves <pedro@codesourcery.com>
4105
4106 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
4107 and register the fork's PTID as a thread.
4108
4109 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
4110
4111 PR gdb/1665
4112 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
4113 assign its value to the breakpoint created.
4114 (create_breakpoints): Add breakpoint_ops argument and pass it
4115 to create_breakpoint call.
4116 (break_command_really): Add breakpoint_ops argument and pass/assign
4117 appropriately.
4118 (break_command_1): Pass NULL as ops argument.
4119 (set_breakpoint): Pass NULL as ops argument.
4120 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
4121 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
4122 catch and throw catchpoints.
4123
4124 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
4125
4126 PR gdb/2343
4127 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
4128 translate signal numeric value from the target to GDB's enum
4129 target_signal.
4130 * gdbarch.c, gdbarch.h: Regenerated.
4131 * gdbarch.sh: Added two new functions target_signal_from_host and
4132 target_signal_to_host.
4133 * target.h (default_target_signal_from_host,
4134 default_target_signal_to_host): New functions - declarations.
4135 * signals/signals.c (struct gdbarch): New declaration.
4136 (default_target_signal_to_host, default_target_signal_from_host): New
4137 functions.
4138
4139 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
4140 Pedro Alves <pedro@codesourcery.com>
4141
4142 Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
4143 Johnston <jjohnstn@redhat.com>.
4144
4145 * NEWS: Mention attach to stopped process fix.
4146 * infcmd.c (detach_command, disconnect_command): Discard the thread
4147 list.
4148 * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
4149 attaching. Use signal_stop_state.
4150 (signal_stop_state): Check stop_soon.
4151 * linux-nat.c (kill_lwp): Declare earlier.
4152 (pid_is_stopped, linux_nat_post_attach_wait): New.
4153 (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
4154 comments.
4155 (linux_nat_attach): Use linux_nat_post_attach_wait.
4156 (detach_callback, linux_nat_detach): Improve handling for signalled
4157 processes.
4158 (linux_nat_pid_to_str): Always print out the LWP ID if it differs
4159 from the process ID.
4160 * Makefile.in (infcmd.o): Update.
4161
4162 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
4163
4164 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
4165 * arm-tdep.c (arm_frame_is_thumb): New.
4166 (arm_pc_is_thumb): Clarify comment.
4167 (thumb_analyze_prologue): Remove PC special case.
4168 (thumb_scan_prologue): Take a block_addr argument. Use it for
4169 find_pc_partial_function. Remove unused variables.
4170 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
4171 for find_pc_partial_function. Remove PC special case.
4172 (arm_prologue_prev_register): Add special handling for PC and CPSR.
4173 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
4174 (arm_get_next_pc): Use arm_frame_is_thumb.
4175 (arm_write_pc): Use CPSR_T instead of 0x20.
4176 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
4177 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
4178 (CPSR_T): Define.
4179 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
4180 DWARF2_FRAME_REG_FN.
4181 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
4182 DWARF2_FRAME_REG_FN.
4183 (struct dwarf2_frame_state_reg): Add FN to loc union.
4184
4185 2008-05-01 Nick Roberts <nickrob@snap.net.nz>
4186
4187 * exec.c (print_section_info): Add missing '\n'.
4188
4189 2008-05-01 Vladimir Prus <vladimir@codesourcery.com>
4190
4191 * thread.c (add_thread): Move observer call to ...
4192 (add_thread_silent): ... here.
4193
4194 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
4195
4196 * rs6000-tdep.c: Update for unwinder changes.
4197 * ppcobsd-tdep.c: Likewise.
4198
4199 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
4200
4201 * s390-tdep.c: Update for unwinder changes.
4202
4203 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
4204
4205 * spu-tdep.c: Update for unwinder changes.
4206
4207 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
4208
4209 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
4210 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
4211 sparc64-linux-tdep.c: Update for unwinder changes.
4212
4213 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
4214
4215 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
4216 for unwinder changes.
4217 * mips-tdep.c: Likewise.
4218 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
4219 raw one.
4220
4221 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
4222
4223 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
4224 unwinder changes.
4225
4226 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
4227
4228 Update i386 and amd64 ports for unwinder changes.
4229
4230 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
4231 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
4232 (amd64_frame_unwind): Use default_frame_sniffer.
4233 (amd64_frame_sniffer): Delete.
4234 (amd64_sigtramp_frame_cache): Expect this_frame.
4235 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
4236 (amd64_sigtramp_frame_sniffer): Update signature.
4237 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
4238 (amd64_frame_base_address): Expect this_frame.
4239 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
4240 this_frame.
4241 (amd64_init_abi): Use set_gdbarch_dummy_id and
4242 frame_unwind_append_unwinder.
4243 * i386-tdep.c (i386_frame_cache): Expect this_frame.
4244 (i386_frame_this_id, i386_frame_prev_register): Update signature.
4245 (i386_frame_unwind): Use default_frame_sniffer.
4246 (i386_frame_sniffer): Delete.
4247 (i386_sigtramp_frame_cache): Expect this_frame.
4248 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
4249 (i386_sigtramp_frame_sniffer): Update signature.
4250 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
4251 (i386_frame_base_address): Update signature.
4252 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
4253 (i386_push_dummy_call): Update comment.
4254 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
4255 Expect this_frame.
4256 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
4257 and frame_unwind_append_unwinder.
4258 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
4259 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
4260 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
4261 i386nbsd-tdep.c: Update for unwinder changes.
4262
4263 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
4264
4265 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
4266 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
4267 this_frame.
4268 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
4269 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
4270 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
4271 signature.
4272 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
4273 this_frame.
4274 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
4275 Update signature.
4276 * tramp-frame.h (struct tramp_frame): Update signature of init.
4277 * Makefile.in (trad-frame.o): Update.
4278
4279 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
4280
4281 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
4282 (execute_stack_op): Put this_frame in the baton.
4283 (execute_cfa_program): Take this_frame.
4284 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
4285 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
4286 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
4287 (dwarf2_frame_this_id): Adjust to work on this_frame.
4288 (dwarf2_signal_frame_this_id): Delete.
4289 (dwarf2_frame_prev_register): Update signature. Use new frame
4290 unwind methods.
4291 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
4292 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
4293 dwarf2_frame_sniffer.
4294 (dwarf2_append_unwinders): New.
4295 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
4296 this_frame.
4297 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
4298 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
4299 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
4300 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
4301 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
4302 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
4303 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
4304 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
4305 (dwarf2_append_unwinders): Declare.
4306 (dwarf2_frame_base_sniffer): Update declaration.
4307 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
4308 this_frame.
4309
4310 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
4311
4312 Convert frame unwinders to use the current frame and
4313 "struct value".
4314
4315 * frame.c (frame_debug): Make global.
4316 (get_frame_id): Pass this frame to unwinder routines.
4317 (frame_pc_unwind): Remove unused unwind->prev_pc support.
4318 (do_frame_register_read): Do not discard the return value of
4319 frame_register_read.
4320 (frame_register_unwind): Remove debug messages. Use
4321 frame_unwind_register_value.
4322 (frame_unwind_register_value, get_frame_register_value): New
4323 functions.
4324 (create_new_frame, get_frame_base_address, get_frame_locals_address)
4325 (get_frame_args_address, get_frame_type): Pass this frame to
4326 unwinder routines.
4327 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
4328 functions.
4329 * frame.h: Update comments.
4330 (frame_debug, frame_unwind_register_value, get_frame_register_value)
4331 (frame_prepare_for_sniffer): Declare.
4332 * frame-unwind.h: Update comments and parameter names.
4333 (default_frame_sniffer): Declare.
4334 (frame_prev_register_ftype): Return a struct value *.
4335 (struct frame_unwind): Remove prev_pc member.
4336 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
4337 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
4338 (frame_unwind_got_register, frame_unwind_got_memory)
4339 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
4340 * frame-base.h: Update comments and parameter names.
4341 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
4342 if necessary. Add debugging output.
4343 * sentinel-frame.c (sentinel_frame_prev_register)
4344 (sentinel_frame_this_id): Update for new signature.
4345 (sentinel_frame_prev_pc): Delete.
4346 (sentinel_frame_unwinder): Remove prev_pc.
4347 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
4348 prev_pc.
4349 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
4350 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
4351 (frame_unwind_append_sniffer): Delete.
4352 (frame_unwind_append_unwinder): New function.
4353 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
4354 from unwinders. Use frame_prepare_for_sniffer.
4355 (default_frame_sniffer, frame_unwind_got_optimized)
4356 (frame_unwind_got_register, frame_unwind_got_memory)
4357 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
4358 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
4359 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
4360 signature.
4361 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
4362 * gdbarch.c, gdbarch.c: Regenerated.
4363 * frame-base.c (default_frame_base_address)
4364 (default_frame_locals_address, default_frame_args_address): Update
4365 for new signature.
4366 (frame_base_find_by_frame): Pass this frame to unwinder routines.
4367 * infcall.c (call_function_by_hand): Update comments.
4368 * Makefile.in (frame-unwind.o): Update dependencies.
4369
4370 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
4371
4372 * ada-lang.c (ada_value_primitive_packed_val): Only check
4373 value_lazy for memory lvals.
4374 * findvar.c (value_of_register_lazy): New function.
4375 (locate_var_value): Only check value_lazy for memory lvals.
4376 * valarith.c (value_subscripted_rvalue): Likewise.
4377 * valops.c (value_fetch_lazy): Handle both memory and register
4378 lvals.
4379 (search_struct_field, value_slice): Only check value_lazy for memory
4380 lvals.
4381 * value.c (struct value): Update comment for lazy.
4382 (value_primitive_field): Only check value_lazy for memory lvals.
4383 * value.h (value_lazy): Update comment.
4384 (value_of_register_lazy): Declare.
4385
4386 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
4387
4388 * corefile.c (reopen_exec_file): Close any open files.
4389
4390 2008-04-29 Joel Brobecker <brobecker@adacore.com>
4391
4392 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
4393 show_memory_breakpoints to 1 while reading the instruction bundle.
4394
4395 2008-04-29 Joel Brobecker <brobecker@adacore.com>
4396
4397 * gdbarch.sh: Document the return_value method. Explain that
4398 the FUNCTYPE parameter might be NULL.
4399 * gdbarch.h: Regenerated.
4400 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
4401 type when calling using_struct_return, as this is unnecessary
4402 on this target.
4403
4404 2008-04-28 Joel Brobecker <brobecker@adacore.com>
4405
4406 * terminal.h (create_tty_session): Fix return type.
4407
4408 2008-04-26 Vladimir Prus <vladimir@codesourcery.com>
4409
4410 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
4411
4412 2008-04-26 Joel Brobecker <brobecker@adacore.com>
4413
4414 * breakpoint.c (condition_command, commands_from_control_command)
4415 (break_command_really): Minor reformatting.
4416
4417 2008-04-25 Pedro Alves <pedro@codesourcery.com>
4418
4419 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
4420
4421 2008-04-25 Pedro Alves <pedro@codesourcery.com>
4422
4423 * amd64-tdep.c (amd64_get_longjmp_target): New.
4424 (amd64_init_abi): Register amd64_get_longjmp_target as
4425 gdbarch_get_longjmp_target callback.
4426 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
4427
4428 2008-04-25 Pedro Alves <pedro@codesourcery.com>
4429
4430 * breakpoint.h (enum bpstat_what_main_action): Delete
4431 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
4432
4433 * breakpoint.c (clrs): Delete.
4434 (bpstat_what): Update table.
4435
4436 * infrun.c (handle_inferior_event): Remove
4437 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
4438
4439 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
4440
4441 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
4442 Adjust all prototypes using mi_cmd_args_ftype to use
4443 mi_cmd_argv_ftype.
4444 (struct mi_cmd): Remove the args_func field.
4445 * mi/mi-cmds.c: Don't provide value for the args_func field.
4446 * mi/mi-main.c (mi_execute_async_cli_command)
4447 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
4448 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
4449 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
4450 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
4451 (mi_cmd_target_download): Adjust.
4452 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
4453 (mi_cmd_execute): Do not check for args_func.
4454 (mi_execute_async_cli_command): Adjust.
4455 * mi/mi-parse.c: Don't check for args_func.
4456
4457 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
4458
4459 * breakpoint.c (bpstat_check_location)
4460 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
4461 New, extracted from bpstat_stop_status.
4462 (bpstat_stop_status): Use the above.
4463
4464 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
4465
4466 * mi/mi-main.c (last_async_command): Rename to current_token.
4467 (previous_async_command): Remove.
4468 (mi_cmd_gdb_exit): Adjust.
4469 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
4470 (mi_cmd_target_select): Adjust.
4471 (mi_cmd_execute): Don't set previous_async_command. Free token
4472 here even in async mode.
4473 (mi_execute_async_cli_command): Adjust.
4474 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
4475 token.
4476 (mi_load_progress): Adjust.
4477
4478 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
4479
4480 * infcmd.c (step_1_continuation): Always disable longjmp
4481 breakpoint if we're not going to do another step.
4482
4483 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
4484
4485 exec_cleanup murder.
4486 * breakpoint.c (until_break_command_continuation): Add
4487 the 'error' parameter. Directly delete the breakoint as
4488 opposed to running cleanups.
4489 (until_break_command): Install continuation only
4490 after starting the target. Don't use exec cleanups,
4491 use ordinary cleanups. Discard cleanups is successfully
4492 started the target in async mode.
4493 (make_cleanup_delete_breakpoint): Remove.
4494 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
4495 declaration.
4496 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
4497 declarations.
4498 (struct continations): Add the 'error' parameter to the
4499 continuation_hook field.
4500 (add_continuation, do_all_continuations)
4501 (add_intermediate_continuation)
4502 (do_all_intermediate_continuations): Add the 'error' parameter.
4503 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
4504 * inf-loop.c (inferior_event_handler): Instead of calling
4505 discard_all_continuations, use do_all_continuations with 1 as
4506 'error' parameter. Pass 0 as 'error' parameter in existing uses
4507 of discard_all_continuations.
4508 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
4509 cleanups.
4510 (step_once): Install continuation only after resuming the target.
4511 (step_1_continuation): Disable longjmp breakpoint on error.
4512 (finish_command_continuation): Add the error parameter. Delete
4513 the finish breakpoint directly, do not use cleanups.
4514 (finish_command): Do not use exec_cleanups. Always setup
4515 continuation. For sync case, immediately run them.
4516 (attach_command_continuation): Add the error parameter.
4517 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
4518 remove step_resume_breakpoint -- adjust delete it directly.
4519 * interps.c (interp_set): Adjust call to do_all_continations.
4520 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
4521 do exec cleanups.
4522 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
4523 cleanups.
4524 (mi_cmd_execute): Do not use exec_cleanup.
4525 (mi_execute_async_cli_command): Simplify the string concatenation
4526 logic. Do no use exec cleanup.
4527 (mi_exec_async_cli_cmd_continuation): New parameter error.
4528 Free last_async_command.
4529 * top.c (command_line_handler_continuation): New parameter error.
4530 * utils.c (exec_cleanup_chain, make_exec_cleanup)
4531 (do_exec_cleanups): Remove.
4532 (add_continuation, do_all_continations)
4533 (add_intermediate_continuation)
4534 (do_all_intermediate_continuations): New parameter error.
4535
4536 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
4537
4538 * breakpoint.h (bp_location_p): New typedef.
4539 Register a vector of bp_location_p.
4540 * breakpoint.c (always_inserted_mode)
4541 (show_always_inserted_mode): New.
4542 (unlink_locations_from_global_list): Remove.
4543 (update_global_location_list)
4544 (update_global_location_list_nothrow): New.
4545 (update_watchpoint): Don't free locations.
4546 (should_insert_location): New.
4547 (insert_bp_location): Use should_insert_location.
4548 (insert_breakpoint_locations): Copied from
4549 insert_breakpoints.
4550 (insert_breakpoint): Use insert_breakpoint_locations.
4551 (bpstat_stop_status): Call update_global_location_list
4552 when disabling breakpoint.
4553 (allocate_bp_location): Don't add to bp_location_chain.
4554 (set_raw_breakpoint)
4555 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
4556 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
4557 (enable_overlay_breakpoints, disable_overlay_breakpoints)
4558 (set_longjmp_resume_breakpoint)
4559 (enable_watchpoints_after_interactive_call_stop)
4560 (disable_watchpoints_before_interactive_call_start)
4561 (create_internal_breakpoint)
4562 (create_fork_vfork_event_catchpoint)
4563 (create_exec_event_catchpoint, set_momentary_breakpoint)
4564 (create_breakpoints, break_command_1, watch_command_1)
4565 (create_exception_catchpoint)
4566 (handle_gnu_v3_exceptions)
4567 (disable_breakpoint, breakpoint_re_set_one)
4568 (create_thread_event_breakpoint, create_solib_event_breakpoint)
4569 (create_ada_exception_breakpoint): : Don't call check_duplicates.
4570 Call update_global_location_list.
4571 (delete_breakpoint): Don't remove locations and don't
4572 try to reinsert them. Call update_global_location_list.
4573 (update_breakpoint_locations): Likewise.
4574 (restore_always_inserted_mode): New.
4575 (update_breakpoints_after_exec): Temporary disable
4576 always inserted mode.
4577 * Makefile.in: Update dependencies.
4578
4579 * infrun.c (proceed): Remove breakpoints while stepping
4580 over breakpoint.
4581 (handle_inferior_event): Don't remove or insert
4582 breakpoints.
4583 * linux-fork.c (checkpoint_command): Remove breakpoints
4584 before fork and insert after.
4585 (linux_fork_context): Remove breakpoints before switch
4586 and insert after.
4587 * target.c (target_disconnect, target_detach): Remove
4588 breakpoints from target.
4589
4590
4591 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
4592
4593 * breakpoint.c (print_one_breakpoint_location): In MI
4594 mode, report the location string the breakpoint was
4595 originally created with.
4596
4597 2008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
4598
4599 * Makefile.in (xtensa-tdep.o): Update dependencies.
4600 * configure.tgt (xtensa*): Update dependencies.
4601 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
4602 Local variable areg renamed to arreg.
4603 (areg_number): New function.
4604 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
4605 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
4606 replaced by arreg_number.
4607 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
4608 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
4609 (xtensa_scan_prologue): New function.
4610 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
4611 when ENTRY instraction hasn't been executed yet. Get the frame pointer
4612 value based on prologue analysis. Fix the bugs preventing WS and
4613 AR4-AR7/A11 registers from getting right values for intermediate frames,
4614 whose registers have been already spilled.
4615 (xtensa_frame_prev_register): Fix WS register value. Use are_number
4616 and arreg_number appropriately.
4617 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
4618 svr4_ilp32_fetch_link_map_offsets.
4619
4620 2008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
4621
4622 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
4623 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
4624
4625 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
4626
4627 * acinclude.m4: Add override.m4.
4628 * configure: Regenerate.
4629
4630 2008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4631
4632 * ada-lang.c (get_selections): Variable PROMPT made non-const and
4633 initialized with a trailing space now. Use PROMPT_ARG of
4634 COMMAND_LINE_INPUT instead of printing it ourselves.
4635
4636 2008-04-22 Joel Brobecker <brobecker@adacore.com>
4637
4638 * NEWS: Document support for 64-bit core file.
4639
4640 2008-04-22 Corinna Vinschen <vinschen@redhat.com>
4641
4642 * NEWS: Add information on calling convention and new SH CLI options.
4643
4644 * sh-tdep.c (sh_cc_gcc): New static string.
4645 (sh_cc_renesas): Ditto.
4646 (sh_cc_enum): New static string array.
4647 (sh_active_calling_convention): New static string pointer denoting
4648 active user chosen ABI.
4649 (sh_is_renesas_calling_convention): New function to return function
4650 specific ABI, or user choice if necessary.
4651 (sh_use_struct_convention): Rename first argument and turn around its
4652 meaning. Check for renesas ABI and return accordingly.
4653 (sh_use_struct_convention_nofpu): New function.
4654 (sh_next_flt_argreg): Get function type as third parameter. Check
4655 for renesas ABI and choose floating registers accordingly.
4656 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
4657 struct return slot accordingly.
4658 (sh_push_dummy_call_nofpu): Ditto.
4659 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
4660 Evaluate ABI and give to sh_use_struct_convention_nofpu.
4661 (sh_return_value_fpu): Evaluate ABI and give to
4662 sh_use_struct_convention.
4663 (show_sh_command): New function.
4664 (set_sh_command): Ditto.
4665 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
4666 CLI command.
4667
4668 * gdbarch.sh (return_value): Add func_type argument.
4669 * gdbarch.c: Regenerate.
4670 * gdbarch.h: Ditto.
4671 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
4672 val_type so as not to collide with value_type function. Call
4673 using_struct_return with additional function type argument.
4674 * infcall.c (call_function_by_hand): Call using_struct_return and
4675 gdbarch_return_value with additional function type argument.
4676 * infcmd.c (print_return_value): Take addition func_type argument.
4677 Call gdbarch_return_value with additional function type argument.
4678 (finish_command_continuation): Call print_return_value with additional
4679 function type argument.
4680 (finish_command): Ditto.
4681 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
4682 additional function type argument.
4683 * stack.c (return_command): Call using_struct_return and
4684 gdbarch_return_value with additional function type argument.
4685 * value.c (using_struct_return): Take additional function type argument.
4686 * value.h (using_struct_return): Accommodate declaration.
4687 * alpha-tdep.c (alpha_return_value): Add func_type argument.
4688 * amd64-tdep.c (amd64_return_value): Ditto.
4689 * arm-tdep.c (arm_return_value): Ditto.
4690 * avr-tdep.c (avr_return_value): Ditto.
4691 * cris-tdep.c (cris_return_value): Ditto.
4692 * frv-tdep.c (frv_return_value): Ditto.
4693 * h8300-tdep.c (h8300_return_value): Ditto.
4694 (h8300h_return_value): Ditto.
4695 * hppa-tdep.c (hppa32_return_value): Ditto.
4696 (hppa64_return_value): Ditto.
4697 * i386-tdep.c (i386_return_value): Ditto.
4698 * ia64-tdep.c (ia64_return_value): Ditto.
4699 * iq2000-tdep.c (iq2000_return_value): Ditto.
4700 * m32c-tdep.c (m32c_return_value): Ditto.
4701 * m32r-tdep.c (m32r_return_value): Ditto.
4702 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
4703 * m68k-tdep.c (m68k_return_value): Ditto.
4704 (m68k_svr4_return_value): Ditto.
4705 * m88k-tdep.c (m88k_return_value): Ditto.
4706 * mep-tdep.c (mep_return_value): Ditto.
4707 * mips-tdep.c (mips_eabi_return_value): Ditto.
4708 (mips_n32n64_return_value): Ditto.
4709 (mips_o32_return_value): Ditto.
4710 (mips_o64_return_value): Ditto.
4711 * mn10300-tdep.c (mn10300_return_value): Ditto.
4712 * mt-tdep.c (mt_return_value): Ditto.
4713 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
4714 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
4715 (ppc_sysv_abi_broken_return_value): Ditto.
4716 (ppc64_sysv_abi_return_value): Ditto.
4717 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
4718 (ppc_sysv_abi_broken_return_value): Ditto.
4719 (ppc64_sysv_abi_return_value): Ditto.
4720 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
4721 * rs6000-tdep.c (rs6000_return_value): Ditto.
4722 * s390-tdep.c (s390_return_value): Ditto.
4723 * score-tdep.c (score_return_value): Ditto.
4724 * sh-tdep.c (sh_return_value_nofpu): Ditto.
4725 (sh_return_value_fpu): Ditto.
4726 * sh64-tdep.c (sh64_return_value): Ditto.
4727 * sparc-tdep.c (sparc32_return_value): Ditto.
4728 * sparc64-tdep.c (sparc64_return_value): Ditto.
4729 * spu-tdep.c (spu_return_value): Ditto.
4730 * v850-tdep.c (v850_return_value): Ditto.
4731 * vax-tdep.c (vax_return_value): Ditto.
4732 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
4733 * xtensa-tdep.c (xtensa_return_value): Ditto.
4734
4735 * gdbtypes.h (struct type): Add calling_convention member.
4736 * dwarf2read.c (read_subroutine_type): Add calling convention read
4737 from DW_AT_calling_convention attribute to function type.
4738
4739 2008-04-22 Markus Deuling <deuling@de.ibm.com>
4740
4741 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
4742 multi_f77_subscript to support values from registers.
4743 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
4744 * value.h (value_subscripted_rvalue): Add prototype.
4745
4746 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
4747 Fix output.
4748 * f-valprint.c (f_val_print): Likewise.
4749
4750 2008-04-21 Craig Silverstein <csilvers@google.com>
4751
4752 * dwarf2read.c (zlib_decompress_section): Define abfd in the
4753 !HAVE_ZLIB_H case.
4754
4755 2008-04-21 Pedro Alves <pedro@codesourcery.com>
4756
4757 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
4758 section is not a code section.
4759
4760 2008-04-19 Craig Silverstein <csilvers@google.com>
4761
4762 * NEWS: Add information on compressed debug sections.
4763
4764 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
4765
4766 * mi/mi-cmd-var.c (varobj_update_one): Print new
4767 value for variable objects that changed type.
4768
4769 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
4770
4771 * varobj.c (varobj_invalidate): Don't touch floating
4772 varobjs.
4773
4774 2008-04-19 Mark Kettenis <kettenis@gnu.org>
4775
4776 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
4777 (multiple_symbols_cancel): Remove extra const.
4778 * symtab.h: Likewise.
4779
4780 2008-04-19 Nick Roberts <nickrob@snap.net.nz>
4781
4782 * interps.c (top_level_interpreter): Rename static variable...
4783 (top_level_interpreter_ptr): ...to this.
4784 (top_level_interpreter): New function.
4785
4786 * interps.h: New extern for top_level_interpreter.
4787
4788 * linespec.c: Include interps.h and mi/mi-cmds.h.
4789 (decode_line_2): When using MI, always set all breakpoints in menu.
4790
4791 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
4792
4793 2008-04-18 Craig Silverstein <csilvers@google.com>
4794
4795 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
4796 * config.in, configure: Regenerate.
4797 * dwarf2read.c: Include zlib.h if present.
4798 Modified *_SECTION macros.
4799 (section_is_p): New.
4800 (dwarf2_locate_sections): Use section_is_p instead of strcmp
4801 (dwarf2_resize_section): New.
4802 to determine whether a given section has a given name.
4803 (zlib_decompress_section): New.
4804 (dwarf2_read_section): Read the compressed section if present
4805 in the binary.
4806 * MAINTAINERS: Added myself to section Write After Approval.
4807
4808 2008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
4809
4810 * defs.h (exec_set_section_offsets): Remove prototype.
4811 * exec.c (exec_set_section_offsets): Remove function.
4812
4813 2008-04-18 Joel Brobecker <brobecker@adacore.com>
4814
4815 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
4816 in the search for the matching symbol.
4817
4818 2008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
4819
4820 * breakpoint.c (update_watchpoint): Always reparse
4821 condition.
4822
4823 2008-04-17 Joel Brobecker <brobecker@adacore.com>
4824
4825 * breakpoint.c (print_one_breakpoint_location): Make sure to print
4826 the breakpoint address only once.
4827
4828 2008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
4829
4830 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
4831 rather than a hard-coded architecture, for xcoff executables.
4832
4833 2008-04-17 Doug Evans <dje@google.com>
4834
4835 * buildsym.c (watch_main_source_file_lossage): New fn.
4836 (end_symtab): Call it.
4837
4838 * source.c (find_and_open_source): Add some comments clarifying
4839 handling of FULLNAME argument. Make static. Remove pointless
4840 xstrdup/xfree.
4841
4842 2008-04-17 Pedro Alves <pedro@codesourcery.com>
4843
4844 * inf-loop.c (inferior_event_handler): Also run the intermediate
4845 continuations in the INF_EXEC_COMPLETE case.
4846
4847 2008-04-16 Tom Tromey <tromey@redhat.com>
4848
4849 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
4850 (set_cmd_async_ok, get_cmd_async_ok): Declare.
4851 * cli/cli-decode.c (set_cmd_async_ok): New function.
4852 (get_cmd_async_ok): New function.
4853 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
4854 "show" as async-ok.
4855 * top.c (execute_command): Use get_cmd_async_ok.
4856 * infcmd.c: Include cli/cli-decode.h.
4857 (_initialize_infcmd): Mark "interrupt" as async-ok.
4858 * Makefile.in (infcmd.o): Depend on cli_decode_h.
4859
4860 2008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
4861
4862 PR gdb/2445
4863 * exec.c: Correct "arch-utils.h" include.
4864
4865 2008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
4866
4867 PR gdb/2424
4868 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
4869 to allow printing to 'see' real reason of stop. This fixes PR 2424.
4870 * breakpoint.c (bpdisp_texst): New function. The function takes over
4871 the role of bpstats static array in print_one_breakpoint_location.
4872 (print_it_typical): Print "Temporary breakpoint" instead
4873 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
4874 protocols, print disp field.
4875 (print_one_breakpoint_location): Removed bpdisps static definition.
4876 Call new bpstat_text function to get value for 'disp' field.
4877 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
4878
4879 2008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
4880
4881 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
4882 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
4883 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
4884 * gnulib/Makefile.in: Regenerate.
4885
4886 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4887
4888 * Makefile.in (GNULIB_H): New. Trigger all-lib.
4889 (defs_h): Use $(GNULIB_H).
4890 (all-lib): Depend on gnulib/Makefile.
4891 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
4892 * config.in, gnulib/Makefile.in: Regenerated.
4893
4894 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4895
4896 * Makefile.in (LIBGNU, INCGNU): Define.
4897 (INTERNAL_CFLAGS_BASE): Add INCGNU.
4898 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
4899 (CLEANDIRS): New.
4900 ($(LIBGNU), all-lib): New rules.
4901 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
4902 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
4903 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
4904 * gnulib: New directory, from gnulib-tool.
4905 * configure, aclocal.m4: Regenerated.
4906
4907 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4908
4909 * linux-thread-db.c (have_threads_callback): Check thread->private.
4910
4911 2008-04-13 Nick Roberts <nickrob@snap.net.nz>
4912 Vladimir Prus <vladimir@codesourcery.com>
4913
4914 Fix @-varobjs.
4915 * varobj.c (value_of_root): Update the expression for
4916 floating varobjs.
4917 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
4918 report that.
4919
4920 2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
4921
4922 * mi/mi-cmd-var.c: Include "mi-getopt.h".
4923 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
4924 (mi_cmd_var_set_format): Use new mi_parse_format.
4925 (mi_cmd_var_evaluate_expression): Support for -f option to specify
4926 format.
4927 * Makefile.in (mi-cmd-var.o): Update dependencies.
4928
4929 * varobj.h (varobj_get_formatted_value): Declare.
4930 * varobj.c (my_value_of_variable): Added format parameter.
4931 (cplus_value_of_variable): Likewise.
4932 (java_value_of_variable): Likewise.
4933 (c_value_of_variable): Likewise. Evaluate expression based
4934 on format parameter.
4935 (struct language_specific): Add format parameter to function member
4936 *value_of_variable.
4937 (varobj_get_formatted_value): New.
4938 (varobj_get_value): Added format parameter to method call.
4939
4940 2008-04-08 Joel Brobecker <brobecker@adacore.com>
4941
4942 * stabsread.c (cleanup_undefined_types_noname): Manually set the
4943 instance flags of the undefined type before calling replace_type.
4944
4945 2008-04-08 Vladimir Prus <vladimir@codesourcery.com>
4946
4947 * target.h (enum strata): Remove the download_stratum.
4948
4949 2008-04-07 Doug Evans <dje@google.com>
4950
4951 * buildsym.h (last_source_file): Add dwarf info to comment.
4952 (last_source_start_addr): Ditto.
4953
4954 2008-04-07 Pedro Alves <pedro@codesourcery.com>
4955
4956 * alphanbsd-tdep.c: Include "target.h".
4957 * mn10300-tdep.c: Include "target.h".
4958 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
4959
4960 2008-04-06 Vladimir Prus <vladimir@codesourcery.com>
4961
4962 Fix breakpoint condition that use member variables.
4963 * valops.c (check_field): Remove.
4964 (check_field_in): Rename to check_field.
4965 (value_of_this): Use la_name_of_this.
4966 * value.h (check_field): Adjust prototype.
4967
4968 * language.h (la_value_of_this): Rename to la_name_of_this.
4969 * language.c (unknown_language_defn): Specify "this" for
4970 name_of_this.
4971 (auto_language_defn): Likewise.
4972 (local_language_defn): Likewise.
4973 * ada-lang.c (ada_language_defn): Adjust comment.
4974 * c-lang.c (c_language_defn): Adjust comment.
4975 (cplus_language_defn): Specify "this" for name_of_this.
4976 (asm_language_defn): Adjust comment.
4977 (minimal_language_defn): Adjust comment.
4978 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
4979 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
4980 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
4981 * objc-lang.c (objc_language_defn): Specify "self" for
4982 name_of_this.
4983 * p-lang.c (pascal_language_defn): Specify "this" for
4984 name_of_this.
4985 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
4986
4987 * symtab.c (lookup_symbol_aux): Lookup "this" in the
4988 proper scope, and check for field in type of "this", without
4989 trying to create a value.
4990
4991 2008-04-04 Pedro Alves <pedro@codesourcery.com>
4992
4993 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
4994 (mi_error_message): Delete declaration.
4995 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
4996 returning MI_CMD_ERROR.
4997 * mi/mi-main.c (mi_error_message): Delete.
4998 (mi_cmd_exec_interrupt):
4999 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
5000 (mi_cmd_thread_info): Call error instead of returning
5001 MI_CMD_ERROR.
5002 (mi_cmd_data_list_register_values): Call error instead of
5003 returning MI_CMD_ERROR. Adapt to new get_register interface.
5004 (get_register): Change return typo to void. Call error instead of
5005 returning MI_CMD_ERROR.
5006 (mi_cmd_data_write_register_values): Call error instead of
5007 returning MI_CMD_ERROR.
5008 (mi_cmd_list_features): Return MI_CMD_DONE.
5009 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
5010 (mi_execute_command): Always print exceptions with -error.
5011
5012 2008-04-04 Joel Brobecker <brobecker@adacore.com>
5013
5014 * NEWS: Mention new commands set/show multiple-symbols.
5015
5016 2008-04-03 Joel Brobecker <brobecker@adacore.com>
5017
5018 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
5019 (multiple_symbols_cancel): New constants.
5020 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
5021 (multiple_symbols_select_mode): New function.
5022 (_initialize_symtab): Add new set/show multiple-symbols commands.
5023 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
5024 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
5025 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
5026 setting.
5027 * linespec.c (decode_line_2): Likewise.
5028
5029 2008-04-03 Doug Evans <dje@sebabeach.org>
5030
5031 * symtab.h (enum free_code): Delete free_contents, unused.
5032 * symmisc.c (free_symtab_block): Delete.
5033 (free_symtab, case free_code): Delete.
5034
5035 2008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
5036
5037 * valops.c (value_cast_structs): New function. Cast related
5038 STRUCT types up/down and return cast value. The body of this
5039 function comes mostly from value_cast_pointers.
5040 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
5041 to value_cast_structs. Now value_cast_pointers needs only create
5042 appropriate reference after using value_cast_structs for actual
5043 casting.
5044 (value_cast): Handle references.
5045
5046 2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
5047
5048 * MAINTAINERS: Added myself to section Write After Approval.
5049
5050 2008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5051
5052 * ia64-tdep.c (examine_prologue): Correct array access.
5053
5054 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
5055
5056 * cp-support.c (first_component_command): Return if no arguments.
5057
5058 2008-03-28 Carlos O'Donell <carlos@codesourcery.com>
5059
5060 * ser-mingw.c (ser_windows_open): Open requested name.
5061
5062 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
5063
5064 * MAINTAINERS: Added myself.
5065
5066 2008-03-28 Pedro Alves <pedro@codesourcery.com>
5067
5068 * target.c (find_default_run_target): Allow a NULL `do_mesg'
5069 parameter. If it is NULL, don't call error.
5070 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
5071 `do_mesg' parameter to find_default_run_target. If no target was
5072 found, return 0.
5073
5074 2008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
5075
5076 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
5077 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
5078 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
5079 Delete.
5080 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
5081
5082 2008-03-27 Joel Brobecker <brobecker@adacore.com>
5083
5084 GDB 6.8 released.
5085
5086 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
5087
5088 * features/Makefile (%.dat): Set xmltarget to the base filename
5089 of the XML source, without subdirectory.
5090 * regformats/rs6000/powerpc-32.dat: Regenerate.
5091 * regformats/rs6000/powerpc-64.dat: Regenerate.
5092 * regformats/rs6000/powerpc-e500.dat: Regenerate.
5093
5094 2008-03-27 Markus Deuling <deuling@de.ibm.com>
5095
5096 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
5097 objfile arch.
5098
5099 2008-03-27 Nick Roberts <nickrob@snap.net.nz>
5100
5101 * mi/mi-main.c (enum captured_mi_execute_command_actions):
5102 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
5103
5104 2008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
5105
5106 * objfiles.h (struct objfile): New GDBARCH member.
5107 (get_objfile_arch): Add prototype.
5108 * objfiles.c: Include "arch-utils.h".
5109 (allocate_objfile): Look up gdbarch associated with bfd.
5110 (get_objfile_arch): New function.
5111 * Makefile (objfiles.o): Update dependencies.
5112
5113 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
5114 by objfile arch.
5115 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
5116 by frame arch.
5117 (locexpr_describe_location): Replace current_gdbarch by
5118 objfile arch.
5119 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
5120 (dwarf2_add_field): Likewise.
5121 (read_tag_pointer_type): Likewise.
5122 (read_base_type): Likewise.
5123 (new_symbol): Likewise.
5124
5125 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
5126 (decode_base_type, decode_function_type): Likewise.
5127 (coff_read_struct_type, coff_read_enum_type): Likewise.
5128 (coff_symtab_read): Replace current_gdbarch by objfile arch.
5129 (decode_base_type): Likewise.
5130 (coff_read_enum_type): Likewise.
5131 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
5132 (coff_read_enum_type): Likewise.
5133
5134 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
5135 (end_psymtab): Likewise.
5136 (process_one_symbol): Likewise.
5137
5138 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
5139 (parse_procedure): Likewise.
5140 (parse_partial_symbols): Likewise.
5141
5142 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
5143
5144 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
5145 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
5146 built-in types.
5147 (read_range_type): Replace current_gdbarch by objfile arch. Replace
5148 static range_index_type by built-in type.
5149 (read_one_struct_field): Replace current_gdbarch by objfile arch.
5150 (read_enum_type): Likewise.
5151
5152 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
5153 objfile arch.
5154
5155 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
5156
5157 * varobj.h (varobj_floating_p): Declare.
5158 * varobj.c (varobj_floating_p): New.
5159 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
5160 '@' as the name, update all floating varobjs.
5161
5162 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
5163
5164 * varobj.c (struct varobj_root): Rename use_selected_frame to
5165 floating, and clarify the meaning.
5166 (varobj_create, varobj_update, new_root_variable): Adjust.
5167 (value_of_root): Don't use type_changed as in variable,
5168 adjust comment.
5169 (c_value_of_root): Adjust.
5170
5171 2008-03-25 Pedro Alves <pedro@codesourcery.com>
5172
5173 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
5174 gdb's thread list.
5175 (linux_nat_wait): Add main lwp to gdb's thread list.
5176 * linux-thread-db.c (find_new_threads_callback): Also attach to
5177 already listed threads which thread_db didn't know about yet.
5178
5179 2008-03-25 Pedro Alves <pedro@codesourcery.com>
5180
5181 * linux-nat.c (drain_queued_events): Fix comment typo.
5182 (linux_nat_attach): In async mode, don't rely on storing a pending
5183 status. Instead place the wait status on the pipe.
5184 (linux_nat_resume): Remove unreacheable shortcut code in async
5185 mode.
5186 (stop_wait_callback): In async mode, don't store pending status.
5187 Instead, cancel breakpoints or resend the signal appropriatelly.
5188 (cancel_breakpoint): New, refactored from
5189 cancel_breakpoints_callback.
5190 (cancel_breakpoints_callback): Call cancel_breakpoint.
5191 (pipe_to_local_event_queue): Remove special token processing.
5192 (linux_nat_wait): Issue an internal error if a pending status is
5193 found in async mode.
5194
5195 2008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
5196
5197 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
5198
5199 2008-03-24 Nick Roberts <nickrob@snap.net.nz>
5200 Vladimir Prus <vladimir@codesourcery.com>
5201
5202 * varobj.c (struct varobj_root): New component thread_id.
5203 (varobj_get_thread_id, check_scope): New functions.
5204 (c_value_of_root): Use check_scope. Switch to the
5205 proper thread if necessary.
5206
5207 * varobj.h (varobj_get_thread_id): New extern.
5208
5209 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
5210
5211 2008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
5212
5213 PR gdb/544
5214 * top.c: Revert 2008-03-21 changes.
5215
5216 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
5217
5218 * thread.c (make_cleanup_restore_current_thread): Make it
5219 globally visible.
5220 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
5221 * varobj.c (varobj_update): Don't save/restore frame.
5222 (c_value_of_root): Save/restore thread and frame here,
5223 using make_cleanup_restore_current_thread.
5224 * Makefile.in: Update dependecies.
5225
5226 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
5227
5228 * varobj.c (struct varobj_root): Clarify
5229 comment on the frame field.
5230 (varobj_create): Don't set frame if we have no
5231 block.
5232
5233 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
5234
5235 PR gdb/544
5236 Suggested by Jan Kratochvil:
5237 * top.c (gdb_rl_operate_and_get_next_completion): Call
5238 rl_redisplay_function.
5239 (gdb_rl_redisplay): New.
5240 (init_main): Set rl_redisplay_function.
5241
5242 2008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
5243
5244 * aix-thread.c (pdc_read_regs): Fix compiler warning.
5245 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
5246 (store_regs_kernel_thread): Likewise.
5247
5248 2008-03-21 Pedro Alves <pedro@codesourcery.com>
5249
5250 Linux native async support.
5251
5252 * target.h (struct target_ops): Delete to_async_mask_value and add
5253 to_async_mask.
5254 (target_is_async_p, target_async): Formatting.
5255 (target_async_mask_value): Delete.
5256 (target_async_mask): Delete function declaration, and add new
5257 target macro with the same name.
5258
5259 * target.c (update_current_target): Replace to_async_mask_value by
5260 to_async_mask. Default to_async_mask to return_one.
5261 (target_async_mask): Delete.
5262 (find_default_can_async_p, find_default_is_async_p): New.
5263 (init_dummy_target): register find_default_can_async_p and
5264 find_default_is_async_p on the dummy target.
5265
5266 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
5267 (debug_linux_nat_async): New global.
5268 (show_debug_linux_nat_async): New function.
5269 (linux_nat_async_enabled, linux_nat_async_mask_value)
5270 (linux_nat_event_pipe, linux_nat_num_queued_events)
5271 (linux_nat_async_events_enabled): New globals.
5272 (struct waitpid_result): New struct.
5273 (waitpid_queue): New global.
5274 (queued_waitpid, push_waitpid, drain_queued_events): New.
5275 (my_waitpid): Call queued_waitpid.
5276 (linux_child_follow_fork): Disable async events during the call.
5277 (blocked_mask): Delete.
5278 (sync_sigchld_action, async_sigchld_action): New globals.
5279 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
5280 async mode, block events during the call.
5281 (linux_nat_create_inferior): New.
5282 (linux_nat_attach): In sync mode, restore the mask states. In
5283 async mode, wake the event loop immediatelly.
5284 (detach_callback): Drain all queued events of the lwp we're
5285 detaching from.
5286 (linux_nat_detach): Block async mode, and drain events of the main
5287 process.
5288 (linux_nat_resume): If in async mode, mask async events during the
5289 call. If short circuiting, force event loop to wake up. If
5290 resuming, set target_executing, and register target events in the
5291 event loop.
5292 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
5293 (linux_nat_wait): In async mode, block events during the call.
5294 Only enable/disable passing SIGINT to the inferior in sync mode.
5295 Get events from local waitpid queue. If no interesting events was
5296 found, return to events loop. Reregister target events in the
5297 event loop on exit. In sync mode, no need to reblock SIGCHLD.
5298 (linux_nat_kill): Disable events on entry.
5299 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
5300 here. Detach async mode from the event loop if there are no more
5301 forks available, otherwise leave it on.
5302 (sigchld_handler): Assure this is called only in sync mode.
5303 (linux_async_permitted, linux_async_permitted_1): New globals.
5304 (set_maintenance_linux_async_permitted)
5305 (show_maintenance_linux_async_permitted): New functions.
5306 (linux_nat_is_async_p, linux_nat_can_async_p)
5307 (linux_nat_async_mask): New.
5308 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
5309 (get_pending_events, async_sigchld_handler): New.
5310 (linux_nat_async_events): New.
5311 (async_terminal_is_ours): New global.
5312 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
5313 (async_client_callback, async_client_context): New.
5314 (linux_nat_async_file_handler, linux_nat_async)
5315 (linux_nat_disable_async, linux_nat_enable_async): New.
5316 (linux_nat_add_target): Register linux_nat_create_inferior,
5317 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
5318 linux_nat_async_mask, linux_nat_terminal_inferior and
5319 linux_nat_terminal_ours.
5320 (_initialize_linux_nat): Remove local action variable, and update
5321 code that used it to use sync_sigchld_action. Add new
5322 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
5323 set/show command in the maintenance class. Add new "linux-async"
5324 maintenance set/show command. Block SIGCHLD by default. Setup
5325 async_sichld_action, and sync_sigchld_action. Install the default
5326 async mode.
5327 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
5328 the cancel signals.
5329
5330 * linux-thread-db.c (re_check_for_thread_db): New.
5331 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
5332 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
5333 (thread_db_async_mask): New.
5334 (init_thread_db_ops): Register thread_db_can_async_p,
5335 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
5336
5337 * remote.c (remote_async_mask_value): New.
5338 (remote_return_zero): New.
5339 (init_remote_ops): Register remote_return_zero as callbacks of
5340 to_can_async_p and to_is_async_p.
5341 (remote_can_async_p, remote_is_async_p, remote_async): Update to
5342 use remote_async_mask_value.
5343 (remote_async_mask): New.
5344 (init_remote_async_ops): Remove to_async_mask_value setting and
5345 register remote_async_mask as to_async_mask callback in
5346 remote_async_ops.
5347
5348 * Makefile.in (linux-nat.o): Update.
5349
5350 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
5351
5352 * gdbthread.h (add_thread_with_info): New.
5353 * linux-thread-db.c: Add some documentation.
5354 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
5355 (struct private_thread_info): Remove th_valid and ti_valid.
5356 Replace ti with tid.
5357 (thread_get_info_callback): Do not add TID to the new ptid. Do
5358 not cache th or ti.
5359 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
5360 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
5361 new PTID.
5362 (attach_thread): Handle an already-existing thread. Use
5363 add_thread_with_info. Cache the th and tid.
5364 (detach_thread): Verify that private was set. Remove verbose
5365 argument and printing. Update caller.
5366 (thread_db_detach): Do not adjust inferior_ptid.
5367 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
5368 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
5369 (thread_db_wait): Do not use lwp_from_thread.
5370 (thread_db_pid_to_str): Use the cached TID.
5371 (thread_db_extra_thread_info): Check that private is set.
5372 (same_ptid_callback): Delete.
5373 (thread_db_get_thread_local_address): Do not use it or check
5374 is_thread. Check that private is set. Assume that the thread
5375 handle is already cached.
5376 (init_thread_db_ops): Remove to_resume and to_kill.
5377 * thread.c (add_thread_with_info): New.
5378 (add_thread): Use it.
5379 * linux-nat.c (find_thread_from_lwp): Delete.
5380 (exit_lwp): Do not use it. Check print_thread_events. Print before
5381 deleting the thread.
5382 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
5383 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
5384 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
5385 printf_unfiltered for thread exits.
5386 * procfs.c (procfs_wait): Likewise.
5387
5388 2008-03-21 Chris Demetriou <cgd@google.com>
5389
5390 * symtab.c (rbreak_command): Quote symbol name before passing
5391 it to break_command.
5392
5393 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
5394
5395 * eval.c (evaluate_subexp_for_address): Clarify error message.
5396 Use value_must_coerce_to_target.
5397 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
5398 * valops.c (value_assign): Call value_coerce_to_target when
5399 assigning to anything but internalvars. Leave GDB-side arrays
5400 as arrays when assigning to internalvars.
5401 (value_must_coerce_to_target, value_coerce_to_target): New.
5402 (value_coerce_array, value_addr): Call value_coerce_to_target.
5403 (value_array): Create the array in GDB's memory instead of
5404 the inferior's.
5405 * value.h (value_must_coerce_to_target, value_coerce_to_target):
5406 Declare.
5407
5408 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
5409
5410 * top.c (quit_confirm): Warn that we will kill the program.
5411
5412 2008-03-19 Pedro Alves <pedro@codesourcery.com>
5413
5414 * inflow.c (terminal_ours_1): Guard access to
5415 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
5416
5417 2008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
5418 Jim Blandy <jimb@codesourcery.com>
5419 Daniel Jacobowitz <drow@false.org>
5420
5421 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
5422 (dwarf2_read_address): Update prototype.
5423
5424 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
5425 (signed_address_type): Likewise.
5426 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
5427 (execute_stack_op): Update calls to unsigned_address_type,
5428 signed_address_type and dwarf2_read_address. Fix implementation
5429 of DW_OP_deref_size.
5430
5431 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
5432 (dwarf2_per_cu_addr_size): Likewise.
5433 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
5434 (struct dwarf2_loclist_baton): Likewise.
5435
5436 * dwarf2loc.c (find_location_expression): Update calls to
5437 dwarf2_read_address. Use dwarf2_per_cu_objfile and
5438 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
5439 (locexpr_describe_location): Likewise.
5440 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
5441 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
5442 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
5443 to dwarf2_per_cu_addr_size (per_cu).
5444 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
5445 (loclist_read_variable): Likewise.
5446 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
5447
5448 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
5449 instead of baton->objfile.
5450 (dwarf2_per_cu_obfile): New function.
5451 (dwarf2_per_cu_addr_size): Likewise.
5452
5453 * dwarf2-frame.c (struct comp_unit): Move higher.
5454 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
5455 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
5456 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
5457 parameter by using fde->eh_frame_p. Use read_encoded_value
5458 to implement DW_CFA_set_loc.
5459 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
5460 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
5461 execute_stack_op and execute_cfa_program.
5462 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
5463 (size_of_encoded_value): Remove.
5464 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
5465 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
5466 (add_cie): Set cie->unit backlink.
5467 (decode_frame_entry_1): Set cie->addr_size. Update calls to
5468 read_encoded_value.
5469 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
5470
5471 2008-03-17 Markus Deuling <deuling@de.ibm.com>
5472
5473 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
5474 gdbarch_bfd_arch_info.
5475
5476 2008-03-17 Joel Brobecker <brobecker@adacore.com>
5477
5478 * aix-thread.c (pdc_read_regs): Minor reformatting.
5479
5480 2008-03-17 Vladimir Prus <vladimir@codesourcery.com>
5481
5482 * thread.c (print_thread_info): Don't insist
5483 on having current thread if there are no
5484 threads at all.
5485
5486 2008-03-17 Pedro Alves <pedro@codesourcery.com>
5487
5488 * infcmd.c (attach_command_post_wait)
5489 (attach_command_continuation): New.
5490 (attach_command): Support background async execution, and async
5491 execution in synchronous mode.
5492
5493 2008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
5494
5495 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
5496 * symmisc.c (dump_symtab_1): Likewise.
5497 * wrapper.c (gdb_value_struct_elt): Likewise.
5498
5499 2008-03-17 Pedro Alves <pedro@codesourcery.com>
5500
5501 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
5502
5503 2008-03-17 Pedro Alves <pedro@codesourcery.com>
5504
5505 * linux-nat.c (linux_nat_filter_event): New, refactored from
5506 linux_nat_wait.
5507 (linux_nat_wait): Call linux_nat_filter_event.
5508
5509 2008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
5510
5511 * top.c (execute_command): Fix uninitialized variable error.
5512
5513 2008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
5514
5515 * Makefile.in (amd64nbsd-nat.o): New dependency.
5516 * amd64nbsd-nat.c: Include "nbsd-nat.h".
5517 (_initialize_amd64nbsd_nat): Update target vector to use
5518 nbsd_pid_to_exec_file.
5519 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
5520
5521 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
5522
5523 Remove ignoring leading exec events code.
5524 * fork-child.c (startup_inferior): Do not set
5525 inferior_ignoring_leading_exec_events.
5526 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
5527 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
5528 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
5529 (handle_inferior_event): Remove code for ignoring leading exec
5530 events.
5531 * target.c (update_current_target): Do not inherit, or default,
5532 to_reported_exec_events_per_exec_call.
5533 (debug_to_reported_exec_events_per_exec_call): Remove.
5534 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
5535 * target.h (target_reported_exec_events_per_exec_call): Remove.
5536 (struct target): Remove the to_reported_exec_events_per_exec_call
5537 field.
5538
5539 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
5540
5541 Implement -thread-info.
5542 * gdbthread.h (print_thread_info): Declare.
5543
5544 * thread.c (print_thread_info): New, extracted
5545 from info_threads_command and adjusted to
5546 work for CLI and MI.
5547 (info_threads_command): Use print_thread_info.
5548 * Makefile.in: Update dependencies.
5549
5550 * mi/mi-cmds.c (mi_cmds): Specify a handler
5551 for -thread-info.
5552 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
5553 * mi/mi-main.c (mi_cmd_thread_info): New.
5554 (mi_cmd_list_features): Include 'thread-info'.
5555
5556 2008-03-14 Kevin Buettner <kevinb@redhat.com>
5557
5558 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
5559 to decide whether to match instruction patterns using "sw" and "sd".
5560
5561 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5562
5563 * infcmd.c (jump_command): Postpone disabling stdin until after
5564 the possible query.
5565
5566 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5567
5568 * inflow.c (gdb_getpgrp): New.
5569 (gdb_has_a_terminal): Use get_getpgrp.
5570 (terminal_ours_1): If attach_flag is set, don't refetch
5571 inferior_process_group.
5572
5573 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5574
5575 * features/library-list.dtd: Allow "section" elements as children
5576 of "library". Add "section" element and describe its attributes.
5577
5578 * solib-target.c (struct lm_info): Add section_bases member.
5579 (library_list_start_segment): Error out if seen a section element.
5580 (library_list_start_section): New.
5581 (library_list_end_library): New.
5582 (solib_target_free_library_list): Free section_bases.
5583 (section_attributes): New.
5584 (library_children): Make "segment" optional. Add "section" child.
5585 (library_list_children): Register library_list_end_library.
5586 (solib_target_relocate_section_addresses): Handle section bases.
5587
5588 * NEWS: Mention new qXfer:libraries:read section offsets support.
5589
5590 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
5591
5592 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
5593 (make_exec_error_cleanup): Remove declarations.
5594 * utils.c (exec_error_cleanup_chain): Remove.
5595 (do_exec_error_cleanups, discard_exec_error_cleanups)
5596 (make_exec_error_cleanup): Remove.
5597 * event-loop.c (start_event_loop): Adjust call to
5598 async_enable_stdin.
5599 * event-top.c (async_enable_stdin): Remove the paramater dummy.
5600 (async_disable_stdin): Don't register async_enable_stdin via
5601 cleanup.
5602 * inf-loop.c (inferior_event_handler): Don't
5603 call do_exec_error_cleanups. Call async_enable_stdin instead.
5604 * event-loop.c (start_event_loop): Adjust call to
5605 async_enable_stdin.
5606 * tui/tui-interp.c (tui_command_loop): Adjust call to
5607 async_enable_stdin.
5608
5609 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
5610
5611 Async mode fixes.
5612 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
5613 * breakpoint.c (bpstat_do_actions): In async mode,
5614 don't jump to top expecting stop_bpstat to be already
5615 updated.
5616 * event-loop.c (start_event_loop): Call async_enable_stdin
5617 on exception.
5618 * event-top.c (async_enable_stdin): Do nothing if sync_execution
5619 is not set.
5620 (command_handler): Do not setup continuation here.
5621 (command_line_handler_continuation): Move to...
5622 * top.c (command_line_handler_continuation): ... here.
5623 (execute_command): In async mode, register continuation.
5624 Don't check frame's language in running in async mode.
5625 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
5626 * inf-loop.c (complete_execution): Inline into...
5627 (inferior_event_handler): ... here. Clear target_executing before
5628 doing any cleanups. Don't try to show prompt if the target was
5629 resumed.
5630 * infcmd.c (signal_command): Add support for async mode.
5631 (finish_command): Only add continuation if the target was
5632 successfully resumed.
5633 * remote.c (init_async_opts): Register to_get_thread_local_address
5634 handler.
5635 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
5636 with sync_execution.
5637 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
5638 on exception.
5639
5640 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
5641
5642 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
5643 * exec.c (exec_bfd_mtime): Define.
5644 (exec_close): Clear it.
5645 (exec_file_attach): Set it.
5646 * gdbcore.h (exec_bfd_mtime): Declare.
5647 * source.c (find_source_lines): Do not use bfd_get_mtime.
5648
5649 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
5650
5651 * top.c (simplified_command_loop): Remove.
5652
5653 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
5654
5655 Remove unused remote.c hooks.
5656 * remote.c (deprecated_target_resume_hook)
5657 (deprecated_target_wait_loop_hook): Remove.
5658 (remote_resume): Do not call deprecated_target_resume_hook.
5659 (remote_wait): Do not call deprecated_target_wait_loop_hook.
5660 (remote_async_wait): Likewise.
5661
5662 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
5663
5664 Implement MI notification for new threads.
5665 * doc/observer.texi (new_thread): Document.
5666 * observer.sh: Forward declare struct thread_info.
5667 * thread.c (add_thread): Notify observer.
5668
5669 * interps.h (interp_init_ftype): New parameter
5670 top_level.
5671 (interp_set): Likewise.
5672 (top_level_interpreter_data): Declare.
5673 * interps.c (interp_set): New parameter top_level.
5674 Pass it to interpreter's init function. Remember
5675 top level interpreter.
5676 (interpreter_exec_cmd): Adjust.
5677 (top_level_interpreter_data): New.
5678 * main.c (captured_main): Pass 1 for top_level
5679 parameter of interp_set.
5680 * cli/cli-interp.c (cli_interpreter_init): New
5681 parameter top_level.
5682 * tui/tui-interp.c (tui_init): New parameter top_level.
5683
5684 * mi/mi-interp.c (mi_new_thread): New.
5685 (mi_interpreter_init): If top level, register
5686 observer for new threads.
5687
5688 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
5689
5690 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5691
5692 * top.c (execute_command): Disable break and stop
5693 commands in async mode.
5694
5695 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5696
5697 revert:
5698 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5699 * inf-loop.c (inferior_event_handler): Don't include remote.h.
5700 Call target_stop in the INF_QUIT_REQ case.
5701 * Makefile.in (inf-loop.o): Update.
5702
5703 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5704
5705 * inf-loop.c (inferior_event_handler): Don't include remote.h.
5706 Call target_stop in the INF_QUIT_REQ case.
5707 * Makefile.in (inf-loop.o): Update.
5708
5709 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5710
5711 * top.c (execute_command): Enable break, info and interrupt
5712 commands in async mode.
5713
5714 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
5715 Daniel Jacobowitz <dan@codesourcery.com>
5716
5717 * breakpoint.h (breakpoint_restore_shadows): New
5718 declaration.
5719 * breakpoint.c (breakpoint_restore_shadows): New.
5720 (read_memory_nobpt): Delete.
5721 * gdbcore.h (read_memory_nobpt): Delete declaration.
5722 * target.c (memory_xfer_partial): Call
5723 breakpoint_restore_shadows.
5724 (restore_show_memory_breakpoints)
5725 (make_show_memory_beakpoints_cleanup): New.
5726 (show_memory_breakpoints): New.
5727 * target.h (make_show_memory_beakpoints_cleanup): Declare.
5728 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
5729 Make sure we see memory breakpoints when checking if
5730 breakpoint is still there.
5731 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
5732 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
5733 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
5734 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
5735
5736 2008-03-12 Pedro Alves <pedro@codesourcery.com>
5737
5738 * thread.c (add_thread): Use printf_unfiltered to print.
5739
5740 2008-03-12 Joel Brobecker <brobecker@gnat.com>
5741
5742 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
5743 that is true only on x86-solaris and x86_64-solaris.
5744 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
5745 with proc_get_LDT_entry.
5746
5747 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
5748
5749 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
5750 * config.in, configure: Regenerate.
5751 * fork-child.c (fork_inferior): Call create_tty_session.
5752 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
5753 (create_tty_session): New function.
5754 * terminal.h: Declare create_tty_session.
5755
5756 2008-03-12 Alan Modra <amodra@bigpond.net.au>
5757
5758 PR 5900
5759 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
5760 * mipsread.c: Include elf/internal.h.
5761 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
5762 to internal range.
5763
5764 2008-03-11 Markus Deuling <deuling@de.ibm.com>
5765
5766 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
5767 to get at the current architecture and at the target specific vector.
5768 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
5769 remove define of I387_ST0_REGNUM.
5770
5771 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
5772
5773 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
5774 get at the current architecture
5775 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
5776 parameter.
5777
5778 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
5779 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
5780
5781 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
5782 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
5783 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
5784
5785 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
5786 at the target specific vector.
5787
5788 (i386_get_longjmp_target): Use get_frame_arch to get at the current
5789 architecture. Use gdbarch_tdep to get at the target specific vector.
5790
5791 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
5792 update caller. Use gdbarch_tdep to get at the target specific vector.
5793
5794 (i386_register_to_value: Use get_frame_arch to get at the current
5795 architecture.
5796
5797 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
5798 parameter.
5799
5800 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
5801 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
5802 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
5803 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
5804
5805 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
5806 undef's.
5807
5808 (i387_convert_register_p, i387_register_to_value,
5809 i387_value_to_register): Update call for i386_fp_regnum_p.
5810
5811 * i387-tdep.h: Remove comment.
5812 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
5813 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
5814 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
5815 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
5816 I387_MXCSR_REGNUM): Add target specific vector as parameter.
5817
5818 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
5819
5820 * Makefile.in (fork-child.o): Update.
5821 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
5822 argument. Gather all gdbserver features together.
5823 * fork-child.c (exec_wrapper): New variable.
5824 (fork_inferior): Use it.
5825 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
5826 (unset_exec_wrapper_command, _initialize_fork_child): New.
5827
5828 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
5829
5830 * source.c (directory_command): Modify the determination of
5831 condition of terminal "from_tty".
5832
5833 2008-03-10 Matt Rice <ratmice@gmail.com>
5834
5835 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
5836
5837 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
5838
5839 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
5840 of the data passing to strtoulst function.
5841 (info_spu_signal_command): Likewise.
5842
5843 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
5844
5845 * mi/mi-interp.c (mi_command_loop): Remove
5846 commented-out code.
5847
5848 2008-03-07 Joel Brobecker <brobecker@adacore.com>
5849
5850 * remote.c (extended_remote_attach_1): Make local variable pid an int
5851 instead of a pid_t.
5852
5853 2008-03-07 Joel Brobecker <brobecker@adacore.com>
5854
5855 * solib-svr4.c (svr4_same_1): New function, originally extracted
5856 from svr4_same and expanded to handle the sparc64 case.
5857 (svr4_same): Move up and reimplement using svr4_same_1.
5858 (enable_break): Use svr4_same_1 to do shared library name comparisons.
5859
5860 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
5861
5862 * MAINTAINERS: Move self to Paper trail.
5863
5864 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
5865
5866 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
5867 * event-loop.c (call_async_signal_handler): New.
5868 * event-loop.h (call_async_signal_handler)
5869 (gdb_call_async_signal_handler): Declare.
5870 (mark_async_signal_handler): Add comments.
5871 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
5872 * mingw-hdep.c (sigint_event, sigint_handler): New.
5873 (gdb_select): Use them. Wait for the readline signal handler
5874 to finish.
5875 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
5876 * posix-hdep.c (gdb_call_async_signal_handler): New function.
5877 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
5878 New.
5879 (remote_fileio_ctrl_c_signal_handler): Use
5880 gdb_call_async_signal_handler.
5881 (initialize_remote_fileio): Initialize sigint_fileio_token.
5882 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
5883 not initialize tokens here.
5884 (handle_remote_sigint_twice): Likewise. Reinstall
5885 handle_remote_sigint.
5886 (async_remote_interrupt_twice): Just call interrupt_query.
5887 (cleanup_sigint_signal_handler): Do not delete tokens.
5888 (remote_interrupt, remote_interrupt_twice): Use
5889 gdb_call_async_signal_handler.
5890 (interrupt_query): Reinstall the default signal handler.
5891 (_initialize_remote): Initialize tokens here.
5892
5893 2008-03-04 Joel Brobecker <brobecker@adacore.com>
5894
5895 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
5896 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
5897 Change the type of the lr register to code_ptr.
5898 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
5899 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
5900 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
5901 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
5902 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
5903 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
5904 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
5905
5906 2008-03-03 James E. Wilson <wilson@tuliptree.org>
5907
5908 * MAINTAINERS: Update my email address.
5909
5910 2008-03-03 Keith Seitz <keiths@redhat.com>
5911
5912 From Dave Murphy <davem@devkitpro.org>:
5913 * configure.ac: Set tcl configdir to win under mingw.
5914 * configure: Regenerate.
5915
5916 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
5917
5918 * breakpoint.c (fetch_watchpoint_value): New function.
5919 (update_watchpoint): Set and clear val_valid. Use
5920 fetch_watchpoint_value. Handle unreadable values on the
5921 value chain. Correct check for user-requested array watchpoints.
5922 (breakpoint_init_inferior): Clear val_valid.
5923 (watchpoint_value_print): New function.
5924 (print_it_typical): Use it. Do not free or clear old_val. Print
5925 watchpoints even if old_val == NULL.
5926 (watchpoint_check): Use fetch_watchpoint_value. Check for values
5927 becoming readable or unreadable.
5928 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
5929 (do_enable_watchpoint): Likewise.
5930 * breakpoint.h (struct breakpoint): Update comment for val. Add
5931 val_valid.
5932 * NEWS: Mention watchpoints on inaccessible memory.
5933
5934 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
5935
5936 * Makefile.in (i386-nat.o): Update.
5937 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
5938 i386_use_watchpoints.
5939 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
5940 i386_use_watchpoints.
5941 * i386-nat.c (i386_stopped_data_address): Take two arguments.
5942 (i386_stopped_by_watchpoint): Update call.
5943 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
5944 * config/i386/nm-i386.h: Conditionalize definitions on
5945 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
5946 (i386_use_watchpoints): Declare.
5947 (i386_stopped_data_address): Update.
5948 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
5949 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
5950
5951 2008-02-29 Joel Brobecker <brobecker@adacore.com>
5952
5953 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
5954 * version.in: Bump version to 6.8.50.20080229-cvs.
5955
5956 2008-02-28 Markus Deuling <deuling@de.ibm.com>
5957
5958 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
5959 properly.
5960
5961 2008-02-28 Tom Tromey <tromey@redhat.com>
5962
5963 * infcmd.c (notice_args_read): Print result of get_inferior_args.
5964
5965 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
5966
5967 * infcmd.c (kill_if_already_running): Make static. Use
5968 target_require_runnable.
5969 * target.c (target_require_runnable): New.
5970 * target.h (target_require_runnable): Declare.
5971
5972 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
5973
5974 * frame.c (reinit_frame_cache): Only annotate if frames were
5975 previously valid.
5976
5977 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5978
5979 * regformats/reg-ppc.dat: Rename "ps" to "msr".
5980 * regformats/reg-ppc64.dat: Likewise.
5981
5982 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5983
5984 * features/Makefile (%.dat): Emit xmltarget statement.
5985
5986 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
5987 Generate code to set gdbserver_xmltarget in init_registers_${name}.
5988
5989 * regformats/arm-with-iwmmxt.dat: Regenerate.
5990 * regformats/mips64-linux.dat: Regenerate.
5991 * regformats/mips-linux.dat: Regenerate.
5992 * regformats/rs6000/powerpc-32.dat: Regenerate.
5993 * regformats/rs6000/powerpc-64.dat: Regenerate.
5994 * regformats/rs6000/powerpc-e500.dat: Regenerate.
5995
5996 * regformats/reg-arm.dat: Add xmlarch statement.
5997 * regformats/reg-i386.dat: Likewise.
5998 * regformats/reg-i386-linux.dat: Likewise.
5999 * regformats/reg-x86-64-linux.dat: Likewise.
6000 * regformats/reg-spu.dat: Likewise.
6001
6002 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6003
6004 * remote.c (remote_wait, remote_async_wait): Stop if we receive
6005 an error.
6006
6007 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6008
6009 * utils.c (debug_timestamp): New.
6010 (vfprintf_unfiltered): Print timestamps if requested.
6011 (show_debug_timestamp): New.
6012 (initialize_utils): Register "set debug timestamp".
6013 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
6014
6015 2008-02-27 Joel Brobecker <brobecker@adacore.com>
6016
6017 * breakpoint.c (skip_prologue_sal): New function.
6018 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
6019 computed from a line number.
6020
6021 2008-02-27 Joel Brobecker <brobecker@adacore.com>
6022
6023 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
6024 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
6025 Set PC register type to "code_ptr".
6026 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
6027 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
6028 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
6029 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
6030 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
6031 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
6032 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
6033 Regenerate.
6034
6035 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
6036
6037 * regformats/regdat.sh: Rename init_registers function in
6038 generated file to init_registers_${name}.
6039
6040 * regformats/reg-crisv32.dat: Set "name" to crisv32.
6041 * regformats/reg-ppc64.dat: Set "name" to ppc64.
6042 * regformats/reg-s390x.dat: Set "name" to s390x.
6043
6044 2008-02-26 Greg Law <glaw@undo-software.com>
6045
6046 * regcache.c (registers_changed): Call reinit_frame_cache.
6047
6048 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6049
6050 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
6051 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
6052 and svr4_fetch_objfile_link_map.
6053 * Makefile.in (sh-linux-tdep.o): Update.
6054
6055 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
6056
6057 * amd64-tdep.c (amd64_classify): Add support for decimal float
6058 types.
6059 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
6060 use the struct return convention.
6061
6062 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
6063
6064 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
6065 to old format. Discard breakpoint address if shared library is
6066 unloaded.
6067 (breakpoint_1): Adjust formatting of table header accordingly.
6068
6069 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
6070
6071 * remote.c (remote_get_threadlist): If the response
6072 is empty, don't try to parse it.
6073
6074 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
6075
6076 Unbreak 'target async'.
6077 * serial.c (serial_async): Set the
6078 handler function before enabling async
6079 mode.
6080
6081 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
6082
6083 * solib-svr4.c (enable_break): Convert r_brk to a code address.
6084
6085 2008-02-21 Pedro Alves <pedro@codesourcery.com>
6086
6087 * remote.c (extended_remote_attach_1): Set attach_flag.
6088 (extended_remote_create_inferior_1): Clear attach_flag.
6089
6090 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
6091
6092 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
6093 r_brk_offset.
6094 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
6095 * solib-svr4.c (solib_svr4_r_brk): New.
6096 (open_symbol_file_object, svr4_current_sos): Always check the
6097 debug base.
6098 (svr4_fetch_objfile_link_map): Do not set debug_base.
6099 (enable_break): Use r_brk if it is set.
6100 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
6101 (svr4_lp64_fetch_link_map_offsets): Likewise.
6102 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
6103
6104 2008-02-20 Markus Deuling <deuling@de.ibm.com>
6105 Mark Kettenis <kettenis@gnu.org>
6106
6107 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
6108 trad_frame_saved_reg.
6109 (trad-frame.h): New include.
6110
6111 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
6112 instead of frame_obstack_zalloc.
6113 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
6114
6115 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
6116
6117 2008-02-20 Markus Deuling <deuling@de.ibm.com>
6118
6119 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
6120 from disassemble_info instead of gdbarch_byte_order.
6121
6122 * mips-tdep.c (gdb_print_insn_mips): Likewise.
6123 * arm-tdep.c (gdb_print_insn_arm): Likewise.
6124
6125 2008-02-20 Markus Deuling <deuling@de.ibm.com>
6126
6127 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
6128 gdbarch as parameter.
6129
6130 * gdbarch.{c,h}: Regenerate.
6131
6132 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
6133 parameter.
6134 * mem-break.c (default_memory_insert_breakpoint)
6135 (default_memory_remove_breakpoint): Likewise.
6136 * target.h (default_memory_remove_breakpoint)
6137 (default_memory_insert_breakpoint): Likewise.
6138
6139 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
6140 parameter. Replace current_gdbarch by gdbarch.
6141 * m32r-tdep.c (m32r_memory_insert_breakpoint)
6142 (m32r_memory_remove_breakpoint): Likewise.
6143
6144 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
6145
6146 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
6147
6148 2008-02-19 Joel Brobecker <brobecker@adacore.com>
6149
6150 * NEWS: Add entry describing Add support improvements.
6151
6152 2008-02-18 Markus Deuling <deuling@de.ibm.com>
6153
6154 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
6155 M68K_FP0_REGNUM.
6156
6157 2008-02-18 Markus Deuling <deuling@de.ibm.com>
6158
6159 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
6160 register_offset_hack anymore.
6161
6162 * regcache.{c,h} (register_offset_hack): Remove.
6163
6164 2008-02-18 Markus Deuling <deuling@de.ibm.com>
6165
6166 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
6167
6168 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
6169 current_gdbarch by gdbarch.
6170 (hppa64_hpux_find_global_pointer): Likewise.
6171 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
6172 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
6173 find_global_pointer.
6174
6175 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
6176 parameter.
6177 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
6178
6179 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
6180 of gdbarch_num_regs.
6181
6182 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
6183 replace current_gdbarch by gdbarch.
6184 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
6185
6186 2008-02-18 Markus Deuling <deuling@de.ibm.com>
6187
6188 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
6189 and replace current_gdbarch by gdbarch.
6190
6191 (store_register): Update call for exec_one_dummy_insn.
6192 (fetch_register, store_register): Update call of regmap.
6193
6194 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
6195 parameter and replace current_gdbarch by gdbarch.
6196
6197 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
6198 the current architecture. Update call for getregs_supplies and
6199 getfpregs_supplies.
6200 (ppcnbsd_fetch_inferior_registers): Likewise.
6201
6202 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
6203 replace current_gdbarch by gdbarch.
6204 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
6205 get_regcache_arch to get at the current architecture. Update call for
6206 getfpregs_supplies.
6207
6208 2008-02-18 Markus Deuling <deuling@de.ibm.com>
6209
6210 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
6211 variables.
6212
6213 2008-02-15 Markus Deuling <deuling@de.ibm.com>
6214
6215 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
6216
6217 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
6218
6219 * NEWS: Mention pending breakpints in MI.
6220
6221 2008-02-14 Markus Deuling <deuling@de.ibm.com>
6222
6223 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
6224
6225 2008-02-13 Markus Deuling <deuling@de.ibm.com>
6226
6227 Add script to build and test GDB using enable-targets=all.
6228
6229 * gdb_buildall.sh: New file.
6230
6231 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
6232
6233 * NEWS (New native configurations): Xtensa GNU/Linux.
6234 (New targets): Xtensa GNU/Linux.
6235 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
6236 xtensa-linux-tdep.o
6237 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
6238 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
6239 * configure.tgt (xtensa*-*-linux*): New entry.
6240 * xtensa-config.c (xtensa_tdep): New variable.
6241 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
6242 (rmap): Change format based on new macro XTREG.
6243 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
6244 * xtensa-linux-nat.c: New.
6245 * xtensa-linux-tdep.c: New.
6246 * xtensa-xtregs.c: New.
6247 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
6248 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
6249 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
6250 (xtensa_register_t): New field coprocessor.
6251 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
6252 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
6253 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
6254 Update to handle privileged registers.
6255 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
6256 (xtensa_push_dummy_call): Set windowstart register correctly.
6257 (call0_analyze_prologue): Initialize xtensa_default_isa.
6258 (xtensa_derive_tdep): New.
6259 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
6260 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
6261 Call xtensa_derive_tdep().
6262 * config/xtensa/linux.mh: New.
6263 * regformats/reg-xtensa.dat: New.
6264
6265 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
6266
6267 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
6268 (filenames.h): New include.
6269 * Makefile.in (corelow.o): Add dependency for filenames.h.
6270
6271 2008-02-08 Doug Evans <dje@google.com>
6272
6273 * source.c (find_and_open_source): Always rewrite absolute filenames.
6274
6275 2008-02-07 Doug Evans <dje@google.com>
6276
6277 * breakpoint.c: #include "hashtab.h".
6278 (ambiguous_names_p): New fn.
6279 (update_breakpoint_locations): When restoring bp enable status, don't
6280 compare function names if any functions have same name.
6281 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
6282
6283 2008-02-07 Joel Brobecker <brobecker@adacore.com>
6284
6285 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
6286 instead of just a VEC*. Update use of SV.
6287 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
6288
6289 2007-02-07 Joel Brobecker <brobecker@adacore.com>
6290
6291 * NEWS: Put all new commands since gdb-6.7 together.
6292
6293 2007-02-07 Joel Brobecker <brobecker@adacore.com>
6294
6295 * ada-lang.c: #include "vec.h".
6296 (struct string_vector, new_string_vector, string_vector_append):
6297 Delete.
6298 (char_ptr): New typedef.
6299 (DEF_VEC_P (char_ptr)): New VEC type.
6300 (symbol_completion_add): Update profile to take the new VEC type
6301 instead of the old string_vector structure. Update code accordingly.
6302 (ada_make_symbol_completion_list): Use the new VEC type instead of
6303 the old string_vector structure, and update the code accordingly.
6304 * Makefile.in (ada-lang.o): Add dependency on vec.h.
6305
6306 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
6307
6308 * p-exp.y: Set current_type in missing places.
6309 (leftdiv_is_integer): New static variable.
6310 Typecast right operand of BINOP_DIV to long_double if both operands
6311 are integers.
6312
6313 2008-02-06 Maciej W. Rozycki <macro@mips.com>
6314
6315 * remote-mips.c (set_breakpoint): Rename to...
6316 (mips_set_breakpoint): ... this.
6317 (clear_breakpoint): Rename to...
6318 (mips_clear_breakpoint): ... this.
6319 (common_breakpoint): Rename to...
6320 (mips_common_breakpoint): ... this.
6321 (check_lsi_error): Rename to...
6322 (mips_check_lsi_error): ... this.
6323
6324 2007-02-05 Joel Brobecker <brobecker@adacore.com>
6325
6326 * language.h (struct language_defn): Add new field
6327 la_make_symbol_completion_list.
6328 * symtab.c (default_make_symbol_completion_list): Renames
6329 make_symbol_completion_list.
6330 (make_symbol_completion_list): New function.
6331 * symtab.h (default_make_symbol_completion_list): Add declaration.
6332 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
6333 (auto_language, local_language): Likewise.
6334 * objc-lang.c (objc_language_defn): Likewise.
6335 * scm-lang.c (scm_language_defn): Likewise.
6336 * m2-lang.c (m2_language_defn): Likewise.
6337 * f-lang.c (f_language_defn): Likewise.
6338 * jv-lang.c (java_language_defn): Likewise.
6339 * p-lang.c (pascal_language_defn): Likewise.
6340 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
6341 (minimal_language_defn): Likewise.
6342 * ada-lang.c (struct string_vector): New structure.
6343 (new_string_vector, string_vector_append, ada_unqualified_name)
6344 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
6345 (ada_make_symbol_completion_list): New functions.
6346 (ada_language_defn): Set la_make_symbol_completion_list.
6347 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
6348 this function is static.
6349
6350 2008-02-05 Kevin Buettner <kevinb@redhat.com>
6351
6352 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
6353 to account for call site optimizations.
6354
6355 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
6356
6357 * tracepoint.c (read_actions): Handle end-of-text indicator
6358 in action list properly. (Committed by Jim Blandy)
6359
6360 2008-02-05 Jim Blandy <jimb@red-bean.com>
6361
6362 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
6363 pseudoregister, not an internal error.
6364 Reported by: Andrzej Zaborowski
6365
6366 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
6367
6368 * varobj.c (c_value_of_variable): Use xstrdup.
6369
6370 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
6371
6372 Update stored rendition of varobj value when format changes.
6373 * varobj.c (varobj_set_display_format): Recomputed
6374 print_value.
6375 (c_value_of_variable): Return print_value.
6376
6377 2008-02-03 Doug Evans <dje@google.com>
6378
6379 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
6380 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
6381 * valops.c (value_one): New function.
6382 * value.h (value_one): Declare.
6383
6384 Fix argument promotion for binary arithmetic ops for C.
6385 * valarith.c (unop_result_type): New fn.
6386 (binop_result_type): New fn.
6387 (value_binop): Move result type computation to binop_result_type.
6388 (value_pos, value_neg, value_complement): Move result type
6389 computation to unop_result_type.
6390
6391 PR 2384
6392 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
6393 Return basetype, fieldno if found. All callers updated.
6394 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
6395 objfile.
6396 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
6397 * symfile.h (fill_in_vptr_fieldno): Delete.
6398
6399 2008-02-02 Doug Evans <dje@google.com>
6400
6401 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
6402
6403 * typeprint.c (*): Whitespace cleanup.
6404
6405 2008-02-02 Mark Kettenis <kettenis@gnu.org>
6406 Luis Machado <luisgpm@br.ibm.com>
6407 Thiago Jung Bauermann <bauerman@br.ibm.com>
6408
6409 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
6410 don't fit into registerson the stack the way GCC does.
6411
6412 2008-02-01 Joel Brobecker <brobecker@adacore.com>
6413
6414 * symtab.c (symbol_set_names): Do not add an entry in the demangling
6415 hash table for Ada symbols. Just store the linkage name as is,
6416 and leave the demangled_name as NULL.
6417
6418 2007-02-01 Joel Brobecker <brobecker@adacore.com>
6419
6420 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
6421 in the global scope.
6422 (new_symbol): Likewise.
6423
6424 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
6425
6426 * breakpoint.c (break_command_1): Return void.
6427 (break_command_really): Return void. Rethrow
6428 exceptions instead of returning.
6429 (gdb_breakpoint): Remove the error_message parameter.
6430 Return void. Rename to set_breakpoint.
6431 * gdb.h (gdb_breakpoint): Rename and move to...
6432 * breakpoint.h (set_breakpoint): ...here.
6433 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
6434 event hooks even if exception is thrown. Adjust to
6435 gdb_breakpoint interface changes.
6436
6437
6438 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
6439
6440 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
6441 float in both first and second word in the doubleword, to support
6442 old and new ABIs.
6443
6444 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
6445
6446 Properly rethrow exception. This fixes errors
6447 about non-existent functions for -break-insert.
6448 * breakpoint.c (break_command_really): Use throw_exception
6449 for rethrowing. If rethrowing, don't print the exception.
6450
6451 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6452
6453 * NEWS: Mention Decimal Floating Point support.
6454
6455 2008-01-31 Joel Brobecker <brobecker@adacore.com>
6456
6457 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
6458 value type to builtin_type_void_func_ptr.
6459
6460 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
6461
6462 * s390-tdep.c (is_float_singleton, is_float_like,
6463 alignment_of, s390_return_value): Make checks for
6464 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
6465
6466 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
6467 Thiago Jung Bauermann <bauerman@br.ibm.com>
6468
6469 * infcmd.c (default_print_registers_info): Also print hex
6470 raw contents for TYPE_CODE_DECFLOAT registers.
6471 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
6472 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
6473 (rs6000_register_name): Add support for DFP pseudo-registers.
6474 (rs6000_pseudo_register_type): Likewise.
6475 rs6000_pseudo_register_reggroup_p): Likewise.
6476 (ppc_pseudo_register_read): New function.
6477 (ppc_pseudo_register_write): Likewise.
6478 (rs6000_pseudo_register_read): Likewise.
6479 (rs6000_pseudo_register_write): Likewise.
6480 (e500_pseudo_register_read): Move checks to
6481 rs6000_pseudo_register_read.
6482 (e500_pseudo_register_write): Move checks to
6483 rs6000_pseudo_register_write.
6484 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
6485 rs6000_pseudo_register_read and rs6000_pseudo_register_write
6486 in gdbarch if SPE or DFP is available. Adjust gdbarch's
6487 num_pseudo_regs to account for DFP pseudo regs.
6488
6489 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6490
6491 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
6492 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
6493 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
6494 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
6495 e500_pseudo_register_read, e500_pseudo_register_write): Use
6496 IS_SPE_PSEUDOREG macro.
6497 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
6498 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
6499 Remove initialization of tdep->ppc_ev31_regnum.
6500
6501 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
6502
6503 * printcmd.c (print_formatted): Handle references as for unformatted
6504 prints.
6505
6506 2008-01-30 Joel Brobecker <brobecker@adacore.com>
6507
6508 * eval.c (evaluate_subexp_standard): Add handling of user
6509 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
6510
6511 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
6512
6513 * eval.c (evaluate_subexp_standard): Support
6514 BINOP_INTDIV opcode.
6515
6516 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
6517
6518 * valarith.c (value_binop): Add floating-point BINOP_MIN and
6519 BINOP_MAX cases.
6520 For BINOP_EXP, use length and signedness of left operand only for
6521 result, as for shifts.
6522 For integral operands to BINOP_EXP, use new integer_pow and
6523 uinteger_pow functions so as to get full range of results.
6524 (integer_pow): New function.
6525 (uinteger_pow): New function.
6526
6527 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
6528
6529 Use vector for varobj_list_children interface.
6530 * gdb/varobj.c (varobj_list_children): Return vector
6531 of varobjs.
6532 * gdb/varobj.h (varobj_list_children): Adjust
6533 prototype.
6534 (varobj_p): Declare. Declare vector thereof.
6535 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
6536 for varobj_list_children change.
6537 * Makefile.in (varobj_h): Update dependencies.
6538
6539 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6540
6541 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
6542 TYPE_CODE_DECFLOAT arguments.
6543 (ppc64_sysv_abi_push_dummy_call) Likewise.
6544 (get_decimal_float_return_value): New function.
6545 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
6546 values by calling get_decimal_float_return_value.
6547 (ppc64_sysv_abi_return_value): Likewise.
6548
6549 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
6550
6551 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
6552 for preprocessor macro information. Formatting changes.
6553
6554 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
6555
6556 * remote.c (struct remote_state): Add cached_wait_status.
6557 (remote_exec_file): New variable.
6558 (PACKET_vAttach, PACKET_vRun): New constants.
6559 (extended_remote_restart): Do not query for status.
6560 (struct start_remote_args): New.
6561 (remote_start_remote): Take it as a second argument. Check
6562 whether the target is running. Issue an error for non-running
6563 non-extended targets. Cache the wait status. Set inferior_ptid
6564 here.
6565 (remote_open_1): Prompt to disconnect non-running targets. Make
6566 sure the target is marked running. Do not set inferior_ptid here.
6567 Update call to remote_start_remote. Do not call remote_check_symbols
6568 if the target is not running.
6569 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
6570 argument. Handle a non-running target.
6571 (remote_detach): Use it.
6572 (extended_remote_detach): New.
6573 (remote_disconnect): Fix typo. Use remoute_mourn_1.
6574 (extended_remote_attach_1, extended_remote_attach)
6575 (extended_async_remote_attach): New.
6576 (remote_vcont_resume): Remove unused variable.
6577 (remote_wait, remote_async_wait): Use any cached wait status.
6578 (putpkt_binary, getpkt): Clear any cached wait status.
6579 (extended_remoute_mourn_1): New.
6580 (extended_remote_mourn): Use it.
6581 (extended_async_remote_mourn, extended_remote_run): New.
6582 (extended_remote_create_inferior_1): New.
6583 (extended_remote_create_inferior): Use it.
6584 (extended_remote_async_create_inferior): Likewise.
6585 (remote_xfer_partial): Skip for non-executing targets.
6586 (init_extended_remote_ops): Set to_detach and to_attach.
6587 (init_extended_async_remote_ops): Likewise. Use
6588 extended_async_remote_mourn.
6589 (_initialize_remote): Register vAttach, vRun, and
6590 set remote exec-file.
6591 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
6592
6593 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
6594
6595 * Makefile.in (symfile.o): Update.
6596 * NEWS: Mention exec tracing support.
6597 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
6598 exec events.
6599 * infcmd.c (kill_if_already_running, detach_command)
6600 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
6601 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
6602 (follow_exec): Do not check may_follow_exec. Do not mourn and push
6603 targets. Apply the sysroot path to the loaded executable. Use
6604 no_shared_libraries.
6605 * linux-nat.c (linux_child_follow_fork): Print fork following
6606 messages if verbose.
6607 (kill_wait_callback): Kill again before waiting a second time.
6608 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
6609 no_shared_libraries.
6610
6611 2008-01-29 Joel Brobecker <brobecker@adacore.com>
6612
6613 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
6614
6615 2008-01-29 Joel Brobecker <brobecker@adacore.com>
6616
6617 * nto-tdep.h: Remove #include "defs.h".
6618 * nto-tdep.c: Add #include "defs.h".
6619 * Makefile.in (nto_tdep_h): Update dependencies.
6620 (nto-tdep.o): Likewise.
6621
6622 2008-01-29 Joel Brobecker <brobecker@adacore.com>
6623
6624 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
6625 and use it.
6626 (proceed, start_remote): Update call to wait_for_inferior.
6627 * inferior.h (wait_for_inferior): Update declaration.
6628 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
6629 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
6630 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
6631 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
6632
6633 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
6634
6635 * varobj (adjust_value_for_child_access): Added checking for
6636 returned value from gdb_value_ind.
6637 (c_describe_child): Likewise.
6638 (cplus_describe_child): Fixed a typo.
6639
6640 2008-01-29 Jim Blandy <jimb@red-bean.com>
6641
6642 * MAINTAINERS: Update my info.
6643
6644 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
6645
6646 Use multiple locations for hardware watchpoints.
6647 This eliminates the need to traverse value chain, doing
6648 various checks, in three different places.
6649
6650 * breakpoint.h (struct bp_location): New fields
6651 lengths and watchpoint_type.
6652 (struct breakpoint): Remove the val_chain field.
6653 * breakpoint.c (is_hardware_watchpoint): New.
6654 (free_valchain): Remove.
6655 (update_watchpoint): New.
6656 (insert_bp_location): For hardware watchpoint, just
6657 directly insert it.
6658 (insert_breakpoints): Call update_watchpoint_locations
6659 on all watchpoints. If we have failed to insert
6660 any location of a hardware watchpoint, remove all inserted
6661 locations.
6662 (remove_breakpoint): For hardware watchpoints, directly
6663 remove location.
6664 (watchpoints_triggered): Iterate over locations.
6665 (bpstat_stop_status): Use only first location of
6666 a resource watchpoint.
6667 (delete_breakpoint): Don't call free_valchain.
6668 (print_one_breakpoint): Don't print all
6669 locations for watchpoints.
6670 (breakpoint_re_set_one): Use update_watchpoint for
6671 watchpoints.
6672
6673 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
6674
6675 Don't reset watchpoint block on solib load.
6676
6677 * breakpoint.c (insert_bp_location): For watchpoints,
6678 recompute condition.
6679 (breakpoint_re_set_one): Instead of recomputing value
6680 and condition for watchpoints, just reset value and
6681 let insert_breakpoints/insert_bp_location recompute it.
6682 Don't do anything about disabled watchpoint.
6683
6684 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
6685
6686 * valarith.c (value_binop): Handle unsigned integer
6687 division by zero.
6688
6689 2008-01-28 Kevin Buettner <kevinb@redhat.com>
6690
6691 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
6692 instruction pattern that appears frequently in position
6693 independent code. Fix bug in code which looks for "fmov" and
6694 backtracks if no "fmov" is found.
6695
6696 2008-01-28 Doug Evans <dje@google.com>
6697
6698 * dbxread.c (read_dbx_symtab): Fix indentation.
6699 Reformat comments to 80 columns.
6700 Move local var def closer to only use.
6701
6702 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
6703
6704 * fork-child.c (SHELL_FILE): Remove #ifndef.
6705 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
6706
6707 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
6708
6709 * i386-tdep.c (i386_skip_noop): New function.
6710 (i386_analyze_prologue): Call i386_skip_noop function.
6711
6712 2008-01-24 Michael Snyder <msnyder@specifix.com>
6713
6714 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
6715 * win32-nat.c (win32_xfer_partial): Ditto.
6716 * target.c (default_xfer_partial): Minor whitespace adjustment.
6717
6718 2008-01-24 Pedro Alves <pedro@codesourcery.com>
6719
6720 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
6721 strip bit 1 even if pc doesn't point to thumb code.
6722
6723 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
6724
6725 * remote.c (remote_wait): Handle SIGINT between packets.
6726 (remote_async_wait): Likewise.
6727
6728 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
6729 Chris Demetriou <cgd@google.com>
6730
6731 * thread.c (add_thread_silent): Renamed
6732 from add_thread.
6733 (print_thread_events): New variable definition.
6734 (show_print_thread_events): New function.
6735 (_initialize_thread): Add "set print thread-events" and
6736 "show print thread-events" commands.
6737 (add_thread): Announce new thread.
6738 * gdbthread.h (add_thread_silent): Declare.
6739 (print_thread_events): New variable declaration.
6740 * inf-ttrace.c (inf_ttrace_wait): Don't
6741 inform about new thread, as add_thread is always
6742 called too, and will take care of that.
6743 * infrun.c (handle_inferior_event): Likewise.
6744 * procfs.c (procfs_wait): Likewise.
6745 * remote.c (remote_currthread): Likewise.
6746 * sol-thread.c (sol_thread_wait): Likewise.
6747 * win32-nat.c (get_win32_debug_event): Likewise.
6748 * linux-thread-db.c (attach_thread): Likewise.
6749 Remove the verbose parameter.
6750 (check_event): Make detach_thread be verbose
6751 only if print_thread_events is set.
6752 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
6753 about new thread. This is called only from
6754 linux-thread-db.c:attach_thread, which will take care.
6755 Remove the verbose parameter.
6756 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
6757
6758 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
6759
6760 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
6761
6762 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
6763
6764 * breakpoint.c (break_command_really): New parameter
6765 ignore_count.
6766 (break_command_1): Pass 0 as
6767 ignore_count to break_command_really.
6768 (gdb_breakpoint): Pass ignore_count to
6769 break_command_really.
6770
6771 2008-01-21 Kevin Buettner <kevinb@redhat.com>
6772
6773 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
6774 sigcontext struct via pointer.
6775 (struct sigframe comment): Update to show new field `psc'.
6776
6777 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
6778
6779 * infrun.c (handle_inferior_event): If
6780 we failed to remove breakpoints, error,
6781 don't try to increment PC by hand.
6782
6783 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
6784
6785 Add NetBSD/hppa target and host support.
6786
6787 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
6788 (hppabsd_gregset): Move to ...
6789 (hppabsd_regset_from_core_section): Rename
6790 hppaobsd_regset_from_core_section and move to ...
6791 (hppabsd_find_global_pointer): Update comment.
6792 (hppabsd_init_abi): Make global. Do not register
6793 hppabsd_regset_from_core_section.
6794 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
6795 move to ...
6796 (_initialize_hppabsd_tdep): Move to ...
6797 * hppaobsd-tdep.c: ... here. New file.
6798 * hppnbsd-tdep.c: New file.
6799 * hppnbsd-nat.c: New file.
6800 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
6801 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
6802 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
6803 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
6804 * configure.host (hppa*-*-netbsd*): New entry.
6805 * configure.tgt (hppa*-*-netbsd*): New entry.
6806 (hppa*-*-openbsd*): Update.
6807 * NEWS (New native configuration): Mention NetBSD/hppa.
6808 (New targets): Mention NetBSD/hppa.
6809
6810 2008-01-18 Markus Deuling <deuling@de.ibm.com>
6811
6812 * gdbarch.sh (function_list): Add new property bits_big_endian to
6813 gdbarch structure.
6814 * gdbarch.{c,h}: Regenerate.
6815
6816 * value.c (struct value): Replace BITS_BIG_ENDIAN by
6817 gdbarch_bits_big_endian (comment).
6818 (unpack_field_as_long, modify_field): Likewise.
6819 * value.h: Likewise (comment).
6820 * valops.c (value_slice): Likewise.
6821 * valarith.c (value_subscript, value_bit_index): Likewise.
6822 * gdbtypes.h (field): Likewise (comment).
6823 * eval.c (evaluate_subexp_standard): Likewise.
6824 * dwarf2read.c (dwarf2_add_field): Likewise.
6825 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
6826 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
6827
6828 * defs.h (BITS_BIG_ENDIAN): Remove.
6829
6830 2008-01-18 Markus Deuling <deuling@de.ibm.com>
6831
6832 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
6833 function calls.
6834 * m2-exp.y (yylex): Likewise.
6835 * objc-exp.y (yylex): Likewise.
6836
6837 * defs.h (DEPRECATED_STREQN): Remove.
6838
6839 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
6840
6841 * MAINTAINERS: Update my email address.
6842
6843 2008-01-17 Jim Blandy <jimb@codesourcery.com>
6844
6845 * README: Mention gdbserver/README.
6846
6847 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
6848
6849 * valarith.c (value_binop): Handle BINOP_INTDIV
6850 for unsigned and signed integers.
6851
6852 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
6853
6854 * s390-tdep.c (s390_gdbarch_init): Set default long double
6855 type to 128-bit IEEE quad.
6856
6857 2008-01-17 Joel Brobecker <brobecker@adacore.com>
6858
6859 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
6860
6861 2008-01-16 Mark Kettenis <kettenis@gnu.org>
6862
6863 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
6864
6865 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
6866 * value.c: All callers changed.
6867
6868 2008-01-16 Markus Deuling <deuling@de.ibm.com>
6869
6870 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
6871 DEPRECATED_STREQ by its expression.
6872 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
6873 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
6874 (scan_xcoff_symtab): Likewise.
6875 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
6876 * f-lang.c (find_common_for_function): Likewise.
6877 * objc-exp.y (parse_number): Likewise.
6878
6879 * defs.h (DEPRECATED_STREQ): Remove.
6880
6881 2008-01-16 Markus Deuling <deuling@de.ibm.com>
6882
6883 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
6884 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
6885 get_frame_arch to get at the current_architecture. Update AM33_MODE
6886 call.
6887 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
6888 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
6889 architecture.
6890 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
6891
6892 2008-01-16 Markus Deuling <deuling@de.ibm.com>
6893
6894 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
6895 parameter.
6896 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
6897
6898 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
6899 current_gdbarch by gdbarch. Update caller.
6900
6901 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
6902 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
6903 the current architecture. Update calls of
6904 amd64_native_gregset_supplies_p.
6905 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
6906 (amd64bsd_store_inferior_registers): Likewise.
6907
6908 2008-01-16 Markus Deuling <deuling@de.ibm.com>
6909
6910 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
6911 Replace current_gdbarch by gdbarch. Update caller.
6912
6913 2008-01-16 Markus Deuling <deuling@de.ibm.com>
6914
6915 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
6916 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
6917 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
6918 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
6919 (stabsect_build_psymtabs): Fix indentation.
6920
6921 2008-01-15 Michael Snyder <msnyder@specifix.com>
6922
6923 * corelow.c (core_xfer_partial): Comment, cut/paste error.
6924
6925 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
6926
6927 * win32-nat.c (win32_create_inferior): Restore code calling
6928 CloseHandle on ProcessInformation structure.
6929
6930 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
6931
6932 * configure.ac: Check for void * as 3 argument of ptrace.
6933 * configure: regenerate.
6934
6935 2008-01-11 Markus Deuling <deuling@de.ibm.com>
6936
6937 * alpha-tdep.c (alpha_heuristic_proc_start)
6938 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
6939 current_gdbarch by gdbarch.
6940
6941 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
6942 current architecture by frame_info. Update alpha_heuristic_proc_start
6943 call.
6944
6945 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
6946 get_frame_arch to get at the current architecture by frame_info. Update
6947 alpha_sigtramp_register_address call.
6948
6949 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
6950 current_gdbarch by gdbarch. Update caller.
6951 (convert_to_extended, convert_from_extended): Add endianess parameter
6952 for comparison. Update caller.
6953 (arm_extract_return_value, arm_store_return_value): Use
6954 get_regcache_arch to get at the current architecture.
6955
6956 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
6957 current_gdbarch by gdbarch. Update caller.
6958 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
6959 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
6960
6961 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
6962 gdbarch as parameter. Update caller.
6963 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
6964 current_gdbarch by gdbarch. Update caller.
6965
6966 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
6967 update caller. Replace current_gdbarch by gdbarch.
6968
6969 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
6970 the current architecture. Replace current_gdbarch by gdbarch.
6971 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
6972 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
6973 expression. Add gdbarch as parameter and replace current_gdbarch with
6974 it. Update caller.
6975 (M6811_TDEP): Remove.
6976 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
6977 architecture.
6978 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
6979 current_gdbarch by gdbarch. Update caller.
6980
6981 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
6982 update caller.
6983 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
6984 by gdbarch.
6985
6986 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
6987 caller. Relace current_gdbarch by gdbarch.
6988 (altivec_register_p, spe_register_p): Likewise.
6989 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
6990 parameter.
6991 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
6992 altivec_register_p and spe_register_p.
6993
6994 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
6995 caller. Replace current_gdbarch by gdbarch.
6996 (score_analyze_prologue): use get_frame_arch to get at the current
6997 architecture.
6998
6999 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
7000 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
7001 current_gdbarch by gdbarch. Update caller.
7002 (sparc_frame_cache): Use get_frame_arch to get at the current
7003 architecture.
7004 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
7005 sparc_analyze_prologue.
7006
7007 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
7008 parameter.
7009
7010 2008-01-11 Markus Deuling <deuling@de.ibm.com>
7011
7012 * exec.c: #include "arch-utils.h"
7013 (print_section_info): Use gdbarch_from_bfd to get at the
7014 current architecture. Replace current_gdbarch. Fix indention. Replace
7015 deprecated_print_address_numeric by paddress.
7016 * Makefile.in (exec.o) Add dependency to arch-utils.h.
7017
7018 * valprint.c (val_print_string): Replace
7019 deprecated_print_address_numeric.
7020 * tracepoint.c (trace_mention, scope_info): Likewise.
7021 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
7022 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
7023 (maintenance_check_symtabs): Likewise.
7024 * symfile.c (list_overlays_command): Likewise.
7025 * stack.c (frame_info, print_block_frame_labels): Likewise.
7026 * printcmd.c (print_address, print_address_demangle)
7027 (address_info): Likewise.
7028 * corefile.c (memory_error): Likewise.
7029 * infcmd.c (jump_command): Likewise.
7030 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
7031 (mention, delete_breakpoint): Likewise.
7032 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
7033 * dwarf2read.c (dump_die): Likewise.
7034 * ada-valprint.c (ada_val_print_1): Likewise.
7035 * f-valprint.c (f_val_print): Likewise.
7036 * linux-fork.c (info_forks_command): Likewise.
7037 * m32r-com.c (m32r_load_section, m32r_load)
7038 (m32r_upload_command): Likewise.
7039
7040 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
7041
7042 2008-01-11 Markus Deuling <deuling@de.ibm.com>
7043
7044 * gdbarch.sh (skip_prologue): Add gdbarch
7045 as parameter.
7046 * gdbarch.{c,h}: Regenerate.
7047
7048 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
7049 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7050 * avr-tdep.c (avr_skip_prologue): Likewise.
7051 * cris-tdep.c (cris_skip_prologue): Likewise.
7052 * frv-tdep.c (frv_skip_prologue): Likewise.
7053 * h8300-tdep.c (h8300_skip_prologue): Likewise.
7054 * hppa-tdep.c (hppa_skip_prologue): Likewise.
7055 * i386-tdep.c (i386_skip_prologue): Likewise.
7056 * ia64-tdep.c (ia64_skip_prologue): Likewise.
7057 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
7058 * m32r-tdep.c (m32r_skip_prologue): Likewise.
7059 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
7060 * m68k-tdep.c (m68k_skip_prologue): Likewise.
7061 * m88k-tdep.c (m88k_skip_prologue): Likewise.
7062 * mep-tdep.c (mep_skip_prologue): Likewise.
7063 * mips-tdep.c (mips_skip_prologue): Likewise.
7064 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
7065 * mt-tdep.c (mt_skip_prologue): Likewise.
7066 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
7067 * score-tdep.c (score_skip_prologue): Likewise.
7068 * sh64-tdep.c (sh64_skip_prologue): Likewise.
7069 * sh-tdep.c (sh_skip_prologue): Likewise.
7070 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
7071 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
7072 * spu-tdep.c (spu_skip_prologue): Likewise.
7073 * v850-tdep.c (v850_skip_prologue): Likewise.
7074 * vax-tdep.c (vax_skip_prologue): Likewise.
7075 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
7076 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
7077
7078 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
7079 current_gdbarch by gdbarch.
7080 * m32c-tdep.c (m32c_skip_prologue): Likewise.
7081 * s390-tdep.c (s390_skip_prologue): Likewise.
7082
7083 2008-01-10 Doug Evans <dje@google.com>
7084
7085 * defs.h (struct continuation_arg): Fix typo in comment.
7086 * target.c (target_translate_tls_address): Fix comment spelling error.
7087
7088 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
7089
7090 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
7091 (DOUBLEST_SCAN_FORMAT): Likewise.
7092 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
7093 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
7094 * c-exp.y (parse_number): Likewise.
7095 * jv-exp.y (parse_number): Likewise.
7096 * objc-exp.y (parse_number): Likewise.
7097 * p-exp.y (parse_number): Likewise.
7098
7099 2008-01-09 Joel Brobecker <brobecker@adacore.com>
7100
7101 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
7102 (check_typedef): Likewise.
7103
7104 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
7105
7106 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
7107 seen_double_big_d, treat the new H, D, and DD modifiers as length
7108 modifiers.
7109
7110 2008-01-08 Joel Brobecker <brobecker@adacore.com>
7111
7112 * dwarf2read.c (read_enumeration_type): Add comment.
7113
7114 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
7115
7116 * config.in: Regenerate.
7117
7118 2008-01-08 Joel Brobecker <brobecker@adacore.com>
7119
7120 * ada-lang.c (ada_convert_actual): Renames convert_actual.
7121 Make non-static.
7122 (ada_convert_actuals): Delete.
7123 * ada-lang.h (ada_convert_actual): Add declaration.
7124 (ada_convert_actuals): Remove declaration.
7125 * infcall.c: #include "ada-lang.h".
7126 (value_arg_coerce): Add new parameter sp. Update function
7127 documetnation. Add handling of Ada function call parameters.
7128 * Makefile.in (infcall.o): Update dependencies.
7129
7130 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
7131
7132 * ada-lang.c (ensure_lval): Fix value lval kind.
7133 (convert_actual): Add handling for arguments passed by reference.
7134
7135 2008-01-08 Doug Evans <dje@google.com>
7136
7137 * dbxread.c (read_dbx_symtab): Fix indentation.
7138
7139 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
7140
7141 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
7142 (valarith.o): Depend on dfp.h.
7143 (valops.o): Likewise.
7144 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
7145 (set_decnumber_context): New function.
7146 (decimal_check_errors): Likewise.
7147 (decimal_from_number): Likewise.
7148 (decimal_to_number): Likewise.
7149 (decimal_from_string): Use set_decnumber_context and
7150 decimal_check_errors.
7151 (decimal_from_integral): New function.
7152 (decimal_from_floating): Likewise.
7153 (decimal_to_double): Likewise.
7154 (promote_decimal): Likewise.
7155 (decimal_binop): Likewise.
7156 (decimal_is_zero): Likewise.
7157 (decimal_compare): Likewise.
7158 (decimal_convert): Likewise.
7159 * dfp.h (decimal_from_integral): New prototype.
7160 (decimal_from_floating): Likewise.
7161 (decimal_to_double): Likewise.
7162 (decimal_binop): Likewise.
7163 (decimal_is_zero): Likewise.
7164 (decimal_compare): Likewise.
7165 (decimal_convert): Likewise.
7166 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
7167 call to value_from_decfloat.
7168 * valarith.c: Include dfp.h.
7169 (value_args_as_decimal): New function.
7170 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
7171 (value_logical_not): Likewise.
7172 (value_equal): Likewise.
7173 (value_less): Likewise.
7174 (value_pos): Likewise.
7175 (value_neg): Formatting fix.
7176 * valops.c: Include dfp.h.
7177 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
7178 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
7179 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
7180 (value_from_decfloat): Remove expect_type argument.
7181 * value.h (value_from_decfloat): Update prototype.
7182
7183 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
7184
7185 Ignore change in name of dynamic linker during
7186 execution on Solaris. This also unbreaks pending breakpoints.
7187
7188 * solist.h (struct target_so_ops): New field same.
7189 * solib-svr4.c (svr4_same): New.
7190 (_initialize_svr4_solib): Register svr4_same.
7191 * solib.c (update_solib_list): Use ops->same, if available.
7192
7193 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
7194
7195 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
7196 when using MS-DOS paths.
7197
7198 2008-01-05 Pedro Alves <pedro@codesourcery.com>
7199
7200 * NEWS: Mention --pid and --core command line behaviour changes.
7201
7202 2008-01-05 Pedro Alves <pedro@codesourcery.com>
7203
7204 * main.c (captured_main): Remove 'count' varible and the
7205 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
7206 --pid options were issued simultaneously. If an explicit pid
7207 option was passed, don't fallback to core file. Detect extra
7208 arguments better in the presence of explicit pid or core
7209 arguments.
7210
7211 2008-01-05 Joel Brobecker <brobecker@adacore.com>
7212
7213 * ada-lang.c (ada_which_variant_applies): Correctly compute
7214 the value of the discriminant when the variant record is packed.
7215
7216 2008-01-04 Joel Brobecker <brobecker@adacore.com>
7217
7218 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
7219 that are used to differentiate homonyms.
7220
7221 2008-01-04 Jerome Guitton <guitton@adacore.com>
7222
7223 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
7224 when the type is an anonymous pointer type.
7225 (ada_check_typedef): Avoid a seg fault when the type is null.
7226 * ada-typeprint.c (print_array_type): Add support for pointer
7227 to packed arrays.
7228
7229 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
7230
7231 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
7232
7233 2008-01-04 Joel Brobecker <brobecker@adacore.com>
7234
7235 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
7236 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
7237
7238 2008-01-04 Joel Brobecker <brobecker@adacore.com>
7239
7240 * ada-exp.y (chop_separator): New function.
7241 (write_selectors): Rewrite to re-use chop_separator.
7242 (ada_nget_field_index, get_symbol_field_type): New functions.
7243 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
7244 expressions.
7245
7246 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
7247
7248 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
7249 of SYMBOL_VALUE when working with function symbols.
7250
7251 2008-01-03 Joel Brobecker <brobecker@adacore.com>
7252
7253 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
7254 expressions. These expressions do not need to be rewriten.
7255
7256 2008-01-03 Joel Brobecker <brobecker@adacore.com>
7257
7258 * dwarf2read.c (read_enumeration_type): Flag type as stub if
7259 the given die is a declaration.
7260
7261 2008-01-03 Joel Brobecker <brobecker@adacore.com>
7262
7263 * ada-lang.c (ada_array_bound_from_type): Make non-static.
7264 Handle properly the case when the index type is an enumerated type.
7265 Do not return the subtype of the bounds type, just return the
7266 bounds type directly - this is not needed and is more consistent
7267 with what we do for arrays when no XA parallel type exists.
7268
7269 2008-01-03 Joel Brobecker <brobecker@adacore.com>
7270
7271 * ada-lang.c (static_unwrap_type): Add forward declaration.
7272 (template_to_static_fixed_type): Fields of dynamic types sometimes
7273 also need to be unwrapped. Take this into account.
7274 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
7275 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
7276 * ada-typeprint.c (ada_print_type): Get the typename from
7277 the original type, not the base type.
7278
7279 2008-01-03 Jerome Guitton <guitton@adacore.com>
7280
7281 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
7282 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
7283 Update calls to ada_to_fixed_type.
7284 (ada_template_to_fixed_record_type_1): Ditto, but without looking
7285 for the tag.
7286 (ada_to_fixed_type): Add check_tag parameter; do not look for
7287 tag if null. When looking for a tag, use a fixed record type.
7288 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
7289 * ada-valprint.c (printable_val_type, ada_value_print): Update
7290 calls to ada_to_fixed_type.
7291
7292 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
7293
7294 * doublest.c (convert_floatformat_to_doublest): Call
7295 floatformat_to_doublest instead of floatformat_to_double and use
7296 DOUBLEST variables.
7297 (convert_doublest_to_floatformat): Call floatformat_from_doublest
7298 instead of floatformat_from_double and use DOUBLEST variables.
7299
7300 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
7301
7302 * MAINTAINERS (Write After Approval): Add self.
7303
7304 2008-01-03 Joel Brobecker <brobecker@adacore.com>
7305
7306 * symfile.c (set_initial_language): Make non-static.
7307 * symfile.h (set_initial_language): Add declaration.
7308 * language.c: #include "symfile.h".
7309 (set_language): Call set_initial_language if the frame language
7310 could not be determined.
7311
7312 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
7313
7314 * eval.c (evaluate_subexp_for_address): Provide frame address to
7315 locate_var_value only if it will be needed.
7316
7317 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7318
7319 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
7320
7321 2008-01-02 Joel Brobecker <brobecker@adacore.com>
7322
7323 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
7324 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
7325 This is needed to make sure that any other treatment applied
7326 to the resulting value does not fail for spurious reason,
7327 such as trying to take the address of this value.
7328
7329 2008-01-02 Joel Brobecker <brobecker@adacore.com>
7330
7331 * ada-lang.c (ada_value_equal): Dereference reference types when
7332 comparing arrays.
7333
7334 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
7335
7336 Updated copyright notices for most files.
7337
7338 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
7339
7340 * win32-nat.c (psapi_module_handle): Remove static.
7341 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
7342 return first module found if base_address is zero. Don't initialize
7343 psapi function pointers here. Convert to cygwin paths when
7344 appropriate.
7345 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
7346 executable name. Use get_module_name when that fails or when
7347 !__CYGWIN__.
7348 (_initialize_psapi): New function. Initialize psapi stuff before it is
7349 needed or issue a warning if it is not found. Move psapi_module_handle
7350 here.
7351
7352 2008-01-01 Joel Brobecker <brobecker@adacore.com>
7353
7354 * ada-lang.c (ada_remove_trailing_digits): New function.
7355 (ada_remove_po_subprogram_suffix): New function.
7356 (ada_decode): Improve. Move the description of the algorithm
7357 directly inside the code, instead of in the function global
7358 description.
7359
7360 2008-01-01 Joel Brobecker <brobecker@adacore.com>
7361
7362 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
7363 and always print the dereferenced value.
7364
7365 2008-01-01 Joel Brobecker <brobecker@adacore.com>
7366
7367 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
7368 of the case where the first argument is a reference.
7369 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
7370
7371 2008-01-01 Joel Brobecker <brobecker@adacore.com>
7372
7373 Implement support for Ada interface types.
7374
7375 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
7376 (ada_is_ignored_field): Ignore fields that are a dispatch table
7377 of a tagged type.
7378
7379 2008-01-01 Joel Brobecker <brobecker@adacore.com>
7380
7381 * top.c (print_gdb_version): Update copyright year.
7382
7383 2008-01-01 Joel Brobecker <brobecker@adacore.com>
7384
7385 * ChangeLog-2007: New ChangeLog rotation.
7386 * ChangeLog: Reset for 2008.
7387 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
7388 ChangeLog-2007.
7389
7390 For older changes see ChangeLog-2007.
7391 \f
7392 Local Variables:
7393 mode: change-log
7394 left-margin: 8
7395 fill-column: 74
7396 version-control: never
7397 coding: utf-8
7398 End:
This page took 0.183258 seconds and 4 git commands to generate.