]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
639f8641c4e4f1ec22d5ff6659f937b279d95a15
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
2
3 * printcmd.c (print_scalar_formatted): Always truncate
4 unsigned data types.
5
6 * cli-dump.c (struct callback_data): Change type of load_offset
7 to CORE_ADDR.
8 (restore_binary_file): Update type casts.
9 (restore_command): Parse load_offset as address, not long.
10
11 * utils.c (string_to_core_addr): Do not sign-extend value.
12 * varobj.c (find_frame_addr_in_frame_chain): Truncate frame_base
13 before comparing against requested frame address.
14
15 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
16
17 * gdbarch.sh (gcore_bfd_target): New gdbarch callback.
18 * gdbarch.h, gdbarch.c: Regenerate.
19
20 * gcore.c (default_gcore_target): Make return value const.
21 Call gdbarch_gcore_bfd_target if present.
22 (default_gcore_arch, default_gcore_mach): Use target_gdbarch.
23
24 * corelow.c (core_read_description): Call gdbarch_core_read_description
25 on core_gdbarch instead of current_gdbarch.
26
27 * ppc-linux-tdep.c (ppc_linux_init_abi): Install gcore_bfd_target.
28
29 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
30
31 * gdbtypes.c (create_string_type): Receive character type as argument.
32 * gdbtypes.h (create_string_type): Add character type argument.
33 * dwarf2read.c (read_tag_string_type): Pass character type to
34 create_string_type.
35
36 * value.h (value_string): Add character type argument.
37 * valops.c (value_string): Add character type argument. Pass it to
38 create_string_type. Do not allocate space in inferior.
39 * valarith.c (value_concat): Pass character type to value_string.
40
41 * value.h (value_typed_string): Rename to ...
42 (value_cstring): ... this.
43 * valops.c (value_typed_string): Rename to ...
44 (value_cstring): ... this.
45 * c-lang.c (evaluate_subexp_c): Update.
46
47 * python/python-value.c (builtin_type_pychar): New define.
48 (convert_value_from_python): Call value_cstring instead
49 of value_from_string.
50 * value.c (value_from_string): Remove.
51 * value.h (value_from_string): Remove.
52
53 * eval.c (evaluate_subexp_standard): Pass character type to
54 value_string. Pass expression architecture to value_nsstring
55 and lookup_child_selector.
56 * objc-lang.h (lookup_objc_class): Add GDBARCH parameter.
57 (lookup_child_selector): Likewise.
58 (value_nsstring): Likewise.
59 * objc-lang.c (lookup_objc_class): Add GDBARCH parameter.
60 Pass character type to value_string..
61 (lookup_child_selector): Likewise.
62 (value_nsstring): Add GDBARCH parameter, use it instead of
63 objfile architecture. Pass architecture to lookup_objc_class
64 and lookup_child_selector. Pass character type to value_string.
65 (end_msglist): Pass architecture to lookup_objc_class.
66 * objc-exp.y: Pass architecture to lookup_objc_class.
67
68 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
69
70 * gdbtypes.h (struct language_defn): Add forward declaration.
71 (lookup_typename): Add LANGUAGE and GDBARCH parameters.
72 (lookup_unsigned_typename): Likewise.
73 (lookup_signed_typename): Likewise.
74 * gdbtypes.c (lookup_typename): Add LANGUAGE and GDBARCH parameters.
75 Use them instead of current_language and current_gdbarch.
76 (lookup_unsigned_typename): Add LANGUAGE and GDBARCH parameters.
77 Pass them to lookup_typename.
78 (lookup_signed_typename): Likewise.
79
80 * c-exp.y: Pass parse_language and parse_gdbarch to
81 lookup_unsigned_typename and lookup_signed_typename.
82 * objc-exp.y: Likewise.
83 * m2-exp.y: Pass parse_language and parse_gdbarch to lookup_typename.
84
85 * c-lang.c (evaluate_subexp_c): Pass expression language and
86 gdbarch to lookup_typename.
87 * printcmd.c (printf_command): Pass current language and
88 gdbarch to lookup_typename.
89 * python/python-type.c (typy_lookup_typename): Likewise.
90 Include "language.h".
91
92 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
93
94 * sparc64-nat.c (sparc64_gregset_supplies_p): Add GDBARCH parameter.
95 Use it instead of current_gdbarch. Pass architecture to
96 sparc32_gregset_supplies_p.
97 (sparc64_fpregset_supplies_p): Add GDBARCH parameter. Use it instead
98 of current_gdbarch. Pass architecture to sparc32_fpregset_supplies_p.
99 * sparc64nbsd-nat.c (sparc64nbsd_gregset_supplies_p,
100 sparc64nbsd_fpregset_supplies_p): Likewise.
101 * sparc-nat.c (sparc_gregset_supplies_p, sparc_fpregset_supplies_p):
102 Add GDBARCH parameter.
103 (sparc32_gregset_supplies_p, sparc32_fpregset_supplies_p): Likewise.
104 (sparc_fetch_inferior_registers): Pass regcache architecture to
105 sparc_gregset_supplies_p and sparc_fpregset_supplies_p.
106 (sparc_store_inferior_registers): Likewise.
107 * sparc-nat.h (sparc_gregset_supplies_p, sparc_fpregset_supplies_p:
108 Add GDBARCH parameter.
109 (sparc32_gregset_supplies_p, sparc32_fpregset_supplies_p): Likewise.
110
111 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
112
113 * ada-tasks.c (read_known_tasks_array): Use target_gdbarch instead
114 of current_gdbarch.
115 * aix-thread.c (pd_enable): Likewise.
116 * amd64-linux-nat.c (ps_get_thread_area): Likewise.
117 * bsd-uthread.c (bsd_uthread_activate): Likewise.
118 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
119 * linux-thread-db.c (enable_thread_event): Likewise.
120 * monitor.c (monitor_write_memory, monitor_read_memory): Likewise.
121 * nto-procfs.c (procfs_open): Likewise.
122 * procfs.c (invalidate_cache, procfs_insert_watchpoint,
123 info_proc_mappings, info_mappings_callback): Likewise.
124 * record.c (record_open): Likewise.
125 * rs6000-nat.c (ARCH64): Likewise.
126 * solib-darwin.c (darwin_solib_create_inferior_hook): Likewise.
127 (darwin_bfd_open): Likewise.
128 * memattr.c (mem_info_command): Likewise.
129
130 * windows-nat.c (win32_resume): Use current regcache architecture
131 instead of current_gdbarch.
132
133 * dbug-rom.c (dbug_regname): Remove check against number of
134 registers in current_gdbarch.
135 * solib-pa64.c (read_dynamic_info): Remove unused variable.
136
137 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
138
139 * dummy-frame.c (deprecated_pc_in_call_dummy): Add GDBARCH parameter,
140 use it instead of current_gdbarch.
141 * frame.h (deprecated_pc_in_call_dummy): Add GDBARCH parameter.
142 * arm-tdep.c (arm_skip_prologue): Pass architecture to
143 deprecated_pc_in_call_dummy.
144
145 * symtab.c (skip_prologue_using_sal): Add GDBARCH parameter.
146 Use it instead of current_gdbarch.
147 * symtab.h (skip_prologue_using_sal): Add GDBARCH parameter.
148 * breakpoint.c (expand_line_sal_maybe): Pass architecture to
149 skip_prologue_using_sal.
150 * arm-tdep.c (skip_prologue_using_sal): Likewise.
151 * lm32-tdep.c (lm32_skip_prologue): Likewise.
152 * m32-tdep.c (m32c_skip_prologue): Likewise.
153 * mips-tdep.c (mips_skip_prologue): Likewise.
154 * moxie-tdep.c (moxie_skip_prologue): Likewise.
155 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
156 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
157 * frv-tdep.c (frv_analyze_prologue): Add GDBARCH parameter, pass
158 it to skip_prologue_using_sal. Update call sites ...
159 (frv_skip_prologue, frv_frame_unwind_cache): ... here.
160
161 * mn10300-tdep.c (struct mn10300_prologue): Add GDBARCH member.
162 (check_for_saved): Use it instead of current_gdbarch.
163 (mn10300_analyze_prologue): Set it.
164
165 * value.c (using_struct_return): Add GDBARCH parameter. Use it
166 instead of current_gdbarch.
167 * value.h (using_struct_return): Add GDBARCH parameter.
168 * eval.c (evaluate_subexp_standard): Pass architecture to
169 using_struct_return.
170 * infcall.c (call_function_by_hand): Likewise.
171 * stack.c (return_command): Likewise.
172 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
173
174 * symtab.c (in_prologue): Add GDBARCH parameter. Use it instead of
175 current_gdbarch.
176 * symtab.h (in_prologue): Add GDBARCH parameter.
177 * infrun.c (handle_inferior_event): Pass architecture to in_prologue.
178
179 * eval.c (evaluate_subexp_standard): Use expression architecture
180 instead of current_gdbarch.
181
182 * c-lang.c (evaluate_subexp_c): Use expression architecture and
183 language instead of current_gdbarch and current_language.
184
185 * printcmd.c (do_one_display): Use expression architecture instead
186 of current_gdbarch.
187
188 * infcmd.c (print_return_value): Use architecture of stop_regcache
189 instead of current_gdbarch.
190 (print_vector_info, print_float_info): Remove GDBARCH argument,
191 use frame architecture instead.
192 (vector_info, float_info): Update calls.
193
194 * objc-lang.c (objc_skip_trampoline): Use frame architecture
195 instead of current_gdbarch.
196
197 * parse.c (write_dollar_variable): Use parse architecture instead
198 of current_gdbarch.
199
200 * source.c (line_info): Use objfile architecture instead of
201 current_gdbarch.
202
203 * symtab.c (find_function_start_sal): Use gdbarch instead of
204 current_gdbarch.
205 (print_msymbol_info): Use objfile architecture instead of
206 current_gdbarch.
207
208 * valops.c (value_assign): Use frame architecture instead of
209 current_gdbarch.
210
211 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
212
213 * buildsym.c (record_line): Remove call to gdbarch_addr_bits_remove.
214
215 * coffread.c (coff_symtab_read): Call gdbarch_addr_bits_remove before
216 calling record_line.
217 (enter_linenos): Likewise.
218 * dbxread.c (process_one_symbol): Likewise.
219 * dwarf2read.c (dwarf_decode_lines): Likewise.
220 * mdebugread.c (psymtab_to_symtab_1): Likewise.
221 * xcoffread.c (enter_line_range): Likewise.
222
223 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
224
225 * ax-gdb.c (gen_bitfield_ref): Add EXP argument, use expression
226 architecture instead of current_gdbarch.
227 (gen_struct_ref): Add EXP argument, pass to get_bitfield_ref.
228 (gen_expr): Pass expression to get_struct_ref.
229
230 * symtab.h (struct symbol_ops): Add GDBARCH parameter to
231 tracepoint_var_ref callback.
232 * ax-gdb.c (gen_var_ref): Pass architecture to tracepoint_var_ref
233 symbol operation callback.
234 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Add GDBARCH parameter.
235 Use it instead of current_gdbarch.
236 (locexpr_tracepoint_var_ref): Add GDBARCH parameter. Pass it to
237 dwarf2_tracepoint_var_ref.
238 (loclist_tracepoint_var_ref): Likewise.
239
240 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
241
242 * prologue-value.c (make_pv_area): Add ADDR_BIT argument.
243 Use it instead of address bits of current_gdbarch.
244 * prologue-value.c (make_pv_area): Add ADDR_BIT argument.
245 * arm-tdep.c (thumb_analyze_prologue): Pass address bits to
246 make_pv_area.
247 (arm_scan_prologue): Likewise.
248 * m32c-tdep.c (m32c_analyze_prologue): Likewise.
249 * mep-tdep.c (mep_analyze_prologue): Likewise.
250 * mn10300-tdep.c (mn10300_analyze_prologue): Likewise.
251 * s390-tdep.c (s390_analyze_prologue): Likewise.
252
253 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
254
255 * mi/mi-main.c (mi_cmd_data_list_register_names): Use selected
256 frame architecture instead of current_gdbarch.
257 (mi_cmd_data_list_changed_registers): Likewise.
258 (mi_cmd_data_list_register_values): Likewise. Pass selected
259 frame to get_register.
260 (get_register): Add FRAME argument, use it as frame to retrieve
261 registers from (instead of selected frame). Use frame architecture
262 instead of current_gdbarch.
263 (mi_cmd_data_write_register_values): Use current regcache
264 architecture instead of current_gdbarch.
265
266 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
267
268 * tui/tui-regs.c (tui_show_register_group): Remove GDBARCH parameter;
269 use frame architecture instead. Replace current_gdbarch uses.
270 (tui_show_registers): Update call.
271 (tui_get_register): Remove GDBARCH parameter; use frame architecture
272 instead.
273 (tui_show_register_group): Update call.
274 (tui_check_register_values): Likewise.
275 (tui_register_format): Remove GDBARCH parameter; use frame
276 architecture instead. Replace current_gdbarch uses.
277 (tui_get_register): Update call.
278
279 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
280
281 * gdbarch.sh (construct_inferior_arguments): Remove.
282 * gdbarch.c, gdbarch.h: Regenerate.
283 * infcmd.c (get_inferior_args): Call construct_inferior_arguments
284 directly instead of gdbarch_construct_inferior_arguments.
285 (construct_inferior_arguments): Remove GDBARCH argument.
286 * inferior.h (construct_inferior_arguments): Likewise.
287
288 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
289
290 * symfile.c (section_is_mapped): Use objfile architecture instead
291 of current_gdbarch.
292 (TARGET_LONG_BYTES): Remove.
293 (read_target_long_array): Add SIZE argument. Use it instead of
294 TARGET_LONG_BYTES.
295 (simple_read_overlay_table): Retrieve long size from objfile
296 architecture; pass it to read_target_long_array.
297 (simple_read_overlay_region_table): Likewise.
298 (simple_overlay_update_1): Likewise.
299
300 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
301
302 * infrun.c (cleanup_displaced_step_closure): Remove.
303 (displaced_step_clear_cleanup): Move to before displaced_step_prepare.
304 (displaced_step_prepare): Use displaced_step_clear_cleanup instead
305 of cleanup_displaced_step_closure.
306 (handle_inferior_event, keep_going): Use thread architecture instead
307 of current_gdbarch.
308
309 2009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
310
311 * infrun.c (handle_inferior_event): Use current frame architecture
312 or thread architecture instead of current_gdbarch. Pass to
313 handle_step_into_function and handle_step_into_function_backward.
314 (handle_step_into_function): Add GDBARCH parameter. Use it instead
315 of current_gdbarch.
316 (handle_step_into_function_backward): Likewise.
317 (insert_step_resume_breakpoint_at_frame): Use frame architecture
318 instead of current_gdbarch.
319 (insert_step_resume_breakpoint_at_caller): Likewise.
320
321 2009-06-17 Pierre Muller <muller@ics.u-strasbg.fr>
322 Pedro Alves <pedro@codesourcery.com>
323
324 * infcmd.c (post_create_inferior): Call breakpoint_re_set after target
325 is pushed for watchpoint promotion to hardware watchpoint.
326
327 2009-06-16 Paul Pluzhnikov <ppluzhnikov@google.com>
328
329 * dwarf2read.c (dwarf_info_section, dwarf_abbrev_section)
330 (dwarf_line_section, dwarf_pubnames_section, dwarf_aranges_section)
331 (dwarf_loc_section, dwarf_macinfo_section, dwarf_str_section)
332 (dwarf_ranges_section, dwarf_frame_section)
333 (dwarf_eh_frame_section): Removed.
334 (dwarf2_resize_section): Likewise.
335 (dwarf2_read_section): Now static, use bfd_mmap() if possible.
336 (dwarf2_get_section_info): New function.
337 (munmap_section_buffer): Likewise.
338 (dwarf2_per_objfile_cleanup): Likewise.
339 (section_is_p): Signature change.
340 * dwarf2-frame.c (dwarf2_build_frame_info): Use
341 dwarf2_get_section_info instead of dwarf2_read_section.
342
343 2009-06-16 Paul Pluzhnikov <ppluzhnikov@google.com>
344
345 * solib.c (symbol_add_stub): New FLAGS parameter.
346 (solib_read_symbols): FROM_TTY -> FLAGS, call symbol_add_stub
347 directly.
348 (solib_add): Defer breakpoint_re_set until after all solibs.
349 * bsd-uthread.c (bsd_uthread_solib_loaded): Adjust.
350 * rs6000-nat.c (objfile_symbol_add): Adjust.
351 * symfile.c (syms_from_objfile): Merge parameters into ADD_FLAGS.
352 (new_symfile_objfile): Likewise.
353 (symbol_file_add_with_addrs_or_offsets): Likewise.
354 (symbol_file_add_from_bfd): Likewise.
355 (symbol_file_add): Likewise.
356 * symfile.h (enum symfile_add_flags): New. Adjust prototypes.
357 * symfile-mem.c (symbol_file_add_from_memory): Adjust.
358 * windows-nat.c (safe_symbol_file_add_stub): Adjust.
359 * machoread.c (macho_oso_symfile, macho_symfile_read): Adjust.
360
361 2009-06-16 Keith Seitz <keiths@redhat.com>
362
363 * linespec.c (collect_methods): Delete.
364 (add_matching_methods): Reove destructor special case.
365 (find_method): Call find_methods directly instead of
366 collect_methods.
367 * valops.c (value_struct_elt): Remove destructor
368 special cases.
369 (check_field): Likewise.
370 (value_struct_elt_for_reference): Likewise.
371 (destructor_name_p): Remove misleading comment about dtors
372 being "special cases".
373 * gdbtypes.h (get_destructor_fn_field): Remove. No longer needed.
374 * gdbtypes.c (get_destructor_fn_field): Likewise.
375
376 2009-06-16 Pedro Alves <pedro@codesourcery.com>
377
378 * mi/mi-main.c (mi_cmd_data_read_memory): Dispatch
379 TARGET_OJECT_MEMORY reads to the topmost target, not to the
380 flattened current_target.
381
382 2009-06-16 Tristan Gingold <gingold@adacore.com>
383
384 * avr-tdep.c (struct gdbarch_tdep): Replace the unused field with
385 call_length field.
386 (avr_register_name): Add const to register_names.
387 (avr_scan_arg_moves): Move inside avr_scan_prologue.
388 (avr_scan_prologue): Add pc_end argument.
389 Only read prologue bytes that can be read.
390 Limit the scan to the known prologue length.
391 Makes pattern variables static and const.
392 Fix indentation.
393 (avr_skip_prologue): Pass func_end argument to avr_scan_prologue.
394 Fix indentation.
395 (avr_breakpoint_from_pc): Constify avr_break_insn.
396 (avr_extract_return_value): Fix function comment.
397 (avr_frame_unwind_cache): Fix GNU style violations.
398 Pass current_pc argument to avr_scan_prologue to stop prologue
399 analysis to the current pc. This fixes the bug with the 'next'
400 command.
401 Correctly set the SP register of the previous frame (use call_length).
402 (avr_frame_prev_register): Fix indentation.
403 Correctly read PC from the stack on avr6 architectures.
404 (avr_push_dummy_call): Fix indentation.
405 (avr_gdbarch_init): Set call_length according to the architecture.
406
407 2009-06-15 Phil Muldoon <pmuldoon@redhat.com>
408
409 * infcall.c (show_unwind_on_terminating_exception_p): New
410 function.
411 (call_function_by_hand): Create breakpoint and clean-up call for
412 std::terminate.breakpoint. Add unwind_on_terminating_exception_p
413 gate. Pop frame on breakpoint hit.
414 (_initialize_infcall): Add add_setshow_boolean_cmd for
415 unwind-on-terminating-exception.
416
417 2009-06-12 Kevin Buettner <kevinb@redhat.com>
418
419 * dwarf2read.c (dwarf2_psymtab_to_symtab): Propagate
420 `has_section_at_zero' flag from stripped objfile to separate,
421 debug info only, objfile.
422
423 2009-06-12 Pedro Alves <pedro@codesourcery.com>
424
425 * exec.h (section_table_xfer_memory_partial): Improve description,
426 mention SECTION_NAME.
427 * exec.c (section_table_xfer_memory_partial): Remove stale
428 description.
429
430 2009-06-11 Aleksandar Ristovski <aristovski@qnx.com>
431
432 * nto-tdep.h (nto_generic_supply_gpregset)
433 (nto_generic_supply_fpregset, nto_generic_supply_altregset): Remove.
434 * nto-tdep.c (nto_generic_supply_gpregset)
435 (nto_generic_supply_fpregset, nto_generic_supply_altregset): Remove.
436
437 2009-06-11 Aleksandar Ristovski <aristovski@qnx.com>
438
439 * i386-nto-tdep.c (I386_NTO_SIGCONTEXT_OFFSET): Remove define.
440 (i386nto_sigcontext_addr): Change the way context address is calculated.
441 (i386nto_init_abi): Remove usage of deprecated sc_reg_offset and
442 sc_sp_offset and set sc_reg_offset and sc_num_regs.
443
444 2009-06-11 Aleksandar Ristovski <aristovski@qnx.com>
445
446 * i386-nto-tdep.c (i386_nto_target): Remove definition.
447 (init_i386nto_ops): Use macros to set fields to global
448 current_nto_target directly.
449 (i386nto_init_abi): Remove unused nto_set_target call.
450 * nto-tdep.h (nto_set_target): Remove unused declaration.
451 * nto-tdep.c (nto_set_target): Remove unused function.
452
453 2009-06-11 Pedro Alves <pedro@codesourcery.com>
454
455 * breakpoint.c (break_command_really): Rename local variable
456 breakpoint_chain to bkpt_chain.
457
458 2009-06-11 Aleksandar Ristovski <aristovski@qnx.com>
459
460 Add support for XMM registers.
461 * i386-nto-tdep.c (i386nto_regset_id): Add case for SSE register set.
462 (i386nto_register_area): Correctly calculate offsets and sizes for
463 all supported registers.
464
465 2009-06-11 Tom Tromey <tromey@redhat.com>
466
467 * eval.c (evaluate_subexp_standard) <OP_OBJC_MSGCALL>: Remove
468 'static' from local variable definitions.
469
470 2009-06-11 Pedro Alves <pedro@codesourcery.com>
471
472 * symtab.c (append_expanded_sal): Remove unused local variables.
473
474 2009-06-11 Pedro Alves <pedro@codesourcery.com>
475
476 * infrun.c (sched_multi): New global.
477 (resume): If sched_multi is set, resume only threads of the
478 current inferior.
479 (prepare_to_proceed): Don't switch over to wait_ptid if we're
480 resuming a different inferior, and sched_multi is off.
481 (show_schedule_multiple): New.
482 (_initialize_infrun): Register new "set schedule-multiple" command.
483 * inferior.h (sched_multi): Declare.
484 * NEWS: Mention new "schedule-multiple" setting.
485
486 2009-06-11 Pedro Alves <pedro@codesourcery.com>
487
488 * varobj.c (varobj_create): Properly restore the selected frame.
489
490 2009-06-05 Tom Tromey <tromey@redhat.com>
491
492 * inferior.c (print_inferior): Make a table, not a list. Emit
493 table headers.
494
495 2009-06-10 Jonas Maebe <jonas.maebe@elis.ugent.be>
496
497 * darwin-nat.c (darwin_stop_inferior): Pass 0 as options to
498 darwin_wait (blocking wait).
499 (darwin_kill_inferior): Likewise.
500
501 2009-06-10 Pedro Alves <pedro@codesourcery.com>
502
503 * infrun.c (handle_inferior_event): Update comment around trying
504 to revert back to a stepping thread that has exited.
505
506 2009-06-10 Cary Coutant <ccoutant@google.com>
507
508 * dwarf2read.c (dwarf_decode_lines): Recognize and ignore
509 DW_LNE_set_discriminator.
510
511 2009-06-10 Pierre Muller <muller@ics.u-strasbg.fr>
512
513 * breakpoint.c: ARI fixes.
514 (create_overlay_event_breakpoint): Avoid assignment inside if statement.
515 (print_one_breakpoint_location): Likewise.
516 (create_longjmp_breakpoint): Likewise.
517 (tracepoint_save_command): Likewise
518 (bpstat_find_step_resume_breakpoint): No operator at end of line.
519 (bpstat_stop_status): Likewise.
520 (describe_other_breakpoints): Likewise.
521 (hw_watchpoint_used_count): Likewise.
522 (expand_line_sal_maybe): Likewise.
523 (break_command_really): Likewise.
524 (delete_command): Likewise.
525 (do_enable_breakpoint): Likewise.
526 (delete_trace_command): Likewise.
527 (catch_exception_command_1): Likewise and remove extra parentheses.
528
529 2009-06-08 Pierre Muller <muller@ics.u-strasbg.fr>
530
531 * breakpoint.c (_initialize_breakpoint): Remove "bu" command alias of
532 "ubreak" command that does not exist.
533
534 2009-06-08 Pierre Muller <muller@ics.u-strasbg.fr>
535
536 * cli/cli-decode.c (add_alias_cmd): Correct assertion.
537
538 2009-06-07 Pedro Alves <pedro@codesourcery.com>
539
540 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
541
542 2009-06-07 Pedro Alves <pedro@codesourcery.com>
543
544 * procfs.h: New.
545 * proc-utils.h (procfs_first_available): Don't declare here.
546 * sol-thread.c: Include procfs.h instead of sys/procfs.h and
547 proc-utils.h.
548 * procfs.c: Include procfs.h.
549 (procfs_target): Make it public. Don't register
550 procfs_can_use_hw_breakpoint here.
551 (proc_set_watchpoint): Check for PCWATCH or PIOCSWATCH being
552 defined instead of TARGET_HAS_HARDWARE_WATCHPOINTS.
553 (procfs_can_use_hw_breakpoint): Remove check of
554 TARGET_HAS_HARDWARE_WATCHPOINTS.
555 (procfs_use_watchpoints): Register procfs_can_use_hw_breakpoint
556 here.
557 (_initialize_procfs): Don't add the procfs target here.
558
559 * i386-sol2-nat.c: Include target.h and procfs.h.
560 (_initialize_amd64_sol2_nat): Install the procfs target here,
561 customized with watchpoints support.
562 * irix5-nat.c: Include target.h.
563 (_initialize_core_irix5): Rename to ...
564 (_initialize_irix5_nat): ... this. Install the procfs target
565 here, customized with watchpoints support.
566 * alpha-nat.c: Include procfs.h.
567 (_initialize_core_alpha): Rename to...
568 (_initialize_alpha_nat): ... this. Install the procfs target
569 here, customized with watchpoints support.
570 * sparc-sol2-nat.c: Include target.h and procfs.h.
571 (_initialize_sparc_sol2_nat): New.
572
573 * config/i386/nm-i386sol2.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
574 * config/sparc/nm-sol2.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
575 * config/mips/irix5.mh (NAT_FILE): Delete.
576 * config/mips/irix6.mh (NAT_FILE): Delete.
577 * config/mips/nm-irix5.h: Delete.
578
579 20009-06-07 Pedro Alves <pedro@codesourcery.com>
580
581 * auxv.c (procfs_xfer_auxv): Change type of the `object' argument
582 to enum target_object. Cleanup comments.
583 * auxv.h: Include "target.h". Cleanup comments to not mention
584 NATIVE_XFER_AUXV anymore.
585
586 2009-06-07 Pedro Alves <pedro@codesourcery.com>
587
588 * inferior.h (procfs_first_available): Move declaration to...
589 * proc-utils.h: ... here.
590 * sol-thread.c: Include procfs.h and proc-utils.h.
591
592 2009-06-07 Pedro Alves <pedro@codesourcery.com>
593
594 * inferior.h (proc_iterate_over_mappings): Delete declaration.
595 * nto-tdep.h (proc_iterate_over_mappings): Delete declaration.
596 * procfs.c (proc_iterate_over_mappings): Delete.
597
598 2009-06-07 Pedro Alves <pedro@codesourcery.com>
599
600 * target.h (struct target_ops): Make to_has_all_memory,
601 to_has_memory, to_has_stack, to_has_registers and to_has_execution
602 methods instead of variables.
603 (target_has_all_memory_1, target_has_memory_1, target_has_stack_1)
604 (target_has_registers_1, target_has_execution_1): Declare
605 functions.
606 (target_has_all_memory): Rewrite to call target_has_all_memory_1.
607 (target_has_memory): Rewrite to call target_has_memory_1.
608 (target_has_stack): Rewrite to call target_has_all_stack_1.
609 (target_has_registers): Rewrite to call target_has_registers_1.
610 (target_has_execution): Rewrite to call target_has_execution_1.
611 (default_child_has_all_memory, default_child_has_memory)
612 (default_child_has_stack, default_child_has_registers)
613 (default_child_has_execution): Declare.
614 (target_mark_running, target_mark_exited): Delete declarations.
615 * target.c (default_child_has_all_memory,
616 default_child_has_memory, default_child_has_stack,
617 default_child_has_registers, default_child_has_execution): New.
618 (target_has_all_memory_1, target_has_memory_1, target_has_stack_1,
619 target_has_registers_1, target_has_execution_1): New.
620 (add_target): Default the to_has_all_memory, to_has_all_memory,
621 to_has_memory, to_has_stack, to_has_registers and to_has_execution
622 callbacks to return 0.
623 (update_current_target): Do not inherit to_has_all_memory,
624 to_has_memory, to_has_stack, to_has_registers or to_has_execution.
625 (target_mark_running, target_mark_exited): Delete.
626 (memory_xfer_partial): Adjust.
627 (target_read_memory, target_write_memory, target_search_memory):
628 Dispatch to the the top-most target, not the flattened
629 current_target.
630 (target_info): Adjust.
631 (init_dummy_target): Install return_zero as callback for
632 to_has_all_memory, to_has_memory, to_has_stack, to_has_registers,
633 to_has_execution.
634 (set_maintenance_target_async_permitted): Use have_live_inferiors
635 instead of target_has_execution.
636 * target-memory.c (target_write_memory_blocks): Dispatch memory
637 writes to the the top-most target, not the flattened
638 current_target.
639
640 * breakpoint.c (insert_breakpoints): Don't check for
641 target_has_execution here.
642 (update_global_location_list): Check if there are live inferiors
643 to debug instead of target_has_execution.
644 * infcmd.c (kill_command, detach_command): Check if there are
645 inferiors instead of target_has_execution.
646 * inferior.h (have_live_inferiors): Declare.
647 * inferior.c (have_live_inferiors): New.
648 * infrun.c (normal_stop): Don't check for target_has_execution to
649 finish the thread states.
650 * thread.c (is_thread_state, is_stopped, is_exited, is_running)
651 (any_running, is_executing): Remove checks for
652 target_has_execution.
653 * top.c (kill_or_detach): Don't try to kill core inferiors.
654 (quit_target): Don't check for target_has_execution.
655
656 * corelow.c (core_has_memory, core_has_stack, core_has_registers):
657 New.
658 (init_core_ops): Install core_has_memory, core_has_stack and
659 core_has_registers.
660 * exec.c (exec_has_memory): New.
661 (init_exec_ops): Install exec_has_memory.
662 * remote.c (remote_add_inferior): Don't call target_mark_running.
663 (remote_start_remote): Don't call target_mark_exited or call
664 target_mark_running.
665 (remote_open_1): Use have_inferiors instead of
666 target_has_execution. Don't use target_mark_exited.
667 (init_remote_ops): Install deafult_child_has_all_memory,
668 default_child_has_memory, default_child_has_stack,
669 default_child_has_registers, default_child_has_execution.
670 * bsd-kvm.c (bsd_kvm_return_one): New.
671 (bsd_kvm_add_target): Register bsd_kvm_return_one as
672 to_has_memory, to_has_stack and to_has_registers callbacks.
673 * remote-m32r-sdi.c (m32r_return_one): New.
674 (init_m32r_ops): Register it.
675 * inf-child.c (inf_child_target): Adjust to register
676 default_child_has_all_memory, default_child_has_memory,
677 default_child_has_stack, default_child_has_registers,
678 default_child_has_execution callbacks.
679 * gnu-nat.c (init_gnu_ops): Likewise.
680 * go32-nat.c (init_go32_ops): Likewise.
681 * hpux-thread.c (init_hpux_thread_ops): Likewise.
682 * monitor.c (init_base_monitor_ops): Likewise.
683 * nto-procfs.c (init_procfs_ops): Likewise.
684 * remote-mips.c (_initialize_remote_mips): Likewise.
685 * windows-nat.c (init_windows_ops): Likewise.
686 * remote-sim.c (gdbsim_create_inferior): Don't use
687 target_mark_running or target_mark_exited.
688 (gdbsim_mourn_inferior): Don't call target_mark_exited.
689 (init_gdbsim_ops): Adjust to register
690 default_child_has_all_memory, default_child_has_memory,
691 default_child_has_stack, default_child_has_registers,
692 default_child_has_execution callbacks.
693
694 * linux-nat.c (linux_nat_xfer_partial): If reading memory, and
695 there's no inferior selected, defer to a lower stratum.
696
697 2009-06-05 Tom Tromey <tromey@redhat.com>
698
699 * varobj.c (update_dynamic_varobj_children): Wrap error text in
700 _().
701 (install_visualizer): Likewise.
702 (varobj_set_visualizer): Likewise.
703
704 2009-06-05 Marc Khouzam <marc.khouzam@ericsson.com>
705
706 * mi/mi-main.c (mi_cmd_exec_continue)
707 (mi_cmd_exec_interrupt): Adjust parsing of thread group
708 ids to current reality, where they don't have any 'p' prefix.
709
710 2009-06-05 Aleksandar Ristovski <aristovski@qnx.com>
711
712 * corelow.c (core_open): Check for core_gdbarch before calling
713 gdbarch_target_signal_from_host.
714
715 2009-06-05 Tom Tromey <tromey@redhat.com>
716
717 * c-exp.y (parse_number): Don't use K&R definition.
718 (yylex): Likewise.
719 (yyerror): Likewise.
720
721 2009-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
722
723 * varobj.c (varobj_update): Fix out of scope varobjs to not to change.
724
725 2009-06-04 Ulrich Weigand <uweigand@de.ibm.com>
726
727 * symtab.h: Rename SYMBOL_OPS to SYMBOL_COMPUTED_OPS.
728 * ax-gdb.c (gen_var_ref): Likewise.
729 * findvar.c (read_var_value, symbol_read_needs_frame): Likewise.
730 * printcmd.c (address_info): Likewise.
731 * dwarf2loc.c (dwarf_expr_frame_base): Likewise.
732 * dwarf2read.c (dwarf2_symbol_mark_computed): Likewise.
733 * symtab.h: Rename struct symbol_ops to struct symbol_computed_ops.
734 * dwarf2loc.h: Likewise.
735 * dwarf2loc.c (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Likewise.
736
737 * symtab.h: (struct symbol_register_ops): New struct definition.
738 (struct symbol): Make "ops" member a union of symbol_computed_ops and
739 symbol_register_ops callback pointers.
740 (SYMBOL_REGISTER_OPS): New macro.
741 * tracepoint.c: Include "objfiles.h".
742 (scope_info, collect_symbol): Use SYMBOL_REGISTER_OPS register_number
743 callback to retrieve register numbers.
744 * ax-gdb.c (gen_var_ref): Likewise.
745 * findvar.c (read_var_value): Likewise.
746 * printcmd.c (address_info): Likewise.
747
748 * coffread.c (coff_reg_to_regnum): New function.
749 (coff_register_funcs): New static variable.
750 (process_coff_symbol): Do not call gdbarch_sdb_reg_to_regnum.
751 Install SYMBOL_REGISTER_OPS callbacks.
752 * mdebugread.c (mdebug_reg_to_regnum): New function.
753 (mdebug_register_funcs): New static variable.
754 (parse_symbol): Do not call gdbarch_ecoff_reg_to_regnum.
755 Install SYMBOL_REGISTER_OPS callbacks.
756 * stabsread.c (stab_reg_to_regnum): New function.
757 (stab_register_funcs): New static variable.
758 (define_symbol): Do not call gdbarch_stab_reg_to_regnum.
759 Install SYMBOL_REGISTER_OPS callbacks.
760
761 2009-06-03 Doug Evans <dje@google.com>
762
763 * symfile.c (reread_symbols): Reset psymtabs_addrmap to NULL
764 after discarding its contents.
765
766 2009-06-03 Pedro Alves <pedro@codesourcery.com>
767
768 * target.c: Include "exec.h".
769 (update_current_target): Don't inherit to_sections or
770 to_sections_end.
771 (target_get_section_table): New.
772 (target_section_by_addr): Fetch the section table from the passed
773 in target.
774 (memory_xfer_partial): Handle unmapped overlay sections before
775 anything else. Get the overlay mapped address here. Adjust to
776 use section_table_xfer_memory_partial.
777 (get_target_memory): Request a TARGET_OBJECT_RAW_MEMORY object
778 instead of TARGET_OBJECT_MEMORY.
779 (target_resize_to_sections): Delete.
780 (remove_target_sections): Adjust to remove target sections from
781 `current_target_sections', and use resize_section_table.
782 * target.h (struct target_ops) <to_sections, to_sections_end>:
783 Remove fields.
784 <to_get_section_table>: New method.
785 (xfer_memory, print_section_info): Delete declarations.
786 (struct target_section_table): New type.
787 (target_get_section_table): Declare.
788 (target_resize_to_sections): Delete declaration.
789 (remove_target_sections): Delete declaration.
790 * bfd-target.c (target_bfd_xfer_partial): Get the section table
791 from to_data.
792 (target_bfd_get_section_table): New.
793 (target_bfd_xclose): Adjust.
794 (target_bfd_reopen): Store the section table in the to_data field.
795 * corelow.c (core_data): New.
796 (core_close): Adjust to release core_data and its sections.
797 (core_open): Allocate core_data, and build its target sections
798 table.
799 (deprecated_core_resize_section_table): New.
800 (core_files_info): Pass core_data to print_section_info.
801 (core_xfer_partial): Adjust to use
802 section_table_xfer_memory_partial for TARGET_OBJECT_MEMORY xfers.
803 (init_core_ops): Do not install a deprecated_xfer_memory callback
804 anymore.
805 * solib.c (update_solib_list): Add the shared library sections
806 to the current target sections table.
807 * exec.c (current_target_sections_1): New global.
808 (current_target_sections): New global.
809 (exec_close_1): New function, refactored from exec_close. Remove
810 the exec_bfd's sections from the current target sections table.
811 Adjust to not use to_sections.
812 (exec_close): Remove all target sections. Call exec_close_1.
813 (exec_file_clear): Use exec_close_1 instead of unpushing the
814 target.
815 (exec_file_attach): Likewise. Adjust to not use to_sections. Add
816 exec_bfd's sections to the current target sections table. Don't
817 push the exec_ops target here.
818 (resize_section_table): New.
819 (add_target_sections): New.
820 (remove_target_sections): Moved here.
821 (section_table_xfer_memory): Adjust to implement the xfer_partial
822 interface, and rename to...
823 (section_table_xfer_memory_partial): ... this, replacing the
824 current function of that same name.
825 (exec_get_section_table): New.
826 (exec_xfer_partial): New.
827 (xfer_memory): Delete.
828 (print_section_info): Replace the target_ops parameter by a
829 target_section_table parameter.
830 (exec_files_info, set_section_command, exec_set_section_address):
831 Adjust to use the current sections table.
832 (init_exec_ops): Do not register a deprecated_xfer_memory
833 callback. Register to_xfer_partial and to_get_section_table
834 callbacks.
835 * infrun.c (handle_inferior_event): Update comments around
836 solib_add.
837 * rs6000-nat.c (xcoff_relocate_core): Adjust to use
838 deprecated_core_resize_section_table.
839 * exec.h (resize_section_table): Declare.
840 (section_table_xfer_memory_partial): Add const char * argument.
841 (remove_target_sections): Declare here.
842 (add_target_sections): Declare.
843 (print_section_info): Declare here.
844 * gdbcore.h (deprecated_core_resize_section_table): Declare.
845
846 2009-06-03 Ulrich Weigand <uweigand@de.ibm.com>
847
848 * value.h (struct internalvar): Remove.
849 (get_internalvar_integer): Add prototype.
850 (set_internalvar_integer): Add prototype.
851 (clear_internalvar): Add prototype.
852
853 * value.c (struct internalvar): Move here. Add type member. Remove
854 endian member. Add union_internalvar member instead of value member.
855 (init_if_undefined_command): Use intvar->type.
856 (create_internalvar): Do not initialize value/endian, but type.
857 (create_internalvar_type_lazy): Call create_internalvar.
858 (value_of_internalvar): Handle host-side internalvar contents.
859 (set_internalvar_component): Likewise.
860 (set_internalvar): Likewise.
861 (get_internalvar_integer): New function.
862 (clear_internalvar): Likewise.
863 (set_internalvar_integer): Likewise.
864 (preserve_values): Handle host-side internalvar contents.
865
866 * breakpoint.c (set_breakpoint_count, set_tracepoint_count): Call
867 set_internalvar_integer instead of set_internalvar.
868 * findcmd.c (find_command): Likewise.
869 * infrun.c (handle_inferior_event): Likewise.
870 * source.c (forward_search_command, reverse_search_command): Likewise.
871 * tracepoint.c (set_traceframe_num, set_tracepoint_num,
872 set_traceframe_context): Likewise.
873
874 * printcmd.c (x_command): Call clear_internalvar instead of
875 set_internalvar.
876 * tracepoint.c (set_traceframe_context): Likewise.
877
878 * breakpoint.c (get_number_trailer): Call get_internalvar_integer
879 instead of value_of_internalvar.
880 * linespec.c (decode_dollar): Likewise.
881
882 * expprint.c (dump_subexp_body_standard): Use internalvar_name
883 instead of accessing internalvar private elements.
884 * valops.c (value_assign): Copy from original source instead of
885 accessing internalvar private elements.
886
887 2009-06-03 Ulrich Weigand <uweigand@de.ibm.com>
888
889 * scm-lang.c (builtin_type_scm): Remove.
890 (scm_lookup_name): Add GDBARCH parameter. Use it instead of
891 objfile architecture. Use per-architecture builtin_scm_type instead
892 of builtin_type_scm.
893 (evaluate_exp): Pass expression architecture to scm_lookup_name.
894
895 (scm_get_field): Add SIZE parameter. Use it instead of
896 TYPE_LENGTH (builtin_type_scm).
897
898 (build_scm_types): New function.
899 (scm_type_data): New variable.
900 (builtin_scm_type): New function.
901 (_initialize_scheme_language): Do not initialize builtin_type_scm.
902 Register build_scm_types as post-init function for scm_type_data.
903
904 * scm-exp.c (scm_lreadr): Use per-architecture builtin_scm_type
905 instead of builtin_type_scm.
906
907 * scm-lang.h (SCM_CAR, SCM_CDR): Pass SCM_SIZE to scm_get_field.
908 (scm_get_field): Add SIZE paramter.
909 (scm_scmval_print): Remove prototype.
910 (builtin_type_scm): Remove.
911 (struct builtin_scm_type): Add structure definition.
912 (builtin_scm_type): Add prototype.
913
914 * scm-valprint.c (scm_inferior_print): Add TYPE parameter. Use it
915 instead of builtin_core_addr type; do not use objfile architecture.
916 (scm_scmlist_print): Add TYPE parameter. Use it to define SCM_SIZE.
917 Pass type to scm_scmval_print.
918 (scm_ipruk): Add TYPE parameter. Use it to define SCM_SIZE.
919 (scm_scmval_print): Make static. Add TYPE parameter. Use it to
920 define SCM_SIZE. Pass type to scm_ipruk and scm_scmlist_print.
921 (scm_val_print): Pass type to scm_inferior_print and scm_scmval_print.
922
923 2009-06-03 Ulrich Weigand <uweigand@de.ibm.com>
924
925 * mdebugread.c (mdebug_type_void, mdebug_type_char, mdebug_type_short,
926 mdebug_type_int, mdebug_type_int_32, mdebug_type_int_64,
927 mdebug_type_long_32, mdebug_type_long_64, mdebug_type_long_long_64,
928 mdebug_type_unsigned_char, mdebug_type_unsigned_short,
929 mdebug_type_unsigned_int_32, mdebug_type_unsigned_int_64,
930 mdebug_type_unsigned_long_32, mdebug_type_unsigned_long_64,
931 mdebug_type_unsigned_long_long_64, mdebug_type_adr_32,
932 mdebug_type_adr_64, mdebug_type_float, mdebug_type_double,
933 mdebug_type_complex, mdebug_type_double_complex,
934 mdebug_type_fixed_dec, mdebug_type_float_dec, mdebug_type_string):
935 Remove.
936
937 (basic_type_data): New global variable.
938 (basic_type): New function.
939 (parse_type): Remove static basic type map map_bt. Call basic_type
940 to get basic types instead of using mdebug_type_ variables.
941
942 (parse_symbol): Use builtin types instead of mdebug_type_ variables.
943 (upgrade_type): Likewise.
944 (parse_procedure): Likewise.
945 (psymtab_to_symtab_1): Likewise.
946
947 (_initialize_mdebugread): Do not initialize mdebug_type_ variables.
948 Initialize basic_type_data.
949
950 2009-06-03 Ulrich Weigand <uweigand@de.ibm.com>
951
952 * dfp.h (decimal_binop): Convert LEN_RESULT to input parameter.
953 * dfp.c (promote_decimal): Remove.
954 (decimal_binop): Convert LEN_RESULT to input parameter.
955 Remove call to decimal_binop.
956 (decimal_compare): Remove call to decimal_binop.
957
958 * valarith.c (value_binop): Pass desired result type length
959 to decimal_binop.
960
961 2009-06-01 Tristan Gingold <gingold@adacore.com>
962
963 * configure.tgt (avr): Set gdb_sim to use the simulator.
964
965 2009-05-29 Doug Evans <dje@google.com>
966
967 * infrun.c (prepare_to_proceed): Document. Assert !non_stop.
968 If scheduler-locking is enabled, we're not going to be singlestepping
969 any other previously stopped thread.
970
971 2009-05-29 Pedro Alves <pedro@codesourcery.com>
972
973 * mi/mi-interp.c (mi_on_resume): Initialize `count' to 0.
974
975 2009-05-29 Eli Zaretskii <eliz@gnu.org>
976
977 * i386-tdep.c (i386_go32_init_abi): Use SVR4 register numbering
978 for stabs and COFF debug info.
979
980 2009-05-28 Pedro Alves <pedro@codesourcery.com>
981
982 * infrun.c (handle_inferior_event): When thread hoping, switch
983 inferior_ptid to the event thread before removing breakpoints from
984 the target. If not stopping, also try to revert back to a thread
985 that was doing a "next". Check if that thread still exists before
986 resuming.
987 (currently_stepping_thread): Delete and merge with ...
988 (currently_stepping): ... this.
989 (currently_stepping_callback): Rename to ...
990 (currently_stepping_or_nexting_callback): ... this, and also
991 return true if the thread was stepping over a call (has a
992 step-resume breakpoint).
993
994 2009-05-28 Tom Tromey <tromey@redhat.com>
995
996 * python/python.c (gdbpy_parameter): Rename. Fix error message.
997 (GdbMethods): Change "get_parameter" to "parameter".
998
999 2009-05-28 Pierre Muller <muller@ics.u-strasbg.fr>
1000 Paul Pluzhnikov <ppluzhnikov@google.com>
1001
1002 * configure.ac (!have_libpython): Add python-prettyprint source
1003 and object files.
1004 * configure: Regenerate.
1005 * python/python-prettyprint.c: Move "#ifdef HAVE_PYTHON" before
1006 python headers.
1007
1008 2009-05-27 Vladimir Prus <vladimir@codesourcery.com>
1009 Tom Tromey <tromey@redhat.com>
1010 Thiago Jung Bauermann <bauerman@br.ibm.com>
1011
1012 * mi/mi-main.c (mi_cmd_list_features): List "python" feature.
1013 * varobj.h (varobj_set_visualizer): Declare.
1014 (varobj_get_display_hint): Likewise.
1015 (varobj_update_result_t) <children_changed, value_installed>: New
1016 fields.
1017 * mi/mi-cmds.c (mi_cmds): Add var-set-visualizer.
1018 * mi/mi-cmds.h (mi_cmd_var_set_visualizer,
1019 mi_cmd_var_set_child_range): Declare.
1020 * mi/mi-cmd-var.c (mi_cmd_var_set_visualizer): New function.
1021 (mi_cmd_var_list_children): Emit display hint.
1022 (varobj_update_one): Emit display hint. Handle dynamic children.
1023 * python/python.c (GdbMethods): Add "default_visualizer".
1024 * python/python-internal.h (apply_varobj_pretty_printer,
1025 gdbpy_get_varobj_pretty_printer, gdbpy_get_display_hint):
1026 Declare.
1027 (gdbpy_default_visualizer): Likewise.
1028 * varobj.c: Include python.h, python-internal.h.
1029 (PyObject): New typedef.
1030 (struct varobj) <children_requested, pretty_printer>: New fields.
1031 (varobj_create): Call install_default_visualizer.
1032 (instantiate_pretty_printer): New function.
1033 (varobj_set_display_format): Update.
1034 (varobj_get_display_hint): New function.
1035 (update_dynamic_varobj_children): New function.
1036 (varobj_get_num_children): Handle dynamic children.
1037 (varobj_list_children): Likewise.
1038 (install_new_value): Likewise.
1039 (varobj_add_child): New function.
1040 (install_visualizer): Likewise.
1041 (install_default_visualizer): Likewise.
1042 (varobj_set_visualizer): Likewise.
1043 (varobj_update): Handle dynamic children.
1044 (create_child): Use create_child_with_value.
1045 (create_child_with_value): New function.
1046 (value_get_print_value): Call pretty printer. Add value_formatter
1047 argument.
1048 (c_value_of_variable): Update.
1049 (varobj_invalidate): Always free all_rootvarobj.
1050 * python/python-prettyprint.c (apply_varobj_pretty_printer): New
1051 function.
1052 (gdbpy_get_varobj_pretty_printer): Likewise.
1053 (gdbpy_default_visualizer): Likewise.
1054
1055 2009-05-27 Tom Tromey <tromey@redhat.com>
1056 Thiago Jung Bauermann <bauerman@br.ibm.com>
1057 Phil Muldoon <pmuldoon@redhat.com>
1058 Paul Pluzhnikov <ppluzhnikov@google.com>
1059 Vladimir Prus <vladimir@codesourcery.com>
1060
1061 * python/python-value.c (value_object_to_value): New function.
1062 * python/python-internal.h: Include frameobject.h.
1063 (gdbpy_children_cst, gdbpy_to_string_cst, gdbpy_display_hint_cst):
1064 Declare.
1065 (value_object_to_value): Declare.
1066 * printcmd.c (struct format_data) <raw>: New field.
1067 (last_format): Default to 0.
1068 (decode_format): Initialize val.raw. Handle /r flag.
1069 (print_command_1): Initialize fmt.raw and opts.raw.
1070 (output_command): Likewise.
1071 (x_command): Fix initialization of fmt.format. Initialize
1072 fmt.raw.
1073 (display_command): Initialize fmt.raw.
1074 (do_one_display): Set opts.raw.
1075 * python/python.c (gdbpy_to_string_cst, gdbpy_children_cst,
1076 gdbpy_display_hint_cst): New globals.
1077 (_initialize_python): Initialize them. Set gdb.pretty_printers.
1078 * cp-valprint.c: Include python.h.
1079 (cp_print_value): Call apply_val_pretty_printer.
1080 * python/python.h (apply_val_pretty_printer): Declare.
1081 * stack.c (print_this_frame_argument_p): Remove.
1082 (print_frame_args): Compute summary flag. Don't use
1083 print_this_frame_argument_p.
1084 * valprint.c: Include python.h.
1085 (user_print_options): Initialize new fields.
1086 (scalar_type_p): New function.
1087 (val_print): Handle 'raw' and 'summary' modes. Call
1088 apply_val_pretty_printer.
1089 (value_print): Handle 'raw' mode.
1090 * valprint.h (struct value_print_options) <raw, summary>: New
1091 fields.
1092 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-prettyprint.o
1093 (SUBDIR_PYTHON_SRCS): Add python-prettyprint.c.
1094 (python-prettyprint.o): New target.
1095 * python/python-prettyprint.c: New file.
1096
1097 2009-05-27 Tom Tromey <tromey@redhat.com>
1098 Paul Pluzhnikov <ppluzhnikov@google.com>
1099
1100 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Use
1101 value_address.
1102 * cli/cli-dump.c (dump_value_to_file): Use value_address.
1103 * valprint.c (common_val_print): Likewise.
1104 * v850-tdep.c (v850_push_dummy_call): Use value_address.
1105 * tracepoint.c (encode_actions): Use value_address.
1106 * printcmd.c (print_formatted): Use value_address.
1107 (x_command): Likewise.
1108 * p-valprint.c (pascal_object_print_static_field): Use
1109 value_address.
1110 * mn10300-tdep.c (mn10300_push_dummy_call): Use value_address.
1111 * mips-tdep.c (mips_eabi_push_dummy_call): Use value_address.
1112 * m32r-tdep.c (m32r_push_dummy_call): Use value_address.
1113 * jv-valprint.c (java_value_print): Use value_address.
1114 * infcall.c (find_function_addr): Use value_address.
1115 * gnu-v3-abi.c (gnuv3_rtti_type): Use value_address.
1116 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use value_address.
1117 * frv-tdep.c (frv_push_dummy_call): Use value_address.
1118 * frame.c (frame_register_unwind): Use value_address.
1119 (frame_unwind_register_value): Likewise.
1120 * darwin-nat-info.c (info_mach_region_command): Use
1121 value_address.
1122 * cp-valprint.c (cp_print_static_field): Use value_address.
1123 * c-valprint.c (c_value_print): Use value_address.
1124 * breakpoint.c (update_watchpoint): Use value_address.
1125 (can_use_hardware_watchpoint): Likewise.
1126 * ada-valprint.c (ada_val_print_1): Use value_address.
1127 (ada_value_print): Likewise.
1128 * ada-tasks.c (read_fat_string_value): Use value_address.
1129 * jv-lang.c (java_link_class_type): Use set_value_address.
1130 (java_link_class_type): Likewise.
1131 (get_java_utf8_name): Use value_address.
1132 (type_from_class): Likewise.
1133 (java_link_class_type): Likewise.
1134 * findvar.c (value_of_register): Use set_value_address.
1135 (read_var_value): Likewise.
1136 (read_var_value): Likewise.
1137 * eval.c (evaluate_subexp_standard): Use set_value_address.
1138 (evaluate_subexp_standard): Use value_address.
1139 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Use set_value_address.
1140 * ada-lang.c (coerce_unspec_val_to_type): Use set_value_address.
1141 (ada_value_primitive_packed_val): Likewise.
1142 (ensure_lval): Likewise.
1143 (thin_data_pntr): Use value_address.
1144 (desc_bounds): Likewise.
1145 (ada_value_primitive_packed_val): Likewise.
1146 (value_assign_to_component): Likewise.
1147 (ensure_lval): Likewise.
1148 (make_array_descriptor): Likewise.
1149 (ada_to_fixed_value): Likewise.
1150 (unwrap_value): Likewise.
1151 * value.c (deprecated_value_address_hack): Remove.
1152 (value_address): New function.
1153 (value_raw_address): Likewise.
1154 (set_value_address): Likewise.
1155 (value_fn_field): Use set_value_address.
1156 (value_from_contents_and_address): Likewise.
1157 (value_fn_field): Likewise.
1158 (allocate_value_lazy): Don't use VALUE_ADDRESS.
1159 (value_as_address): Use value_address.
1160 (value_static_field): Likewise.
1161 * valops.c (search_struct_field): Use set_value_address.
1162 (value_at): Likewise.
1163 (value_at_lazy): Likewise.
1164 (value_repeat): Likewise.
1165 (value_cast_structs): Use value_address.
1166 (value_cast): Likewise.
1167 (value_fetch_lazy): Likewise.
1168 (value_assign): Likewise.
1169 (value_repeat): Likewise.
1170 (address_of_variable): Likewise.
1171 (value_coerce_array): Likewise.
1172 (value_coerce_function): Likewise.
1173 (value_addr): Likewise.
1174 (search_struct_field): Likewise.
1175 (search_struct_method): Likewise.
1176 (find_method_list): Likewise.
1177 (value_struct_elt_for_reference): Likewise.
1178 (value_full_object): Likewise.
1179 * jv-valprint.c (java_value_print): Use set_value_address.
1180 * value.h (deprecated_value_address_hack): Remove.
1181 (VALUE_ADDRESS): Remove.
1182 (value_address): Declare.
1183 (value_raw_address): Declare.
1184 (set_value_address): Declare.
1185
1186 2009-05-27 Tom Tromey <tromey@redhat.com>
1187 Thiago Jung Bauermann <bauerman@br.ibm.com>
1188 Phil Muldoon <pmuldoon@redhat.com>
1189 Paul Pluzhnikov <ppluzhnikov@google.com>
1190
1191 * python/python.c (_initialize_python): Call
1192 gdbpy_initialize_types.
1193 (GdbMethods): Add "lookup_type".
1194 * python/python-value.c (value_object) <type>: New field.
1195 (valpy_dealloc): Decref type.
1196 (valpy_new): Initialize type.
1197 (valpy_get_type): New function.
1198 (value_to_value_object): Initialize type.
1199 (valpy_cast): New function.
1200 (value_object_getset): Add "type".
1201 (value_object_methods): Add "cast".
1202 * python/python-internal.h (type_to_type_object): Declare.
1203 (type_object_to_type): Likewise.
1204 (gdbpy_initialize_types): Likewise.
1205 (gdbpy_lookup_type): Declare.
1206 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-type.o.
1207 (SUBDIR_PYTHON_SRCS): Add python-type.c.
1208 (python-type.o): New target.
1209 * python/python-type.c: New file.
1210
1211 2009-05-27 Tom Tromey <tromey@redhat.com>
1212 Thiago Jung Bauermann <bauerman@br.ibm.com>
1213 Phil Muldoon <pmuldoon@redhat.com>
1214
1215 * python/python.c: Include objfiles.h, observer.h.
1216 (gdbpy_auto_load): New global.
1217 (gdbpy_current_objfile): Likewise.
1218 (GDBPY_AUTO_FILENAME): New define.
1219 (gdbpy_new_objfile): New function.
1220 (gdbpy_get_current_objfile): Likewise.
1221 (gdbpy_objfiles): Likewise.
1222 (_initialize_python): Add "maint set auto-load". Call
1223 gdbpy_initialize_objfile. Attach objfile observer.
1224 (GdbMethods): New methods current_objfile, objfiles.
1225 * python/python-objfile.c: New file.
1226 * python/python-internal.h (objfile_to_objfile_object): Declare.
1227 (objfpy_get_printers): Likewise.
1228 (gdbpy_initialize_objfile): Likewise.
1229 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-objfile.o.
1230 (SUBDIR_PYTHON_SRCS): Add python-objfile.c.
1231 (python-objfile.o): New target.
1232
1233 2009-05-27 Pedro Alves <pedro@codesourcery.com>
1234
1235 * infrun.c (follow_exec): Clear the stop_requested flag.
1236 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
1237 Add debug output.
1238
1239 2009-05-27 Aleksandar Ristovski <aristovski@qnx.com>
1240
1241 * nto-procfs.c (get_regset): Pass correct pointer.
1242
1243 2009-05-26 Doug Evans <dje@google.com>
1244
1245 * dwarf2read.c (follow_die_ref): Add comment.
1246 (dwarf2_mark_helper): Tweak comment.
1247 (dwarf2_mark): Move description to its proper place.
1248
1249 2009-05-25 Pierre Muller <muller@ics.u-strasbg.fr>
1250
1251 * procfs.c (procfs_wait): Add options parameter.
1252
1253 2009-05-24 Doug Evans <dje@google.com>
1254
1255 Global renaming of find_thread_pid to find_thread_ptid.
1256 * gdbthread.h (find_thread_ptid): Renamed from find_thread_pid.
1257 * thread.c (find_thread_ptid): Renamed from find_thread_pid.
1258 All callers updated.
1259
1260 * infrun.c (follow_fork): Initialize new step_* locals
1261 to avoid "may be used uninitialized" warnings.
1262
1263 2009-05-24 Pedro Alves <pedro@codesourcery.com>
1264
1265 * inflow.c (copy_terminal_info): Deep copy `run_terminal'.
1266
1267 2009-05-24 Pedro Alves <pedro@codesourcery.com>
1268
1269 * gdbthread.h (struct thread_info): New `pending_follow' field.
1270 * thread.c (new_thread): New function.
1271 (add_thread_silent): Use it.
1272 * breakpoint.c (internal_breakpoint_number): New global, moved
1273 from inside...
1274 (create_internal_breakpoint): ... this.
1275 (clone_momentary_breakpoint): New.
1276 * breakpoint.h (clone_momentary_breakpoint): Declare.
1277 * infrun.c (nullify_last_target_wait_ptid): Move declaration
1278 higher.
1279 (pending_follow): Delete.
1280 (follow_fork): Handle pending follow fork event here. Moved the
1281 preserving of thread stepping state here.
1282 (resume): Don't handle pending follow fork events here. Only
1283 install the inferior's terminal modes if we're about to resume it.
1284 (proceed): Handle possible pending follow fork events here.
1285 (init_wait_for_inferior): No need to clear pending_follow anymore,
1286 it's gone.
1287 (handle_inferior_event): Adjust to per-thread `pending_follow'.
1288 Call `follow_fork' to handle following the fork. If the
1289 follow-fork is cancelled, stop stepping.
1290 * linux-nat.c (linux_child_follow_fork): Adjust to per-thread
1291 `pending_follow' events. Remove code that handled preserving the
1292 thread stepping state.
1293 * inf-ptrace.c (inf_ptrace_follow_fork): Ditto.
1294 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1295
1296 2009-05-24 Pierre Muller <muller@ics.u-strasbg.fr>
1297
1298 * symfile.c (add_shared_symbol_files_command): Remove
1299 prototype and function.
1300 (_initialize _symfile): Move "add-shared-symbol-files"
1301 command and "assf" alias.
1302 * windows-nat.c (_initialize_windows_nat): to here.
1303 Change "add-shared-symbol-files" to alias.
1304
1305 * config/i386/cygwin.mh: Remove NAT_FILE.
1306 * config/i386/mingw.mh: Remove NAT_FILE.
1307 * config/i386/mingw64.mh: Remove NAT_FILE.
1308 * config/i386/nm-cygwin.h: Remove file.
1309 * config/i386/nm-cygwin64.h: Remove file.
1310
1311 2009-05-24 Hui Zhu <teawater@gmail.com>
1312
1313 * i386-linux-tdep.c (I386_LINUX_RECORD_SIZE_*,
1314 I386_LINUX_RECORD_IOCTL_*,
1315 I386_LINUX_RECORD_FCNTL_*) Removed.
1316 (i386_linux_init_abi): Change size of record from macros to
1317 numbers.
1318
1319 2009-05-24 Hui Zhu <teawater@gmail.com>
1320
1321 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_char.
1322 * linux-record.c (record_linux_system_call): Ditto.
1323 * linux-record.h (linux_record_tdep): Ditto.
1324
1325 2009-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1326
1327 Replace the savestring calls by xstrdup calls where possible.
1328 * breakpoint.c (condition_command, set_raw_breakpoint)
1329 (create_catchpoint, update_breakpoint_locations): Replace the
1330 savestring calls by xstrdup calls where possible.
1331 * buildsym.c (start_subfile, patch_subfile_names, record_debugformat)
1332 (record_producer): Likewise.
1333 * coffread.c (coff_start_symtab, complete_symtab): Likewise.
1334 * corefile.c (set_gnutarget): Likewise.
1335 * dbxread.c (add_new_header_file): Likewise.
1336 * demangle.c (set_demangling_command, set_demangling_style): Likewise.
1337 * event-top.c (push_prompt, pop_prompt, command_line_handler)
1338 (set_async_prompt): Likewise.
1339 * infcmd.c (set_inferior_io_terminal, attach_command_post_wait):
1340 Likewise.
1341 * language.c (set_language_command, _initialize_language): Likewise.
1342 * linespec.c (decode_line_2): Likewise.
1343 * rs6000-nat.c (add_vmap): Likewise.
1344 * top.c (set_prompt, init_history, init_main): Likewise.
1345 * tracepoint.c (stringify_collection_list): Likewise.
1346 * varobj.c (varobj_create): Remove variable expr_len. Replace the
1347 savestring calls by xstrdup calls where possible.
1348 (value_of_root, c_name_of_variable, c_describe_child): Replace the
1349 savestring calls by xstrdup calls where possible.
1350 * xcoffread.c (complete_symtab): Likewise.
1351 * cli/cli-script.c (build_command_line, define_command): Likewise.
1352 * cli/cli-setshow.c (do_setshow_command): Likewise.
1353
1354 2009-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1355
1356 Remove already unreachable code.
1357 * varobj.c (varobj_get_handle): Fix comment when error is called.
1358 All callers updated.
1359
1360 2009-05-23 Eli Zaretskii <eliz@gnu.org>
1361
1362 * README (`configure' options): Document GDB-specific options to
1363 `configure'.
1364
1365 * symtab.c (skip_prologue_using_lineinfo): New function.
1366 (find_function_start_sal): Use it to get to the first line of
1367 function's body that has an entry in the lineinfo table.
1368
1369 * symmisc.c (dump_symtab): Switch the current language to
1370 the language of the symtab we are dumping only if the symtab's
1371 language is neither language_auto nor language_unknown.
1372
1373 * coffread.c (coff_symtab_read): Set language_minimal as the
1374 language for the "_globals_" pseudo-file.
1375 (process_coff_symbol): Set the symbol's language to the language
1376 of current_subfile.
1377
1378 2009-05-22 Pedro Alves <pedro@codesourcery.com>
1379
1380 * target.h (struct section_table): Rename to ...
1381 (struct target_section): ... this.
1382 * exec.c: Adjust all references.
1383 * exec.h: Adjust all references.
1384 * nto-tdep.c: Adjust all references.
1385 * nto-tdep.h: Adjust all references.
1386 * ppc-linux-tdep.c: Adjust all references.
1387 * rs6000-nat.c: Adjust all references.
1388 * s390-tdep.c: Adjust all references.
1389 * solib-darwin.c: Adjust all references.
1390 * solib-frv.c: Adjust all references.
1391 * solib-irix.c: Adjust all references.
1392 * solib-null.c: Adjust all references.
1393 * solib-osf.c: Adjust all references.
1394 * solib-pa64.c: Adjust all references.
1395 * solib-som.c: Adjust all references.
1396 * solib-sunos.c: Adjust all references.
1397 * solib-svr4.c: Adjust all references.
1398 * solib-target.c: Adjust all references.
1399 * solib.c: Adjust all references.
1400 * solist.h: Adjust all references.
1401 * symfile.c: Adjust all references.
1402 * symfile.h: Adjust all references.
1403 * target.c: Adjust all references.
1404
1405 2009-05-22 Hui Zhu <teawater@gmail.com>
1406
1407 Add sys_fcntl argument interfaces to linux_record_tdep.
1408
1409 * linux-record.h (linux_record_tdep): Add fcntl_F_GETLK,
1410 fcntl_F_GETLK64, fcntl_F_SETLK64 and fcntl_F_SETLKW64 to be
1411 interfaces.
1412 * i386-linux-tdep.c (I386_LINUX_RECORD_FCNTL_F_GETLK,
1413 I386_LINUX_RECORD_FCNTL_F_GETLK64,
1414 I386_LINUX_RECORD_FCNTL_F_SETLK64,
1415 I386_LINUX_RECORD_FCNTL_F_SETLKW64): New macros. The values
1416 of I386 Linux sys_fcntl arguments.
1417 (i386_linux_init_abi): Set macros values to linux_record_tdep.
1418 * linux-record.c (record_linux_system_call): Change to use
1419 the interface in linux_record_tdep in sys_fcntl and
1420 sys_fcntl64.
1421
1422 * linux-record.c (record_linux_system_call): Fix the process
1423 record build error about type in CYGWIN.
1424
1425 2009-05-22 Pedro Alves <pedro@codesourcery.com>
1426
1427 * inflow.c (kill_command): Delete left over static declaration.
1428
1429 2009-05-22 Pedro Alves <pedro@codesourcery.com>
1430
1431 * bfd-target.c: Don't include gdb_assert.h or gdb_string.h.
1432 Include exec.h.
1433 (struct section_closure): Delete.
1434 (add_to_section_table): Delete.
1435 (build_target_sections_from_bfd): Delete.
1436 (target_bfd_xfer_partial): Use section_table_xfer_memory_partial.
1437 (target_bfd_reopen): Use build_section_table.
1438 * exec.c (xfer_memory): Move most code except for overlay
1439 debugging support from here...
1440 (section_table_xfer_memory): ... to this new function.
1441 (section_table_xfer_memory_partial): New.
1442 * exec.h (section_table_xfer_memory_partial): Declare.
1443 * bfd-target.h (build_target_sections_from_bfd): Delete
1444 declaration.
1445
1446 2009-05-22 Pedro Alves <pedro@codesourcery.com>
1447
1448 * remote.c (compare_sections_command): Don't declare exec_bfd.
1449 * tracepoint.c: Include "gdbcore.h".
1450 (remote_set_transparent_ranges): Don't declare exec_bfd.
1451
1452 2009-05-21 Pedro Alves <pedro@codesourcery.com>
1453
1454 * aix-thread.c (init_aix_thread_ops): Whitespace.
1455
1456 2009-05-21 Pedro Alves <pedro@codesourcery.com>
1457
1458 * dec-thread.c (dec_thread_wait): Add options parameter. Use it
1459 to call the to_wait method in the target beneath.
1460 * remote-m32r-sdi.c (m32r_wait): Add options parameter.
1461
1462 2009-05-21 Joel Brobecker <brobecker@adacore.com>
1463
1464 * aix-thread.c (aix_thread_wait): Add options parameter. Use it
1465 to call the to_wait method in the target_beneath.
1466
1467 2009-05-21 Pedro Alves <pedro@codesourcery.com>
1468
1469 * linux-nat.c (linux_nat_terminal_inferior)
1470 (linux_nat_terminal_ours): Don't check sync_execution.
1471 * remote.c (remote_terminal_inferior, remote_terminal_ours):
1472 Don't check sync_execution. Update comments.
1473 * target.c (target_terminal_inferior): New.
1474 * target.h (target_terminal_inferior): Delete macro, and declare
1475 as function.
1476 * event-top.c (async_disable_stdin): Make idempotent. Don't give
1477 the target the terminal here.
1478 * inflow.c (terminal_ours_1): Don't return early without setting
1479 `terminal_is_ours'.
1480
1481 2009-05-21 Pedro Alves <pedro@codesourcery.com>
1482
1483 * target.h (TARGET_WNOHANG): New.
1484 * target.c (target_wait): Add `options' argument. Adjust.
1485 (struct target_ops) <to_wait>: Add `options' argument.
1486 (target_wait): Add `options' argument.
1487 * infrun.c (wait_for_inferior): Pass 0 as options to
1488 target_wait (blocking wait).
1489 (fetch_inferior_event): Pass TARGET_WNOHANG as options to
1490 target_wait.
1491 * fork-child.c (startup_inferior): Pass 0 as options to
1492 target_wait (blocking wait).
1493 * linux-nat.c (linux_nat_create_inferior): Remove async masking.
1494 (linux_nat_wait_1): Add `target_options' argument. Use it instead
1495 of checking on target_can_async_p.
1496 (linux_nat_wait): Add `target_options' argument. Adjust.
1497 * remote.c (remote_wait_ns): Add `options' argument. Adjust to
1498 check on TARGET_WNOWAIT instead of checking on remote_is_async_p.
1499 (remote_wait_as): Add `options' argument. Adjust to check on
1500 TARGET_WNOWAIT instead of checking on remote_is_async_p. If doing
1501 a blocking wait, keep waiting until an interesting event comes
1502 out.
1503 (remote_wait): Add `options' argument. Don't loop here if the
1504 target is in async mode, and a blocking wait has been requested.
1505
1506 * top.c (deprecated_target_wait_hook): Add `options' argument.
1507 * linux-thread-db.c (thread_db_wait): Add `options' argument, and
1508 pass it down to the layer beneath.
1509 * inf-ptrace.c (inf_ptrace_wait): Add `options' argument.
1510 * record.c (record_beneath_to_wait): Add `options' argument.
1511 (record_wait): Add `options' argument, and pass it down to the
1512 layer beneath.
1513 * bsd-uthread.c (bsd_uthread_wait): Add `options' argument.
1514 * darwin-nat.c (darwin_wait): Likewise.
1515 * defs.h (deprecated_target_wait_hook): Likewise.
1516 * gnu-nat.c (gnu_wait): Add `options' argument.
1517 * go32-nat.c (go32_wait): Likewise.
1518 * hpux-thread.c (hpux_thread_wait): Add `options' argument, and
1519 pass it down to the layer beneath.
1520 * inf-ttrace.c (inf_ttrace_wait): Add `options' argument.
1521 * monitor.c (monitor_wait): Likewise.
1522 * nto-procfs.c (procfs_wait): Likewise.
1523 * remote-mips.c (mips_wait): Add `options' argument.
1524 * remote-sim.c (gdbsim_wait): Likewise.
1525 * rs6000-nat.c (rs6000_wait): Add `options' argument.
1526 * sol-thread.c (sol_thread_wait): Add `options' argument, and pass
1527 it down to the layer beneath.
1528 * spu-linux-nat.c (spu_child_wait): Add `options' argument.
1529 * windows-nat.c (windows_wait): Likewise.
1530 * tui/tui-hooks.c (tui_target_wait_hook): Likewise. Adjust.
1531
1532 2009-05-21 Pedro Alves <pedro@codesourcery.com>
1533
1534 * mi/mi-interp.c (mi_on_resume): Account for whole process
1535 resumes.
1536
1537 2009-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1538
1539 * m2-exp.y (MAX_FUNC): Fix trailing UNOP_MAX.
1540
1541 2009-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1542
1543 * dwarf2read.c (set_cu_language): Recognize also DW_LANG_C99.
1544
1545 2009-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1546
1547 Fix parsing DW_AT_const_value using DW_FORM_string.
1548 * dwarf2read.c (dwarf2_const_value <DW_FORM_string>): New.
1549
1550 2009-05-20 Joel Brobecker <brobecker@adacore.com>
1551
1552 * aix-thread.c (giter_count): Do not count the main thread.
1553 (giter_accum): Do not include the main thread.
1554
1555 2009-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1556
1557 Remove the PROT parameter from openp.
1558 * source.c (openp): Remove the parameter PROT. Assertion check MODE.
1559 defs.h (openp): Update the prototype.
1560 Update all the openp callers.
1561
1562 2009-05-19 Pedro Alves <pedro@codesourcery.com>
1563
1564 * inflow.c (kill_command): Moved to infcmd.c.
1565 (_initialize_inflow): Don't add the "kill" command or clear
1566 inferior_ptid here.
1567 * infcmd.c (kill_command): Moved here from inflow.c.
1568 (_initialize_infcmd): Add the "kill" command here.
1569
1570 2009-05-19 Pedro Alves <pedro@codesourcery.com>
1571
1572 * fork-child.c: Don't include frame.h. Include terminal.h.
1573 (fork_inferior): Call new_tty_postfork after forking adn adding
1574 the child to the inferior list.
1575 * inferior.h (new_tty_prefork, gdb_has_a_terminal): Don't declare
1576 here.
1577 * inflow.c (struct terminal_info): Remove const qualifier from
1578 `run_terminal' field.
1579 (inferior_thisrun_terminal): Tweak comment.
1580 (inflow_inferior_exit): Release the `run_terminal' field.
1581 (copy_terminal_info): New function.
1582 (new_tty_postfork): New function.
1583 * terminal.h (new_tty_prefork, new_tty, new_tty_postfork,
1584 (copy_terminal_info, gdb_has_a_terminal, gdb_setpgid): Declare.
1585 * inf-ptrace.c: Include terminal.h.
1586 (inf_ptrace_follow_fork): Copy the parent's terminal info to the
1587 child.
1588 * linux-nat.c: Include terminal.h.
1589 (linux_child_follow_fork): Copy the parent's terminal info to the
1590 child.
1591 * inf-ttrace.c: Include terminal.h.
1592 (inf_ttrace_follow_fork): Copy the parent's terminal info to the
1593 child.
1594
1595 2009-05-19 Pedro Alves <pedro@codesourcery.com>
1596
1597 * breakpoint.c (insert_breakpoints, breakpoint_init_inferior)
1598 (update_global_location_list): Use gdbarch_has_global_breakpoints
1599 instead of gdbarch_has_global_solist and
1600 target_supports_multi_process.
1601 * dicos-tdep.c (dicos_init_abi): Set
1602 gdbarch_has_global_breakpoints.
1603 * gdbarch.sh (has_global_solist): Update comment.
1604 (has_global_breakpoints): New.
1605 * remote.c (remote_start_remote): Use
1606 gdbarch_has_global_breakpoints instead of
1607 gdbarch_has_global_solist.
1608 * target.c (target_detach): Use gdbarch_has_global_breakpoints
1609 instead of gdbarch_has_global_solist.
1610 * infcmd.c (attach_command): Use gdbarch_has_global_solist instead
1611 of target_supports_multi_process.
1612
1613 2009-05-18 Paul Pluzhnikov <ppluzhnikov@google.com>
1614
1615 * objc-lang.c (find_methods): Plug a small memory leak.
1616
1617 2009-05-18 Pedro Alves <pedro@codesourcery.com>
1618
1619 * solib-svr4.c: Include observer.h.
1620 (debug_base, debug_loader_offset_p, debug_loader_offset)
1621 (debug_loader_name, main_lm_addr): Move these globals...
1622 (struct svr4_info): ... into this new structure.
1623 (svr4_info_p): New typedef.
1624 (svr4_info): New global.
1625 (get_svr4_info, remove_svr4_info, solib_svr4_inferior_exit): New
1626 functions.
1627 (locate_base, solib_svr4_r_map, solib_svr4_r_brk)
1628 (solib_svr4_r_ldsomap): Add svr4_info argument. Adjust to
1629 per-inferior svr4.
1630 (open_symbol_file_object): Adjust to per-inferior svr4.
1631 (svr4_default_sos, svr4_current_sos, svr4_fetch_objfile_link_map):
1632 Ditto.
1633 (enable_break): Add svr4_info argument. Adjust to per-inferior
1634 svr4.
1635 (enable_break, svr4_solib_create_inferior_hook, svr4_clear_solib):
1636 Adjust to per-inferior svr4.
1637 (_initialize_svr4_solib): Install the solib_svr4_inferior_exit
1638 observer.
1639
1640 2009-05-18 Pedro Alves <pedro@codesourcery.com>
1641
1642 * linux-nat.h (linux_proc_get_tgid): Declare.
1643 * linux-nat.c (linux_proc_get_tgid): New.
1644 * linux-thread-db.c (struct thread_db_info): New field
1645 `need_stale_parent_threads_check'.
1646 (add_thread_db_info): Set it.
1647 (find_new_threads_callback): Ignore stale fork parent threads.
1648 (thread_db_resume): New.
1649 (init_thread_db_ops): Install thread_db_resume.
1650
1651 2009-05-18 Pedro Alves <pedro@codesourcery.com>
1652
1653 * fork-child.c (fork_inferior): Only reset the thread list if this
1654 is the first inferior.
1655 (startup_inferior): If the target support multi-process, tell it
1656 to resume only the new process.
1657 * linux-nat.c (num_lwps): Delete global.
1658 (purge_lwp_list): New function.
1659 (num_lwps): New function.
1660 (add_lwp, delete_lwp): Adjust.
1661 (ptid_match): New.
1662 (iterate_over_lwps): Add filter argument. Handle it.
1663 (linux_nat_attach): Remove FIXME note.
1664 (linux_nat_detach): Adjust to iterate over threads of the inferior
1665 we're detaching from. Adjust to num_lwps being a function. Don't
1666 assume the head of the lwp list is the main thread of the process
1667 we're detaching from. Don't destroy the LWP list.
1668 (resume_callback): Add debug output.
1669 (linux_nat_resume): Handle resuming a single inferior. Allow a
1670 wildcard resume in non-stop mode.
1671 (linux_handle_extended_wait): Don't assume inferior_ptid is the
1672 correct inferior of the parent LWP.
1673 (status_callback): Also check lp->waitstatus.
1674 (select_event_lwp): Add new filter parameter. Handle it.
1675 (linux_nat_filter_event): Adjust to num_lwps being a function.
1676 (linux_nat_wait_1): When adding the first lwp of the inferior, use
1677 an is_lwp check instead of checking for the number of lwps.
1678 (linux_nat_wait_1): Handle waiting for a specific tgid. Handle
1679 pending process exit statuses.
1680 (linux_nat_mourn_inferior): Don't destroy all the LWP info.
1681 Instead delete LWPs of the inferior that we're mourning. Don't
1682 unregister from the event loop here.
1683 (linux_nat_pid_to_str): Use `num_lwps'.
1684 (linux_nat_make_corefile_notes): Adjust to walk over lwps of a
1685 single inferior.
1686 (linux_nat_is_async_p): Check if async was masked out.
1687 (linux_multi_process): New global.
1688 (linux_nat_supports_multi_process): New.
1689 (linux_nat_stop_lwp): Remove LWP filtering. It is done by the
1690 caller.
1691 (linux_nat_stop): Adjust to make iterate_over_lwps itself do the
1692 LWP filtering.
1693 (linux_nat_close): New.
1694 (linux_nat_add_target): Register linux_nat_close and
1695 linux_nat_supports_multi_process.
1696 * linux-nat.h (iterate_over_lwps): Add filter argument.
1697 * linux-thread-db.c (thread_db_handle): Delete.
1698 (proc_handle, thread_agent, td_init_p, td_ta_new_p)
1699 (td_ta_map_id2thr_p, td_ta_map_lwp2thr_p, td_ta_thr_iter_p)
1700 (td_ta_event_addr_p, td_ta_set_event_p, td_ta_event_getmsg_p)
1701 (td_thr_validate_p, td_thr_get_info_p, td_thr_event_enable_p)
1702 (td_thr_tls_get_addr_p, td_create_bp_addr, td_death_bp_addr): No
1703 longer globals, moved to...
1704 (struct thread_db_info): ... this new structure.
1705 (thread_db_list): New.
1706 (add_thread_db_info, get_thread_db_info, delete_thread_db_info):
1707 New.
1708 (have_threads_callback): Filter out threads of all inferiors but
1709 the one specified by the ARGS argument.
1710 (have_threads): Add ptid argument specifying the inferior we're
1711 interested in. Handle it.
1712 (struct thread_get_info_inout): New.
1713 (thread_get_info_callback, thread_from_lwp): Adjust to use it.
1714 (thread_db_attach_lwp): Check that inferior of the passed in
1715 thread is using thread-db. Adjust.
1716 (enable_thread_event): Remove thread_agent parameter. Instead,
1717 get it from the per-inferior thread-db info.
1718 (dladdr_to_soname): Move higher up.
1719 (enable_thread_event_reporting): Adjust to use per-inferior
1720 thread-db info.
1721 (try_thread_db_load_1): Replace `handle' parameter by a
1722 thread_db_info parameter. Adjust to use per-inferior thread-db
1723 info.
1724 (try_thread_db_load): Adjust to use per-inferior thread-db info.
1725 (thread_db_load, disable_thread_event_reporting): Ditto.
1726 (check_for_thread_db): Remove conditional reporting of which
1727 libthread_db is in use.
1728 (thread_db_new_objfile): Add comment about inferior_ptid.
1729 (attach_thread): Adjust to use per-inferior thread-db info.
1730 (thread_db_detach): Adjust to use per-inferior thread-db info.
1731 Remove thread event breakpoints of the current inferior. Only
1732 unpush the thread-db target if there are no more processes using
1733 it.
1734 (check_event): Adjust to use per-inferior thread-db info.
1735 (thread_db_wait): Adjust to use per-inferior thread-db info. Only
1736 unpush the thread-db target if there are no more processes using
1737 it.
1738 (thread_db_mourn_inferior): Adjust to use per-inferior thread-db
1739 info. Mark breakpoints of the current inferior out before
1740 deleting them. Only unpush the thread-db target if there are no
1741 more processes using it.
1742 (find_new_threads_callback): Adjust to use per-inferior thread_db
1743 info.
1744 (thread_db_find_new_threads_1): Add new ptid argument. Adjust to
1745 use per-inferior thread-db info.
1746 (thread_db_find_new_threads): Adjust to use per-inferior thread-db
1747 info.
1748 (thread_db_get_thread_local_address): Adjust.
1749 (thread_db_get_ada_task_ptid): Adjust.
1750 * inf-ptrace.c (inf_ptrace_mourn_inferior): Only unpush the target
1751 if there no more processes left to debug.
1752 * thread.c (set_running, set_executing): Handle resuming all
1753 threads of a single inferior.
1754 * mi/mi-interp.c (mi_output_running_pid): New.
1755 (mi_inferior_count): New.
1756 (mi_on_resume): For backwards compatibility, if resuming all
1757 threads of an inferior, and there is only one inferior, output
1758 "all".
1759
1760 2009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
1761
1762 * ada-lang.c (ada_find_any_type): Move check for primitive types ...
1763 (to_fixed_range_type): ... to here.
1764
1765 2009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
1766
1767 * ada-lang.c (desc_data_type): Remove, replace by ...
1768 (desc_data_target_type): ... this.
1769 (thin_data_pntr): Use desc_data_target_type instead of desc_data_type.
1770 (ada_is_array_descriptor_type): Likewise.
1771 (ada_type_of_array): Likewise.
1772 (ada_coerce_to_simple_array_type): Likewise.
1773 (ada_array_element_type): Likewise.
1774
1775 2009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
1776
1777 * ada-valprint.c (ada_val_print_1): Use val_print_string to print
1778 result of ada_vax_float_print_function inferior call.
1779
1780 2009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
1781
1782 * ada-lang.c (ada_coerce_to_simple_array_type): Reimplement to
1783 avoid creating a dummy value.
1784
1785 2009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
1786
1787 * p-valprint.c (pascal_val_print): Use extract_typed_address
1788 to extract reference value.
1789
1790 2009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
1791
1792 * doublest.c (NAN): Remove unused define.
1793 (extract_floating_by_length, deprecated_extract_floating): Remove.
1794 (store_floating_by_length, deprecated_store_floating): Remove.
1795 (extract_typed_floating): Do not call extract_floating_by_length.
1796 (store_typed_floating): Do not call store_floating_by_length.
1797 (convert_typed_floating): Remove redundant assertions.
1798 * doublest.h (deprecated_extract_floating): Remove.
1799 (deprecated_store_floating): Remove.
1800 * sh64-tdep.c (sh64_register_convert_to_raw): Call
1801 extract_typed_floating instead of deprecated_extract_floating.
1802
1803 2009-05-18 Jon Beniston <jon@beniston.com>
1804
1805 * MAINTAINERS: Add lm32 target.
1806 * Makefile.in: Add lm32 dependencies.
1807 * NEWS: Indicate lm32 is a new target.
1808 * configure.tgt: Add lm32 targets.
1809 * lm32-tdep.c: New file.
1810
1811 2009-05-18 Pedro Alves <pedro@codesourcery.com>
1812
1813 * corelow.c (core_open): Flush the register cache before doing
1814 anything with registers.
1815
1816 2009-05-18 Pedro Alves <pedro@codesourcery.com>
1817
1818 * inflow.h (our_process_group): Remove declaration.
1819 (inferior_process_group): Delete global variable declaration.
1820 (inferior_process_group): New function declaration.
1821 * inflow.c: Include observer.h.
1822 (inferior_ttystate, our_ttystate, tflags_inferior, tflags_ours):
1823 Delete.
1824 (struct terminal_info): New struct.
1825 (our_terminal_info): New global.
1826 (inferior_process_group): New function.
1827 (inferior_thisrun_terminal): Extend description comment.
1828 (gdb_has_a_terminal): Adjust to write to our_terminal_info fields
1829 instead of globals.
1830 (terminal_init_inferior_with_pgrp): Adjust to per-inferior
1831 terminal settings.
1832 (terminal_inferior): Ditto.
1833 (terminal_ours_1): Ditto.
1834 (inflow_new_inferior, inflow_inferior_exit): New functions.
1835 (child_terminal_info): Adjust to per-inferior terminal settings.
1836 (osig_set): New global.
1837 (set_sigint_trap): Adjust to per-inferior terminal settings. Set
1838 or clear `osig_set' accordingly.
1839 (clear_sigint_trap): Check `osig_set' to decide wheater to restore
1840 SIGINT handler, instead of checking the current inferior (which
1841 may be none).
1842 (_initialize_inflow): Attach inflow_new_inferior and
1843 inflow_inferior_exit to the "new_inferior" and "inferior_exit"
1844 notifications, respectively.
1845 * inferior.h (struct terminal_info): Forward declare.
1846 (struct inferior): Add `terminal_info' field.
1847 * inferior.c (delete_inferior_1): Notify the inferior_exit
1848 observers before removing the inferior from the lists and deleting
1849 it.
1850 * inf-ptrace.c (inf_ptrace_stop): `inferior_process_group' is now
1851 a function instead of a variable. Adjust.
1852 * procfs.c (procfs_stop): Ditto.
1853
1854 2009-05-17 Pedro Alves <pedro@codesourcery.com>
1855
1856 * infrun.c (handle_inferior_event): When handling a
1857 TARGET_WAITKIND_FORKED, detach breakpoints from the fork child
1858 immediatelly.
1859 * linux-nat.c (linux_child_follow_fork): Only detach breakpoints
1860 from the child if vforking.
1861 * inf-ptrace.c (inf_ptrace_follow_fork): No need to detach
1862 breakpoints from the child here.
1863
1864 2009-05-17 Pedro Alves <pedro@codesourcery.com>
1865
1866 * infrun.c (pending_follow): Remove execd_pathname member.
1867 (resume): No longer handle TARGET_WAITKIND_EXECD pending follow.
1868 (handle_inferior_event): When handling a TARGET_WAITKIND_EXECD
1869 event, don't copy `execd_pathname' to pending_follow, use the
1870 event copy instead. Release `execd_pathname' once done with
1871 handling the event.
1872
1873 * infrun.c (pending_follow): Remove mention of exec events.
1874
1875 2009-05-17 Hui Zhu <teawater@gmail.com>
1876
1877 * i386-tdep.c (i386_process_record): Make it extern.
1878 (i386_gdbarch_init): Don't call set_gdbarch_process_record
1879 here.
1880 * i386-tdep.h (i386_process_record): Declare.
1881 * i386-linux-tdep.c (i386_linux_init_abi): Call
1882 set_gdbarch_process_record.
1883
1884 2009-05-17 Vladimir Prus <vladimir@codesourcery.com>
1885
1886 Always report varobj as changed when in_scope attribute changes.
1887
1888 * varobj.c (install_new_value): If non-NULL-ness of value
1889 changed, return 1.
1890
1891 2009-05-15 Paul Pluzhnikov <ppluzhnikov@google.com>
1892
1893 * NEWS: Mention set/show libthread-db-search-path.
1894 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): New define.
1895 (LIBTHREAD_DB_SO): Moved from linux-thread-db.c
1896 * linux-thread-db.c (libthread_db_search_path): New setting.
1897 (thread_db_handle): New variable (replaces using_thread_db).
1898 (try_thread_db_load_1): New function.
1899 (try_thread_db_load, thread_db_load_search): Likewise.
1900 (dladdr_to_soname): Likewise.
1901 (thread_db_load): Iterate over possibly multiple libthread_db's.
1902 (check_for_thread_db): Attempt to load new libthread_db.
1903 (thread_db_detach, thread_db_wait): Unload libthread_db.
1904 (thread_db_mourn_inferior): Likewise.
1905 (_initialize_thread_db): Add new libthread-db-search-path option.
1906 Defer loading of libthread_db to check_for_thread_db.
1907 * solib.c (libpthread_name_p): New function.
1908 (libpthread_solib_p): Call it.
1909 * solib.h (libpthread_name_p): New prototype.
1910
1911 2009-05-15 Pierre Muller <muller@ics.u-strasbg.fr>
1912
1913 * MAINTAINERS: Update my email address.
1914
1915 2009-05-14 Paul Pluzhnikov <ppluzhnikov@google.com>
1916
1917 * breakpoint.h: Add breakpoint_re_set_objfile prototype.
1918 * breakpoint.c (create_overlay_event_breakpoint): Renamed
1919 from create_overlay_event_breakpoint_1, old
1920 create_overlay_event_breakpoint deleted.
1921 (breakpoint_re_set_objfile): Don't rescan all objfiles
1922 unnecessarily.
1923 (breakpoint_re_set): New function.
1924 * symfile.c (new_symfile_objfile): Call breakpoint_re_set_objfile
1925 instead of breakpoint_re_set.
1926 * objfiles.c (objfile_relocate): Likewise.
1927
1928 2009-05-14 Joel Brobecker <brobecker@adacore.com>
1929
1930 * gdbarch.sh: Add comment documenting the target_gdbarch global.
1931 gdbarch.h does NOT need to be regenerated as the corresponding
1932 change has already been made in a previous commit.
1933
1934 2009-05-14 Pierre Muller <muller@ics.u-strasbg.fr>
1935
1936 Remove all i386 debug register low level macros in config nm files.
1937 (I386_DR_LOW_SET_ADDR, I386_DR_LOW_RESET_ADDR): Remove.
1938 (I386_DR_LOW_GET_STATUS, I386_DR_LOW_SET_CONTROL): Remove.
1939 (I386_USE_GENERIC_WATCHPOIINTS): Remove.
1940
1941 * i386-nat.h: New file (adapted from config/i386/nm-i386.h).
1942 (struct i386_dr_low_type): New type.
1943 (i386_dr_low): New global variable.
1944 * i386-nat.c (TARGET_HAS_DR_LEN_8): Update macro.
1945 (i386_insert_aligned_watchpoint): Replace i386 dr low macros by
1946 i386_dr_low struct variable fields.
1947 (i386_remove_aligned_watchpoint): Likewise.
1948 (i386_stopped_data_address): Likewise.
1949 (i386_stopped_by_hwbp): Likewise.
1950 (show_debug_regs_command_added): New static variable.
1951 (add_show_debug_regs_command): New static function.
1952 (i386_use_watchpoints): Call add_show_debug_regs_command if not done.
1953 (i386_set_debug_register_length): New function.
1954 (_initialize_i386_nat): Delete.
1955
1956 * amd64-linux-nat.c: Include "i386-nat.h".
1957 (amd64_linux_dr_set_control): Change to static.
1958 (amd64_linux_dr_get_status): Change to static.
1959 (amd64_linux_dr_set_addr,amd64_linux_dr_reset_addr): Likewise.
1960 (_initialize_amd64_linux_nat): Set i386_dr_low variable fields.
1961
1962 * go32-nat.c: Include "i386-nat.h".
1963 (go32_set_addr): Change to static.
1964 (go32_set_dr7): Change to static. Change arg type to unisgned long.
1965 (go32_get_dr6): Change to static. Change return type to unisnged long.
1966 (init_go32_ops): Set i386_dr_low variable fields.
1967 * i386-linux-nat.c: Include "i386-nat.h".
1968 (i386_linux_dr_set_control, i386_linux_dr_get_status): Change to static.
1969 (i386_linux_dr_set_addr, i386_linux_dr_reset_addr): Idem.
1970 (_initialize_i386_linux_nat): Set i386_dr_low variable fields.
1971 * i386bsd-nat.h: Declare functions used for
1972 i386_dr_low fields in i386fbsd-nat.c.
1973 * i386fbsd-nat.c: Include "i386-nat.h".
1974 (_initialize_i386fbsd_nat): Set i386_dr_low variable fields.
1975 * windows-nat.c: Include "i386-nat.h".
1976 (cygwin_set_dr, cygwin_get_dr6, cygwin_set_dr7): Add prototypes.
1977 Change to static.
1978 (cygwin_get_dr6): Change return type to unisnged long.
1979 (cygwin_set_dr7): Change arg type to unisgned long.
1980 (init_windows_ops): Set i386_dr_low function fields.
1981
1982 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Call
1983 i386_set_debug_register_length.
1984 * i386-windows-nat.c (_initialize_i386_windows_nat): Likewise.
1985
1986 * config/i386/nm-cygwin.h: Remove all I386_* macros.
1987 * config/i386/nm-cygwin64.h: Likewise.
1988 * config/i386/nm-fbsd.h: Likewise.
1989 * config/i386/nm-linux.h: Likewise.
1990 * config/i386/nm-i386.h: Remove completely.
1991 * config/i386/nm-go32.h: Remove completely.
1992 * config/i386/nm-linux64.h: Remove completely.
1993 * config/i386/go32.mh (NAT_FILE): Remove entry.
1994 * config/i386/linux64.h (NAT_FILE): Change to config/nm-linux.h.
1995
1996 2009-05-14 Jon Beniston <jon@beniston.com>
1997
1998 * MAINTAINERS: Add Jon Beniston to write after approval list.
1999
2000 2009-05-13 Paul Pluzhnikov <ppluzhnikov@google.com>
2001
2002 * objc-lang.c (objc_objfile_data): New variable.
2003 (find_methods): Skip objfiles without Obj-C methods.
2004 (_initialize_objc_lang): New function.
2005
2006 2009-05-13 Joel Brobecker <brobecker@adacore.com>
2007
2008 * c-lang.c (print_wchar): Remove unnecessary cast.
2009
2010 2009-05-12 Jim Blandy <jimb@red-bean.com>
2011
2012 * MAINTAINERS: Remove self as m32c target maintainer.
2013
2014 2009-05-12 Pedro Alves <pedro@codesourcery.com>
2015
2016 * cli/cli-decode.c (deprecated_add_set_cmd): Delete.
2017 * command.h (deprecated_add_set_cmd): Delete declaration.
2018 * gnu-nat.c (_initialize_gnu_nat): Replace 'maint gnu-debug' with
2019 'set debug gnu-nat' and 'show debug gnu-nat'.
2020 * i386-nat.c (_initialize_i386_nat): Replace 'maint
2021 show-debug-registers' with 'maint set show-debug-registers' and
2022 'maint show show-debug-registers'.
2023 * mips-linux-nat.c (_initialize_mips_linux_nat): Replace 'maint
2024 show-debug-registers' with 'maint set show-debug-registers' and
2025 'maint show show-debug-registers'.
2026
2027 2009-05-12 Joel Brobecker <brobecker@adacore.com>
2028
2029 * c-lang.c (print_wchar): Convert w into a gdb_wchar_t before
2030 pushing it on the output obstack.
2031
2032 2009-05-11 Joel Brobecker <brobecker@adacore.com>
2033
2034 Fix internal error on breaking at a multi-locations caller source line.
2035 * breakpoint.c (parse_breakpoint_sals): Set EXPLICIT_PC for the `break'
2036 command with no parameters.
2037
2038 2009-05-11 Pedro Alves <pedro@codesourcery.com>
2039
2040 * linux-nat.c (enum sigchld_state): Delete.
2041 (linux_nat_async_events_state): Delete.
2042 (struct waitpid_result): Delete.
2043 (waitpid_queue): Delete.
2044 (queued_waitpid_1): Delete.
2045 (async_file_flush): New.
2046 (queued_waitpid, push_waitpid): Delete.
2047 (async_file_mark): New.
2048 (drain_queued_events): Delete.
2049 (my_waitpid): Remove locally queued events handling.
2050 (linux_test_for_tracefork): Upjust.
2051 (linux_child_follow_fork): Ditto.
2052 (sync_sigchld_action): Delete.
2053 (blocked_mask): Reinstate.
2054 (async_sigchld_action): Rename to...
2055 (sigchld_action): ... this.
2056 (block_child_signals): New.
2057 (restore_child_signals_mask): New.
2058 (lin_lwp_attach_lwp): Adjust.
2059 (linux_nat_create_inferior): Ditto.
2060 (linux_nat_attach): Also use lp->status in async mode.
2061 (get_pending_status): Don't use queued_waitpid.
2062 (linux_nat_detach): Don't drain locally queued events.
2063 (linux_nat_resume): Allow pending wait statuses stored lp->status
2064 in async mode. If returning early due to a pending event,
2065 re-register the event source.
2066 (stop_wait_callback): Allow pending wait statuses stored
2067 lp->status in async mode.
2068 (pipe_to_local_event_queue, local_event_queue_to_pipe): Delete.
2069 (linux_nat_wait): Rename to ...
2070 (linux_nat_wait_1): ... this. Allow pending wait statuses stored
2071 lp->status in async mode. Always add WNOHANG to the waitpid
2072 options in async mode.
2073 (linux_nat_wait): New.
2074 (kill_callback): Don't drain locally queued events.
2075 (sigchld_handler): Rewrite.
2076 (linux_nat_is_async_p, linux_nat_can_async_p): Fix comments to
2077 refer to "set target-async".
2078 (linux_nat_async_mask): If in non-stop, and re-enabling async
2079 mode, re-register the target event source in the event loop.
2080 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push)
2081 (get_pending_events, async_sigchld_handler)
2082 (linux_nat_async_events): Delete.
2083 (handle_target_event): New.
2084 (linux_nat_async_file_handler): Delete.
2085 (linux_async_pipe): New.
2086 (linux_nat_async): Only re-register in the event loop if not
2087 registered yet. Always notify the event-loop once if enabling the
2088 event source.
2089 (linux_nat_stop_lwp): Rewrite to handle pending events stored in
2090 lp->status, not in the locally queued event list.
2091 (linux_nat_stop): Don't mask out async event handling.
2092 (linux_nat_setup_async): Delete.
2093 (_initialize_linux_nat): Adjust.
2094 (lin_thread_get_thread_signals): blocked_mask is global again.
2095 Adjust.
2096
2097 2009-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
2098
2099 Unify target macros.
2100
2101 * target.h (STOPPED_BY_WATCHPOINT): Delete, replaced by ...
2102 (target_stoppped_by_watchpoint): New macro.
2103 (HAVE_STEPPABLE_WATCHPOINT): Delete, replaced by ...
2104 (target_have_steppable_watchpoint): New macro.
2105 (HAVE_CONTINUABLE_WATCHPOINT): Delete, replace by ...
2106 (target_have_continuable_watchpoint): New macro.
2107 (TARGET_CAN_USE_HARDWARE_WATCHPOINT):Delete, replaced by ...
2108 (target_can_use_hardware_watchpoint): New macro.
2109 (TARGET_REGION_OK_FOR_HW_WATCHPOINT):Delete, replaced by ...
2110 (target_region_ok_for_hw_watchpoint): New macro.
2111
2112 * breakpoint.c (update_watchpoint): Use new macros.
2113 (bpstat_alloc): Likewise.
2114 (create_breakpoint): Likewise.
2115 (watch_command_1): Likewise.
2116 (can_use_hardware_watchpoint): Likewise.
2117 (do_enable_breakpoint): Likewise.
2118 * infrun.c (handle_inferior_event): Adapt to new macros.
2119 * mips-tdep.c (mips_gdbarch_init): Update comments.
2120 * procfs.c (procfs_set_watchpoint): Update comment.
2121 (procfs_insert_watchpoint): Adapt to new macros.
2122 * remote-m32r-sdi.c (m32r_stop):
2123 * remote-mips.c (mips_remove_breakpoint):
2124 * target.c (debug_to_region_ok_for_hw_watchpoint): Update to new macros.
2125 (debug_to_stopped_by_watchpoint): Likewise.
2126
2127
2128 2009-05-10 Pierre Muller <muller@ics.u-strasbg.fr>
2129
2130 * src/gdb/target.h: Remove all tests for already defined
2131 macros. All macros defined here should not be set in config
2132 headers anymore.
2133
2134 2009-05-08 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2135
2136 * ppc-linux-nat.c (have_ptrace_getsetregs): New variable.
2137 (have_ptrace_getsetfpregs): Likewise.
2138 fetch_all_gp_regs): New function.
2139 (fetch_gp_regs): New function.
2140 (fetch_all_fp_regs): Likewise.
2141 (fetch_fp_regs): New function.
2142 (fetch_ppc_registers): Using the new methods to fetch general-
2143 purpose and floating-pointer registers.
2144 (store_all_gp_regs): New function.
2145 (store_gp_regs): Likewise.
2146 (store_all_fp_regs): New function.
2147 (store_fp_regs): Likewise.
2148 (store_ppc_registers): Using the new methods to store general-
2149 purpose and floating-pointer registers.
2150
2151 2009-05-08 Doug Evans <dje@google.com>
2152
2153 * linux-nat.c (linux_xfer_siginfo): Delete unused locals lp, n.
2154
2155 2009-05-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2156
2157 * MAINTAINERS (Write After Approval): Add self.
2158
2159 2009-05-07 Joel Brobecker <brobecker@adacore.com>
2160
2161 * gdbarch.h (target_gdbarch): Add comment documenting this global.
2162
2163 2009-05-06 Joel Brobecker <brobecker@adacore.com>
2164
2165 * acinclude.m4 (AM_ICONV): Prefer in-tree libiconv if present over
2166 system iconv.
2167 * configure: Regenerate.
2168
2169 2009-05-06 Joel Brobecker <brobecker@adacore.com>
2170
2171 * utils.c: Add include of gdb_usleep.h.
2172 (defaulted_query): Detect false EOF conditions that happen
2173 on terminals opened with the O_NONBLOCK flag when there is
2174 nothing to read.
2175
2176 2009-05-06 Pedro Alves <pedro@codesourcery.com>
2177
2178 * inferior.c (add_inferior): Move observer_notify_new_inferior
2179 call to ...
2180 (add_inferior_silent): ... here.
2181
2182 2009-05-06 Pierre Muller <muller@ics.u-strasbg.fr>
2183 Pedro Alves <pedro@codesourcery.com>
2184
2185 * procfs.c (procfs_insert_watchpoint, procfs_remove_watchpoint)
2186 (procfs_region_ok_for_hw_watchpoint, procfs_use_watchpoints): New
2187 functions.
2188 (procfs_stopped_by_watchpoint): Made static, ptid argument
2189 removed.
2190 (_initialize_procfs): Register new watchpoint related target
2191 functions.
2192 * config/i386/nm-i386sol2.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT)
2193 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT, STOPPED_BY_WATCHPOINT)
2194 (HAVE_CONTINUABLE_WATCHPOINT): Delete.
2195 (target_insert_watchpoint, target_remove_watchpoint): Delete.
2196 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Delete
2197 declarations.
2198 * config/mips/nm-irix5.h (STOPPED_BY_WATCHPOINT)
2199 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
2200 (target_insert_watchpoint, target_remove_watchpoint): Delete.
2201 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Delete
2202 declarations.
2203 * config/sparc/nm-sol2.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
2204 (HAVE_CONTINUABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT): Delete.
2205 (target_insert_watchpoint, target_remove_watchpoint): Delete.
2206 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Delete
2207 declarations.
2208
2209 2009-05-06 Hui Zhu <teawater@gmail.com>
2210
2211 * i386-tdep.c (i386_process_record): Change bzero to memset.
2212
2213 2009-05-06 Hui Zhu <teawater@gmail.com>
2214
2215 * NEWS: Add item for process record and replay.
2216
2217 2009-05-05 Maxim Grigoriev <maxim2405@gmail.com>
2218
2219 * xtensa-tdep.c (xtensa_frame_cache): Use pc instead of cache->pc.
2220
2221 2009-05-05 Ulrich Weigand <uweigand@de.ibm.com>
2222
2223 * inferior.h (read_pc, write_pc): Remove.
2224 * regcache.c (read_pc, write_pc): Remove.
2225
2226 * infrun.c (displaced_step_fixup): Use regcache_read_pc instead
2227 of read_pc.
2228 (handle_inferior_event): Use regcache_read_pc instead of read_pc
2229 when determining value of stop_pc. Replace subsequent uses of
2230 read_pc by inspecting already-retrieved stop_pc value.
2231 (keep_going): Use regcache_read_pc instead of read_pc.
2232
2233 * breakpoint.c (watchpoint_check): Use current frame architecture
2234 and PC instead of current_gdbarch and read_pc ().
2235 * tracepoint.c (set_traceframe_context): Replace PC argument
2236 with FRAME argument.
2237 (trace_start_command, finish_tfind_command): Update calls.
2238 (finish_tfind_command): Compare frame IDs to identify transitions
2239 between frames.
2240 (trace_find_pc_command): Use regcache_read_pc instead of read_pc.
2241 * rs6000-nat.c (exec_one_dummy_insn): Pass in regcache instead
2242 of gdbarch. Use regcache_read_pc and regcache_write_pc instead
2243 of read_pc and write_pc.
2244 (store_register): Make regcache argument non-const. Update call
2245 to exec_one_dummy_insn.
2246
2247 * thread.c (switch_to_thread): Use regcache_read_pc instead of read_pc.
2248 * infcmd.c (post_create_inferior): Likewise.
2249 * solib-darwin.c (darwin_solib_create_inferior_hook): Likewise.
2250 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
2251 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
2252 * solib-svr4.c (enable_break, svr4_relocate_main_executable): Likewise.
2253 * linux-fork.c (fork_load_infrun_state): Likewise.
2254 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
2255 * record.c (record_wait): Likewise.
2256 * procfs.c (procfs_wait): Likewise.
2257 * remote-mips.c (common_open, mips_wait): Likewise.
2258 * remote-m32r-sdi.c (m32r_resume): Likewise.
2259
2260 * symfile.c (generic_load): Use regcache_write_pc instead of write_pc.
2261 * monitor.c (monitor_create_inferior, monitor_load): Likewise.
2262 * m32r-rom.c (m32r_load, m32r_upload_command): Likewise.
2263 * remote-m32r-sdi.c (m32r_create_inferior, m32r_load): Likewise.
2264 * remote-mips.c (mips_create_inferior, mips_load): Likewise.
2265
2266 * solib-darwin.c: Include "regcache.h".
2267 * solib-pa64.c: Include "regcache.h".
2268 * solib-svr4.c: Include "regcache.h.".
2269
2270 * symfile.c: Do not mention read_pc or write_pc in comments.
2271 * dink32-rom.c: Likewise.
2272 * m32r-rom.c: Likewise.
2273 * mips-tdep.c: Likewise.
2274
2275 2009-05-05 Ulrich Weigand <uweigand@de.ibm.com>
2276
2277 * fork-child.c (startup_inferior): Move setting stop_pc ...
2278 * infcmd.c (post_create_inferior): ... to here.
2279
2280 2009-05-04 Michael Snyder <msnyder@vmware.com>
2281
2282 * NEWS: Add item for reverse debugging commands.
2283
2284 2009-05-04 Pedro Alves <pedro@codesourcery.com>
2285
2286 * go32-nat.c (go32_stop): Delete.
2287 (go32_kill_inferior): Rewrite to only call go32_mourn_inferior.
2288 (go32_create_inferior): Don't call go32_stop or
2289 go32_kill_inferior.
2290 (go32_mourn_inferior): Inline go32_stop and go32_kill_inferior
2291 here.
2292 (init_go32_ops): Don't register go32_stop.
2293
2294 2009-05-02 Eli Zaretskii <eliz@gnu.org>
2295
2296 * dbxread.c (read_dbx_symtab): Avoid compiler warnings for
2297 sym_name.
2298
2299 * infcall.c (find_function_addr): Avoid compiler warnings for
2300 funaddr.
2301
2302 2009-05-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2303
2304 * dictionary.c (dict_hashed_vector, dict_hashed_expandable_vector)
2305 (dict_linear_vector, dict_linear_expandable_vector): Fix a comment typo.
2306
2307 2009-05-01 Doug Evans <dje@google.com>
2308
2309 * linux-thread-db.c (thread_db_pid_to_str): Delete unused assignment
2310 to thread_info.
2311
2312 2009-05-01 Eli Zaretskii <eliz@gnu.org>
2313
2314 * record.c (_initialize_record): Reformat and clarify doc strings
2315 for stop-at-limit and insn-number-max.
2316
2317 * go32-nat.c: Add comments about dirty secrets of DJGPP debugging.
2318
2319 2009-05-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2320
2321 Make specifiable the make_function_type type memory ownership.
2322 * gdbtypes.c (make_function_type): New parameter `objfile', use it
2323 explicitely instead of TYPE-initialized removed local variable
2324 `objfile'. Describe `objfile' it in the function comment.
2325 (lookup_function_type): Update make_function_type callers.
2326 * gdbtypes.h (make_function_type): Update the prototype.
2327 * jv-lang.c (java_link_class_type): Update make_function_type callers.
2328 * dwarf2read.c (read_subroutine_type): Likewise.
2329 * stabsread.c (read_type): Likewise.
2330
2331 2009-05-01 Eli Zaretskii <eliz@gnu.org>
2332
2333 * go32-nat.c (go32_pid_to_str): Call normal_pid_to_str instead of
2334 printing a bogus "Thread <main>".
2335 (go32_thread_alive): Don't return 1 for null_ptid.
2336
2337 * i386-tdep.c (i386_go32_init_abi): Override the number of
2338 registers due to non-support of SSE.
2339
2340 2009-04-30 Anthony Green <green@moxielogic.com>
2341
2342 * configure.tgt: Link the moxie simulator in with gdb.
2343
2344 2009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
2345
2346 * elfread.c (elf_symtab_read): Don't assume .data and .rodata
2347 are present.
2348
2349 2009-04-30 Hui Zhu <teawater@gmail.com>
2350 Michael Snyder <msnyder@vmware.com>
2351
2352 I386 Linux process record and replay support.
2353
2354 * i386-linux-tdep.c (i386_linux_record_tdep): New variable.
2355 This struct has the argument for the function
2356 "record_linux_system_call".
2357 (i386_linux_intx80_sysenter_record): New function. Parse the
2358 system call instruction and call function
2359 "record_linux_system_call" to record execute log.
2360 (i386_linux_init_abi): Initialize "i386_linux_record_tdep".
2361 Set "i386_linux_intx80_sysenter_record" to
2362 "i386_intx80_record" and "i386_sysenter_record".
2363
2364 2009-04-30 Hui Zhu <teawater@gmail.com>
2365 Michael Snyder <msnyder@vmware.com>
2366
2367 I386 architecture process record and replay support.
2368
2369 * i386-tdep.c (PREFIX_REPZ, PREFIX_REPNZ, PREFIX_LOCK,
2370 PREFIX_DATA, PREFIX_ADDR): New macros. Help decode the i386
2371 instruction set.
2372 (aflag, dflag, override, modrm, mod, reg, rm, ot,
2373 i386_record_pc): New variables. Ditto.
2374 (i386_record_modrm, i386_record_lea_modrm_addr,
2375 i386_record_lea_modrm): New functions. Ditto.
2376 (i386_process_record): New function. Parse the instruction in
2377 address "addr" and record the values of registers and memory
2378 that will be changed by this instruction.
2379 (i386_gdbarch_init): Set "i386_process_record" to GDBARCH
2380 "process_record" interface.
2381 * i386-tdep.h (gdbarch_tdep): New function pointers
2382 "i386_intx80_record" and "i386_sysenter_record" that point to
2383 the function that can record "intx80" and "sysenter" execute
2384 log.
2385
2386 2009-04-30 Hui Zhu <teawater@gmail.com>
2387 Michael Snyder <msnyder@vmware.com>
2388
2389 * infrun.c (use_displaced_stepping): Return false if process
2390 record and replay target is used.
2391 (proceed): Call function "record_not_record_set" if pocess
2392 record and replay target is used.
2393
2394 2009-04-30 Hui Zhu <teawater@gmail.com>
2395 Michael Snyder <msnyder@vmware.com>
2396
2397 Linux process record and replay support.
2398
2399 * Makefile.in (ALLDEPFILES): Add linux-record.c.
2400 (ALL_TARGET_OBS): Add linux-record.o.
2401 * configure.tgt (x86_64-*-linux*): Add linux-record.o.
2402 (i[34567]86-*-linux*): Add linux-record.o.
2403 * linux-record.c, linux-record.h: New file.
2404
2405 2009-04-30 Hui Zhu <teawater@gmail.com>
2406 Michael Snyder <msnyder@vmware.com>
2407
2408 Process record and replay target.
2409
2410 * Makefile.in (SFILES): Add record.c.
2411 (COMMON_OBS): Add record.o.
2412 * record.c, record.h: New file.
2413
2414 2009-04-30 Hui Zhu <teawater@gmail.com>
2415 Michael Snyder <msnyder@vmware.com>
2416
2417 * target.h (strata): New stratum "record_stratum".
2418
2419 2009-04-30 Hui Zhu <teawater@gmail.com>
2420 Michael Snyder <msnyder@vmware.com>
2421
2422 GDBARCH interface for process record and replay.
2423
2424 * gdbarch.sh (process_record): This interface point to the
2425 function that records the inferior execute log.
2426
2427 2009-04-29 Doug Evans <dje@google.com>
2428
2429 * i386-nat.c (child_post_startup_inferior): Delete, unused.
2430
2431 2009-04-29 Pedro Alves <pedro@codesourcery.com>
2432
2433 * breakpoint.c (print_exception_catchpoint): Access `b' directly
2434 instead of `b->loc->owner'.
2435 (print_mention_exception_catchpoint): Ditto.
2436
2437 2009-04-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2438
2439 * macrocmd.c (info_macro_command): Print -Dname=value if LINE is zero.
2440
2441 2009-04-27 Tom Tromey <tromey@redhat.com>
2442
2443 * c-exp.y (yylex): Handle '[' and ']' like '(' and ')'.
2444
2445 2009-04-27 Jerome Guitton <guitton@adacore.com>
2446
2447 * symtab.c (append_exact_match_to_sals): New function, extracted
2448 from expand_line_sal.
2449 (expand_line_sal): Use append_exact_match_to_sals to append exact
2450 matches. If none found, append all best items.
2451
2452 2009-04-27 Jerome Guitton <guitton@adacore.com>
2453
2454 * main.c (captured_main): Move gdbinit lookups after gdb_init.
2455
2456 2009-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2457
2458 PR gdb/9675:
2459 * dwarf2read.c (unsigned_int_compar, inherit_abstract_dies): New.
2460 (read_func_scope): Call inherit_abstract_dies.
2461
2462 2009-04-25 Eli Zaretskii <eliz@gnu.org>
2463
2464 * Makefile.in (ALLDEPFILES): Remove duplicate entries for
2465 sparc-sol2-nat.c and sparc-sol2-tdep.c.
2466
2467 * stack.c (_initialize_stack) <disassemble-next-line>: Doc fix.
2468
2469 2009-04-24 Pierre Muller <muller@ics.u-strasbg.fr>
2470
2471 ARI change: Use "/* ARI: rule */" pattern.
2472 * utils.c: Update ARI patterns.
2473 * gdb_dirent.h: Likewise.
2474
2475 2009-04-23 Anthony Green <green@moxielogic.com>
2476
2477 * MAINTAINERS: Add moxie target.
2478 * configure.tgt: Add moxie-*-elf target.
2479 * moxie-tdep.c: New file.
2480 * moxie-tdep.h: New file.
2481
2482 2009-04-23 Joel Brobecker <brobecker@adacore.com>
2483
2484 * ada-lang.c: Remove an extra empty line. No code change.
2485
2486 2009-04-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2487
2488 Fix double free on error inserting the breakpoint instruction.
2489 * breakpoint.c (create_breakpoints): Move the
2490 update_global_location_list call to ...
2491 (break_command_really): ... here together with the second local call
2492 both unified after all the cleanups.
2493
2494 2009-04-23 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2495 Tom Tromey <tromey@redhat.com>
2496
2497 * configure, config.in: Regenerate.
2498 * configure.ac: Support for relocatable GDB datadir. Use
2499 GDB_AC_WITH_DIR. Always define TARGET_SYSTEM_ROOT_RELOCATABLE.
2500 * acinclude.m4 (GDB_AC_WITH_DIR): New defun.
2501 * top.c (init_main): Add "set data-directory".
2502 * defs.h (gdb_datadir): Declare.
2503 * main.c (gdb_datadir): New global.
2504 (captured_main): Initialize gdb_datadir. Use relocate_directory.
2505 (relocate_path): New function.
2506 (relocate_directory): Likewise.
2507 (get_init_files): Use relocate_path.
2508 (README): Mention --with-gdb-datadir.
2509
2510 2009-04-23 Joel Brobecker <brobecker@adacore.com>
2511
2512 * ada-tasks (task_command_1): Call target_find_new_threads.
2513
2514 2009-04-23 Joel Brobecker <brobecker@adacore.com>
2515
2516 * stack.c (do_gdb_disassembly): Print the exception message if an
2517 error was thrown while trying to perform the disassembly.
2518
2519 2009-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2520
2521 * varobj.c (free_variable): Replace free_current_contents by xfree.
2522
2523 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
2524
2525 * arm-linux-nat.c (fetch_register, store_register): Use
2526 ARM_CPSR_GREGNUM instead of ARM_CPSR_REGNUM.
2527 * arm-linux-tdep.c (arm_linux_supply_gregset,
2528 arm_linux_collect_gregset): Likewise.
2529 * arm-linux-tdep.h (ARM_CPSR_GREGNUM): New.
2530 * arm-tdep.h (ARM_CPSR_REGNUM): Remove.
2531
2532 2009-04-22 Hui Zhu <teawater@gmail.com>
2533
2534 * stack.c (_initialize_stack): Set the default of
2535 disassemble-next-line to off.
2536
2537 2009-04-21 Tom Tromey <tromey@redhat.com>
2538
2539 * acinclude.m4: Use AS_HELP_STRING, not AC_HELP_STRING.
2540 * configure.ac: Use AS_HELP_STRING, not AC_HELP_STRING.
2541
2542 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
2543
2544 * configure.ac: Add quotes to not lose brackets in help text.
2545 * configure: Rebuild.
2546
2547 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
2548
2549 * configure.ac: Don't postprocess Makefile in config.status.
2550 Substitute GDB_NM_FILE. Don't substitute nm_h.
2551 * Makefile.in (GDB_NM_FILE): Substitute.
2552 (TAGS): Use $(GDB_NM_FILE) instead of $(NAT_FILE).
2553 * configure: Regenerate.
2554 * gnulib/Makefile.in: Regenerate.
2555
2556 2009-04-21 Joseph Myers <joseph@codesourcery.com>
2557
2558 * configure.ac (--with-datarootdir, --with-docdir, --with-pdfdir,
2559 --with-htmldir): New.
2560 * configure: Regenerate.
2561
2562 2009-04-21 Tom Tromey <tromey@redhat.com>
2563
2564 * configure: Rebuild.
2565 * configure.ac: Use lower case for start of help strings. Clean
2566 up --with-sysroot help.
2567
2568 2009-04-21 Tom Tromey <tromey@redhat.com>
2569
2570 * configure: Rebuild.
2571 * acinclude.m4 (AM_ICONV): Use AC_HELP_STRING.
2572 * configure.ac: Use AC_HELP_STRING. Use upper case for variables
2573 in help.
2574
2575 2009-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2576
2577 ARI fix: remove "%p".
2578 * ia64-tdep.c (ia64_frame_this_id): Use host_address_to_string function.
2579 (ia64_sigtramp_frame_this_id): Ditto.
2580 (ia64_libunwind_frame_this_id): Ditto.
2581 (ia64_libunwind_sigtramp_frame_this_id): Ditto.
2582 * symmisc.c (maintenance_info_psymtabs): Ditto.
2583
2584 2009-04-21 Joseph Myers <joseph@codesourcery.com>
2585
2586 * configure.ac (--with-relocated-sources): New.
2587 * configure, config.in: Regenerate.
2588 * source.c (add_substitute_path_rule): Remove static.
2589 * source.h (add_substitute_path_rule): Declare.
2590 * main.c: Include "source.h".
2591 (captured_main): Add substitution rule if RELOC_SRCDIR.
2592
2593 2009-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2594
2595 * gnu-nat.h (proc_debug): Add missing continuation line in macro.
2596
2597 2009-04-20 David Daney <ddaney@caviumnetworks.com>
2598
2599 * NEWS: Mention MIPS/Linux hardware watchpoint support.
2600
2601 2009-04-20 David Daney <ddaney@caviumnetworks.com>
2602
2603 * mips-linux-nat.c (command.h, gdbcmd.h, gdb_assert.h): New #includes.
2604 (maint_show_dr, super_close): New variables.
2605 (super_fetch_registers, super_store_registers): Make static.
2606 (PTRACE_GET_WATCH_REGS, PTRACE_SET_WATCH_REGS, W_BIT, R_BIT, I_BIT)
2607 (W_MASK, R_MASK, I_MASK, IRW_MASK, MAX_DEBUG_REGISTER): Define.
2608 (pt_watch_style): Define new enum.
2609 (mips32_watch_regs, mips64_watch_regs, pt_watch_regs, mips_watchpoint):
2610 Define new structs.
2611 (watch_readback_valid, watch_readback, current_watches, watch_mirror):
2612 New variables.
2613 (get_irw_mask, get_reg_mask, get_num_valid, get_watchlo)
2614 (set_watchlo, get_watchhi, set_watchhi, mips_show_dr)
2615 (mips_linux_read_watch_registers, mips_linux_can_use_hw_breakpoint)
2616 (mips_linux_stopped_by_watchpoint, mips_linux_stopped_data_address)
2617 (type_to_irw, fill_mask, try_one_watch)
2618 (mips_linux_region_ok_for_hw_watchpoint, write_watchpoint_regs)
2619 (mips_linux_new_thread, populate_regs_from_watches)
2620 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
2621 (mips_linux_close): New functions.
2622 (_initialize_mips_linux_nat): Register watchpoint functions with
2623 the target_ops. Add show-debug-regs maintenance command.
2624
2625 2009-04-20 David Daney <ddaney@caviumnetworks.com>
2626
2627 * infrun.c (handle_inferior_event): Move gegisters_changed call down.
2628
2629 2009-04-19 Pedro Alves <pedro@codesourcery.com>
2630
2631 * NEWS: Mention gdbserver support for x86 Windows CE.
2632
2633 2009-04-19 Eli Zaretskii <eliz@gnu.org>
2634
2635 * config/djgpp/fnchange.lst: Fix typos.
2636
2637 Set default host and target charsets in the DJGPP port.
2638
2639 * config/djgpp/config.sed (am_cv_langinfo_codeset)
2640 (bash_cv_langinfo_codeset, ac_cv_header_nl_types_h): Set to "yes"
2641 in all configure scripts that define ac_cv_env_CPP_value.
2642
2643 * go32-nat.c (dos_codepage, nl_langinfo): New functions.
2644 Include langinfo.h.
2645
2646 * config/djgpp/nl_types.h: New file.
2647
2648 * config/djgpp/langinfo.h: New file.
2649
2650 * config/i386/go32.mh (MH_CFLAGS): Add $(srcdir)/config/djgpp.
2651
2652 2009-04-18 Carlos O'Donell <carlos@codesourcery.com>
2653
2654 * Makefile.in (MAKEHTML): Set to makeinfo --html.
2655 (MAKEHTMLFLAGS): Set to empty.
2656
2657 2009-04-18 Eli Zaretskii <eliz@gnu.org>
2658
2659 * NEWS: Mention all new set/show commands added since GDB 6.8 was
2660 released.
2661
2662 * go32-nat.c (go32_sysinfo): Check if the call to
2663 __dpmi_get_capabilities fills the buffer with information, and
2664 don't use the buffer if not.
2665
2666 2009-04-17 Tom Tromey <tromey@redhat.com>
2667
2668 * charset.c (_initialize_charset): Add special case for "646".
2669
2670 2009-04-17 Carlos O'Donell <carlos@codesourcery.com>
2671
2672 * configure.ac: AC_SUBST datarootdir, docdir, htmldir, pdfdir.
2673 * configure: Regenerate.
2674 * Makefile.in: Set datarootdir, docdir, htmldir, and pdfdir from
2675 configure substitutions.
2676 (FLAGS_TO_PASS): Add datarootdir, docdir, and htmldir.
2677
2678 2009-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
2679
2680 ARI fix: Do not use %p, replace by call to host_address_to_string
2681 for host pointers.
2682 * darwin-nat.c (darwin_xfer_partial): Apply change.
2683 * gnu-nat.c (inf_continue, gnu_xfer_memory): Ditto.
2684 * gnu-nat.h (proc_debug): Ditto.
2685 * symmisc.c (maintenance_info_symtabs): Ditto.
2686 (maintenance_info_psymtabs): Ditto.
2687 * windows-nat.c (handle_load_dll): Ditto.
2688 (handle_unload_dll, info_w32_command, handle_exception): Ditto.
2689 * xtensa-tdep.c (xtensa_unwind_pc): Ditto.
2690
2691 2009-04-17 Joseph Myers <joseph@codesourcery.com>
2692
2693 * configure.tgt (i[34567]86-*-linux*): Use 64-bit configuration if
2694 --enable-64-bit-bfd.
2695 (sparc-*-linux*): Likewise.
2696
2697 2009-04-17 Eli Zaretskii <eliz@gnu.org>
2698
2699 * go32-nat.c (go32_sysinfo): Update list of Windows versions of
2700 the NT family.
2701
2702 2009-04-16 Pedro Alves <pedro@codesourcery.com>
2703
2704 * remote.c (remote_query_attached): Fix pasto in packet_ok result
2705 checking.
2706
2707 2009-04-16 Joel Brobecker <brobecker@adacore.com>
2708
2709 * procfs.c (solib_mappings_callback, find_memory_regions_callback):
2710 Revert the previous change. Might not be correct, actually.
2711
2712 2009-04-16 Joel Brobecker <brobecker@adacore.com>
2713
2714 * ada-lang.h (ada_adjust_exception_stop, ada_print_exception_stop)
2715 (ada_get_current_task, ada_print_exception_breakpoint_nontask)
2716 (ada_print_exception_breakpoint_task, ada_reset_thread_registers):
2717 Remove declaration. These are non-existent functions.
2718
2719 2009-04-16 Joel Brobecker <brobecker@adacore.com>
2720
2721 * procfs.c (solib_mappings_callback, find_memory_regions_callback):
2722 Fix a compilation warning on mips-irix due to casting from
2723 a pointer of different size.
2724
2725 2009-04-16 Joel Brobecker <brobecker@adacore.com>
2726
2727 * ada-lang.c (symtab_for_sym): Delete.
2728 (user_select_syms): Use sym->symtab instead of calling symtab_for_sym.
2729
2730 2009-04-16 Joel Brobecker <brobecker@adacore.com>
2731
2732 * ada-lang.c (extract_string): Delete.
2733 (ada_main_name): Reimplement using target_read_string instead of
2734 extract_string.
2735
2736 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
2737
2738 * m68klinux-nat.c: Remove obsolete comment.
2739 (fetch_register, store_register): Don't call
2740 gdbarch_cannot_fetch_register or gdbarch_cannot_store_register,
2741 which are always nops here.
2742
2743 2009-04-14 Tom Tromey <tromey@redhat.com>
2744
2745 * c-lang.c (c_emit_char): Use INTERMEDIATE_ENCODING.
2746 (c_printstr): Likewise.
2747 * charset.c: Include gdb_wait.h.
2748 (make_wchar_iterator): Use INTERMEDIATE_ENCODING.
2749 (find_charset_names): Use pexecute. Handle libiconv's output.
2750 Detect errors.
2751 (_initialize_charset): Use xstrdup.
2752 * gdb_wchar.h: Check HAVE_BTOWC. Split PHONY_ICONV and wchar
2753 cases.
2754 (INTERMEDIATE_ENCODING): New define.
2755 * configure, config.in: Rebuild.
2756 * configure.ac: Check for btowc.
2757
2758 2009-04-15 Tom Tromey <tromey@redhat.com>
2759
2760 * c-lang.c (evaluate_subexp_c): Correctly handle EVAL_SKIP.
2761
2762 2009-04-15 Eli Zaretskii <eliz@gnu.org>
2763
2764 * utils.c (parse_escape): Initialize target_char to pacify GCC.
2765
2766 2009-04-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2767
2768 * c-lang.c (c_get_string): Fix xfree crash on a failed string read.
2769
2770 2009-04-14 Pierre Muller <muller@ics.u-strasbg.fr>
2771
2772 ARI fix: sprintf rule.
2773 * ada-exp.y (convert_char_literal): Replace sprintf by xsnprintf.
2774 * ada-lang.c (add_angle_brackets): Use xstrprintf.
2775 (ada_decode): Replace sprintf by xsnprintf.
2776 (find_old_style_renaming_symbol): Ditto.
2777 (ada_to_fixed_type_1, ada_enum_name): Ditto.
2778
2779
2780 2009-04-14 Joel Brobecker <brobecker@adacore.com>
2781
2782 * target.c (target_mourn_inferior): Call bfd_cache_close_all
2783 after having executed the target mourn_inferior routine.
2784
2785 2009-04-14 Eli Zaretskii <eliz@gnu.org>
2786
2787 * config/djgpp/djconfig.sh (DEPDIR): Define to "_deps", if
2788 undefined.
2789
2790 2009-04-13 David Daney <ddaney@caviumnetworks.com>
2791
2792 * infrun.c (maybe_software_singlestep): New function.
2793 (resume): Call maybe_software_singlestep.
2794 (handle_inferior_event): Same.
2795
2796 2009-04-13 Tom Tromey <tromey@redhat.com>
2797
2798 * python/python-frame.c (frapy_richcompare): Return
2799 Py_NotImplemented, not an error. Handle Py_NE as well.
2800
2801 2009-04-13 Eli Zaretskii <eliz@gnu.org>
2802
2803 * charset.c (EILSEQ): Define if not defined by system headers.
2804
2805 2009-04-11 Eli Zaretskii <eliz@gnu.org>
2806
2807 * config/djgpp/config.sed: Tweak ac_config_files in intl/configure
2808 to be consistent with renaming config.intl.in into config_intl.in.
2809
2810 * go32-nat.c (go32_attach, go32_detach): Fix prototypes to be
2811 consistent with the change from 2008-11-09.
2812
2813 2009-04-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2814
2815 * gdbtypes.c: Remove excessive parentheses at the return keywords.
2816 * varobj.c (varobj_invalidate): Fix indentation.
2817 * varobj.c (varobj_invalidate): Fix formatting text width.
2818
2819 2009-04-08 Vladimir Prus <vladimir@codesourcery.com>
2820
2821 Implement -exec-jump.
2822
2823 * mi/mi-cmds.h (mi_cmd_exec_jump): Declare.
2824 * mi/mi-main.c (mi_cmd_exec_jump): New.
2825 * mi/mi-cmds.c (mi_cmds): Register exec-jump.
2826
2827 2009-04-07 Doug Evans <dje@google.com>
2828
2829 * symfile.c (symbol_file_clear): Fix indentation.
2830
2831 2009-04-06 Mark Kettenis <kettenis@gnu.org>
2832
2833 * sparc64nbsd-nat.c (sparc64nbsd_supply_pcb): Fix comment.
2834
2835 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
2836
2837 * ppc-linux-nat.c (ppc_linux_target_wordsize): New function.
2838 (ppc_linux_auxv_parse): New function.
2839 (ppc_linux_read_description): Use ppc_linux_target_wordsize.
2840 (_initialize_ppc_linux_nat): Install ppc_linux_auxv_parse.
2841
2842 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
2843
2844 * spu-linux-nat.c (spu_bfd_open): Set filename of in-memory
2845 BFD to contents of SPU name note.
2846 (spu_symbol_file_add_from_memory): Call symbol_file_add_from_bfd
2847 with "from_tty" argument 1 instead of 0.
2848
2849 2009-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2850
2851 * dwarf2read.c
2852 (new_symbol <DW_TAG_variable> <!DW_AT_location> <DW_AT_external>):
2853 Create the symbol in local scope.
2854 * symtab.h (cu->list_in_scope <LOC_UNRESOLVED>): New comment part.
2855
2856 2009-04-02 Keith Seitz <keiths@redhat.com>
2857
2858 * stabsread.c (read_member_functions): GCC may emit an extra space
2859 at the end of the names "__base_ctor" and "__base_dtor"; so ignore
2860 whitespace when looking for these functions.
2861
2862 2009-04-01 Joel Brobecker <brobecker@adacore.com>
2863
2864 Change the default value for "set print frame-arguments" to scalars.
2865
2866 * stack.c (print_frame_arguments): Set initial value to "scalars".
2867
2868 2009-04-01 Aleksandar Ristovski <aristovski@qnx.com>
2869
2870 * mips-tdep.c (mips_numeric_register_alieses): New definition.
2871 (mips_gdbarch_init): Add user registers from
2872 mips_numeric_register_aliases.
2873
2874 2009-04-01 Joel Brobecker <brobecker@adacore.com>
2875
2876 * linux-nat.c (linux_nat_filter_event): Minor comment reformatting.
2877
2878 2009-04-01 Joel Brobecker <brobecker@adacore.com>
2879
2880 * linux-nat.c (linux_nat_filter_events): Do not delete the lwp if
2881 this is the last one.
2882
2883 2009-04-01 Pedro Alves <pedro@codesourcery.com>
2884
2885 * remote.c (append_resumption): New.
2886 (remote_vcont_resume): Use it.
2887
2888 2009-04-01 Joel Brobecker <brobecker@adacore.com>
2889
2890 * windows-nat.c (+windows_get_ada_task_ptid): New function.
2891 (init_windows_ops): Set windows_ops.to_get_ada_task_ptid.
2892
2893 2009-03-31 Daniel Jacobowitz <dan@codesourcery.com>
2894 Keith Seitz <keiths@redhat.com>
2895 Jan Kratochvil <jan.kratochvil@redhat.com>
2896
2897 PR gdb/6817
2898 * Makefile.in (dbxread.o): Update.
2899 * dbxread.c (read_dbx_symtab): Use cp_canonicalize_string.
2900 * dwarf2read.c (GDB_FORM_cached_string): New.
2901 (read_partial_die): Use dwarf2_canonicalize_name.
2902 (dwarf2_linkage_name): Use dwarf2_name.
2903 (dwarf2_canonicalize_name): New.
2904 (dwarf2_name): Use dwarf2_canonicalize_name.
2905 (dwarf_form_name, dump_die): Handle GDB_FORM_cached_string.
2906 * stabsread.c (define_symbol, read_type): Use cp_canonicalize_string.
2907 * symtab.c (lookup_symbol_in_language): Canonicalize input before
2908 searching.
2909 * cp-name-parser.y: operator() requires two parameters,
2910 according to libiberty.
2911 * minsyms.c (lookup_minimal_symbol): Canonicalize input
2912 before searching.
2913 * NEWS: Update.
2914
2915 2009-03-31 Joel Brobecker <brobecker@adacore.com>
2916
2917 Provide support for (Ada) task-specific breakpoints.
2918
2919 * ada-lang.h (ada_get_task_number): Add declaration.
2920 (breakpoint_ada_task_match): Delete declaration.
2921 * ada-tasks.c (ada_get_task_number): Make non-static.
2922 * breakpoint.h (struct breakpoint): Add field "task".
2923 * breakpoint.c (print_one_breakpoint_location): Add handling of
2924 task-specific breakpoints.
2925 (create_breakpoint, create_breakpoints, find_condition_and_thread):
2926 New parameter "task".
2927 (break_command_really): Update calls to find_condition_and_thread
2928 and create_breakpoints.
2929 (breakpoint_re_set_one): Update call to find_condition_and_thread.
2930 Set b->task.
2931
2932 2009-03-31 Joel Brobecker <brobecker@adacore.com>
2933
2934 * ada-tasks.c (short_task_info): Eliminate the "Running" task state.
2935
2936 2009-03-31 Pedro Alves <pedro@codesourcery.com>
2937
2938 * remote.c (remote_notice_new_inferior): Use ptid_is_pid. Check
2939 if the thread's ptid without a thread id field is in the list
2940 before calling thread_change_ptid.
2941 (extended_remote_attach_1): In non-stop mode, do not rely on
2942 querying the current thread, instead, query the thread list, and
2943 select the first thread of the process.
2944 * gdbthread.h (first_thread_of_process): Declare.
2945 * thread.c (first_thread_of_process): Define.
2946
2947 2009-03-30 Stan Shebs <stan@codesourcery.com>
2948
2949 Make tracepoints into a type of breakpoint.
2950 * breakpoint.h (enum bptype): Add bp_tracepoint.
2951 (struct breakpoint): Add fields step_count, pass_count, actions.
2952 (get_tracepoint, get_tracepoint_by_number): Declare.
2953 (all_tracepoints): Declare.
2954 * breakpoint.c: Include tracepoint.h, readline.h.
2955 (ALL_TRACEPOINTS): Move here from tracepoint.c.
2956 (tracepoint_count): Ditto.
2957 (should_be_inserted): GDB does not insert tracepoints itself.
2958 (print_it_typical): Add tracepoint case.
2959 (bpstat_what): Ditto.
2960 (print_one_breakpoint_location): Ditto, and add printing for
2961 pass count, step count, and action list.
2962 (user_settable_breakpoint): Add tracepoint case.
2963 (allocate_bp_location): Ditto.
2964 (set_breakpoint_location_function): Ditto.
2965 (disable_breakpoints_in_shlibs): Ditto.
2966 (mention): Ditto.
2967 (break_command_really): Add argument traceflag, use to choose
2968 basic breakpoint type.
2969 (break_command_1): Pass extra argument.
2970 (set_breakpoint, handle_gnu_v3_exceptions): Ditto.
2971 (breakpoint_re_set_one): Add tracepoint case.
2972 (disable_command, enable_command): Ditto.
2973 (set_tracepoint_count): Move here from tracepoint.c.
2974 (trace_command): Move here from tracepoint.c and use
2975 break_command_really.
2976 (tracepoints_info): Move here from tracepoint.c and call
2977 breakpoints_info.
2978 (enable_trace_command): Move here from tracepoint.c and call
2979 enable_command.
2980 (disable_trace_command): Move here from tracepoint.c and call
2981 disable_command.
2982 (delete_trace_command): Move here from tracepoint.c and call
2983 delete_breakpoint.
2984 (trace_pass_command): Move here from tracepoint.c.
2985 (get_tracepoint_by_number): Ditto.
2986 (tracepoint_save_command): Ditto.
2987 (get_tracepoint): New function.
2988 (all_tracepoints): New function.
2989 (_initialize_breakpoint): Move tracepoint init from tracepoint.c,
2990 deprecate "enable trace" and "disable trace" commands.
2991 * tracepoint.h (struct tracepoint): Remove.
2992 (tracepoint_chain): Remove decl.
2993 (deprecated_create_tracepoint_hook): Remove decl.
2994 (deprecated_delete_tracepoint_hook): Remove decl.
2995 (deprecated_modify_tracepoint_hook): Remove decl.
2996 (ALL_TRACEPOINTS, ALL_TRACEPOINTS_SAFE): Remove.
2997 (free_actions): Update signature.
2998 (validate_actionline): Update signature.
2999 (end_actions_pseudocommand): Declare.
3000 (while_stepping_pseudocommand): Declare.
3001 * tracepoint.c: Include breakpoint.h.
3002 (tracepoint_chain, tracepoint_count): Remove.
3003 (free_actions, make_cleanup_free_actions): Update signature.
3004 (trace_command, set_raw_tracepoint): Remove.
3005 (trace_mention): Remove.
3006 (tracepoints_info): Remove.
3007 (tracepoint_operation, map_args_over_tracepoints): Remove.
3008 (get_tracepoint_by_number): Remove.
3009 (enable_trace_command, disable_trace_command): Remove.
3010 (delete_trace_command, trace_pass_command): Remove.
3011 (trace_actions_command, read_actions): Update signature.
3012 (validate_actionline): Update signature, use bp loc.
3013 (encode_actions): Ditto.
3014 (download_tracepoint): New function, body of trace_start_command.
3015 (trace_start_command): Call it, use all_tracepoints.
3016 (tracepoint_save_command): Remove.
3017 (tracepoint_dump_command): Use get_tracepoint.
3018 (end_actions_pseudocommand): Make globally visible.
3019 (while_stepping_pseudocommand): Ditto.
3020 (_initialize_tracepoint): Move command definitions to breakpoint.c.
3021
3022 2009-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
3023
3024 Expose frames to Python.
3025 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-frame.o.
3026 (SUBDIR_PYTHON_SRCS): Add python-frame.c.
3027 (python-frame.o): New target.
3028 * python/python-frame.c: New file.
3029 * python/python-internal.h (gdbpy_frames, gdbpy_newest_frame,
3030 gdbpy_frame_stop_reason_string, gdbpy_selected_frame,
3031 gdbpy_initialize_frames): New prototypes.
3032 * python/python.c (_initialize_python): Call gdbpy_initialize_frames.
3033 (GdbMethods): Add `selected_frame' and `frame_stop_reason_string'
3034 entries.
3035 * stack.c (find_frame_funname): New function, factored out of
3036 print_frame.
3037 (print_frame): Call find_frame_funname.
3038 * stack.h (find_frame_funname): Add prototype.
3039
3040 2009-03-29 Thiago Jung Bauermann <bauerman@br.ibm.com>
3041
3042 Remove unused value_object attribute `owned_by_gdb'.
3043 * python/python-value.c (value_object): Remove owned_by_gdb
3044 attribute.
3045 (valpy_dealloc): Remove reference to self->owned_by_gdb.
3046 (valpy_new): Likewise.
3047 (value_to_value_object): Likewise.
3048
3049 2009-03-29 Thiago Jung Bauermann <bauerman@br.ibm.com>
3050
3051 Change gdb.Value.address from a method to an attribute.
3052 * python/python-value.c (value_object): Add `address' element.
3053 (valpy_dealloc): Decrement reference to self->address if set.
3054 (valpy_new): Initialize val_obj->address.
3055 (valpy_address): Rename to ...
3056 (valpy_get_address): ... this. Change signature from method to
3057 attribute. Update self->address if not set.
3058 (value_to_value_object): Initialize val_obj->address.
3059 (value_object_getset): Add `address' element.
3060 (value_object_methods): Remove `address' element.
3061
3062 2009-03-29 Andreas Schwab <schwab@linux-m68k.org>
3063
3064 * observer.sh: Set LANG/LC_ALL to C, not c.
3065
3066 2009-03-28 Kevin Buettner <kevinb@redhat.com>
3067
3068 * mn10300-tdep.c (mn10300_gdbarch_init): For mn10300, by default,
3069 `char' is unsigned.
3070
3071 2009-03-28 Pedro Alves <pedro@codesourcery.com>
3072
3073 * remote.c (remote_stop_ns): If multi-process extensions are off,
3074 and GDB is requesting the whole process to stop, sent "vCont;t",
3075 not "vCont;t:-1"
3076
3077 2009-03-28 Pedro Alves <pedro@codesourcery.com>
3078
3079 * inf-loop.c (inferior_event_handler): Avoid calling is_running on
3080 null inferior_ptid.
3081
3082 2009-03-27 Eli Zaretskii <eliz@gnu.org>
3083
3084 * config/djgpp/fnchange.lst: Update to fix ARI-reported problems.
3085
3086 2009-03-26 Doug Evans <dje@google.com>
3087
3088 * thread.c (do_restore_current_thread_cleanup): Redo test for
3089 whether to restore old->inferior_ptid.
3090
3091 2009-03-26 Tom Tromey <tromey@redhat.com>
3092
3093 * breakpoint.c (resolve_sal_pc): Preserve original line number
3094 when skipping prologue.
3095
3096 2009-03-26 Doug Evans <dje@google.com>
3097
3098 * thread.c (inferior_thread) Remove "extern" in definition.
3099
3100 2009-03-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
3101
3102 Add gdb.Value.is_optimized_out attribute.
3103 * python/python-value.c (valpy_get_is_optimized_out): New
3104 function.
3105 (value_object_getset): New variable.
3106 (value_object_type): Initialize tp_getset element.
3107
3108 2009-03-26 Joel Brobecker <brobecker@adacore.com>
3109
3110 Recognize missing DW_AT_location as <value optimized out>.
3111 * dwarf2read.c
3112 (new_symbol <DW_TAG_variable> <!DW_AT_location> <!DW_AT_external>):
3113 Call add_symbol_to_list.
3114
3115 2009-03-25 Tom Tromey <tromey@redhat.com>
3116
3117 * gdbtypes.h (CHECK_TYPEDEF): Don't yield a value.
3118 * stack.c (print_this_frame_argument_p): Use check_typedef.
3119
3120 2009-03-25 Tom Tromey <tromey@redhat.com>
3121
3122 * configure: Rebuild.
3123 * acinclude.m4 (AM_ICONV): Set am_cv_use_build_libiconv.
3124 Rearrange flags setting. Add comments.
3125
3126 2009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
3127
3128 * config/i386/nm-i386.h: Remove code within
3129 I386_WATCHPOINTS_IN_TARGET_VECTOR conditional.
3130 * config/i386/nm-cygwin.h: Remove I386_WATCHPOINTS_IN_TARGET_VECTOR
3131 macro.
3132 * config/i386/nm-cygwin64.h: Ditto.
3133 * config/i386/nm-fbsd.h: Ditto.
3134 * config/i386/nm-go32.h: Ditto.
3135 * config/i386/nm-linux.h: Ditto.
3136 * config/i386/nm-linux64.h: Ditto.
3137
3138 2009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
3139
3140 ARI fix: "xasprintf" rule.
3141 * printcmd.c (sym_info): Replace xasprintf by xstrprintf.
3142
3143 2009-03-25 Pedro Alves <pedro@codesourcery.com>
3144
3145 * remote.c (remote_start_remote): In non-stop mode, call
3146 init_wait_for_inferior before adding threads and inferiors.
3147
3148 2009-03-25 Joel Brobecker <brobecker@adacore.com>
3149
3150 * breakpoint.c (breakpoint_thread_match): Split a large condition
3151 into several smaller conditions. No behavior change.
3152
3153 2009-03-25 Pedro Alves <pedro@codesourcery.com>
3154
3155 * infrun.c (infrun_thread_thread_exit): New.
3156 (_initialize_infrun): Attach it to the thread_exit observer.
3157 * thread.c (delete_thread_1): Always call the observer, passing it
3158 the silent flag.
3159 * mi/mi-interp.c (mi_thread_exit): Add "silent" parameter. If
3160 SILENT, return immediately.
3161
3162 2009-03-25 Pedro Alves <pedro@codesourcery.com>
3163
3164 * infrun.c (normal_stop): Use has_stack_frames instead of
3165 target_has_stack.
3166 * mi/mi-main.c (mi_execute_command): Avoid calling inferior_thread
3167 when there is no thread selected.
3168 (mi_cmd_execute): Don't special case commands that can run without
3169 a valid selected thread.
3170 * top.c (execute_command): Don't special case commands that can
3171 run without a valid selected thread. Use has_stack_frames.
3172 * infcmd.c (ensure_valid_thread): New.
3173 (continue_1, step_1, jump_command, signal_command): Use it.
3174 (detach_command): Error out if there's no selected thread/inferior.
3175 * thread.c (print_thread_info): Allow having no thread selected.
3176 (switch_to_thread): Don't read the PC if there is no current thread.
3177 (do_restore_current_thread_cleanup): Don't record the current
3178 frame if there is no current thread.
3179 (make_cleanup_restore_current_thread): Don't read frame info if
3180 there is no selected thread.
3181 (_initialize_thread): Don't mark commands as
3182 "no_selected_thread_ok".
3183 * frame.c (get_current_frame): Error out if there is no valid
3184 selected thread.
3185 (has_stack_frames): Return false if there is no valid
3186 selected thread.
3187 * cli/cli-cmds.c (init_cli_cmds): Don't mark commands as
3188 "no_selected_thread_ok".
3189 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
3190 (get_cmd_no_selected_thread_ok): Delete.
3191 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): Delete.
3192 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
3193 Delete declaration.
3194 * stack.c (get_selected_block): Use has_stack_frames.
3195
3196 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
3197
3198 Fix size of FPSCR in Power 7 processors.
3199 * ppc-linux-nat.c (PPC_FEATURE_ARCH_2_05): Remove #define.
3200 (PPC_FEATURE_HAS_DFP): New #define.
3201 (ppc_linux_read_description): Check for DFP feature instead of
3202 ISA 2.05 to decide on size of the FPSCR.
3203
3204 2009-03-25 Kevin Buettner <kevinb@redhat.com>
3205
3206 * mn10300-tdep.c (trad-frame.h): Don't include.
3207 (prologue-value.h): Include.
3208 (mn10300_frame_unwind_cache, set_reg_offsets): Delete.
3209 (struct mn10300_prologue): Define.
3210 (push_reg, translate_rreg, check_for_saved): New functions.
3211 (mn10300_analyze_prologue): Rewrite, using prologue-value
3212 machinery. Handle more instructions than before. Permit
3213 instructions to occur in any order.
3214 (mn10300_skip_prologue): Find the extents of the function
3215 in question; mn10300_analyze_prologue no longer does this.
3216 (mn10300_analyze_frame_prologue): New function.
3217 (mn10300_frame_base): New function.
3218 (mn10300_frame_this_id): Rewrite, no longer using trad-frame
3219 implementation.
3220 (mn10300_frame_prev_register): Likewise.
3221 (mn10300_frame_base_address, mn10300_frame_base struct): Delete.
3222 (mn10300_unwind_pc, mn10300_unwind_sp): Rename `next_frame' to
3223 `this_frame'.
3224 (mn10300_frame_unwind_init): Don't call frame_base_set_default().
3225
3226 2009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
3227
3228 Fix completer problem for filename completion on the first try.
3229
3230 * gdb/completer.h (gdb_completion_word_break_characters): New function.
3231 * gdb/completer.c: Include gdb_assert.h.
3232 (complete_line_internal_reason): New enum.
3233 (complete_line_internal): Change last argument type to
3234 complete_line_internal_reason.
3235 Modify function to handle the different complete_line_internal_reason
3236 argument values.
3237 (complete_line): Adapt to change in complete_line_internal.
3238 (command_completer): Ditto.
3239 (gdb_completion_word_break_characters): Implement new function.
3240 * top.c (init_main): Set rl_completion_word_break_hook to
3241 gdb_completion_word_break_characters.
3242
3243
3244 2009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
3245
3246 ARI fix: "strlen d_name" rule.
3247 * linux-nat.c (linux_nat_xfer_osdata): Use NAMELEN macro.
3248
3249
3250 2009-03-24 Tom Tromey <tromey@redhat.com>
3251 Pedro Alves <pedro@codesourcery.com>
3252
3253 * configure, config.in: Rebuild.
3254 * configure.ac: Check for libiconvlist.
3255 * charset.c: Check HAVE_LIBICONVLIST.
3256 * acinclude.m4 (AM_ICONV): Don't subst LIBICONV, LIBICONV_INCLUDE,
3257 LIBICONV_LIBDIR. Update CPPFLAGS and LIBS.
3258 * Makefile.in (LIBICONV, LIBICONV_INCLUDE, LIBICONV_LIBDIR):
3259 Remove.
3260 (INTERNAL_CFLAGS_BASE): Update.
3261 (INTERNAL_LDFLAGS): Update.
3262 (CLIBS): Update.
3263
3264 2009-03-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3265
3266 * configure.ac: Initialize the variable $PREFER_CURSES.
3267 * configure: Regenerated.
3268
3269 2009-03-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3270
3271 * configure.ac: Enable $PREFER_CURSES even with default $ENABLE_TUI.
3272 * configure: Regenerated.
3273
3274 2009-03-24 Pierre Muller <muller@ics.u-strasbg.fr>
3275
3276 ARI fix: "strerror" rule.
3277 * darwin-nat.c (darwin_ptrace): Use safe_strerror.
3278 (darwin_stop_inferior, darwin_attach, darwin_detach): Ditto.
3279
3280 2009-03-23 Joel Brobecker <brobecker@adacore.com>
3281
3282 * ada-exp.y (get_symbol_field_type): Make sure to resolve typedefs
3283 before looking up the fields inside our struct type.
3284
3285 2009-03-23 Joel Brobecker <brobecker@adacore.com>
3286
3287 * ada-lang.c (resolve_subexp) [UNOP_QUAL]: Resolve typedefs before
3288 trying to resolve the type qualification.
3289
3290 2009-03-23 Joel Brobecker <brobecker@adacore.com>
3291
3292 * ada-lang.c (ada_evaluate_subexp) [UNOP_IN_RANGE]: make sure
3293 we try to apply the attribute on the real type, rather than
3294 its associated typedef.
3295
3296 2009-03-23 Joel Brobecker <brobecker@adacore.com>
3297
3298 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_MODULUS]: Use check_typdef
3299 to make sure we try to get the modulus of the actual type, not the
3300 associated typedef.
3301
3302 2009-03-23 Joel Brobecker <brobecker@adacore.com>
3303
3304 * ada-lang.c (ada_evaluate_subexp): [OP_ATR_FIRST, OP_ATR_LAST]
3305 [OP_ATR_LENGTH]: When using the attribute on a type, make sure
3306 to get the real type, not the associated typedef.
3307
3308 2009-03-23 Joel Brobecker <brobecker@adacore.com>
3309
3310 * ada-lang.c (ada_get_field_index): Add handling of the case
3311 when TYPE is a typedef of a struct.
3312
3313 2009-03-23 Joel Brobecker <brobecker@adacore.com>
3314
3315 Add gdb_usleep as a portable version of usleep based on gdb_select.
3316 * gdb_usleep.h, gdb_usleep.c: New files.
3317 * Makefile.in (SFILES): Add gdb_usleep.c.
3318 (HFILES_NO_SRCDIR): Add gdb_usleep.h.
3319 (COMMON_OBS): Add gdb_usleep.o.
3320 * ser-unix.c (hardwire_send_break): Replace call to gdb_select
3321 by call to gdb_usleep.
3322
3323 2009-03-23 Joel Brobecker <brobecker@adacore.com>
3324
3325 * buildsym.c (end_symtab): If we ignore the subfiles, then
3326 unlink the associated symtabs if they were already allocated.
3327
3328 2009-03-23 Jerome Guitton <guitton@adacore.com>
3329
3330 Provide a way to force building of GDB with libcurses.
3331 * configure.ac: Add --with-curses.
3332 * configure: Regenerated.
3333
3334 2009-03-23 Tom Tromey <tromey@redhat.com>
3335
3336 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_uninit>: Fix typo in
3337 error message.
3338
3339 2009-03-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3340
3341 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Use
3342 solib_contains_address_p instead of searching.
3343
3344 2009-03-23 Tom Tromey <tromey@redhat.com>
3345
3346 * charset.c (ICONV_CONST) <PHONY_ICONV>: Define.
3347 (iconv): Make 'inbuf' argument const.
3348 (convert_between_encodings): Use ICONV_CONST.
3349 (wchar_iterate): Likewise.
3350
3351 2009-03-22 Christopher Faylor <me+cygwin@cgf.cx>
3352
3353 * windows-nat.c (AdjustTokenPrivileges): Implement macro wraparound for
3354 dynamically loaded function.
3355 (LookupPrivilegeValueA): Ditto.
3356 (OpenProcessToken): Ditto.
3357 (AdjustTokenPrivileges): Rename and define placeholder for address of
3358 dynamically loaded function.
3359 (LookupPrivilegeValueA): Ditto.
3360 (OpenProcessToken): Ditto.
3361 (set_process_privilege): Remove check for loaded functions.
3362 (bad_OpenProcessToken): Define.
3363 (_initialize_loadable): Load token functions from advapi here, setting
3364 OpenProcessToken function to a dummy static function which always return
3365 error if OS doesn't support this functionality.
3366
3367 2009-03-22 Nicolas Roche <roche@adacore.com>
3368 Christopher Faylor <me+cygwin@cgf.cx>
3369
3370 * win32-nat.c (ctrl_c_handler): New function.
3371 (win32_wait): Register ctrl_c_handler as Ctrl-C handler if the inferior
3372 is run in a separate console.
3373
3374 2009-03-22 Christopher Faylor <me+cygwin@cgf.cx>
3375
3376 * windows-nat.c (DebugActiveProcessStop): Implement macro wraparound
3377 for dynamically loaded function.
3378 (DebugBreakProcess): Ditto.
3379 (DebugSetProcessKillOnExit): Ditto.
3380 (EnumProcessModules): Ditto.
3381 (GetModuleFileNameExA): Ditto.
3382 (GetModuleInformation): Ditto.
3383 (DebugActiveProcessStop): Rename and define placeholder for address of
3384 dynamically loaded function.
3385 (DebugBreakProcess): Ditto.
3386 (DebugSetProcessKillOnExit): Ditto.
3387 (EnumProcessModules): Ditto.
3388 (GetModuleFileNameExA): Ditto.
3389 (GetModuleInformation): Ditto.
3390 (psapi_loaded): Delete.
3391 (get_module_name): Don't check psapi_loaded, just rely on the fact that
3392 dynamically loaded functions will return failure if they weren't
3393 previously found.
3394 (has_detach_ability): Delete.
3395 (windows_attach): Remove call to has_detach_ability (). Just rely on
3396 functions being callable.
3397 (bad_DebugActiveProcessStop): Define.
3398 (bad_DebugBreakProcess): Ditto.
3399 (bad_DebugSetProcessKillOnExit): Ditto.
3400 (bad_EnumProcessModules): Ditto.
3401 (bad_GetModuleFileNameExA): Ditto.
3402 (bad_GetModuleInformation): Ditto.
3403 (_initialize_loadable): Rename from _initialize_psapi. Initialize all
3404 dynamic storage here, setting nonexistent functions to dummy static
3405 functions which always return error.
3406
3407 2009-03-22 Pedro Alves <pedro@codesourcery.com>
3408
3409 * mi/mi-interp.c (mi_interpreter_init): Attach mi_about_to_proceed
3410 to the about_to_proceed observer notification.
3411 (mi_about_to_proceed): New.
3412 (mi_on_resume): Only output ^running and the prompt here if the
3413 target was proceeded.
3414 * breakpoint.c (breakpoint_proceeded): New static.
3415 (breakpoint_about_to_proceed): New.
3416 (_initialize_breakpoints): Attach breakpoint_about_to_proceed to
3417 the about_to_proceed observer notification.
3418 * inferior.h (breakpoint_proceeded): Delete declaration.
3419 * infrun.c (clear_proceed_status): Don't set breakpoint_proceeded.
3420 Notify the about_to_proceed observers.
3421 (struct inferior_status): Delete breakpoint_proceeded member.
3422 (save_inferior_status): Don't save it.
3423 (restore_inferior_status): Don't restore it.
3424 * mi-main.h (mi_proceeded): Declare.
3425 * mi/mi-main.c (mi_cmd_execute): Clear mi_proceeded before running
3426 a command.
3427
3428 2009-03-22 Pedro Alves <pedro@codesourcery.com>
3429
3430 * gdbthread.h (struct thread_info): Add in_infcall member.
3431 * infcall.c (run_inferior_call): Save, set and restore in_infcall.
3432 Remove reverences to suppress_resume_observer. Refresh
3433 `call_thread' after returning from `proceed'.
3434 * infcmd.c (suppress_resume_observer): Delete.
3435 * inferior.h (suppress_resume_observer): Delete declaration.
3436 * mi/mi-interp.c (mi_on_resume): Suppress output while calling an
3437 inferior function.
3438 * thread.c (set_running): Remove references to
3439 suppress_resume_observer.
3440 * infrun.c (struct inferior_status): Add in_infcall member.
3441 (save_inferior_status): Save it.
3442 (restore_inferior_status): Restore it.
3443
3444 2009-03-22 Pedro Alves <pedro@codesourcery.com>
3445
3446 * infcall.c (run_inferior_call): Remove references to
3447 suppress_stop_observer.
3448 * infcmd.c (suppress_stop_observer): Delete.
3449 (finish_command_continuation): Remove NOTE. Don't clear
3450 suppress_stop_observer anymore.
3451 (finish_command_continuation_free_arg): Likewise.
3452 (finish_forward): Remove references to suppress_stop_observer.
3453 Call normal_stop observer if we haven't already.
3454 * inferior.h (suppress_stop_observer): Delete.
3455 * infrun.c (normal_stop): When deciding to suppress the
3456 normal_stop observer, check for proceed_to_finish instead of
3457 suppress_stop_observer.
3458
3459 2009-03-22 Pedro Alves <pedro@codesourcery.com>
3460
3461 * symfile.c (symfile_relocate_debug_section): Remove check for
3462 SEC_DEBUGGING.
3463
3464 2009-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3465 Jim Blandy <jimb@red-bean.com>
3466 Thiago Jung Bauermann <bauerman@br.ibm.com>
3467 Tom Tromey <tromey@redhat.com>
3468
3469 Miscellaneous fixes to the Python code.
3470 * python/python-cmd.c (cmdpy_init): Accept keyword
3471 arguments.
3472 * python/python-value.c (valpy_string): Accept keyword
3473 arguments.
3474 (valpy_binop): Use `break' to exit from the TRY_CATCH block.
3475 Do not call value_to_value_object on NULL RES_VAL.
3476 (value_object_methods): Change `string' entry to also accept
3477 keyword arguments.
3478 (convert_value_from_python): Return a copy of the value if obj is
3479 a gdb.Value object.
3480 (value_object_methods): Mark the `string' method as accepting
3481 keywords, and show method "prototype" in the doc string.
3482 * python/python.c (get_parameter): Don't return inside a
3483 TRY_CATCH.
3484
3485 2009-03-20 Tom Tromey <tromey@redhat.com>
3486
3487 Add support for convenience functions in Python.
3488 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-function.o.
3489 (SUBDIR_PYTHON_SRCS): Add python-function.c.
3490 (python-function.o): New target.
3491 * eval.c: Include "python/python.h" and <ctype.h>.
3492 (evaluate_subexp_standard): Handle values of type
3493 TYPE_CODE_INTERNAL_FUNCTION.
3494 * gdbtypes.h (type_code): Add TYPE_CODE_INTERNAL_FUNCTION.
3495 * parse.c (write_exp_string): Remove duplicate word in comment.
3496 * python/python-function.c: New file.
3497 * python/python-internal.h (gdbpy_initialize_functions): Add
3498 prototype.
3499 * python/python.c (_initialize_python): Call
3500 gdbpy_initialize_functions.
3501 * valprint.c (value_check_printable): Handle values of type
3502 TYPE_CODE_INTERNAL_FUNCTION.
3503 * value.c: Include "cli/cli-decode.h".
3504 (internal_function): New struct.
3505 (functionlist, internal_fn_type): New static variables.
3506 (lookup_only_internalvar,
3507 lookup_internalvar): Add const qualifier to name argument.
3508 (create_internalvar): Likewise. Initialize new field.
3509 (set_internal_var): Fix typo in comment. Don't allow assignment
3510 to canonical variable.
3511 (value_create_internal_function, value_internal_function_name,
3512 call_internal_function, function_command, function_destroyer,
3513 add_internal_function): New functions.
3514 (_initialize_values): Create `function' placeholder command.
3515 Initialize internal_fn_type.
3516 * value.h (lookup_only_internalvar, create_internalvar,
3517 lookup_internalvar): Add const qualifier to name argument.
3518 (internal_function_fn, add_internal_function, call_internal_function,
3519 value_internal_function_name): Add prototypes.
3520 (struct internalvar) <canonical>: New field.
3521
3522 2009-03-20 Tom Tromey <tromey@redhat.com>
3523
3524 * c-lang.c (evaluate_subexp_c): Call check_typedef.
3525
3526 2009-03-20 Tom Tromey <tromey@redhat.com>
3527 Julian Brown <julian@codesourcery.com>
3528
3529 PR i18n/7220, PR i18n/7821, PR exp/8815, PR exp/9103,
3530 PR i18n/9401, PR exp/9613:
3531 * NEWS: Update
3532 * value.h (value_typed_string): Declare.
3533 (val_print_string): Update.
3534 * valprint.h (print_char_chars): Update.
3535 * valprint.c (print_char_chars): Add type argument. Update.
3536 (val_print_string): Likewise.
3537 * valops.c (value_typed_string): New function.
3538 * utils.c (host_char_to_target): New function.
3539 (parse_escape): Use host_char_to_target, host_hex_value. Update.
3540 Remove '^' case.
3541 (no_control_char_error): Remove.
3542 * typeprint.c (print_type_scalar): Update.
3543 * scm-valprint.c (scm_scmval_print): Update.
3544 * scm-lang.h (scm_printchar, scm_printstr): Update.
3545 * scm-lang.c (scm_printchar): Add type argument.
3546 (scm_printstr): Likewise.
3547 * printcmd.c (print_formatted): Update.
3548 (print_scalar_formatted): Update.
3549 (printf_command) <wide_string_arg, wide_char_arg>: New constants.
3550 Handle '%lc' and '%ls'.
3551 * parser-defs.h (struct typed_stoken): New type.
3552 (struct stoken_vector): Likewise.
3553 (write_exp_string_vector): Declare.
3554 * parse.c (write_exp_string_vector): New function.
3555 * p-valprint.c (pascal_val_print): Update.
3556 * p-lang.h (is_pascal_string_type, pascal_printchar,
3557 pascal_printstr): Update.
3558 * p-lang.c (is_pascal_string_type): Remove 'char_size' argument.
3559 Add 'char_type' argument.
3560 (pascal_emit_char): Add type argument.
3561 (pascal_printchar): Likewise.
3562 (pascal_printstr): Likewise.
3563 * objc-lang.c (objc_emit_char): Add type argument.
3564 (objc_printchar): Likewise.
3565 (objc_printstr): Likewise.
3566 * macroexp.c (get_character_constant): Handle unicode characters.
3567 Use c_parse_escape.
3568 (get_string_literal): Handle unicode strings. Use
3569 c_parse_escape.
3570 * m2-valprint.c (print_unpacked_pointer): Update.
3571 (m2_print_array_contents): Update.
3572 (m2_val_print): Update.
3573 * m2-lang.c (m2_emit_char): Add type argument.
3574 (m2_printchar): Likewise.
3575 (m2_printstr): Likewise.
3576 * language.h (struct language_defn) <la_printchar>: Add type
3577 argument.
3578 <la_printstr, la_emitchar>: Likewise.
3579 (LA_PRINT_CHAR): Likewise.
3580 (LA_PRINT_STRING): Likewise.
3581 (LA_EMIT_CHAR): Likewise.
3582 * language.c (unk_lang_emit_char): Add type argument.
3583 (unk_lang_printchar): Likewise.
3584 (unk_lang_printstr): Likewise.
3585 * jv-valprint.c (java_val_print): Update.
3586 * jv-lang.c (java_emit_char): Add type argument.
3587 * f-valprint.c (f_val_print): Update.
3588 * f-lang.c (f_emit_char): Add type argument.
3589 (f_printchar): Likewise.
3590 (f_printstr): Likewise.
3591 * expprint.c (print_subexp_standard): Update.
3592 * charset.h (target_wide_charset): Declare.
3593 (c_target_char_has_backslash_escape, c_parse_backslash,
3594 host_char_print_literally, host_char_to_target,
3595 target_char_to_host, target_char_to_control_char): Remove.
3596 (enum transliterations): New type.
3597 (convert_between_encodings): Declare.
3598 (HOST_ESCAPE_CHAR): New define.
3599 (host_letter_to_control_character, host_hex_value): Declare.
3600 (enum wchar_iterate_result): New enum.
3601 (struct wchar_iterator): Declare.
3602 (make_wchar_iterator, make_cleanup_wchar_iterator, wchar_iterator,
3603 wchar_push_back): Declare.
3604 * charset-list.h: New file.
3605 * c-valprint.c (textual_name): New function.
3606 (textual_element_type): Handle wide character types.
3607 (c_val_print): Pass original type to textual_element_type. Handle
3608 wide character types.
3609 (c_value_print): Use textual_element_type. Pass original type of
3610 value to val_print.
3611 * c-lang.h (enum c_string_type): New type.
3612 (c_printchar, c_printstr): Update.
3613 * c-lang.c (classify_type): New function.
3614 (print_wchar): Likewise.
3615 (c_emit_char): Add type argument. Handle wide characters.
3616 (c_printchar): Likewise.
3617 (c_printstr): Add type argument. Handle wide and multibyte
3618 character sets.
3619 (convert_ucn): New function.
3620 (emit_numeric_character): Likewise.
3621 (convert_octal): Likewise.
3622 (convert_hex): Likewise.
3623 (ADVANCE): New macro.
3624 (convert_escape): New function.
3625 (parse_one_string): Likewise.
3626 (evaluate_subexp_c): Likewise.
3627 (exp_descriptor_c): New global.
3628 (c_language_defn): Use exp_descriptor_c.
3629 (cplus_language_defn): Likewise.
3630 (asm_language_defn): Likewise.
3631 (minimal_language_defn): Likewise.
3632 (charset_for_string_type): New function.
3633 * c-exp.y (%union): Add 'svec' and 'tsval'.
3634 (CHAR): New token.
3635 (exp): Add CHAR production.
3636 (string_exp): Rewrite.
3637 (exp) <string_exp>: Rewrite.
3638 (tempbuf): Now global.
3639 (tempbuf_init): New global.
3640 (parse_string_or_char): New function.
3641 (yylex) <tempbuf>: Now global.
3642 <tokptr, tempbufindex, tempbufsize, token_string, class_prefix>:
3643 Remove.
3644 Handle 'u', 'U', and 'L' prefixes. Call parse_string_or_char.
3645 (c_parse_escape): New function.
3646 * auxv.c (fprint_target_auxv): Update.
3647 * ada-valprint.c (ada_emit_char): Add type argument.
3648 (ada_printchar): Likewise.
3649 (ada_print_scalar): Update.
3650 (printstr): Add type argument. Update calls to ada_emit_char.
3651 (ada_printstr): Add type argument.
3652 (ada_val_print_array): Update.
3653 (ada_val_print_1): Likewise.
3654 * ada-lang.c (emit_char): Add type argument.
3655 * ada-lang.h (ada_emit_char, ada_printchar, ada_printstr): Add
3656 type arguments.
3657 * gdb_locale.h: Include langinfo.h.
3658 * charset.c (_initialize_charset): Set default host charset from
3659 the locale. Don't register charsets. Add target-wide-charset
3660 commands. Call find_charset_names.
3661 (struct charset, struct translation): Remove.
3662 (GDB_DEFAULT_HOST_CHARSET): Remove.
3663 (GDB_DEFAULT_TARGET_WIDE_CHARSET): New define.
3664 (target_wide_charset_name): New global.
3665 (show_host_charset_name): Handle "auto".
3666 (show_target_wide_charset_name): New function.
3667 (host_charset_enum, target_charset_enum): Remove.
3668 (charset_enum): New global.
3669 (all_charsets, register_charset, lookup_charset, all_translations,
3670 register_translation, lookup_translation): Remove.
3671 (simple_charset, ascii_print_literally, ascii_to_control): Remove.
3672 (iso_8859_print_literally, iso_8859_to_control,
3673 iso_8859_family_charset): Remove.
3674 (ebcdic_print_literally, ebcdic_to_control,
3675 ebcdic_family_charset): Remove.
3676 (struct cached_iconv, check_iconv_cache, cached_iconv_convert,
3677 register_iconv_charsets): Remove.
3678 (target_wide_charset_be_name, target_wide_charset_le_name): New
3679 globals.
3680 (identity_either_char_to_other): Remove.
3681 (set_be_le_names, validate): New functions.
3682 (backslashable, backslashed, represented): Remove.
3683 (default_c_target_char_has_backslash_escape): Remove.
3684 (default_c_parse_backslash, iconv_convert): Remove.
3685 (ascii_to_iso_8859_1_table, ascii_to_ebcdic_us_table,
3686 ascii_to_ibm1047_table, iso_8859_1_to_ascii_table,
3687 iso_8859_1_to_ebcdic_us_table, iso_8859_1_to_ibm1047_table,
3688 ebcdic_us_to_ascii_table, ebcdic_us_to_iso_8859_1_table,
3689 ebcdic_us_to_ibm1047_table, ibm1047_to_ascii_table,
3690 ibm1047_to_iso_8859_1_table, ibm1047_to_ebcdic_us_table): Remove.
3691 (table_convert_char, table_translation, simple_table_translation):
3692 Remove.
3693 (current_host_charset, current_target_charset,
3694 c_target_char_has_backslash_escape_func,
3695 c_target_char_has_backslash_escape_baton): Remove.
3696 (c_parse_backslash_func, c_parse_backslash_baton): Remove.
3697 (host_char_to_target_func, host_char_to_target_baton): Remove.
3698 (target_char_to_host_func, target_char_to_host_baton): Remove.
3699 (cached_iconv_host_to_target, cached_iconv_target_to_host):
3700 Remove.
3701 (lookup_charset_or_error, check_valid_host_charset): Remove.
3702 (set_host_and_target_charsets): Remove.
3703 (set_host_charset, set_target_charset): Remove.
3704 (set_host_charset_sfunc, set_target_charset_sfunc): Rewrite.
3705 (set_target_wide_charset_sfunc): New function.
3706 (show_charset): Print target wide character set.
3707 (host_charset, target_charset): Rewrite.
3708 (target_wide_charset): New function.
3709 (c_target_char_has_backslash_escape): Remove.
3710 (c_parse_backslash): Remove.
3711 (host_letter_to_control_character): New function.
3712 (host_char_print_literally): Remove.
3713 (host_hex_value): New function.
3714 (target_char_to_control_char): Remove.
3715 (cleanup_iconv): New function.
3716 (convert_between_encodings): New function.
3717 (target_char_to_host): Remove.
3718 (struct wchar_iterator): Define.
3719 (make_wchar_iterator, make_cleanup_wchar_iterator, wchar_iterator,
3720 wchar_push_back): New functions.
3721 (do_cleanup_iterator): New function.
3722 (char_ptr): New typedef.
3723 (charsets): New global.
3724 (add_one, find_charset_names): New functions.
3725 (default_charset_names): New global.
3726 (auto_host_charset_name): Likewise.
3727 * aclocal.m4, config.in, configure: Rebuild.
3728 * configure.ac: Call AM_LANGINFO_CODESET.
3729 (GDB_DEFAULT_HOST_CHARSET): Default to UTF-8.
3730 (AM_ICONV): Invoke earlier.
3731 * acinclude.m4: Include codeset.m4. Subst LIBICONV_INCLUDE and
3732 LIBICONV_LIBDIR. Check for libiconv in build tree.
3733 * Makefile.in (LIBICONV_LIBDIR, LIBICONV_INCLUDE): New macros.
3734 (INTERNAL_CFLAGS_BASE): Add LIBICONV_INCLUDE.
3735 (INTERNAL_LDFLAGS): Add LIBICONV_LIBDIR.
3736 * gdb_obstack.h (obstack_grow_wstr): New define.
3737 * gdb_wchar.h: New file.
3738 * defs.h: Include it.
3739
3740 2009-03-20 Tom Tromey <tromey@redhat.com>
3741 Jan Kratochvil <jan.kratochvil@redhat.com>
3742
3743 * dwarf2read.c (process_die): Handle DW_TAG_typedef.
3744 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Strip a single
3745 typedef.
3746 * ada-lang.c (decode_packed_array_type): Call CHECK_TYPEDEF on the
3747 SYMBOL_TYPE result.
3748 * ada-typeprint.c (print_array_type): Do the NULL check
3749 unconditionally.
3750
3751 2009-03-19 Tom Tromey <tromey@redhat.com>
3752
3753 * utils.c (do_obstack_free): New function.
3754 (make_cleanup_obstack_free): Likewise.
3755 * defs.h (make_cleanup_obstack_free): Declare.
3756
3757 2009-03-18 Doug Evans <dje@google.com>
3758
3759 * linux-nat.c (linux_nat_find_memory_regions): Result of PIDGET is an
3760 int, not a long long.
3761 (linux_nat_info_proc_cmd): Store pid in long instead of long long.
3762
3763 * expprint.c (dump_raw_expression): Print note if non-NULL.
3764
3765 * printcmd.c (display_uses_solib_p): Redo loop, scan element list
3766 backwards.
3767
3768 2009-03-18 Nathan Sidwell <nathan@codesourcery.com>
3769
3770 * Makefile.in: Update license to GPLv3.
3771 * ada-exp.y: Update license to GPLv3.
3772 * ada-lex.l: Update license to GPLv3.
3773 * c-exp.y: Update license to GPLv3.
3774 * cp-name-parser.y: Update license to GPLv3.
3775 * darwin-nat-info.c: Update license to GPLv3.
3776 * f-exp.y: Update license to GPLv3.
3777 * gdb_thread_db.h: Update license to GPLv3.
3778 * hppanbsd-nat.c: Update license to GPLv3.
3779 * hppanbsd-tdep.c: Update license to GPLv3.
3780 * hppaobsd-tdep.c: Update license to GPLv3.
3781 * jv-exp.y: Update license to GPLv3.
3782 * m2-exp.y: Update license to GPLv3.
3783 * objc-exp.y: Update license to GPLv3.
3784 * p-exp.y: Update license to GPLv3.
3785 * reply_mig_hack.awk: Update license to GPLv3.
3786 * reverse.c: Update license to GPLv3.
3787 * xtensa-xtregs.c: Update license to GPLv3.
3788
3789 2009-03-18 Pedro Alves <pedro@codesourcery.com>
3790
3791 * remote.c (remote_close): Don't call generic_mourn_inferior.
3792 (remote_mourn_1): Call generic_mourn_inferior after closing the
3793 target.
3794
3795 2009-03-18 Pedro Alves <pedro@codesourcery.com>
3796
3797 * remote.c (remote_start_remote): Add missing call to
3798 init_wait_for_inferior in non-stop mode.
3799
3800 2009-03-18 Pedro Alves <pedro@codesourcery.com>
3801
3802 * breakpoint.c (bpstat_should_step): Only consider software
3803 watchpoints that have a location.
3804
3805 2009-03-17 Joel Brobecker <brobecker@adacore.com>
3806
3807 Add a target_ops parameter to the to_kill method in struct target_ops.
3808
3809 * target.h (struct target_ops): Add a "target_ops *" parameter to
3810 method to_kill.
3811 (target_kill): Remove macro. Add declaration.
3812 * target.c (debug_to_kill): Delete, no longer necessary.
3813 (target_kill): New function.
3814 (update_current_target): Stop inheriting the to_kill method.
3815 Do not de_fault it to no_process either.
3816 (setup_target_debug): Do not set current_target.to_kill.
3817 * gnu-nat.c, go32-nat.c, hpux-thread.c, inf-ptrace.c, inf-ttrace.c,
3818 linux-nat.c, monitor.c, nto-procfs.c, procfs.c, remote-m32r-sdi.c,
3819 remote-mips.c, remote-sim.c, remote.c, windows-nat.c: Update
3820 accordingly.
3821
3822 2009-03-17 Doug Evans <dje@google.com>
3823
3824 * amd64-linux-nat.c (si_timerid,si_overrun): Provide definition for
3825 glibc 2.3.2 and earlier.
3826
3827 2009-03-17 Joel Brobecker <brobecker@adacore.com>
3828
3829 * frame.c (get_prev_frame_1): Do not perform the inner_frame
3830 sanity check if this_frame is not NORMAL.
3831 (frame_id_inner): Update the description of this function.
3832
3833 2009-03-17 Hui Zhu <teawater@gmail.com>
3834
3835 * stack.c: Change the introduce of "disassemble-next-line".
3836
3837 2009-03-17 Pedro Alves <pedro@codesourcery.com>
3838
3839 * mi/mi-main.h (mi_print_timing_maybe): Add strict prototype,
3840 declare as extern.
3841
3842 2009-03-17 Hui Zhu <teawater@gmail.com>
3843
3844 * stack.c: Include valprint.h.
3845 (disassemble_next_line): New enum.
3846 (show_disassemble_next_line): New function. Show the current
3847 value of disassemble-next-line.
3848 (gdb_disassembly_stub_args): New struct for argument passing
3849 between function do_gdb_disassembly and function
3850 gdb_disassembly_stub.
3851 (gdb_disassembly_stub): New function. Helper for
3852 gdb_disassembly.
3853 (do_gdb_disassembly): New function. Use TRY_CATCH to catch
3854 the exception from the gdb_disassembly because it will be
3855 broken by filter sometime.
3856 (print_frame_info): If disassemble-next-line is set to auto
3857 or on and doesn't have the line debug messages for $pc,
3858 output the next instruction.
3859 If disassemble-next-line is set to on and there is line debug
3860 messages, output assembly codes for next line.
3861 (_initialize_stack): Make the "set disassemble-next-line"
3862 command an auto-boolean command. Change its class to
3863 class_stack. Place it in the top level set list. Extend help
3864 to describe the auto mode.
3865
3866 2009-03-17 Pedro Alves <pedro@codesourcery.com>
3867
3868 * infrun.c (normal_stop): Don't overwrite old_chain.
3869
3870 2009-03-16 Joel Brobecker <brobecker@adacore.com>
3871
3872 * remote-mips.c (mips_load): Replace call to regcache_set_valid_p,
3873 which is undefined, by call to regcache_invalidate, which should
3874 do what the original author wanted to do.
3875
3876 2009-03-16 Joel Brobecker <brobecker@adacore.com>
3877
3878 * remote-mips.c (mips_mourn_inferior): Add missing ops parameter.
3879 (mips_create_inferior): Likewise.
3880
3881 2009-03-16 Joel Brobecker <brobecker@adacore.com>
3882
3883 * go32-nat.c (go32_create_inferior): Add missing ops parameter.
3884
3885 2009-03-16 Joel Brobecker <brobecker@adacore.com>
3886
3887 * darwin-nat.c (darwin_resume): Fix a compiler warning when
3888 building on x86_64-darwin.
3889
3890 2009-03-16 Tristan Gingold <gingold@adacore.com>
3891
3892 * configure.tgt: Add handling for x86_64-darwin.
3893
3894 2009-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3895
3896 * auxv.c (fprint_target_auxv): New TAG for AT_RANDOM.
3897
3898 2009-03-15 Joel Brobecker <brobecker@adacore.com>
3899
3900 * aix-thread.c (aix_thread_thread_alive, aix_thread_pid_to_str):
3901 Use the ops parameter to get to the target beneath, rather than
3902 using the current_target global. Using the current_target global
3903 was an unintended accident.
3904
3905 2009-03-15 Joel Brobecker <brobecker@adacore.com>
3906
3907 Fix an error happening while loading symbols from a core file
3908 (on AIX).
3909
3910 * rs6000-nat.c (xcoff_relocate_symtab): Use target_has_execution
3911 to detect whether we're debugging a core file or not.
3912
3913 2009-03-15 Joel Brobecker <brobecker@adacore.com>
3914
3915 Modernize the aix-thread later by getting rid of the base_target
3916 global. This brings back to life the AIX port which was otherwise
3917 crashing all the time.
3918
3919 * aix-thread.c (base_target): Delete.
3920 (pd_enable): Do not set base_target.
3921 (aix_thread_attach): Use find_target_beneath instead of base_target.
3922 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
3923 (aix_thread_fetch_registers, aix_thread_store_registers),
3924 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
3925 (aix_thread_thread_alive, aix_thread_pid_to_str): Likewise.
3926 (aix_thread_kill): Delete. Does not seem necessary.
3927 (init_aix_thread_ops): Do not set aix_thread_ops.to_kill.
3928
3929 2009-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3930
3931 * stack.c (return_command <retval_exp>): New variables retval_expr
3932 and old_chain. Inline parse_and_eval to initialize retval_expr. Check
3933 RETVAL_EXPR for UNOP_CAST and set RETURN_TYPE to the RETURN_VALUE type
3934 if RETURN_TYPE is NULL.
3935
3936 2009-03-14 Pedro Alves <pedro@codesourcery.com>
3937
3938 * remote.c (PACKET_qAttached): New.
3939 (remote_query_attached): New.
3940 (remote_add_inferior): Add new `attached' argument. Handle it.
3941 (remote_notice_new_inferior, remote_start_remote): Adjust to pass
3942 -1 to remote_add_inferior in new parameter.
3943 (extended_remote_attach_1): Adjust to pass 1 to
3944 remote_add_inferior in the new parameter.
3945 (extended_remote_create_inferior_1): Adjust to pass 0 to
3946 remote_add_inferior in the new parameter.
3947 (_initialize_remote): Add "set/show remote query-attached-packet"
3948 commands.
3949
3950 2009-03-13 Tom Tromey <tromey@redhat.com>
3951
3952 * symtab.c (lookup_symbol_in_language): Use a cleanup.
3953
3954 2009-03-13 Doug Evans <dje@google.com>
3955
3956 * exceptions.h: Clean up some comments on catch_exceptions usage.
3957 * exceptions.c: Ditto. Plus mark catch_errors as superseded by
3958 catch_exceptions.
3959
3960 2009-02-17 Joel Brobecker <brobecker@adacore.com>
3961
3962 The following patch helps getting rid of a warning inside solib-som.c.
3963
3964 * source.c (source_full_path_of): Constify parameter filename.
3965 * defs.h (source_full_path_of): Update declaration accordingly.
3966
3967 2009-03-12 Joel Brobecker <brobecker@adacore.com>
3968
3969 * ada-lang.c (ada_evaluate_subexp): Merge case BINOP_REM and
3970 BINOP_MOD cases with the handling of case BINOP_DIV and BINOP_MUL.
3971 Remove useless op value checks when EVAL_AVOID_SIDE_EFFECTS.
3972
3973 2009-03-12 Joel Brobecker <brobecker@adacore.com>
3974
3975 * ada-lang.c (ada_evaluate_subexp) <BINOP_DIV>: make sure to
3976 promote the operands when noside is EVAL_AVOID_SIDE_EFFECTS.
3977
3978 2009-03-12 Joel Brobecker <brobecker@adacore.com>
3979
3980 * ada-tasks.c (ada_task_is_alive): Move up and make static.
3981 * ada-lang.h (ada_task_is_alive): Remove declaration.
3982
3983 2009-03-12 Jerome Guitton <guitton@adacore.com>
3984
3985 * ada-lang.c (ada_delta): Change the type of numerators and
3986 denominators to DOUBLEST, as they may not fit into a long.
3987 (scaling_factor): Ditto.
3988
3989 2009-03-12 Jerome Guitton <guitton@adacore.com>
3990
3991 * language.c (lang_bool_type): Set lai->bool_type_symbol to NULL.
3992
3993 2009-03-12 Joel Brobecker <brobecker@adacore.com>
3994
3995 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: For tagged
3996 types, if we are unable to determine the actual symbol type
3997 from its tag, then use the static approximation instead.
3998
3999 2009-03-12 Joel Brobecker <brobecker@adacore.com>
4000
4001 Fix crash printing packed record with packed array.
4002
4003 * ada-lang.c (ada_modulus_from_name): New function.
4004 (ada_modulus): In the case where the type length is bigger than
4005 the size of the type used to hold the bounds, try determining
4006 the modulus from the type name.
4007 (ada_value_primitive_packed_val): Fix bug in the computation of
4008 ntarg causing an out-of-buffer invalid access.
4009
4010 2009-03-12 Joel Brobecker <brobecker@adacore.com>
4011
4012 Fix segfault when printing short_integer'last.
4013
4014 * ada-lang.c (ada_find_any_type): Search in the primitive types
4015 if a symbol could not be found.
4016
4017 2009-03-12 Joel Brobecker <brobecker@adacore.com>
4018
4019 * ada-tasks.c (task_states,long_task_states): Add new states
4020 Activating and Acceptor_Delay_Sleep. Update the description
4021 of state Acceptor_Sleep.
4022
4023 2009-03-12 Jonas Maebe <jonas.maebe@elis.ugent.be> (obvious change)
4024
4025 Fix a build failure on Darwin following some changes in
4026 the profile of some target_ops methods.
4027
4028 * darwin-nat.c (darwin_kill_inferior): Add target_ops parameter
4029 where missing.
4030 (darwin_stop_inferior, darwin_detach): Likewise.
4031
4032 2009-03-12 Vladimir Prus <vladimir@codesourcery.com>
4033
4034 Include token in ^running notification for CLI commands.
4035
4036 * mi/mi-main.c (mi_execute_command): Set current_token here.
4037 (mi_cmd_execute): Do not set current_token here.
4038
4039 2009-03-12 Vladimir Prus <vladimir@codesourcery.com>
4040
4041 Fix MI timings.
4042
4043 * mi/mi-main.c (mi_print_timing_maybe): New.
4044 (captured_mi_execute_command): Simplify. Output timings to
4045 CLI commands, too.
4046 (mi_execute_async_cli_command): Do not print timings.
4047 * mi/mi-main.h (mi_print_timing_maybe): Declare.
4048 * mi/mi-interp.c (mi_on_normal_stop): Call mi_print_timing_maybe.
4049
4050 2009-03-12 Jerome Guitton <guitton@adacore.com>
4051
4052 * xcoffread.c (process_linenos): Check if the line in the
4053 include table refers to the main source file and, if so,
4054 add them to the main subfile.
4055
4056 2009-03-12 Joel Brobecker <brobecker@adacore.com>
4057
4058 Fix a build failure on AIX introduced after a change in the profile
4059 of some of the "methods" in the target_ops structure.
4060 * aix-thread.c: Add missing target_ops parameter throughout.
4061
4062 Implement Ada task switching on AIX.
4063 * aix-thread.c (aix_thread_get_ada_task_ptid): New function.
4064 (init_aix_thread_ops): Set aix_thread_ops.to_get_ada_task_ptid.
4065
4066 2009-03-11 Daniel Jacobowitz <dan@codesourcery.com>
4067
4068 * breakpoint.c (bpstat_check_breakpoint_conditions): Use
4069 value_mark and value_free_to_mark.
4070 * objfiles.c (free_objfile): Call objfile_free_data before
4071 freeing the BFD.
4072
4073 2009-03-10 Hui Zhu <teawater@gmail.com>
4074
4075 * disasm.c (gdb_disassembly): Remove unused argument
4076 "line_num".
4077 * disasm.h (gdb_disassembly): Ditto.
4078 * cli/cli-cmds.c (print_disassembly): Ditto.
4079 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Ditto.
4080
4081 2009-03-09 Paul Pluzhnikov <ppluzhnikov@google.com>
4082
4083 * solib.c (solib_contains_address_p): New function.
4084 (solib_name_from_address): Use it.
4085 * printcmd.c (display_uses_solib_p): Use it.
4086 * solib.h (solib_contains_address_p): Declare it.
4087
4088 2009-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4089
4090 * varobj.c (free_variable): Call value_free.
4091
4092 2009-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4093
4094 PR gdb/9873:
4095 * dwarf2read.c (dwarf_decode_macros): New variable `at_commandline'.
4096 Move the variable `macinfo_type' out of the loop. Create a new
4097 processing pass before the current one to pre-create `current_file'.
4098 New complaint on misplaced zero/non-zero definitions/includes.
4099 Skip first DW_MACINFO_start_file with `at_commandline' set.
4100
4101 2008-03-09 Vladimir Prus <vladimir@codesourcery.com>
4102
4103 * solib.c (reload_shared_libraries): Give
4104 inferior a chance to reset solib breakpoint.
4105 Reinit frame cache.
4106
4107 2009-03-08 Christopher Faylor <me+cygwin@cgf.cx>
4108
4109 * windows-nat.c (dr): Redefine to use largest possible integer which
4110 holds a pointer.
4111 (cygwin_set_dr): Avoid coercion.
4112
4113 2009-03-08 Oswald Buddenhagen <oswald.buddenhagen@trolltech.de>
4114
4115 * windows-nat.c (windows_create_inferior): Implement --tty handling on
4116 non-cygwin.
4117
4118 2009-03-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4119
4120 Rename solib_address to solib_name_from_address.
4121 * breakpoint.c (insert_bp_location, disable_breakpoints_in_shlibs)
4122 (disable_breakpoints_in_unloaded_shlib): Update.
4123 * printcmd.c (display_uses_solib_p): Likewise.
4124 * stack.c (print_frame): Likewise.
4125 * solib.c: Rename.
4126 * solib.h: Rename.
4127
4128 2009-03-05 Paul Pluzhnikov <ppluzhnikov@google.com>
4129
4130 * printcmd.c (do_one_display): Reparse exp_string.
4131 (display_uses_solib_p): New function.
4132 (clear_dangling_display_expressions): New function.
4133 (_initialize_printcmd): Add observer.
4134 * solib.c (no_shared_libraries): Swap order of calls to
4135 clear_solib and objfile_purge_solibs.
4136
4137 2009-03-05 Joel Brobecker <brobecker@adacore.com>
4138
4139 Implement the target-specific part of Ada tasking support
4140 on Tru64.
4141
4142 * dec-thread.c (dec_thread_get_ada_task_ptid): New function.
4143 (init_dec_thread_ops): Set the to_get_ada_task_ptid method.
4144
4145 2009-03-05 Joel Brobecker <brobecker@adacore.com>
4146
4147 Get rid of the global "base_target" and use "find_target_beneath"
4148 to find the underlying target.
4149 * dec-thread.c (base_target): Delete.
4150 (enable_dec_thread): Remove assignement to base_target.
4151 (dec_thread_detach, dec_thread_wait, dec_thread_wait)
4152 (dec_thread_fetch_registers, dec_thread_store_registers)
4153 (dec_thread_mourn_inferior, dec_thread_pid_to_str):
4154 Update the function profile if necessary.
4155 Use find_target_beneath to call the same method but from
4156 the underlying target, removing the need for "base_target".
4157
4158 * dec-thread.c (dec_thread_get_regsets, dec_thread_set_regsets):
4159 Fix a copy/paste error in a few debug traces...
4160
4161 * solib-osf.c (init_so): Use a simpler method for computing
4162 the size of lm_info structure. This also gets rid of warning
4163 emitted by the compiler.
4164
4165 2009-03-05 Pedro Alves <pedro@codesourcery.com>
4166
4167 * breakpoint.c (check_duplicates_for): Skip permanent breakpoints
4168 duplicates of permanent breakpoints.
4169
4170 2009-03-04 Pedro Alves <pedro@codesourcery.com>
4171
4172 * inferior.h (notice_new_inferior): Declare.
4173 * infcmd.c (notice_new_inferior): New.
4174 * remote.c (remote_add_inferior, remote_add_thread): New.
4175 (notice_new_inferiors): Rename to...
4176 (remote_notice_new_inferior): ... this. Add RUNNING argument.
4177 Use remote_add_thread instead of add_thread, passing it the
4178 RUNNING argument. Add an inferior with remote_add_inferior. If
4179 we just learned about an inferior, call notice_new_inferior.
4180 (record_currthread): Adjust.
4181 (remote_threads_info): Adjust to use remote_notice_new_inferior.
4182 (remote_start_remote, extended_remote_attach_1): Use
4183 remote_add_inferior.
4184 (process_stop_reply): Adjust. Call remote_notice_new_inferior
4185 after handling expedited registers and watchpoint state.
4186 (extended_remote_create_inferior_1): Use remote_add_inferior.
4187
4188 2009-03-04 Aleksandar Ristovski <aristovski@qnx.com>
4189
4190 * infcmd.c (registers_info): Remove register number case.
4191
4192 2009-03-03 Pedro Alves <pedro@codesourcery.com>
4193
4194 * top.c (quit_target): Check for target_has_execution before
4195 killing or detaching from inferiors.
4196
4197 2009-03-02 Joel Brobecker <brobecker@adacore.com>
4198
4199 Remove some unused routines.
4200
4201 * ada-lang.c (is_suppressed_name, ada_suppress_symbol_printing):
4202 Delete.
4203 * ada-lang.c (ada_task_list_iterator_ftype)
4204 (iterate_over_live_ada_tasks): Delete.
4205 * ada-tasks.c (ada_get_environment_task, iterate_over_live_ada_tasks):
4206 Delete.
4207
4208 2009-03-01 Doug Evans <dje@google.com>
4209
4210 * symtab.c: Remove trailing whitespace throughout the file.
4211 (expand_line_sal): Fix some typos and whitespace.
4212
4213 * Makefile.in (clean): rm -f $(DEPDIR)/*.
4214
4215 * Makefile.in (GDB_CFLAGS): Add -I$(srcdir)/common.
4216 (init.c): signals/ -> common/.
4217 (signals.o): Update.
4218 * target.h (target_signal_to_string,target_signal_to_string)
4219 (target_signal_from_name,target_signal_to_host_p)
4220 (target_signal_from_host,target_signal_to_host): Move to ...
4221 * common/gdb_signals.h: ... here. New file.
4222 * common/signals.c: Moved here from signals/signals.c.
4223 #include gdb_signals.h, remove #include of target.h in gdb case.
4224 (target_signal_from_command,default_target_signal_to_host)
4225 (default_target_signal_from_host): Move inside #ifndef GDBSERVER.
4226
4227 Include thread ID in target_wait debugging output.
4228 * infrun.c (print_target_wait_results): New function.
4229 (wait_for_inferior,fetch_inferior_event): Call it.
4230
4231 2009-02-27 Pedro Alves <pedro@codesourcery.com>
4232
4233 * gdb_proc_service.h (struct ps_prochandle): Replace pid_t field
4234 with a ptid_t field.
4235 * linux-thread-db.c (thread_get_info_callback): Build the ptid
4236 using the pid stored in proc_handle.ptid.
4237 (thread_from_lwp, thread_db_attach_lwp, enable_thread_event)
4238 (check_for_thread_db, thread_db_detach, check_event)
4239 (thread_db_mourn_inferior, find_new_threads_callback)
4240 (thread_db_find_new_threads_1): Adjust.
4241 * proc-service.c (ps_xfer_memory, ps_lgetregs, ps_lsetregs)
4242 (ps_lgetfpregs, ps_lsetfpregs, ps_getpid): Adjust.
4243
4244 2009-02-27 Phil Muldoon <pmuldoon@redhat.com>
4245
4246 * valprint.c (read_string): Rework clean-up logic. Use
4247 free_current_contents to clean-up buffer.
4248
4249 2009-02-27 Andreas Schwab <schwab@linux-m68k.org>
4250
4251 * MAINTAINERS: Update e-mail address.
4252
4253 2009-02-26 Phil Muldoon <pmuldoon@redhat.com>
4254
4255 * python/python-utils.c (python_string_to_unicode): Always return
4256 a new reference.
4257 (python_string_to_target_string): Decrement transient python
4258 instance.
4259 (python_string_to_host_string): Likewise.
4260
4261 2007-02-26 Pedro Alves <pedro@codesourcery.com>
4262
4263 * mips-linux-nat.c (mips64_linux_fetch_registers): Pass `ops' to
4264 call to super_fetch_registers.
4265 (mips64_linux_store_registers): Pass `ops' to call to
4266 super_store_registers.
4267
4268 2009-02-25 Doug Evans <dje@google.com>
4269
4270 * breakpoint.c (insert_bp_location): Add \n to overlay breakpoint
4271 error message.
4272
4273 * breakpoint.c (disable_breakpoints_in_shlibs): Delete local
4274 disabled_shlib_breaks, unused.
4275
4276 * printcmd.c (build_address_symbolic): Fix comment.
4277
4278 2009-02-25 Hui Zhu <teawater@gmail.com>
4279
4280 * cli/cli-script.c (define_command): Add _() to query.
4281 * gnu-nat.c (inf_validate_task_sc): Ditto.
4282 * infcmd.c (kill_if_already_running): Ditto.
4283 (jump_command): Ditto.
4284 (attach_command): Ditto.
4285 * inflow.c (kill_command): Ditto.
4286 * infrun.c (handle_command): Ditto.
4287 * maint.c (maintenance_dump_me): Ditto.
4288 * memattr.c (mem_delete_command): Ditto.
4289 * monitor.c (monitor_interrupt_query): Ditto.
4290 * nto-procfs.c (interrupt_query): Ditto.
4291 * printcmd.c (undisplay_command): Ditto.
4292 * remote-mips.c (mips_kill): Ditto.
4293 * remote.c (interrupt_query): Ditto.
4294 * solib-irix.c (irix_open_symbol_file_object): Ditto.
4295 * solib-osf.c (osf_open_symbol_file_object): Ditto.
4296 * solib-pa64.c (pa64_open_symbol_file_object): Ditto.
4297 * solib-som.c (som_open_symbol_file_object): Ditto.
4298 * solib-svr4.c (open_symbol_file_object): Ditto.
4299 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4300 * target.c (kill_or_be_killed): Ditto.
4301 * tracepoint.c (delete_trace_command): Ditto.
4302 * top.c (quit_confirm): Add _() to s that will be used
4303 in query.
4304
4305 2009-02-24 Pierre Muller <muller@ics.u-strasbg.fr>
4306
4307 Fix windows-nat.c compilation failure.
4308
4309 * windows-nat.c (windows_thread_alive): Fix forward declaration.
4310 (get_windows_debug_event): Add ops parameter to call to windows_resume.
4311
4312 2009-02-23 Pedro Alves <pedro@codesourcery.com>
4313
4314 * remote-sim.c (gdbsim_resume): Add target_ops* argument.
4315
4316 2009-02-23 Jay Krell <jay.krell@cornell.edu> (tiny change)
4317
4318 * symtab.c (find_line_symtab): Initialize exact to avoid
4319 a compiler warning.
4320
4321 2009-02-23 Pedro Alves <pedro@codesourcery.com>
4322
4323 * i386-linux-nat.c (i386_linux_fetch_inferior_registers): Pass
4324 `ops' to recursive call.
4325
4326 2009-02-23 Pedro Alves <pedro@codesourcery.com>
4327
4328 * corelow.c (get_core_registers): Adjust.
4329 (core_file_thread_alive): Rename to...
4330 (core_thread_alive): ... this.
4331 (core_pid_to_str): Try gdbarch_core_pid_to_str first.
4332 (init_core_ops): Adjust.
4333 (coreops_suppress_target): Delete.
4334 (_initialize_corelow): Unconditionally add core_ops.
4335 * procfs.c: Include "inf-child.h".
4336 (procfs_ops): Delete.
4337 (init_procfs_ops): Delete. Reimplement as...
4338 (procfs_target): ... this, inheriting from inf-child.
4339 (procfs_attach, procfs_detach, procfs_fetch_registers): Adjust.
4340 (procfs_prepare_to_store): Delete.
4341 (procfs_store_registers, procfs_resume): Adjust.
4342 (procfs_open): Delete.
4343 (procfs_suppress_run): Delete.
4344 (procfs_can_run): Delete.
4345 (procfs_mourn_inferior): Adjust.
4346 (procfs_init_inferior): Add target_ops parameter. Adjust.
4347 (procfs_create_inferior): Don't pass procfs_init_inferior to
4348 fork_inferior. Instead call it after fork_inferior returns.
4349 (procfs_find_new_threads): Adjust.
4350 (_initialize_procfs): Adjust to use procfs_target instead of
4351 init_procfs_ops.
4352 * sol-thread.c (orig_core_ops, sol_core_ops): Delete.
4353 (lwp_to_thread): Use target_thread_alive.
4354 (sol_thread_open): Delete.
4355 (sol_thread_attach): Delete.
4356 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
4357 (sol_thread_fetch_registers, sol_thread_store_registers): Adjust
4358 to use find_target_beneath.
4359 (sol_thread_prepare_to_store, sol_thread_xfer_memory): Delete.
4360 (sol_thread_xfer_partial): Adjust to use find_target_beneath.
4361 (sol_thread_files_info, sol_thread_kill_inferior): Delete.
4362 (check_for_thread_db): New.
4363 (sol_thread_notice_signals, sol_thread_create_inferior): Delete.
4364 (sol_thread_new_objfile): Call check_for_thread_db.
4365 (sol_thread_mourn_inferior): Adjust to use find_target_beneath.
4366 (sol_thread_can_run): Delete.
4367 (sol_thread_alive): Adjust to use find_target_beneath.
4368 (sol_thread_stop): Delete.
4369 (rw_common): Use target_write_memory or target_read_memory.
4370 (ps_lgetregs, ps_lgetfpregs): Use target_fetch_registers.
4371 (ps_lsetregs, ps_lsetfpregs): Use target_store_registers.
4372 (solaris_pid_to_str): Remove check for libthread_db initialization
4373 failing.
4374 (sol_find_new_threads): Remove check for libthread_db
4375 initialization failing, or for an invalid inferior_ptid. Adjust
4376 to use find_target_beneath.
4377 (sol_core_open, sol_core_close, sol_core_detach,
4378 sol_core_files_info, sol_find_memory_regions,
4379 sol_make_note_section, ignore): Delete.
4380 (init_sol_thread_ops): Make it a thread_stratum target. Remove
4381 unneeded callback settings.
4382 (init_sol_core_ops): Delete.
4383 (_initialize_sol_thread): No longer call init_sol_core_ops, set
4384 procfs_suppress_run, or hack with core_ops.
4385
4386 * target.h (struct target_ops): Add a target_ops * parameter to
4387 to_resume, to_fetch_registers, to_store_registers, to_thread_alive
4388 and to_find_new_threads.
4389 (target_fetch_registers, target_store_registers)
4390 (target_thread_alive, target_find_new_threads): Redeclare as
4391 function.
4392
4393 * target.c (update_current_target): Do not inherit or de_fault
4394 to_resume, to_fetch_registers, to_store_registers,
4395 to_thread_alive, to_find_new_threads.
4396 (target_resume): Adjust.
4397 (target_thread_alive, target_find_new_threads): New.
4398 (debug_to_resume, debug_to_fetch_registers): Delete.
4399 (target_fetch_registers): New.
4400 (debug_to_store_registers): Delete.
4401 (target_store_registers): New.
4402 (debug_to_thread_alive, debug_to_find_new_threads): Delete.
4403 (setup_target_debug): Adjust.
4404
4405 * gdbcore.h (core_ops): Delete declaration.
4406
4407 * inf-ptrace.c, linux-nat.c, remote.c, amd64-linux-nat.c,
4408 inf-child.c, linux-thread-db.c, bsd-uthread.c, inf-ttrace.c,
4409 i386-sol2-tdep.c, darwin-nat.c, gnu-nat.c, go32-nat.c,
4410 hpux-thread.c, i386-linux-nat.c, i386fbsd-nat.c, monitor.c,
4411 nto-procfs.c, remote-m32r-sdi.c, remote-mips.c, windows-nat.c,
4412 alphabsd-nat.c, amd64bsd-nat.c, arm-linux-nat.c, armnbsd-nat.c,
4413 bsd-kvm.c, hppa-hpux-nat.c, hppa-linux-nat.c, hppabsd-nat.c,
4414 hppanbsd-nat.c, i386-darwin-nat.c, i386bsd-nat.c,
4415 ia64-linux-nat.c, m32r-linux-nat.c, m68kbsd-nat.c,
4416 m68klinux-nat.c, m88kbsd-nat.c, mips-linux-nat.c,
4417 mips64obsd-nat.c, mipsnbsd-nat.c, ppc-linux-nat.c, ppcnbsd-nat.c,
4418 ppcobsd-nat.c, remote-sim.c, rs6000-nat.c, s390-nat.c,
4419 shnbsd-nat.c, sparc-nat.c, sparc-nat.h, spu-linux-nat.c,
4420 vaxbsd-nat.c, xtensa-linux-nat.c: Adjust to target_ops changes.
4421
4422 * gdbarch.sh (core_pid_to_str): New gdbarch callback.
4423 * gdbarch.h, gdbarch.c: Regenerate.
4424
4425 * sol2-tdep.c: Include "inferior.h".
4426 (sol2_core_pid_to_str): New.
4427 * sol2-tdep.h (sol2_core_pid_to_str): Declare.
4428
4429 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Set it.
4430 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Set it.
4431 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Set it.
4432 * i386-sol2-tdep.c (i386_sol2_init_abi): Set it.
4433
4434 2009-02-22 Doug Evans <dje@google.com>
4435
4436 * exec.c (exec_file_attach): Fix comment.
4437
4438 2009-02-22 Pedro Alves <pedro@codesourcery.com>
4439
4440 Silence a few -Wmissing-prototypes warnings.
4441
4442 PR build/9877:
4443 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Make
4444 it static.
4445 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Declare.
4446 * amd64fbsd-tdep.c (amd64fbsd_init_abi): Make it static.
4447 * amd64nbsd-tdep.c (_initialize_amd64nbsd_ndep): Rename to ...
4448 (_initialize_amd64nbsd_tdep): ... this.
4449 * arm-linux-tdep.c (arm_linux_software_single_step): Make it static.
4450 (_initialize_arm_linux_tdep): Declare.
4451 * armbsd-tdep.c (armbsd_fpreg_offset): Make it static.
4452 * armnbsd-tdep.c (_initialize_arm_netbsd_tdep): Declare.
4453 * armobsd-tdep.c (_initialize_armobsd_tdep): Declare.
4454 * avr-tdep.c (avr_return_value): Make it static.
4455 (avr_frame_unwind_cache): Ditto.
4456 * bsd-uthread.c (bsd_uthread_inferior_created): Ditto.
4457 (bsd_uthread_solib_loaded): Ditto.
4458 (bsd_uthread_solib_unloaded): Ditto.
4459 (bsd_uthread_target): Ditto.
4460 (_initialize_bsd_uthread): Declare.
4461 * cris-tdep.c (crisv32_single_step_through_delay): Make it static.
4462 (cris_frame_unwind_cache): Ditto.
4463 * frv-tdep.c (frv_return_value): Ditto.
4464 * h8300-tdep.c (h8300_use_struct_convention): Ditto.
4465 (h8300h_use_struct_convention): Ditto.
4466 * hppa-tdep.c (hppa_sign_extend, hppa_low_hppa_sign_extend):
4467 Ditto.
4468 * hppa-tdep.h (hppa_low_sign_extend, hppa_sign_extend): Delete
4469 declarations.
4470 * hppabsd-tdep.c: Include hppabsd-tdep.h.
4471 (hppabsd_find_global_pointer): Make it static.
4472 * hppabsd-tdep.h: New.
4473 * hppanbsd-tdep.c: Include hppabsd-tdep.h.
4474 (hppabsd_init_abi): Remove declaration.
4475 (_initialize_hppabsd_tdep): Remove declaration.
4476 (_initialize_hppanbsd_tdep): Declare.
4477 * hppaobsd-tdep.c: Include hppabsd-tdep.h.
4478 (hppabsd_init_abi): Delete declaration.
4479 (hppaobsd_init_abi): Make it static.
4480 * i386-nto-tdep.c (_initialize_i386nto_tdep): Declare.
4481 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Declare.
4482 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Declare.
4483 * ia64-tdep.c (ia64_register_reggroup_p): Make it static.
4484 * iq2000-tdep.c (_initialize_iq2000_tdep): Declare.
4485 * m32c-tdep.c (m32c_register_reggroup_p): Make it static.
4486 (m32c_analyze_prologue, m32c_virtual_frame_pointer): Ditto.
4487 (_initialize_m32c_tdep): Declare.
4488 * m32r-rom.c (_initialize_m32r_rom): Declare.
4489 * m32r-tdep.c (m32r_skip_prologue): Make it static.
4490 (m32r_return_value): Ditto.
4491 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Make it static.
4492 (m68hc11_return_value): Ditto.
4493 * m68klinux-tdep.c (_initialize_m68k_linux_tdep): Declare.
4494 * m88k-tdep.c (m88k_frame_cache): Make it static.
4495 * mep-tdep.c (mep_gdb_print_insn): Ditto.
4496 (mep_return_value): Ditto.
4497 (_initialize_mep_tdep): Declare.
4498 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Declare.
4499 * mips-linux-tdep.c (supply_64bit_reg): Make it static.
4500 (mips_linux_syscall_next_pc): Ditto.
4501 (_initialize_mips_linux_tdep): Declare.
4502 * mips-tdep.c (mips_single_step_through_delay): Make it static.
4503 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Declare.
4504 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Declare.
4505 * mn10300-tdep.c (_initialize_mn10300_tdep): Declare.
4506 * mt-tdep.c (_initialize_mt_tdep): Declare.
4507 * nbsd-tdep.c: Include nbsd-tdep.h.
4508 * nto-tdep.c (find_load_phdr): Make it static.
4509 (_initialize_nto_tdep): Declare.
4510 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Make it
4511 static.
4512 (_initialize_ppc_linux_tdep): Declare.
4513 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint)
4514 (m32r_insert_watchpoint, m32r_remove_watchpoint)
4515 (m32r_stopped_data_address, m32r_stopped_by_watchpoint): Make
4516 static.
4517 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Declare.
4518 * rs6000-nat.c: Include xcoffread.h.
4519 (find_toc_address): Don't extern declare get_toc_offset. Adjust
4520 to call xcoff_get_to_offset.
4521 * rs6000-tdep.c (ppc_vsx_support_p, ppc_displaced_step_fixup)
4522 (rs6000_skip_main_prologue, rs6000_in_solib_return_trampoline)
4523 (rs6000_skip_trampoline_code): Make static.
4524 * s390-tdep.c (s390_regset_from_core_section): Ditto.
4525 * sh-tdep.c (sh_register_reggroup_p): Ditto.
4526 * shnbsd-tdep.c (shnbsd_regset_from_core_section): Ditto.
4527 (_initialize_shnbsd_tdep): Declare.
4528 * solib-frv.c (displacement_from_map): Make static.
4529 (_initialize_frv_solib): Declare.
4530 * solib-irix.c (fetch_lm_info): Make static.
4531 (_initialize_irix_solib): Declare.
4532 * solib-som.c: Include solib-som.h.
4533 (som_solib_select): Line break.
4534 * sparc-tdep.c (sparc_regset_from_core_section): Make static.
4535 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Rename to ...
4536 (_initialize_sparcnbsd_tdep): ... this.
4537 * spu-tdep.c (spu_software_single_step): Make it static.
4538 (_initialize_spu_tdep): Declare.
4539 * vax-tdep.c (vax_frame_cache): Make it static.
4540 * xcoffread.c: Include xcoffread.h.
4541 (get_toc_offset): Rename to ...
4542 (xcoff_get_toc_offset): ... this.
4543 (_initialize_xcoffread): Declare.
4544 * xcoffread.h: New.
4545 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Declare.
4546 * xtensa-tdep.c (xtensa_skip_prologue, xtensa_derive_tdep): Make
4547 static.
4548 (_initialize_xtensa_tdep): Declare.
4549
4550 2008-02-21 Pedro Alves <pedro@codesorcery.com>
4551
4552 Silence a few -Wmissing-prototypes warnings.
4553
4554 PR build/9877:
4555 * amd64-nat.c: Include "amd64-nat.h".
4556 * fork-child.c (_initialize_fork_child): Ditto.
4557 * gcore.c (_initialize_gcore): Ditto.
4558 * inf-ptrace.c: Include "inf-ptrace.h".
4559 (inf_ptrace_store_registers): Make it static.
4560 * linux-nat.c (linux_nat_terminal_ours): Make it static.
4561 (_initialize_linux_nat): Declare before definition.
4562 * linux-tdep.c: Include "linux-tdep.h".
4563 * linux-thread-db.c (_initialize_thread_db): Declare before
4564 definition.
4565 * proc-service.c (_initialize_proc_service): Ditto.
4566 * remote.c (remote_send_printf): Make it static.
4567 * solib.c: Include "solib.h".
4568 * symfile-mem.c (_initialize_symfile_mem): Declare before
4569 definition.
4570 * ada-lang.c (ada_la_decode, ada_match_name)
4571 (ada_suppress_symbol_printing, ada_is_array_type)
4572 (ada_value_ptr_subscript, ada_array_length)
4573 (ada_to_static_fixed_value): Make them static.
4574 (_initialize_ada_language): Declare before definition.
4575 * ada-tasks.c (ada_get_task_number, ada_get_environment_task)
4576 (ada_task_list_changed, ada_new_objfile_observer): Make them
4577 static.
4578 (_initialize_tasks): Declare before definition.
4579 * addrmap.c (_initialize_addrmap): Declare before definition.
4580 * auxv.c (default_auxv_parse): Make it static.
4581 * bfd-target.c (target_bfd_xfer_partial, target_bfd_xclose): Make
4582 them static.
4583 * breakpoint.c (remove_sal): Add line break.
4584 (expand_line_sal_maybe): Make it static.
4585 * cp-name-parser.y: Include "cp-support.h".
4586 * cp-valprint.c (cp_find_class_member): Make it static.
4587 * eval.c (value_f90_subarray): Ditto.
4588 * exceptions.c (print_any_exception): Ditto.
4589 * findcmd.c (_initialize_mem_search): Declare before definition.
4590 * frame.c (frame_observer_target_changed): Make it static.
4591 * gnu-v3-abi.c (gnuv3_find_method_in): Make it static.
4592 * inf-child.c: Include "inf-child.h".
4593 * inferior.h (valid_inferior_id): Rename to ...
4594 (valid_gdb_inferior_id): ... this.
4595 * infrun.c (infrun_thread_stop_requested, siginfo_make_value):
4596 Make them static.
4597 * jv-lang.c (java_language_arch_info): Make it static.
4598 * m2-typeprint.c (m2_get_discrete_bounds): Ditto.
4599 * osdata.c (info_osdata_command): Make it static.
4600 * regcache.c (regcache_observer_target_changed): Make it static.
4601 * reverse.c (_initialize_reverse): Declare before definition.
4602 * stabsread.c (cleanup_undefined_types_noname)
4603 (cleanup_undefined_types_1): Make them static.
4604 * symfile.c (place_section): Make it static.
4605 * symtab.c (find_pc_sect_psymtab_closer): Make it static.
4606 * target-descriptions.c (_initialize_target_descriptions): Declare
4607 before definition.
4608 * target.c (default_get_ada_task_ptid, find_default_can_async_p)
4609 (find_default_is_async_p, find_default_supports_non_stop): Make
4610 them static.
4611 (target_supports_non_stop): Add prototype.
4612 (dummy_pid_to_str): Make it static.
4613 * utils.c (_initialize_utils): Declare before definition.
4614 * ada-exp.y (_initialize_ada_exp): Declare before definition.
4615 * solib-svr4.c (HAS_LM_DYNAMIC_FROM_LINK_MAP): Add a prototype.
4616 * target.h (struct target_ops): Add a prototype to the
4617 to_can_execute_reverse callback.
4618 * macroscope.c (_initialize_macroscope): Declare before definition.
4619 * cp-namespace.c (_initialize_cp_namespace): Declare before definition.
4620 * python/python.c (_initialize_python): Declare before definition.
4621 * tui/tui-command.c: Include "tui/tui-command.h".
4622 * tui/tui-data.c (init_content_element, init_win_info): Make them
4623 static.
4624 * tui/tui-disasm.c: Include "tui/tui-disasm.h".
4625 * tui/tui-interp.c (_initialize_tui_interp): Declare before
4626 definition.
4627 * tui/tui-layout.c: Include "tui/tui-layout.h".
4628 (_initialize_tui_layout): Declare before definition.
4629 * tui/tui-regs.c: Include "tui/tui-regs.h".
4630 (tui_display_reg_element_at_line): Make it static.
4631 (_initialize_tui_regs): Declare before definition.
4632 * tui/tui-stack.c (_initialize_tui_stack): Declare before
4633 definition.
4634 * tui/tui-win.c: Include "tui/tui-win.h".
4635 (_initialize_tui_win): Declare before definition.
4636 (tui_sigwinch_handler): Make it static. Wrap in ifdef SIGWINCH.
4637 * tui/tui-win.h (tui_sigwinch_handler): Delete declaration.
4638 (tui_get_cmd_list): Add a prototype.
4639 * tui/tui-windata.c: Include tui-windata.h.
4640 * tui/tui-wingeneral.c (box_win): Make it static.
4641 * cli/cli-logging.c (show_logging_command): Make it static.
4642 (_initialize_cli_logging): Declare before definition.
4643 * mi/mi-common.c (_initialize_gdb_mi_common): Declare before
4644 definition.
4645
4646 2009-02-20 Pierre Muller <muller@ics.u-strasbg.fr>
4647
4648 Extend use of i386_use_watchpoints to all i386 native files
4649 using hardware watchpoints.
4650 * go32-nat.c (init_go32_ops): Call i386_use_watchpoints.
4651 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Ditto.
4652 * windows-nat.c (init_windows_ops): Ditto.
4653 * config/i386/nm-cygwin.h: Define I386_WATCHPOINTS_IN_TARGET_VECTOR.
4654 * config/i386/nm-cygwin64.h: Ditto.
4655 * config/i386/nm-fbsd.h: Ditto.
4656 * config/i386/nm-go32.h: Ditto.
4657
4658 2009-02-19 Joel Brobecker <brobecker@adacore.com>
4659
4660 * ada-typeprint.c (ada_typedef_print): Remove. Unused.
4661
4662 2009-02-18 Vladimir Prus <vladimir@codesourcery.com>
4663
4664 * mi/mi-interp.c (mi_solib_loaded, mi_solib_unloaded): New.
4665 (mi_interpreter_init): Register the above.
4666 * solib.c (clear_solib): Notify solib unload.
4667 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Do not
4668 disable breakpoints on a.out targets.
4669
4670 2009-02-17 Vladimir Prus <vladimir@codesourcery.com>
4671
4672 * observer.c (observer_test_first_notification_function)
4673 (observer_test_second_notification_function)
4674 (observer_test_third_notification_function): Adjust prototype.
4675
4676 2009-02-17 Pedro Alves <pedro@codesourcery.com>
4677
4678 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-dicos-tdep.o.
4679 (ALL_TARGET_OBS): Add dicos-tdep.o.
4680 (ALLDEPFILES): Add amd64-dicos-tdep.c and dicos-tdep.c.
4681 * configure.tgt (i[34567]86-*-dicos*): Add dicos-tdep.o to
4682 gdb_target_obs.
4683 (x86_64-*-dicos*): Add dicos-tdep.o and amd64-dicos-tdep.o to
4684 gdb_target_obs.
4685 * dicos-tdep.h, dicos-tdep.c: New.
4686 * amd64-dicos-tdep.c: New.
4687 * i386-dicos-tdep.c: Don't include solib.h, solib-target.h or
4688 inferior.h. Include dicos-tdep.h.
4689 (i386_dicos_init_abi): Call dicos_init_abi.
4690 (i386_dicos_bfd_has_symbol_p): Delete.
4691 (i386_dicos_osabi_sniffer): Use dicos_load_module_p.
4692
4693 * NEWS: Mention x86-64 DICOS target support.
4694
4695 2009-02-16 Doug Evans <dje@google.com>
4696
4697 * amd64-tdep.c (amd64_skip_prefixes): Renamed from skip_prefixes.
4698 All callers updated.
4699 (amd64_get_insn_details): Handle more 3-byte opcode insns.
4700 (amd64_breakpoint_p): Delete.
4701 (amd64_displaced_step_fixup): When fixing up after stepping an int3,
4702 don't back up pc to the start of the int3.
4703 * i386-tdep.c: #include opcode/i386.h.
4704 (i386_skip_prefixes): New function.
4705 (i386_absolute_jmp_p): Constify argument.
4706 (i386_absolute_call_p,i386_ret_p,i386_call_p,i386_syscall_p): Ditto.
4707 (i386_breakpoint_p): Delete.
4708 (i386_displaced_step_fixup): Handle unnecessary or redundant prefixes.
4709 When fixing up after stepping an int3, don't back up pc to the start
4710 of the int3.
4711
4712 2009-02-16 Pedro Alves <pedro@codesourcery.com>
4713
4714 * corelow.c (core_close): Don't hardcode the core's pid.
4715 (core_open): Find core threads before calling
4716 post_create_inferior.
4717 (add_to_thread_list, get_core_register_section): Take into account
4718 systems where the regset section names encode the pid of the
4719 inferior.
4720
4721 * gdbarch.sh (core_reg_section_encodes_pid): New gdbarch setting.
4722 * gdbarch.h, gdbarch.c: Regenerate.
4723
4724 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Set it.
4725 * i386-sol2-tdep.c (i386_sol2_init_abi): Set it.
4726 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Set it.
4727 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Set it.
4728
4729 2009-02-14 Vladimir Prus <vladimir@codesourcery.com>
4730
4731 Include frame information for *stopped due to CLI commands.
4732
4733 * ada-tasks.c (ada_normal_stop_observer): Adjust prototype.
4734 * infcmd.c (finish_command_continuation): Pass '1' for
4735 'print_frame' parameter to the observer.
4736 * infrun.c (normal_stop): Don't print mi-specific information
4737 here. Pass 'stop_print_frame' to the 'print_frame' parameter
4738 of the observer.
4739 * mi/mi-interp.c (mi_on_normal_stop): Adjust prototype.
4740 If we need to print frame, and current uiout is not the MI one,
4741 print frame again.
4742
4743 2009-02-13 Pierre Muller <muller@ics.u-strasbg.fr>
4744
4745 * xtensa-tdep.c (call0_analyze_prologue): Delete BSZ macro.
4746 Replace BSZ macro uses by XTENSA_ISA_BSZ macro.
4747
4748 2009-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4749
4750 PR fortran/9806
4751 * dwarf2read.c (process_die <DW_TAG_module>, read_module)
4752 (scan_partial_symbols <DW_TAG_module>, add_partial_module): New.
4753
4754 2009-02-11 Pierre Muller <muller@ics.u-strasbg.fr>
4755
4756 * dwarf2read.c (read_base_type): Set code to TYPE_CODE_CHAR
4757 for DW_ATE_signed_char and DW_ATE_unsigned_char
4758 for pascal language.
4759
4760 2009-02-11 Jim Meyering <meyering@redhat.com>
4761 Jan Kratochvil <jan.kratochvil@redhat.com>
4762
4763 Avoid NULL dereference.
4764 * stack.c (return_command): Guard use of SYMBOL_TYPE (thisfun).
4765 New variable func_type.
4766
4767 2009-02-11 Pedro Alves <pedro@codesourcery.com>
4768
4769 * gdbarch.c: Regenerate.
4770
4771 2009-02-10 Pierre Muller <muller@ics.u-strasbg.fr>
4772
4773 * p-lang.c (is_pascal_string_type): Fix comment.
4774 Determine exact size of char elements for GPC
4775 strings.
4776 (pascal_printstr): Handle char width of 2 or 4.
4777 * p-valprint.c (pascal_val_print): Handle char
4778 of width 2 or 4.
4779
4780 2009-02-07 Daniel Jacobowitz <dan@codesourcery.com>
4781
4782 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and highpc
4783 inside the loop. Only call addrmap_set_empty if the compilation unit
4784 had DW_AT_high_pc and DW_AT_low_pc. Update call to
4785 scan_partial_symbols.
4786 (scan_partial_symbols): Take NEED_PC argument and pass it along with
4787 LOWPC and HIGHPC.
4788 (add_partial_namespace): Take NEED_PC argument and pass it through.
4789 (add_partial_subprogram): Take NEED_PC argument. Update the addrmap
4790 if necessary.
4791
4792 2009-02-07 Pedro Alves <pedro@codesourcery.com>
4793
4794 * NEWS: Mention inspecting extra signal information, $_siginfo,
4795 and the qXfer:siginfo:read and qXfer:siginfo:write packets.
4796
4797 2009-02-07 Pedro Alves <pedro@codesourcery.com>
4798
4799 * linux-nat.c (PTRACE_SETSIGINFO): Define if PTRACE_GETSIGINFO
4800 isn't defined.
4801
4802 2009-02-06 Pedro Alves <pedro@codesourcery.com>
4803
4804 * amd64-linux-nat.c (compat_int_t, compat_uptr_t, compat_time_t)
4805 (compat_timer_t, compat_clock_t, struct compat_timeval)
4806 (compat_sigval_t, compat_siginfo_t): New types.
4807 (cpt_si_pid, cpt_si_uid, cpt_si_timerid, cpt_si_overrun)
4808 (cpt_si_status, cpt_si_utime, cpt_si_stime, cpt_si_ptr)
4809 (cpt_si_addr, cpt_si_band, cpt_si_fd): New defines.
4810 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
4811 (amd64_linux_siginfo_fixup): New.
4812 * linux-nat.c (linux_nat_siginfo_fixup): New.
4813 (siginfo_fixup): New.
4814 (linux_xfer_siginfo): Use siginfo_fixup to convert between the
4815 siginfo layout expected by ptrace and the siginfo layout of the
4816 inferior.
4817 (linux_nat_set_siginfo_fixup): New.
4818 * linux-nat.h (linux_nat_set_siginfo_fixup): Declare.
4819
4820 2009-02-06 Pedro Alves <pedro@codesourcery.com>
4821
4822 * target.h (enum target_object): Add new TARGET_OBJECT_SIGNAL_INFO.
4823 * infrun.c (siginfo_value_read, siginfo_value_write): New.
4824 (siginfo_value_funcs): New.
4825 (siginfo_make_value): New.
4826 (_initialize_infrun): Create the $_siginfo convenience variable.
4827 * gdbtypes.h (append_composite_type_field_aligned): Declare.
4828 * gdbtypes.c (append_composite_type_field): Rename to...
4829 (append_composite_type_field_aligned): ... this. Add ALIGNMENT
4830 argument. Handle it.
4831 (append_composite_type_field): Rewrite on top of
4832 append_composite_type_field_aligned.
4833 * value.h (internalvar_make_value): New typedef.
4834 (struct internalvar) <make_value>: New field.
4835 (create_internalvar_type_lazy): Declare.
4836 * value.c (create_internalvar): Clear make_value.
4837 (create_internalvar_type_lazy): New.
4838 (value_of_internalvar): If make_value is set use it.
4839 (preserve_values): Skip internal variables that don't have a
4840 value.
4841 * gdbarch.sh (get_siginfo_type): New.
4842 * gdbarch.h, gdbarch.c: Regenerate.
4843
4844 * linux-tdep.h, linux-tdep.c: New.
4845 * amd64-linux-tdep.c: Include "linux-tdep.h".
4846 (amd64_linux_init_abi): Register linux_get_siginfo_type and
4847 linux_get_siginfo_mapper.
4848 * i386-linux-tdep.c: Include "linux-tdep.h".
4849 (i386_linux_init_abi): Register linux_get_siginfo_type and
4850 linux_get_siginfo_mapper.
4851 * arm-linux-tdep.c: Include "linux-tdep.h".
4852 (i386_linux_init_abi): Register linux_get_siginfo_type and
4853 linux_get_siginfo_mapper.
4854
4855 * linux-nat.c (linux_xfer_siginfo): New.
4856 (linux_nat_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO.
4857 * remote.c (PACKET_qXfer_siginfo_read)
4858 (PACKET_qXfer_siginfo_write): New.
4859 (feature remote_protocol_features): Add "qXfer:siginfo:read" and
4860 "qXfer:siginfo:write" features.
4861 (remote_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO.
4862 (_initialize_remote): Add "set/show remote read-siginfo-object"
4863 and "set/show remote write-siginfo-object" commands.
4864
4865 * Makefile.in (ALL_TARGET_OBS): Add linux-tdep.o.
4866 (HFILES_NO_SRCDIR): Add linux-tdep.h.
4867 (ALLDEPFILES): Add linux-tdep.c.
4868
4869 * configure.tgt (arm*-*-linux* | arm*-*-uclinux*)
4870 (i[34567]86-*-linux*, x86_64-*-linux*): Add linux-tdep.o to
4871 gdb_target_obs.
4872
4873 2009-02-06 Jim Blandy <jimb@codesourcery.com>
4874 Daniel Jacobowitz <dan@codesourcery.com>
4875 Vladimir Prus <vladimir@codesourcery.com>
4876 Pedro Alves <pedro@codesourcery.com>
4877
4878 * defs.h (enum lval_type): New value: lval_computed.
4879 * value.h (struct lval_funcs): New type.
4880 (allocate_computed_value, value_computed_funcs)
4881 (value_computed_closure): New declarations.
4882 * value.c (struct value): Add a structure to the location union
4883 for computed lvalues, containing 'funcs' and 'closure' members.
4884 (allocate_computed_value, value_computed_funcs)
4885 (value_computed_closure): New functions.
4886 (value_free): For computed lvalues, call the closure's
4887 'free_closure' function before freeing the value itself.
4888 (value_copy): If we're copying an lval_computed value, call the
4889 closure's 'copy_closure' function.
4890 (set_value_component_location): If the original value is a
4891 computed lvalue, then call the closure's 'copy_closure' function.
4892 (value_of_internalvar): If an internal variable's value is a
4893 computed lvalue, make retrieving its value produce an equivalent
4894 computed lvalue.
4895 * valops.c (value_fetch_lazy): Unlazy computed lvalues by calling
4896 their read function.
4897 (value_assign): Assign to computed lvalues by calling their write
4898 function.
4899
4900 2009-02-06 Pedro Alves <pedro@codesourcery.com>
4901
4902 * linux-nat.c (linux_nat_wait): Adjust.
4903 (linux_nat_pid_to_str): Adjust. Remove call to thread_db_init.
4904 * linux-nat.h (thread_db_init): Delete declaration.
4905 * linux-thread-db.c (target_beneath): Delete.
4906 (thread_db_init): Delete.
4907 (thread_db_detach): Use find_target_beneath.
4908 (thread_db_wait): Adjust interface. Use find_target_beneath.
4909 (thread_db_mourn_inferior): Use find_target_beneath.
4910 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
4911 (thread_db_async_mask): Delete.
4912 (thread_db_pid_to_str): Adjust interface. Use
4913 find_target_beneath.
4914 (thread_db_get_thread_local_address): Adjust interface. Use
4915 find_target_beneath.
4916 (init_thread_db_ops): Delete references to delete functions.
4917 * target.c (update_current_target): Don't inherit or default
4918 to_wait. Don't inherit to_pid_to_str and
4919 to_get_thread_local_address.
4920 (target_translate_tls_address): Look for a pushed target that
4921 implements to_get_thread_local_address, and use it instead of
4922 checking for target_get_thread_local_address_p.
4923 (target_wait, target_pid_to_str): Reimplement as functions.
4924 (dummy_pid_to_str): New.
4925 (init_dummy_target): Register it.
4926 (debug_to_wait): Delete.
4927 * target.h (struct target_ops): Make to_wait, to_pid_to_str and
4928 to_get_thread_local_address accept a pointer to struct target_ops.
4929 (target_wait): Delete macro, and declare as function.
4930 (target_pid_to_str): Likewise.
4931 (target_get_thread_local_address)
4932 (target_get_thread_local_address_p): Delete.
4933 (noprocess): Add NORETURN and ATTR_NORETURN tags.
4934 * inf-ptrace.c (inf_ptrace_wait): Adjust.
4935 (inf_ptrace_pid_to_str): New.
4936 (inf_ptrace_target): Use inf_ptrace_pid_to_str.
4937 * aix-thread.c (aix_thread_wait, aix_thread_pid_to_str): Adjust.
4938 * bsd-kvm.c (bsd_kvm_pid_to_str): Adjust.
4939 * bsd-uthread.c (bsd_uthread_wait, bsd_uthread_pid_to_str):
4940 Adjust.
4941 * corelow.c (core_pid_to_str): Adjust.
4942 * darwin-nat.c (darwin_wait, darwin_pid_to_str): Adjust.
4943 * dec-thread.c (dec_thread_wait, dec_thread_pid_to_str): Adjust.
4944 * gnu-nat.c (gnu_wait, gnu_pid_to_str): Adjust.
4945 * go32-nat.c (go32_wait, go32_pid_to_str): Adjust.
4946 * hpux-thread.c (hpux_thread_wait): Adjust.
4947 * inf-ttrace.c (inf_ttrace_wait, inf_ttrace_pid_to_str): Adjust.
4948 * monitor.c (monitor_wait, monitor_pid_to_str): Adjust.
4949 * nto-procfs.c (procfs_wait, procfs_pid_to_str): Adjust.
4950 * procfs.c (procfs_pid_to_str): Adjust.
4951 * remote-m32r-sdi.c (m32r_wait, m32r_pid_to_str): Adjust.
4952 * remote-mips.c (mips_wait): Adjust.
4953 * remote-sim.c (gdbsim_wait, gdbsim_pid_to_str): Adjust.
4954 * remote.c (remote_wait, remote_pid_to_str)
4955 (remote_get_thread_local_address): Adjust.
4956 * rs6000-nat.c (rs6000_wait): Adjust.
4957 * sol-thread.c (procfs_pid_to_str): Adjust declaration.
4958 (sol_thread_wait, solaris_pid_to_str): Adjust.
4959 * spu-linux-nat.c (spu_child_wait): Adjust.
4960 * windows-nat.c (windows_wait, windows_pid_to_str): Adjust.
4961
4962 2009-02-06 Tom Tromey <tromey@redhat.com>
4963
4964 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-cmd.o.
4965 (SUBDIR_PYTHON_SRCS): Add python-cmd.c.
4966 (python-cmd.o): New target.
4967 * cli/cli-decode.c (set_cmd_completer): Add self parameter to
4968 completer prototype.
4969 (add_cmd): Initialize destroyer member of cmd_list_element. Use
4970 make_symbol_completion_list_fn as completer.
4971 (delete_cmd): Call destroyer if one is set.
4972 * cli/cli-decode.h (cmd_list_element): Add cmd parameter to
4973 completer member. Add destroyer member.
4974 (set_cmd_completer): Add self parameter to
4975 completer prototype.
4976 * command.h (set_cmd_completer): Add cmd parameter to
4977 completer prototype.
4978 * completer.c (noop_completer, filename_completer,
4979 location_completer, expression_completer, command_completer): Adapt
4980 to new completer prototype.
4981 (complete_line_internal): Pass new parameter to completer function.
4982 * completer.h (noop_completer, filename_completer,
4983 location_completer, expression_completer, command_completer): Adapt
4984 prototypes to new completer prototype.
4985 * interps.c (interpreter_completer): Adapt to new completer
4986 prototype.
4987 * python/python-cmd.c: New file.
4988 * python/python-internal.h (gdbpy_initialize_commands): Add
4989 prototype.
4990 (gdbpy_doc_cst): Add forward declaration.
4991 * python/python.c (gdbpy_doc_cst): Declare.
4992 (_initialize_python): Call gdbpy_initialize_commands. Initialize
4993 gdbpy_doc_cst.
4994 * symtab.c (make_symbol_completion_list_fn): New function.
4995 * symtab.h (make_symbol_completion_list_fn): Add prototype.
4996
4997 2009-02-06 Pedro Alves <pedro@codesourcery.com>
4998
4999 * target.c (target_get_osdata): Check for equal or higher than
5000 process_stratum, not dummy_stratum.
5001
5002 2009-02-06 Pedro Alves <pedro@codesourcery.com>
5003
5004 * remote.c (extended_remote_can_run): Delete.
5005 (init_remote_ops): Don't register it.
5006 * target.c (target_get_osdata): Don't check for target_can_run.
5007 Instead any target that has already been pushed, otherwise
5008 fallback to the default run target.
5009
5010 2009-02-06 Pedro Alves <pedro@codesourcery.com>
5011
5012 * target.c (target_create_inferior, target_detach)
5013 (target_mourn_inferior, target_attach, target_close): Do target
5014 debug output.
5015 (debug_to_attach, debug_to_detach, debug_to_create_inferior)
5016 (debug_to_mourn_inferior, debug_to_close): Delete.
5017 (setup_target_debug): Adjust.
5018
5019 2009-02-05 Pedro Alves <pedro@codesourcery.com>
5020
5021 * target.h (target_stopped_data_address_p): Delete declaration,
5022 and don't define as macro.
5023 * target.c (target_stopped_data_address_p): Delete.
5024
5025 2009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5026 Tom Tromey <tromey@redhat.com>
5027
5028 * python/python-utils.c (target_string_to_unicode): New function.
5029 * python/python-internal.h (target_string_to_unicode): New prototype.
5030 * python/python-value.c (valpy_string): New function.
5031 (value_object_methods): Add `string' entry.
5032
5033 2009-02-05 Pedro Alves <pedro@codesourcery.com>
5034
5035 * target.h (target_tid_to_str): Delete.
5036 * thread.c (print_thread_info, thread_apply_all_command)
5037 (thread_apply_command, thread_command, do_captured_thread_select):
5038 Use target_pid_to_str instead of target_tid_to_str.
5039 * linux-fork.c (delete_fork_command): Likewise.
5040
5041 2009-02-05 Pedro Alves <pedro@codesourcery.com>
5042
5043 * frame.c (has_stack_frames): Make public.
5044 (get_prev_frame): Don't allow a NULL this_frame anymore.
5045 * frame.h (has_stack_frames): Declare.
5046 * varobj.c (find_frame_addr_in_frame_chain): Don't ever pass NULL
5047 to get_prev_frame, instead start at get_current_frame.
5048 (varobj_create): Check has_stack_frames before getting any frame;
5049 eliminate one usage of deprecated_safe_get_selected_frame.
5050
5051 2009-02-05 Tom Tromey <tromey@redhat.com>
5052 Thiago Jung Bauermann <bauerman@br.ibm.com>
5053
5054 * python/python.c (GdbMethods): Move to bottom of file.
5055 (get_parameter, execute_gdb_command, gdbpy_write,
5056 gdbpy_flush): Remove forward declarations.
5057 (eval_python_from_control_command): Fix error checking of function
5058 PyRun_SimpleString. Fix error string.
5059 (python_command): Likewise.
5060 (execute_gdb_command): Added from_tty argument.
5061
5062 2009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5063
5064 * language.h (language_dfn): Add la_get_string member.
5065 (LA_GET_STRING): New macro.
5066 (default_get_string): New prototype.
5067 * language.c (default_get_string): New function.
5068 (unknown_language_defn, auto_language_defn, local_language_defn): Use
5069 default_get_string for la_get_string.
5070 * c-lang.c (c_get_string): New function.
5071 (c_language_defn, cplus_language_defn, asm_language_defn): Use
5072 c_get_string for la_get_string.
5073 (minimal_language_defn): Likewise
5074 * ada-lang.c (ada_language_defn): Likewise.
5075 * f-lang.c (f_language_defn): Use default_get_string for
5076 la_get_string.
5077 * jv-lang.c (java_language_defn): Likewise.
5078 * m2-lang.c (m2_language_defn): Likewise.
5079 * objc-lang.c (objc_language_defn): Likewise.
5080 * p-lang.c (p_language_defn): Likewise.
5081 * scm-lang.c (scm_language_defn): Likewise.
5082 * typeprint.c (type_to_string): New function.
5083 * value.h (type_to_string): New prototype.
5084 * valprint.c (val_print_string): Factor out code for reading string
5085 from the inferior into its own function. Put 2 spaces after period
5086 in comments.
5087 (read_string): New function.
5088 * valprint.h (read_string): New prototype.
5089
5090 2009-01-07 Pierre Muller <muller@ics.u-strasbg.fr>
5091 Tom Tromey <tromey@redhat.com>
5092
5093 PR breakpoints/8079:
5094 * breakpoint.c (print_one_breakpoint): Use exp_string field
5095 to display expression of watchpoints.
5096 (mention): Likewise.
5097 (watch_command_1): Remove trailing whitespace from expression.
5098 * printcmd.c (struct display) <exp_string>: New field.
5099 (display_command): Set exp_string.
5100 (free_display): Free exp_string.
5101 (clear_displays): Use free_display.
5102 (do_one_display): Print exp_string.
5103 (display_info): Likewise.
5104
5105 2009-02-04 Tom Tromey <tromey@redhat.com>
5106 Thiago Jung Bauermann <bauerman@br.ibm.com>
5107 Phil Muldoon <pmuldoon@redhat.com>
5108
5109 * python/python-internal.h (gdbpy_get_value_from_history): Rename
5110 prototype to gdbpy_history.
5111 (gdbpy_is_string): Declare.
5112 (python_string_to_host_string): Declare.
5113 * python/python-utils.c (gdbpy_is_string): New function.
5114 (unicode_to_encoded_string): New function.
5115 (unicode_to_target_string): Use it.
5116 (python_string_to_host_string): New function.
5117 * python/python-value.c (valpy_address): New function.
5118 (convert_value_from_python): Use gdbpy_is_string. Change to throw
5119 Python exception instead of a GDB exception on error. Properly check
5120 Python booleans.
5121 (valpy_getitem): Convert field name to host string. Handle array
5122 accesses. Adapt to new behaviour of convert_value_from_python.
5123 (valpy_new): Adapt to new behaviour of convert_value_from_python.
5124 (enum valpy_opcode) <VALPY_LSH, VALPY_RSH, VALPY_BITAND,
5125 VALPY_BITXOR, VALPY_BITOR>: New constants.
5126 (valpy_binop): Update. Adapt to new behaviour of
5127 convert_value_from_python.
5128 (valpy_invert): New function.
5129 (valpy_lsh): Likewise.
5130 (valpy_rsh): Likewise.
5131 (valpy_and): Likewise.
5132 (valpy_or): Likewise.
5133 (valpy_xor): Likewise.
5134 (valpy_richcompare): Call convert_value_from_python instead of doing
5135 conversions itself.
5136 (is_intlike, valpy_int, valpy_long, valpy_float): New functions.
5137 (gdbpy_get_value_from_history): Rename
5138 function to gdbpy_history.
5139 (gdbpy_initialize_values): Don't set tp_new.
5140 (value_object_type): Add valpy_new.
5141 (value_object_methods): Add `address' entry.
5142 (value_object_as_number): Update for new methods.
5143 * python/python.c (GdbMethods): Rename entry from
5144 `get_value_from_history' to `history'.
5145
5146 2009-02-04 Jerome Guitton <guitton@adacore.com>
5147
5148 * ada-lang.c (ada_template_to_fixed_record_type_1): Check size
5149 of type to guard against a crash.
5150
5151 2009-02-04 Jerome Guitton <guitton@adacore.com>
5152
5153 * value.c (value_from_contents_and_address): Always return
5154 a lval_memory value, even if address is null.
5155
5156 2009-02-04 Tristan Gingold <gingold@adacore.com>
5157
5158 * i386-darwin-tdep.c (i386_darwin_sigcontext_addr): New function.
5159 (amd64_darwin_sigcontext_addr): Ditto.
5160 (darwin_dwarf_signal_frame_p): Ditto.
5161 (i386_darwin_init_abi): Handle signal frames, use the const for
5162 sc_num_regs.
5163 (x86_darwin_init_abi_64): Ditto.
5164
5165 2009-02-04 Tristan Gingold <gingold@adacore.com>
5166
5167 * i386-tdep.c (i386_sigtramp_p): Make it public.
5168 * i386-tdep.h (i386_sigtramp_p): Declare.
5169
5170 2009-02-04 Tristan Gingold <gingold@adacore.com>
5171
5172 * machoread.c (macho_symfile_read): Read minsymtab also from
5173 shared libraries.
5174 (macho_symfile_read): Try to read dwarf2 frame info from main
5175 object file, but not from OSO files.
5176 (macho_symfile_offsets): Update section names for latest BFD
5177 changes.
5178 * i386-darwin-tdep.c (i386_darwin_init_abi): Call set_solib_ops.
5179 (x86_darwin_init_abi_64): Ditto.
5180 * solib-darwin.c: New file.
5181 * solib-darwin.h: New file.
5182 * configure.tgt: Add solib.o solib-darwin.o for Darwin.
5183
5184 2009-02-04 Tristan Gingold <gingold@adacore.com>
5185
5186 * solist.h (struct target_so_ops): Comment fallback behavior for
5187 operation same.
5188
5189 2009-02-03 Tom Tromey <tromey@redhat.com>
5190
5191 * completer.c (add_struct_fields): Check type_name against NULL
5192 before use.
5193
5194 2009-02-03 Joel Brobecker <brobecker@adacore.com>
5195
5196 * MAINTAINERS: Update Elena's email address.
5197
5198 2009-02-02 Joel Brobecker <brobecker@adacore.com>
5199
5200 * breakpoint (update_watchpoint): Minor comment adjustment.
5201
5202 2009-02-02 Tom Tromey <tromey@redhat.com>
5203
5204 PR gdb/9594:
5205 * completer.c (count_struct_fields): Count method names.
5206 (add_struct_fields): Add matching method names.
5207
5208 2009-02-02 Doug Evans <dje@google.com>
5209
5210 * configure.ac (gdbkt): Check both no_tcl/no_tk first, before
5211 doing any further tcl/tk configury. Don't configure gdbtk if
5212 tcl or tk check fails.
5213 * aclocal.m4: Regenerate.
5214 * configure: Regenerate.
5215
5216 2009-02-02 Tom Tromey <tromey@redhat.com>
5217
5218 PR exp/9059:
5219 * valops.c (find_overload_match): Follow typedefs before taking
5220 address of object argument.
5221
5222 2009-02-01 Doug Evans <dje@google.com>
5223
5224 * target.h (target_waitstatus_to_string): Declare.
5225 * target.c (target_waitstatus_to_string): New function. Copied from
5226 debug_to_wait. Add missing entries for TARGET_WAITKIND_SYSCALL_ENTRY,
5227 TARGET_WAITKIND_SYSCALL_RETURN, TARGET_WAITKIND_IGNORE,
5228 TARGET_WAITKIND_NO_HISTORY.
5229 (debug_to_wait): Call it.
5230 * infrun.c (wait_for_inferior): If debug_infrun, print result of
5231 target_wait.
5232 (fetch_inferior_event): Ditto.
5233
5234 2009-01-30 Tom Tromey <tromey@redhat.com>
5235
5236 * Makefile.in (HFILES_NO_SRCDIR): Remove i386-cygwin-tdep.h.
5237
5238 2009-01-30 Vladimir Prus <vladimir@codesourcery.com>
5239
5240 PR 8145.
5241 * thread.c (do_captured_list_thread_ids): Report the current
5242 thread id.
5243
5244 2009-01-30 Vladimir Prus <vladimir@codesourcery.com>
5245
5246 * breakpoint.c (create_breakpoint, create_breakpoints)
5247 (break_command_really, set_breakpoint): New parameter enabled.
5248 (create_breakpoint, break_command_really): Make breakpoint
5249 disabled if so requested.
5250 * breakpoint.h (set_breakpoint): New parameter enabled.
5251 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle the -d option.
5252
5253 2009-01-28 Doug Evans <dje@google.com>
5254
5255 * amd64-tdep.h (amd64_displaced_step_copy_insn): Declare.
5256 (amd64_displaced_step_fixup): Declare.
5257 * amd64-tdep.c: #include opcode/i386.h, dis-asm.h.
5258 (amd64_arch_regmap): Move out of amd64_analyze_stack_align
5259 and make static global.
5260 (amd64_arch_regmap_len): New static global.
5261 (amd64_arch_reg_to_regnum): New function.
5262 (struct amd64_insn): New struct.
5263 (struct displaced_step_closure): New struct.
5264 (onebyte_has_modrm,twobyte_has_modrm): New static globals.
5265 (rex_prefix_p,skip_prefixes)
5266 (amd64_insn_length_fprintf,amd64_insn_length_init_dis)
5267 (amd64_insn_length,amd64_get_unused_input_int_reg)
5268 (amd64_get_insn_details,fixup_riprel,fixup_displaced_copy)
5269 (amd64_displaced_step_copy_insn)
5270 (amd64_absolute_jmp_p,amd64_absolute_call_p,amd64_ret_p)
5271 (amd64_call_p,amd64_breakpoint_p,amd64_syscall_p)
5272 (amd64_displaced_step_fixup): New functions.
5273 * amd64-linux-tdep.c: #include arch-utils.h.
5274 (amd64_linux_init_abi): Install displaced stepping support.
5275
5276 2009-01-28 Daniel Jacobowitz <dan@codesourcery.com>
5277 Jerome Guitton <guitton@adacore.com>
5278
5279 * configure, config.in: Regenerated.
5280 * configure.ac: Add --with-system-gdbinit.
5281 * main.c (get_init_files): New.
5282 (captured_main): Use get_init_files. Load system gdbinit before
5283 $HOME/.gdbinit.
5284 (print_gdb_help): Print location of init files.
5285
5286 2009-01-28 Pedro Alves <pedro@codesourcery.com>
5287
5288 * corefile.c (generic_search): Delete disabled code.
5289 * gdbcore.h (generic_search): Delete declaration.
5290
5291 2009-01-26 Pedro Alves <pedro@codesourcery.com>
5292
5293 * linux-nat.c (linux_child_follow_fork): Copy attach_flag from the
5294 parent to the child.
5295 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
5296 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise. Use
5297 remove_breakpoints to remove breakpoints from the parent.
5298
5299 2009-01-26 Pedro Alves <pedro@codesourcery.com>
5300
5301 PR backtrace/9458, PR backtrace/8864:
5302 * frame.c (create_new_frame): Update the frame's cached PC before
5303 finding its unwinder. Use frame_id_build to build the new frame's
5304 id.
5305 * stack.c (parse_frame_specification_1): Correct setting ``addrs''
5306 array values from the ``args'' array values.
5307
5308 2009-01-26 Pedro Alves <pedro@codesourcery.com>
5309
5310 * gdbtypes.c (alloc_type, alloc_type_instance, create_range_type)
5311 (create_array_type, create_set_type, init_flags_type)
5312 (copy_type_recursive): Replace pairs of calls to XALLOC and memset
5313 with a call to XZALLOC or XCALLOC, and pairs of calls to
5314 obstack_alloc and memset with a call to OBSTACK_ZALLOC.
5315
5316 2009-01-26 Pedro Alves <pedro@codesourcery.com>
5317
5318 Add "maint set|show internal-error|internal-warning quit|corefile
5319 ask|yes|no" commands.
5320
5321 PR gdb/7580:
5322 * utils.c (internal_problem_ask, internal_problem_yes)
5323 (internal_problem_no, internal_problem_modes): New.
5324 (struct internal_problem): Remove FIXME. Make should_quit and
5325 should_dump_core types to char *.
5326 (internal_vproblem, internal_error_problem)
5327 (internal_warning_problem): Adjust.
5328 (set_internal_problem_cmd, show_internal_problem_cmd): New dummy
5329 functions.
5330 (add_internal_problem_command): New.
5331 (_initialize_utils): New.
5332
5333 2009-01-25 Pedro Alves <pedro@codesourcery.com>
5334
5335 * infcmd.c (program_info): Use paddress instead of casting stop_pc
5336 to unsigned long.
5337
5338 2009-01-24 Pedro Alves <pedro@codesourcery.com>
5339
5340 * infrun.c (normal_stop): Don't call
5341 deprecated_update_frame_pc_hack.
5342 * frame.c (deprecated_update_frame_pc_hack)
5343 (deprecated_update_frame_base_hack): Delete, and ...
5344 (create_new_frame): ... inline here.
5345 * frame.h (deprecated_update_frame_pc_hack)
5346 (deprecated_update_frame_base_hack): Delete declarations.
5347
5348 2009-01-23 Pedro Alves <pedro@codesourcery.com>
5349
5350 * cli/cli-decode.c (add_setshow_zuinteger_cmd): New.
5351 * cli/cli-setshow.c (do_setshow_command): Handle it.
5352 * command.h (enum var_types): Add var_zuinteger.
5353 (add_setshow_zuinteger_cmd): Declare.
5354
5355 * valprint.c (_initialize_valprint): Change the set input-radix
5356 and set output-radix commands to zuinteger type.
5357
5358 2009-01-23 Pedro Alves <pedro@codesourcery.com>
5359
5360 PR gdb/9664:
5361 * infrun.c (normal_stop): Tag threads as stopped, and run the
5362 hook-stop before printing the stack frame.
5363
5364 2009-01-22 Pedro Alves <pedro@codesourcery.com>
5365
5366 PR c++/9631:
5367 * gnu-v3-abi.c (gnuv3_baseclass_offset): Call check_typedef on
5368 vbasetype.
5369
5370 2009-01-20 Kazu Hirata <kazu@codesourcery.com>
5371
5372 * gdb/procfs.c (info_mappings_callback): Cast map->pr_size to
5373 unsigned long.
5374
5375 2009-01-20 Daniel Jacobowitz <dan@codesourcery.com>
5376
5377 PR gdb/9346
5378 * infcmd.c (signal_command): Do not specify a resume PC.
5379
5380 2009-01-19 Doug Evans <dje@google.com>
5381
5382 * dummy-frame.c (dummy_frame): Replace regcache member with
5383 caller_state.
5384 (dummy_frame_push): Replace caller_regcache arg with caller_state.
5385 All callers updated.
5386 (remove_dummy_frame,pop_dummy_frame,lookup_dummy_frame): New fns.
5387 (dummy_frame_pop): Rewrite. Verify requested frame is in the
5388 dummy frame stack. Restore program state.
5389 (cleanup_dummy_frames): Rewrite.
5390 (dummy_frame_sniffer): Update. Make static.
5391 * dummy-frame.h (regcache,frame_info): Delete forward decls.
5392 (inferior_thread_state): New forward decl.
5393 (dummy_frame_push): Update prototype.
5394 * frame.c (frame_pop): dummy_frame_pop now does all the work for
5395 DUMMY_FRAMEs.
5396 * infcall.c (breakpoint_auto_delete_contents): Delete.
5397 (get_function_name,run_inferior_call): New fns.
5398 (call_function_by_hand): Simplify by moving some code to
5399 get_function_name, run_inferior_call. Inferior function call wrapped
5400 in TRY_CATCH so there's less need for cleanups and all exits from
5401 proceed are handled similarily. Detect program exit.
5402 Detect program stopping in a different thread.
5403 Make error messages more consistent.
5404 * inferior.h (inferior_thread_state): Declare (opaque type).
5405 (save_inferior_thread_state,restore_inferior_thread_state,
5406 make_cleanup_restore_inferior_thread_state,
5407 discard_inferior_thread_state, get_inferior_thread_state_regcache):
5408 Declare.
5409 (save_inferior_status): Update prototype.
5410 * infrun.c: (normal_stop): When stopped for the completion of an
5411 inferior function call, verify the expected stack frame kind.
5412 (inferior_thread_state): New struct.
5413 (save_inferior_thread_state,restore_inferior_thread_state,
5414 do_restore_inferior_thread_state_cleanup,
5415 make_cleanup_restore_inferior_thread_state,
5416 discard_inferior_thread_state,
5417 get_inferior_thread_state_regcache): New functions.
5418 (inferior_status): Move stop_signal, stop_pc, registers to
5419 inferior_thread_state. Remove restore_stack_info.
5420 (save_inferior_status): Remove arg restore_stack_info.
5421 All callers updated. Remove saving of state now saved by
5422 save_inferior_thread_state.
5423 (restore_inferior_status): Remove restoration of state now done by
5424 restore_inferior_thread_state.
5425 (discard_inferior_status): Remove freeing of registers, now done by
5426 discard_inferior_thread_state.
5427
5428 2009-01-18 Pedro Alves <pedro@codesourcery.com>
5429
5430 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Scroll one line
5431 at a time, times NUM_TO_SCROLL.
5432 * tui/tui-winsource.c (tui_horizontal_source_scroll): Don't try to
5433 fetch the selected frame if there is no stack.
5434
5435 2009-01-18 Pedro Alves <pedro@codesourcery.com>
5436
5437 PR gdb/9747:
5438 * gdbthread.h (finish_thread_state, finish_thread_state_cleanup):
5439 Declare.
5440 * thread.c (finish_thread_state, finish_thread_state_cleanup): New.
5441 * infrun.c (wait_for_inferior, fetch_inferior_event): If an error
5442 is thrown while handling an event, finish the thread state.
5443 (normal_stop): Use finish_thread_state cleanup.
5444 * infcmd.c (run_command_1): If an error is thrown while starting
5445 the inferior, finish the thread state.
5446
5447 2009-01-18 Pedro Alves <pedro@codesourcery.com>
5448
5449 * tui/tui-winsource.c (tui_update_breakpoint_info): In asm layout,
5450 skip breakpoints without a location (pending breakpoints).
5451
5452 2009-01-18 Pedro Alves <pedro@codesourcery.com>
5453
5454 PR build/9186:
5455 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Remove 'return'.
5456
5457 2009-01-18 Nick Roberts <nickrob@snap.net.nz>
5458
5459 * thread.c (thread_command): Move call to annotate_thread_changed
5460 to...
5461 (do_captured_thread_select): ... here, to avoid printing an
5462 annotation if the thread change generates an exception.
5463
5464 2009-01-16 Joel Brobecker <brobecker@adacore.com>
5465
5466 * NEWS: Document x86_64/MinGW as a new native configuration.
5467
5468 2009-01-16 Joel Brobecker <brobecker@adacore.com>
5469
5470 * NEWS: Move the documentation of "info os processes" to
5471 the appropriate section (documenting the new commands).
5472
5473 2009-01-15 Doug Evans <dje@google.com>
5474
5475 * target.h (target_signal_to_string): Make return type const char *.
5476 (target_signal_to_name): Ditto.
5477 (target_signal_from_name): Make arg const char *.
5478 * infrun.c (sig_print_info): Update.
5479 * signals/signals.c (signals): Make array and struct members const.
5480 (target_signal_to_string): Make return type const char *.
5481 (target_signal_to_name): Ditto.
5482 (target_signal_from_name): Make arg const char *.
5483
5484 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
5485 Tristan Gingold <gingold@adacore.com>
5486
5487 * solist.h (struct target_so_ops): New member bfd_open.
5488 (solib_find): Add prototype.
5489 (solib_bfd_fopen): Add prototype.
5490 * solib.c (solib_find, solib_bfd_fopen): New functions, extracted
5491 from solib_bfd_open.
5492 (solib_bfd_open): Use ops->bfd_open override if present. Call
5493 solib_find and solib_bfd_open otherwise.
5494
5495 * objfiles.h (OBJF_KEEPBFD): New define.
5496 * objfiles.c (free_objfile): Do not close BFD if OBJF_KEEPBFD
5497 objfile flag is set.
5498 * solib.c (symbol_add_stub): Do not allocate second BFD for
5499 shared library; use OBJF_KEEPBFD flag on solib objfile.
5500
5501 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
5502
5503 * frame.c (get_frame_arch): Abort if called with NULL this_frame.
5504
5505 2009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
5506
5507 * value.h (address_of_variable): Add prototype.
5508 (locate_var_value): Remove prototype.
5509
5510 * findvar.c (read_var_value): Do not attempt to default frame
5511 to selected frame.
5512 (locate_var_value): Remove function.
5513 * valops.c (value_of_variable): Retrieve selected frame for
5514 symbols that require a frame when called with NULL block.
5515 * valops.c (address_of_variable): New function.
5516
5517 * eval.c (evaluate_subexp_for_address): Call address_of_variable
5518 instead of calling locate_var_value.
5519 (evaluate_subexp_with_coercion): Likewise.
5520
5521 2009-01-14 Daniel Jacobowitz <dan@codesourcery.com>
5522
5523 * NEWS: Document "define" for prefixed commands.
5524 * cli/cli-cmds.c (show_user): Update calls to show_user_1. Call
5525 show_user_1 for prefix commands.
5526 * cli/cli-decode.c (help_cmd_list): Recurse for "help user-defined".
5527 * cli/cli-script.c (validate_comname): Rewrite to handle prefix
5528 commands. Return the containing command list.
5529 (define_command, document_command): Update to handle prefix commands.
5530 (show_user_1): Add prefix and name arguments. Handle prefix
5531 commands.
5532 * cli/cli-script.h (show_user_1): Update prototype.
5533
5534 2009-01-14 Kai Tietz <kai.tietz@onevision.com>
5535
5536 * ser-mingw.c (console_select_thread): Add return to make
5537 compiler happy.
5538 (pipe_select_thread): Likewise.
5539 (file_select_thread): Likewise.
5540
5541 2009-01-14 Pedro Alves <pedro@codesourcery.com>
5542
5543 * mi/mi-main.c (mi_cmd_execute): Clean up parenthesis mess from
5544 previous change.
5545
5546 2009-01-14 Pedro Alves <pedro@codesourcery.com>
5547
5548 * remote.c (extended_remote_mourn_1): Invalidate our notion of
5549 current general thread.
5550
5551 2009-01-14 Pedro Alves <pedro@codesourcery.com>
5552
5553 * mi/mi-main.c (mi_cmd_execute): Also allow -list-thread-groups
5554 without a live selected thread.
5555
5556 2009-01-14 Joel Brobecker <brobecker@adacore.com>
5557
5558 Update the copyright notice of some of the files I missed
5559 in the previous copyright update.
5560
5561 2009-01-14 Joel Brobecker <brobecker@adacore.com>
5562
5563 * windows-nat.c (handle_unload_dll): Use %p to print the DLL
5564 base address instead of casting it to DWORD.
5565
5566 2009-01-13 Ulrich Weigand <uweigand@de.ibm.com>
5567
5568 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Do not call get_frame_arch
5569 for NULL frame pointers.
5570
5571 2009-01-13 Mark Kettenis <kettenis@gnu.org>
5572
5573 * utils.c (host_address_to_string): Reimplement in a way that
5574 avoids the cast of the address to long.
5575
5576 2009-01-13 Joel Brobecker <brobecker@adacore.com>
5577
5578 * mdebugread.c (parse_symbol): Save the symbol private data
5579 using SYMBOL_VALUE_BYTES instead of SYMBOL_VALUE.
5580 (psymtab_to_symtab_1): Likewise.
5581 (parse_procedure): Declare variable "e" only in the scope
5582 where it is used. Extract the symbol private data using
5583 SYMBOL_VALUE_BYTES.
5584
5585 2009-01-13 Jim Blandy <jimb@codesourcery.com>
5586
5587 Abstract out common code for copying value locations.
5588
5589 * value.h (set_value_component_location): New declaration.
5590 * value.c (set_value_component_location): New function.
5591 (value_primitive_field): Use it.
5592 * valarith.c (value_subscript, value_subscripted_rvalue): Same.
5593 * valops.c (search_struct_field, value_slice): Same.
5594 * ada-lang.c (coerce_unspec_val_to_type)
5595 (ada_value_primitive_packed_val): Same.
5596
5597 2009-01-13 Joel Brobecker <brobecker@adacore.com>
5598
5599 * MAINTAINERS (GLOBAL MAINTAINERS): Add Tom Tromey.
5600
5601 2009-01-12 Christopher Faylor <me+cygwin@cgf.cx>
5602
5603 * amd64-windows-nat.c Rename gdb-specific win32_* to windows_*
5604 throughout.
5605 * i386-cygwin-tdep.c: Ditto.
5606 * i386-windows-nat.c: Ditto.
5607 * windows-nat.h: Ditto.
5608 * windows-tdep.c: Ditto.
5609 * windows-tdep.h: Ditto.
5610 * windows-nat.c: Ditto.
5611 (cygwin_load_start): Redefine as CORE_ADDR.
5612 (cygwin_load_end): Ditto.
5613 (windows_make_so): Coerce result of address arithmetic to uintptr_t
5614 before coercing to CORE_ADDR to avoid a compiler warning.
5615 (handle_exception): Define addr as CORE_ADDR and coerce
5616 ExceptionAddress to uintptr_t before assigining to avoid a compiler
5617 warning.
5618 * config/djgpp/fnchange.lst: Add mappings for recently renamed windows
5619 files.
5620
5621 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5622
5623 Fix linking with --enable-targets=all:
5624 * Makefile.in (ALL_TARGET_OBS): Add windows-tdep.o.
5625 (HFILES_NO_SRCDIR): Add windows-tdep.h.
5626 (ALLDEPFILES): Add windows-tdep.c.
5627
5628 2009-01-11 Chris Faylor <me.gdb@cgf.cx>
5629
5630 * win32-nat.h: Delete.
5631 * windows-nat.h: Rename from win32-nat.h.
5632 * win32-nat.c: Delete.
5633 * windows-nat.c: Rename from win32-nat.c.
5634 * win32-termcap.c: Delete.
5635 * windows-termcap.c: Rename from win32-termcap.c.
5636 * amd64-windows-nat.c: Handle rename from win32-nat.h -> windows-nat.h.
5637 * configure.ac: Handle rename from win32-termcap.c ->
5638 windows-termcap.c.
5639 * configure: Regenerate.
5640 * gdb_curses.h: Change comment to reflect rename from win32-termcap.c
5641 -> windows-termcap.c.
5642 * i386-cygwin-tdep.c: Handle rename from win32-tdep.h ->
5643 windows-tdep.h.
5644 * i386-windows-nat.c: Refect rename from win32-nat.h -> windows-nat.h.
5645 * windows-nat.c: Ditto. Also reflect rename from from win32-tdep.h ->
5646 windows-tdep.h.
5647 (win32_make_so): Handle cygwin compiler warning due to change of
5648 load_addr from DWORD to LPVOID.
5649 (handle_load_dll): Use %p in format string to properly print address
5650 and avoid a compiler warning.
5651 (DEBUG_EXCEPTION_SIMPLE): Ditto.
5652 (handle_exception): Ditto.
5653 * windows-tdep.c: Handle rename from win32-tdep.h -> windows-tdep.h.
5654 * config/i386/cygwin.mh: Handle rename from win32-nat.o ->
5655 windows-nat.o.
5656 * config/i386/mingw.mh: Ditto.
5657 * config/i386/mingw64.mh: Ditto.
5658
5659 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5660
5661 * f-typeprint.c (f_type_print_varspec_suffix): Convert the autovariable
5662 arrayprint_recurse_level to a parameter. Update all the callers. New
5663 comment at autovariables.
5664
5665 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5666
5667 * gdbtypes.c (make_qualified_type, replace_type): Reformat to the GNU
5668 coding style.
5669
5670 2009-01-11 Joel Brobecker <brobecker@adacore.com>
5671
5672 * target.c (target_xfer_partial): Use host_address_to_string to
5673 print the address of readbuf and writebuf. Cast the address of
5674 elements inside the myaddr buffer into intptr_t.
5675 (deprecated_debug_xfer_memory): Use paddress to print memaddr.
5676 Cast the address of elements inside the myaddr buffer into
5677 intptr_t.
5678
5679 2009-01-11 Joel Brobecker <brobecker@adacore.com>
5680
5681 * amd64-windows-nat.c, amd64-windows-tdep.c: New files.
5682 * config/i386/mingw64.mh, config/i386/nm-cygwin64.h: New files.
5683 * configure.host, configure.tgt: Add handling for x86_64/windows.
5684 * config/djgpp/fnchange.lst: Add entries for amd64-windows-nat.c
5685 and amd64-windows-tdep.c.
5686
5687 2009-01-11 Joel Brobecker <brobecker@adacore.com>
5688
5689 * win32-tdep.h, win32-tdep.c: New files.
5690 * i386-cygwin-tdep.h: Delete.
5691 * i386-cygwin-tdep.c: Include win32-tdep.h instead of
5692 i386-cygwin-tdep.h.
5693 (win32_xfer_shared_library): Delete. Moved to win32-tdep.c.
5694 * win32-nat.c: Likewise.
5695 * configure.tgt: Add win32-tdep.o to the list of target object
5696 files for i386-cygwin and i386-mingw targets.
5697
5698 2009-01-11 Joel Brobecker <brobecker@adacore.com>
5699
5700 * win32-nat.h: New file.
5701 * win32-nat.c (mappings): Initialize to NULL.
5702 (win32_set_context_register_offsets): New function.
5703 * i386-windows-nat.c: New file.
5704 (mappings): Moved here from win32-nat.c.
5705 (_initialize_i386_windows_nat): New function.
5706 * config/i386/mingw.mh (NATDEPFILES): Add i386-windows-nat.o.
5707 * config/i386/cygwin.mh (NATDEPFILES): Likewise.
5708
5709 2009-01-09 Andreas Schwab <schwab@suse.de>
5710
5711 * Makefile.in (init.c): Set LANG/LC_ALL to C, not c.
5712
5713 2009-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5714
5715 * gdbtypes.c (append_composite_type_field): Correct the location of
5716 appended fields.
5717
5718 2009-01-09 Pedro Alves <pedro@codesourcery.com>
5719
5720 * defs.h (deprecated_error_hook): Delete declaration.
5721 * interps.c (clear_interpreter_hooks): Adjust.
5722 * remote-sim.c (gdb_os_error): Don't try to call
5723 deprecated_error_hook. No need to call exit anymore.
5724 * top.c (deprecated_error_hook): Delete.
5725
5726 2009-01-09 Joel Brobecker <brobecker@adacore.com>
5727
5728 * arch-utils.c (gdbarch_update_p): Use host_address_to_string
5729 to print the address of the gdbarch pointer.
5730
5731 2009-01-09 Joel Brobecker <brobecker@adacore.com>
5732
5733 * gdbarch.sh: Fix all the compilation errors on amd64-windows
5734 due to casting a pointer to a long when printing a function
5735 address. Instead, use host_address_to_string to convert our
5736 address to a string.
5737 * gdbarch.c: Regenerate.
5738
5739 2009-01-09 Joel Brobecker <brobecker@adacore.com>
5740
5741 * event-top.c (async_disconnect, async_stop_sig): use "raise"
5742 instead of "kill" to raise a signal.
5743
5744 2009-01-09 Joel Brobecker <brobecker@adacore.com>
5745
5746 * win32-nat.c (get_module_name): Change the type of parameter
5747 "base_address" to LPVOID. Remove unnecessary cast.
5748 (struct lm_info): Change type of load_addr to LPVOID.
5749 (win32_make_so): Change the type of parameter "load_addr"
5750 to LPVOID. Remove some unnecessary casts.
5751 (handle_unload_dll): Change the type of "lpBaseOfDll" to LPVOID.
5752 (win32_xfer_shared_libraries): Add missing cast.
5753
5754 2009-01-09 Joel Brobecker <brobecker@adacore.com>
5755
5756 * win32-nat.c (has_detach_ability, set_process_privilege):
5757 Cast the result of GetProcAddress to (void *) to avoid
5758 a compilation warning.
5759
5760 2009-01-09 Joel Brobecker <brobecker@adacore.com>
5761
5762 * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not
5763 already defined.
5764
5765 2009-01-09 Joel Brobecker <brobecker@adacore.com>
5766
5767 * win32-nat.c (get_image_name, win32_xfer_memory): Fix type
5768 definition of local variable "done".
5769 (info_w32_command, handle_exception): Remove unnecessary cast.
5770
5771 2009-01-09 Joel Brobecker <brobecker@adacore.com>
5772
5773 * win32-nat.c (kernel32_DebugSetProcessKillOnExit): Renames
5774 DebugSetProcessKillOnExit. Update all uses in this file.
5775 (kernel32_DebugActiveProcessStop): Renames DebugActiveProcessStop.
5776 Update all uses in this file.
5777
5778 2009-01-09 Joel Brobecker <brobecker@adacore.com>
5779
5780 * win32-nat.c (do_initial_win32_stuff): Add new ops parameter,
5781 and use it when pushing the target.
5782 (win32_attach, win32_create_inferior): Update call to
5783 do_initial_win32_stuff.
5784 (win32_detach, win32_mourn_inferior): Use our ops parameter
5785 instead of the global win32_ops to unpush the target.
5786
5787 2009-01-09 Joel Brobecker <brobecker@adacore.com>
5788
5789 * ser-mingw.c (ser_windows_open): Use proper type when casting
5790 in call to _open_osfhandle.
5791
5792 2009-01-09 Kai Tietz <kai.tietz@onevision.com>
5793
5794 * coff-pe-read.c (read_pe_exported_syms): Fix typo.
5795
5796 2009-01-09 Joel Brobecker <brobecker@adacore.com>
5797
5798 * CONTRIBUTE: Minor reformatting.
5799
5800 2009-01-08 Kai Tietz <kai.tietz@onevision.com>
5801
5802 * MAINTAINERS: Add myself to Write After Approval.
5803 * coff-pe-read.c (read_pe_exported_syms): Enable read of PE+
5804 export directory.
5805
5806 2009-01-08 Nathan Froyd <froydnj@codesourcery.com>
5807
5808 * remote-sim.c (gdb_os_error): Mark as a noreturn function.
5809 Call exit to make it obvious to GCC.
5810
5811 2009-01-08 Tom Tromey <tromey@redhat.com>
5812
5813 PR breakpoints/9350:
5814 * varobj.c (varobj_invalidate): Unconditionally free
5815 all_rootvarobj.
5816 * symfile.c (syms_from_objfile): Free local_addr when returning
5817 normally.
5818 * exec.c (exec_file_attach): Do cleanups before returning.
5819 (exec_file_command): Likewise.
5820 * corefile.c (reopen_exec_file): Do cleanups before returning.
5821 * breakpoint.c (insert_breakpoint_locations): Do cleanups before
5822 returning.
5823 (do_vec_free): New function.
5824 (update_global_location_list): Make a cleanup for old_locations.
5825 Do cleanups before returning. Remove unused variable 'e'.
5826 (find_condition_and_thread): Free result of parsing the
5827 expression.
5828 (print_it_typical): Do cleanups before returning.
5829 (breakpoint_re_set_one): Always free sals.sals.
5830
5831 2009-01-08 Joel Brobecker <brobecker@adacore.com>
5832 Emi Suzuki <emi-suzuki@tjsys.co.jp>
5833
5834 * breakpoint.c (do_enable_breakpoint): Use update_watchpoint for
5835 watchpoints.
5836
5837 2009-01-07 Doug Evans <dje@google.com>
5838
5839 * top.c (gdb_prompt_string): Delete, unused.
5840
5841 2009-01-07 Pedro Alves <pedro@codesourcery.com>
5842
5843 Delete ONE_PROCESS_WRITETEXT leftovers.
5844
5845 * breakpoint.c (insert_bp_location): Delete process_warning
5846 argument. Adjust.
5847 (insert_breakpoint_locations): Adjust.
5848 (reattach_breakpoints): Adjust.
5849 * infrun.c (normal_stop): Drop "It might be running in another
5850 process" notice.
5851
5852 2009-01-07 Stan Shebs <stan@codesourcery.com>
5853
5854 * config/pa/linux.mh (XDEPFILES): Remove.
5855
5856 2009-01-07 Doug Evans <dje@google.com>
5857
5858 * cli/cli-cmds.c (set_debug): Fix cut-n-paste error.
5859
5860 2009-01-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5861
5862 * f-typeprint.c (f_type_print_base <TYPE_CODE_STRUCT>): Fix output
5863 spacing, a regression from 2008-04-22.
5864
5865 2009-01-07 Joel Brobecker <brobecker@adacore.com>
5866
5867 * utils.c (gdb_print_host_address): Adjust implementation to
5868 reuse host_address_to_string. Move comment explaining the conversion
5869 from host address to string from here...
5870 (host_address_to_string): ... to there.
5871
5872 2009-01-07 Emi Suzuki <emi-suzuki@tjsys.co.jp>
5873
5874 * MAINTAINERS: Add myself for write after approval privileges.
5875
5876 2009-01-06 Tom Tromey <tromey@redhat.com>
5877
5878 * value.c (set_internalvar): Use value_free, not xfree.
5879
5880 2009-01-06 Jim Blandy <jimb@red-bean.com>
5881
5882 Check return values of functions declared with warn_unused_result
5883 attribute in GLIBC 2.8.
5884 * cli/cli-cmds.c (pwd_command): Check return value from getcwd.
5885 * inflow.c (check_syscall): New function.
5886 (new_tty): Use check_syscall to check return values from open and dup.
5887 * linux-nat.c (linux_nat_info_proc_cmd): Check return value from fgets.
5888 * main.c (captured_main): Call cwd after setting up gdb_stderr;
5889 check for errors from getcwd.
5890 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Check return value from getcwd.
5891 * ui-file.c (stdio_file_write): Ignore return value from fwrite.
5892 (stdio_file_fputs): Same.
5893 * utils.c (internal_vproblem): abort if last-ditch error message
5894 write fails.
5895
5896 * top.c (gdb_init): Don't set the current directory here; that's
5897 already been done in captured_main.
5898
5899 2009-01-06 Sandra Loosemore <sandra@codesourcery.com>
5900
5901 * ser-tcp.c: Adjust includes.
5902 (tcp_set_cmdlist, tcp_show_cmdlist): Declare.
5903 (tcp_auto_retry, tcp_retry_limit): Declare.
5904 (TIMEOUT): Remove, in favor of tcp_retry_limit.
5905 (POLL_INTERVAL): Increase to 5, in favor of backoff logic.
5906 (wait_for_connect): New function.
5907 (net_open): Use it. Add auto-retry logic.
5908 (set_tcp_cmd, show_tcp_cmd): New functions.
5909 (_initialize_ser_tcp): Initialize new "set/show tcp auto-retry"
5910 and "set/show tcp connect-timeout" commands.
5911 * NEWS: Document new commands.
5912
5913 2009-01-05 Tom Tromey <tromey@redhat.com>
5914
5915 * python/python-internal.h (Py_ssize_t): Define as int.
5916
5917 2009-01-05 Jim Blandy <jimb@red-bean.com>
5918
5919 * MAINTAINERS: Fix my e-mail address as steering committee member.
5920
5921 2009-01-03 Joel Brobecker <brobecker@adacore.com>
5922
5923 Updated copyright notices for most files.
5924
5925 2009-01-03 Joel Brobecker <brobecker@adacore.com>
5926
5927 * top.c (print_gdb_version): Update copyright year.
5928
5929 2009-01-03 Joel Brobecker <brobecker@adacore.com>
5930
5931 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2008.
5932
5933 2009-01-01 Pedro Alves <pedro@codesourcery.com>
5934
5935 PR breakpoints/9681:
5936 * exceptions.h (enum errors): New error type, MEMORY_ERROR.
5937 * corefile.c (memory_error): Rewrite to throw a MEMORY_ERROR.
5938 * breakpoint.c (fetch_watchpoint_value): Ignore MEMORY_ERRORs, but
5939 retrow all other exceptions.
5940
5941 For older changes see ChangeLog-2008.
5942 \f
5943 Local Variables:
5944 mode: change-log
5945 left-margin: 8
5946 fill-column: 74
5947 version-control: never
5948 coding: utf-8
5949 End: