* dwarf2expr.c (execute_stack_op): Add QUIT.
[binutils-gdb.git] / gdb / ChangeLog
1 2011-07-08 Tom Tromey <tromey@redhat.com>
2
3 * dwarf2expr.c (execute_stack_op): Add QUIT.
4
5 2011-07-07 Hui Zhu <teawater@gmail.com>
6
7 Revert:
8 2011-07-06 Hui Zhu <teawater@gmail.com>
9 * remote.c (remote_start_remote): Add TRY_CATCH for
10 remote_get_trace_status.
11 * tracepoint.c (disconnect_tracing): Ditto.
12
13 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
14
15 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
16 variables as signed, not unsigned.
17
18 2011-07-06 Joel Brobecker <brobecker@adacore.com>
19
20 * jit.c (jit_inferior_init): Reformat forward declaration.
21
22 2011-07-06 Matt Rice <ratmice@gmail.com>
23
24 * MAINTAINERS (Write After Approval): Add myself to the list.
25
26 2011-07-06 Hui Zhu <teawater@gmail.com>
27
28 * remote.c (remote_start_remote): Add TRY_CATCH for
29 remote_get_trace_status.
30 * tracepoint.c (disconnect_tracing): Ditto.
31
32 2011-07-05 Tom Tromey <tromey@redhat.com>
33
34 * symtab.c (operator_chars): Now static.
35 * linespec.c (operator_chars): Don't declare.
36
37 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
38
39 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
40
41 2011-07-05 Tom Tromey <tromey@redhat.com>
42
43 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
44 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
45 (TYPE_CPLUS_REALLY_JAVA): New macro.
46 * dwarf2read.c (process_structure_scope): Set
47 TYPE_CPLUS_REALLY_JAVA.
48
49 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
50
51 * ada-lang.c: Fix typos.
52 * amd64-tdep.c: Likewise.
53 * breakpoint.c: Likewise.
54 * cli/cli-decode.c: Likewise.
55 * findcmd.c: Likewise.
56 * inline-frame.c: Likewise.
57 * mi/mi-main.c: Likewise.
58 * minsyms.c: Likewise.
59 * monitor.c: Likewise.
60 * monitor.h: Likewise.
61 * prologue-value.c: Likewise.
62 * reverse.c: Likewise.
63 * s390-tdep.c: Likewise.
64
65 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
66
67 * jit.c (jit_inferior_init): Forward declare.
68 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
69
70 2011-07-04 Joel Brobecker <brobecker@adacore.com>
71
72 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
73
74 2011-07-04 Tristan Gingold <gingold@adacore.com>
75
76 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
77 (tcb_fieldno): Add activation_link field.
78 (get_known_tasks_addr): Moved and rewritten.
79 (get_tcb_types_info): Set activation_link field.
80 (read_known_tasks_array): Add parameter. Rewritten.
81 (read_known_tasks_list): New function.
82 (read_known_tasks): New function.
83 (ada_build_task_list): Call read_known_tasks instead of
84 read_known_tasks_array.
85 * ravenscar-thread.c: Add first_task_name constant.
86 (has_ravenscar_runtime): Check for task list too.
87
88 2011-07-04 Tristan Gingold <gingold@adacore.com>
89
90 * ada-tasks.c: Renames fieldno to actb_fieldno.
91 (ada_get_task_number): Indentation.
92 (get_tcb_types_info): Remove all parameters. Write directly
93 the globals.
94 (ptid_from_atcb_common): Adjust.
95 (read_atcb): Adjust.
96
97 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
98
99 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
100
101 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
102
103 * ui-out.c (ui_out_field_core_addr): Mention that the function
104 description is in the header file.
105 * ui-out.h (ui_out_field_core_addr): Document function.
106
107 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
108
109 * ui-out.c (ui_out_get_field_separator): Remove unused function.
110 * ui-out.h (ui_out_get_field_separator): Remove prototype.
111
112 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
113
114 * symtab.c (expand_line_sal): Remove empty line.
115
116 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
117
118 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
119 same way as ELFOSABI_NONE.
120 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
121
122 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
123
124 * breakpoint.c: Fix typos in comments.
125 * linespec.c: Likewise.
126 * symtab.c: Likewise.
127
128 2011-07-04 Joel Brobecker <brobecker@adacore.com>
129
130 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
131 section in separate object files.
132
133 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
134
135 Fix false GCC warning.
136 * linespec.c (decode_line_1): Initialize values.
137
138 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
139
140 * linespec.c (find_method): Accept the function type automatically only
141 if it was specified with parameter types.
142
143 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
144
145 Stop on first linespec terminator instead of eating what we can.
146 * linespec.c (is_linespec_boundary): New function.
147 (name_end): Remove function.
148 (keep_name_info): New parameter on_boundary, replace the body.
149 (decode_line_1): Provide the parameter to keep_name_info.
150 (decode_compound): Likewise. Drop the trailing java return type
151 handling. Twice.
152
153 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
154
155 Fall back linespec to minimal symbols.
156 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
157 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
158 (find_method, symbol_found): Change error to cplusplus_error.
159
160 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
161
162 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
163
164 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
165 Tom Tromey <tromey@redhat.com>
166
167 * dwarf2read.c (check_physname): New variable.
168 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
169 (show_check_physname): New function.
170 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
171
172 2011-07-01 Joel Brobecker <brobecker@adacore.com>
173
174 * machoread.c (macho_symfile_read): Delete OBE comment.
175
176 2011-07-01 Joel Brobecker <brobecker@adacore.com>
177
178 * machoread.c (struct macho_oso_data): Delete.
179 (current_oso): Delete.
180 (macho_relocate_common_syms): New function, mostly extracted
181 out of
182 (macho_add_oso_symfile): Call macho_relocate_common_syms.
183 Remove code that sets and unset current_oso.
184 (macho_symfile_relocate): Delete handling of common symbols,
185 now moved to macho_relocate_common_syms.
186
187 2011-07-01 Joel Brobecker <brobecker@adacore.com>
188
189 * darwin-nat.c (darwin_ptrace): Add documentation.
190 Set errno to zero before calling ptrace. If ptrace returns
191 -1 and errno is zero, then change then return zero.
192 (darwin_kill_inferior): Issue a warning instead of triggering
193 a failed assertion when the PT_KILL ptrace operations returned
194 nonzero.
195
196 2011-07-01 Joel Brobecker <brobecker@adacore.com>
197
198 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
199 only when inf->private->no_ptrace.
200
201 2011-07-01 Joel Brobecker <brobecker@adacore.com>
202
203 * ada-lang.c (print_it_exception): Print temporary catchpoints
204 as "Temporary catchpoint".
205 (print_mention_exception): Likewise.
206
207 2011-07-01 Tom Tromey <tromey@redhat.com>
208
209 * jv-lang.c (java_language_defn): Use java_printchar,
210 java_printstr.
211 (java_get_encoding): New function.
212 (java_emit_char): Use generic_emit_char.
213 (java_printchar): New function.
214 (java_printstr): Likewise.
215
216 2011-07-01 Joel Brobecker <brobecker@adacore.com>
217
218 * ada-typeprint.c (print_record_type): If unable to decode
219 the name of the parent type, use the encoded name.
220
221 2011-07-01 Jean-Charles Delay <delay@adacore.com>
222
223 * ada-typeprint.c (ada_print_type): Fix both PAD type and
224 pointer to constrained packed array type output.
225 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
226 packed array output.
227
228 2011-07-01 Jean-Charles Delay <delay@adacore.com>
229
230 * ada-typeprint.c (print_array_type): removed if condition on show
231 being negative for bounds printing.
232
233 2011-07-01 Joel Brobecker <brobecker@adacore.com>
234
235 * ada-lang.c (ada_identical_enum_types_p): New function.
236 (symbols_are_identical_enums): New function.
237 (remove_extra_symbols): Do nothing if NSYMS < 2.
238 Use symbols_are_identical_enums.
239
240 2011-07-01 Joel Brobecker <brobecker@adacore.com>
241
242 * ada-valprint.c (ada_value_print): Handle typedefs.
243
244 2011-07-01 Joel Brobecker <brobecker@adacore.com>
245
246 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
247
248 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
249
250 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
251 (decode_constrained_packed_array): Likewise.
252 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
253
254 2011-07-01 Joel Brobecker <brobecker@adacore.com>
255
256 * ada-exp.y (convert_char_literal): Handle typedef types.
257
258 2011-07-01 Joel Brobecker <brobecker@adacore.com>
259
260 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
261
262 2011-06-30 Tom Tromey <tromey@redhat.com>
263
264 * varobj.c (varobj_create): Call do_cleanups on early exit path.
265 * valops.c (find_overload_match): Call do_cleanups on early exit
266 path.
267 * solib.c (solib_find): Call do_cleanups on early exit path.
268
269 2011-06-30 Tom Tromey <tromey@redhat.com>
270
271 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
272 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
273 return paths. Defer final do_cleanups until last return.
274 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
275 early return.
276
277 2011-06-30 Tom Tromey <tromey@redhat.com>
278
279 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
280
281 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
282
283 * MAINTAINERS (Write After Approval): Add myself to the list.
284
285 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
286
287 Disable epilogue unwinders on recent GCCs.
288 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
289 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
290 * dwarf2read.c (process_full_comp_unit): Initialize
291 EPILOGUE_UNWIND_VALID.
292 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
293 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
294 * symtab.h (struct symtab): New field epilogue_unwind_valid.
295
296 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
297
298 Code cleanup - reformatting.
299 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
300 (producer_is_gcc_ge_4): ... here, change the return value.
301 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
302 interpretation.
303
304 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
305
306 Fix non-only rename list for Fortran modules import.
307 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
308 cp_add_using_directive caller.
309 (cp_add_using_directive): New parameter excludes, describe it. New
310 variables ix and param. Compare if also excludes match. Allocate NEW
311 with variable size, initialize EXCLUDES there.
312 (cp_lookup_symbol_imports): New variable excludep, test
313 current->EXCLUDES with it.
314 * cp-support.h: Include vec.h.
315 (struct using_direct): New field excludes, describe it.
316 (DEF_VEC_P (const_char_ptr)): New.
317 (cp_add_using_directive): New parameter excludes.
318 * defs.h (const_char_ptr): New typedef.
319 * dwarf2read.c (read_import_statement): New variables child_die,
320 excludes and cleanups, read in excludes.
321 (read_namespace): Adjust the cp_add_using_directive caller.
322
323 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
324
325 Code cleanup.
326 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
327 negative comparisons.
328
329 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
330
331 * mi/mi-main.c (mi_cmd_list_features): Emit
332 breakpoint-notifications.
333
334 2011-06-29 Tom Tromey <tromey@redhat.com>
335
336 PR fortran/10036:
337 * valprint.h (generic_emit_char, generic_printstr): Declare.
338 * valprint.c (wchar_printable, append_string_as_wide)
339 (print_wchar): Move from c-lang.c.
340 (generic_emit_char): New function; mostly taken from c_emit_char.
341 (generic_printstr): New function; mostly taken from c_printstr.
342 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
343 represented as arrays.
344 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
345 type.
346 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
347 identically to TYPE_CODE_INT.
348 * f-lang.c (f_get_encoding): New function.
349 (f_emit_char): Use generic_emit_char.
350 (f_printchar): Replace comment.
351 (f_printstr): Use generic_printstr.
352 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
353 "character" types specially.
354 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
355 for Fortran.
356 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
357 Move to valprint.c
358 (c_emit_char): Call generic_emit_char.
359 (c_printstr): Call generic_printstr.
360
361 2011-06-29 Gary Benson <gbenson@redhat.com>
362
363 * breakpoint.c (bpstat_what): Removed duplicated case.
364
365 2011-06-28 Tom Tromey <tromey@redhat.com>
366
367 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
368
369 2011-06-27 Tom Tromey <tromey@redhat.com>
370
371 * valops.c (find_overload_match): Call do_cleanups before early
372 return.
373 * top.c (execute_command): Call do_cleanups before early return.
374 (command_loop): Likewise.
375 * stack.c (backtrace_command): Make a null cleanup early. Don't
376 conditionally call do_cleanups.
377 * python/py-value.c (TRY_CATCH): Move cleanup handling into
378 TRY_CATCH.
379 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
380 so cleanups are always run.
381 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
382 * findcmd.c (parse_find_args): Call do_cleanups on early return
383 path.
384 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
385 Don't conditionally call do_cleanups.
386 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
387 later.
388
389 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
390
391 * MAINTAINERS (Write After Approval): Use default email address.
392
393 2011-06-27 Joel Brobecker <brobecker@adacore.com>
394
395 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
396
397 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
398
399 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
400 saved_regs_mask and copied_regs_mask fields.
401 (sparc_record_save_insn): New prototype.
402 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
403 (sparc_record_save_insn): New function.
404 (sparc_analyze_prologue): Add head comment. Recognize store insns
405 of call-saved registers. Use OFFSET consistently. Recognize flat
406 frames and cache their settings.
407 (sparc32_skip_prologue): Handle flat frames.
408 (sparc_frame_cache): Add frame_offset to the base address.
409 (sparc32_frame_cache): Adjust to new frame description.
410 (sparc32_frame_prev_register): Likewise.
411 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
412 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
413 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
414 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
415 frame by calling sparc_record_save_insn.
416 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
417 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
418 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
419
420 2011-06-27 Tristan Gingold <gingold@adacore.com>
421
422 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
423 field by map_addr and map_len.
424 (dwarf2_read_section): Adjust for the new bfd_mmap api.
425 (munmap_section_buffer): Likewise.
426
427 2011-06-24 Tom Tromey <tromey@redhat.com>
428
429 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
430 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
431 * python/python.c (gdbpy_parameter): Make 'arg' const.
432 (execute_gdb_command): Likewise.
433 (gdbpy_decode_line): Likewise. Copy it.
434 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
435 (gdbpy_write): Make 'arg' const.
436 * python/py-type.c (typy_lookup_typename): Make 'type_name'
437 const.
438 (gdbpy_lookup_type): Likewise.
439 * python/py-prettyprint.c (print_children): Make 'name' const.
440 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
441 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
442 Py_ssize_t.
443 * python/py-function.c (fnpy_init): Make 'name' const.
444 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
445 (gdbpy_string_to_argv): Make 'input' const.
446 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
447 it.
448 * gdbtypes.h (lookup_typename): Update.
449 * gdbtypes.c (lookup_typename): Make 'name' const.
450 (lookup_struct): Likewise.
451 (lookup_union): Likewise.
452 (lookup_enum): Likewise.
453
454 2011-06-24 Tom Tromey <tromey@redhat.com>
455
456 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
457 gdb_thread_db.h. Move all common/ entries to be together.
458 (TAGS): Don't depend on DEPFILES.
459
460 2011-06-23 Yao Qi <yao@codesourcery.com>
461
462 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
463 * remote.c (remote_start_remote): ... here.
464 * monitor.c (monitor_open): ... here.
465
466 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
467
468 * gdbtypes.c (append_composite_type_field_aligned): Fix
469 calculation of bit position based on alignment.
470
471 2011-06-22 Pedro Alves <pedro@codesourcery.com>
472
473 * breakpoint.c (bpstat_stop_status): Call the check_status
474 breakpoint_ops method.
475 (print_one_breakpoint_location): Also print the condition for Ada
476 exception catchpoints.
477 (allocate_bp_location): New, factored out from
478 allocate_bp_location.
479 (allocate_bp_location): Adjust. Call the owner breakpoint's
480 allocate_location method, if there is one.
481 (free_bp_location): Call the locations's dtor method, if there is
482 one.
483 (init_raw_breakpoint_without_location): New breakpoint_ops
484 parameter. Use it.
485 (set_raw_breakpoint_without_location): Adjust.
486 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
487 (set_raw_breakpoint): Adjust.
488 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
489 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
490 re_set and check_status methods.
491 (init_catchpoint): Don't memset, initialize thread, addr_string
492 and enable_state. Pass the ops down to init_raw_breakpoint.
493 (install_catchpoint): Rename to ...
494 (install_breakpoint): ... this, and make extern.
495 (create_fork_vfork_event_catchpoint): Adjust.
496 (catch_exec_breakpoint_ops): Install NULL allocate_location,
497 re_set and check_status methods.
498 (create_syscall_event_catchpoint): Adjust.
499 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
500 (masked_watchpoint_breakpoint_ops): Install NULL
501 allocate_location, re_set and check_status methods.
502 (catch_exec_command_1): Adjust.
503 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
504 re_set and check_status methods.
505 (create_ada_exception_breakpoint): Rename to ...
506 (init_ada_exception_breakpoint): ... this. Add a struct
507 breakpoint parameter, and delete the exp_string, cond_string and
508 cond parameters. Use init_raw_breakpoint, and don't install or
509 mention the breakpoint yet. Don't clear breakpoint fields that
510 init_raw_breakpoint already clears.
511 (re_set_breakpoint): Delete, split into ...
512 (breakpoint_re_set_default, prepare_re_set_context): ... these new
513 functions.
514 (breakpoint_re_set_one): Call the breakpoint's
515 breakpoint_ops->re_set implementation, if there's one. Adjust.
516 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
517 (struct bp_location_ops): New type.
518 (struct bp_location): New field `ops'.
519 (struct breakpoint_ops): New `allocate_location', `re_set' and
520 `check_status' fields. Make `breakpoint_hit''s description match
521 reality.
522 (init_bp_location): Declare.
523 (breakpoint_re_set_default): Declare.
524 (create_ada_exception_breakpoint): Rename to ...
525 (init_ada_exception_breakpoint): ... this. Add a struct
526 breakpoint parameter, and delete the exp_string, cond_string and
527 cond parameters.
528 (install_breakpoint): Declare.
529 * ada-lang.c: Include exceptions.h.
530 <Ada exceptions description>: Update.
531 (struct ada_catchpoint_location): New type.
532 (ada_catchpoint_location_dtor): New function.
533 (ada_catchpoint_location_ops): New global.
534 (ada_catchpoint): New type.
535 (create_excep_cond_exprs): New function.
536 (dtor_exception, allocate_location_exception, re_set_exception)
537 (should_stop_exception, check_status_exception): New functions.
538 (print_one_exception, print_mention_exception)
539 (print_recreate_exception): Adjust.
540 (dtor_catch_exception, allocate_location_catch_exception)
541 (re_set_catch_exception, check_status_catch_exception): New
542 functions.
543 (catch_exception_breakpoint_ops): Install them.
544 (dtor_catch_exception_unhandled)
545 (allocate_location_catch_exception_unhandled)
546 (re_set_catch_exception_unhandled)
547 (check_status_catch_exception_unhandled): New functions.
548 (catch_exception_unhandled_breakpoint_ops): Install them.
549 (dtor_catch_assert, allocate_location_catch_assert)
550 (re_set_catch_assert, check_status_catch_assert): New functions.
551 (catch_assert_breakpoint_ops): Install them.
552 (ada_exception_catchpoint_p): Delete.
553 (catch_ada_exception_command_split)
554 (ada_exception_catchpoint_cond_string): Rename exp_string
555 parameter to excep_string. Adjust.
556 (ada_parse_catchpoint_condition): Delete.
557 (ada_exception_sal): Rename the exp_string parameter to
558 excep_string. Delete the cond_string and cond parameters.
559 Adjust.
560 (ada_decode_exception_location): Rename the exp_string parameter
561 to excep_string. Delete the cond_string and cond parameters.
562 Adjust.
563 (create_ada_exception_catchpoint): New function.
564 (catch_ada_exception_command, ada_decode_assert_location)
565 (catch_assert_command): Adjust.
566 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
567
568 2011-06-22 Pedro Alves <pedro@codesourcery.com>
569
570 * ada-lang.c: Include arch-utils.h.
571 (ada_decode_exception_location): Make static.
572 (catch_ada_exception_command): Moved here from breakpoint.c.
573 (ada_decode_assert_location): Make static.
574 (catch_assert_command): Moved here from breakpoint.c.
575 (_initialize_ada_lang): Install the exception and assert
576 catchpoint commands here.
577 * ada-lang.h (ada_decode_exception_location)
578 (ada_decode_assert_location): Delete declarations.
579 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
580 breakpoint.h.
581 (create_ada_exception_breakpoint): Make extern.
582 (catch_ada_exception_command, catch_assert_command): Moved to
583 ada-lang.c.
584 (add_catch_command): Make extern.
585 (_initilize_breakpoint): Don't install the exception and assert
586 catchpoint commands here.
587 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
588 breakpoint.c
589 (add_catch_command, create_ada_exception_breakpoint): Declare.
590
591 2011-06-22 Pedro Alves <pedro@codesourcery.com>
592
593 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
594 the breakpoint to the breakpoint chain here.
595 (set_raw_breakpoint_without_location): Add the breakpoint to the
596 breakpoint chain here.
597 (init_raw_breakpoint): Adjust comments.
598 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
599 here.
600 (init_catchpoint): Don't set the catchpoint's breakpoint number
601 here.
602 (install_catchpoint): New function.
603 (create_fork_vfork_event_catchpoint)
604 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
605 use install_catchpoint.
606
607 2011-06-22 Pedro Alves <pedro@codesourcery.com>
608
609 * breakpoint.c (create_catchpoint_without_mention)
610 (create_catchpoint): Delete.
611
612 2011-06-22 Pedro Alves <pedro@codesourcery.com>
613
614 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
615 * breakpoint.c (init_raw_breakpoint_without_location): Remove
616 reference to exec_pathname.
617 (struct exec_catchpoint): New type.
618 (dtor_catch_exec): New function.
619 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
620 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
621 (catch_exec_command_1): Adjust to use init_catchpoint.
622 (delete_breakpoint): Remove reference to exec_pathname.
623
624 2011-06-22 Pedro Alves <pedro@codesourcery.com>
625
626 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
627 (struct breakpoint): Delete field `syscalls_to_be_caught'.
628 * breakpoint.c (init_raw_breakpoint_without_location): Remove
629 reference to syscalls_to_be_caught.
630 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
631 NULL `dtor'.
632 (struct syscall_catchpoint): New type.
633 (dtor_catch_syscall): New function.
634 (insert_catch_syscall, remove_catch_syscall)
635 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
636 (print_recreate_catch_syscall): Adjust.
637 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
638 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
639 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
640 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
641 (masked_watchpoint_breakpoint_ops)
642 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
643 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
644 there is one. Remove references to syscalls_to_be_caught.
645 (catching_syscall_number): Adjust.
646 * ada-lang.c (catch_exception_breakpoint_ops)
647 (catch_exception_unhandled_breakpoint_ops)
648 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
649
650 2011-06-22 Pedro Alves <pedro@codesourcery.com>
651
652 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
653 field.
654 * breakpoint.c (init_raw_breakpoint_without_location): Remove
655 reference to forked_inferior_pid.
656 (struct fork_catchpoint): New type.
657 (breakpoint_hit_catch_fork, print_it_catch_fork)
658 (print_one_catch_fork, breakpoint_hit_catch_vfork)
659 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
660 (create_fork_vfork_event_catchpoint): Adjust to use
661 init_catchpoint.
662
663 2011-06-22 Pedro Alves <pedro@codesourcery.com>
664
665 * breakpoint.c (add_to_breakpoint_chain)
666 (init_raw_breakpoint_without_location): New functions, factored
667 out from ...
668 (set_raw_breakpoint_without_location): ... this one.
669 (init_raw_breakpoint): New function, factored out from
670 set_raw_breakpoint and adjusted to use
671 init_raw_breakpoint_without_location.
672 (set_raw_breakpoint): Adjust.
673 (init_catchpoint): New function, factored out from
674 create_catchpoint_without_mention and adjusted to use
675 init_raw_breakpoint.
676 (create_catchpoint_without_mention): Adjust.
677
678 2011-06-22 Tom Tromey <tromey@redhat.com>
679
680 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
681 argument of 0 specially.
682
683 2011-06-22 Yao Qi <yao@codesourcery.com>
684
685 * infrun.c (handle_inferior_event): Remove write-only local variable
686 `sw_single_step_trap_p'.
687
688 2011-06-20 Tom Tromey <tromey@redhat.com>
689
690 * symtab.c (lookup_language_this): End loop if block is NULL.
691
692 2011-06-17 Tom Tromey <tromey@redhat.com>
693
694 * valops.c (value_of_this): Use lookup_language_this.
695 * symtab.h (lookup_language_this): Declare.
696 * symtab.c (lookup_language_this): New function.
697 (lookup_symbol_aux): Use lookup_language_this.
698 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
699
700 2011-06-17 Tom Tromey <tromey@redhat.com>
701
702 * value.h (value_of_this): Update.
703 (value_of_local): Remove.
704 * valops.c (value_of_this): Rename from value_of_local. Change
705 parameters.
706 * p-exp.y (exp): Update.
707 (variable): Likewise.
708 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
709
710 2011-06-17 Tom Tromey <tromey@redhat.com>
711
712 * valops.c (value_of_local): Complain if NAME is NULL.
713 * std-operator.def (OP_OBJC_SELF): Remove.
714 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
715 * objc-exp.y (name_not_typename): Use OP_THIS.
716 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
717 name for "this".
718 <OP_OBJC_SELF>: Remove.
719 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
720
721 2011-06-16 Tristan Gingold <gingold@adacore.com>
722
723 * python/py-events.h (gdb_py_events): Make it extern.
724 * python/py-evtregistry.c (gdb_py_events): Declare.
725
726 2011-06-16 Hui Zhu <teawater@gmail.com>
727
728 * remote.c (remote_trace_set_readonly_regions): Add check for
729 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
730 output warning.
731
732 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
733
734 * arm-linux-tdep.c: Include "auxv.h".
735 (AT_HWCAP): Define.
736 (ARM_LINUX_SIZEOF_VFP): Define.
737 (arm_linux_supply_vfp): New function.
738 (arm_linux_collect_vfp): Likewise.
739 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
740 (arm_linux_fpa_regset_sections): New variable.
741 (arm_linux_vfp_regset_sections): Likewise.
742 (arm_linux_core_read_description): New function.
743 (arm_linux_init_abi): Install arm_linux_core_read_description and
744 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
745 appropriate for the architecture.
746 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
747 (tdesc_arm_with_m): Declare.
748 (tdesc_arm_with_iwmmxt): Likewise.
749 (tdesc_arm_with_vfpv2): Likewise.
750 (tdesc_arm_with_vfpv3): Likewise.
751 (tdesc_arm_with_neon): Likewise.
752 * arm-linux-nat.c: Move features/*.c includes ...
753 * arm-tdep.c: ... here.
754 * arm-linux-nat.c (arm_linux_read_description): Move initializing
755 target description data structures ...
756 * arm-tdep.c (_initialize_arm_tdep): ... here.
757 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
758 HWCAP_VFPv3D16): Move definitions ...
759 * arm-linux-tdep.h: ... here.
760
761 2011-06-15 Hui Zhu <teawater@gmail.com>
762
763 * remote.c (remote_trace_set_readonly_regions): Add a check for
764 target_buf_size.
765
766 2011-06-14 Tom Tromey <tromey@redhat.com>
767
768 * coffread.c (coffread_objfile): Rename from current_objfile.
769 * dbxread.c (dbxread_objfile): Rename from current_objfile.
770 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
771
772 2011-06-14 Tom Tromey <tromey@redhat.com>
773
774 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
775 (class_symtab): Remove.
776 (jv_dynamics_progspace_key): New global.
777 (jv_per_objfile_free): Reset program space data. Update assert.
778 Don't clear globals.
779 (get_dynamics_objfile): Use and set program space data.
780 (get_java_class_symtab): Use get_dynamics_objfile.
781 (add_class_symbol): Likewise.
782 (java_link_class_type): Likewise.
783 (java_object_type, jv_clear_object_type, set_java_object_type):
784 Remove.
785 (get_java_object_type): Update. Don't cache result.
786 (is_object_type): Don't call set_java_object_type.
787 (_initialize_java_language): Don't set jv_type_objfile_data_key;
788 initialize jv_dynamics_progspace_key.
789
790 2011-06-14 Tom Tromey <tromey@redhat.com>
791
792 * symtab.h (current_objfile): Don't declare.
793 * objfiles.h (current_objfile): Don't declare.
794 * objfiles.c (current_objfile): Remove.
795 * mdebugread.c (current_objfile): New file-scope global.
796 * dbxread.c (current_objfile): New file-scope global.
797 * coffread.c (current_objfile): New file-scope global.
798
799 2011-06-13 Pedro Alves <pedro@codesourcery.com>
800
801 * top.h (line): Rename to ...
802 (saved_command_line): ... this.
803 (linesize): Rename to ...
804 (saved_command_line_size): ... this.
805 * top.c (line): Rename to ...
806 (saved_command_line): ... this.
807 (linesize): Rename to ...
808 (saved_command_line_size): ... this.
809 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
810 * event-top.c (command_line_handler): Adjust.
811 * main.c (captured_main): Adjust.
812
813 2011-06-12 Mark Kettenis <kettenis@gnu.org>
814
815 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
816 get_frame_func instead of get_frame_pc to determine the code
817 address used to construct the frame ID.
818 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
819 (i386_epilogue_frame_this_id): Likewise.
820 (i386_epilogue_frame_prev_register): New function.
821 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
822 (i386_stack_tramp_frame_sniffer): Fix coding style.
823 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
824 (i386_gdbarch_init): Fix comments.
825
826 2011-06-12 Mark Kettenis <kettenis@gnu.org>
827
828 * i386-tdep.c (i386_match_insn_block): Use length of the proper
829 instruction when walking back through the instruction stream.
830
831 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
832
833 * symtab.c (output_partial_symbol_filename): Exchange the filename and
834 fullname parameters order.
835
836 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
837
838 Code cleanup.
839 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
840 for fun.
841 * psymtab.c (map_symbol_filenames_psymtab)
842 (map_partial_symbol_filenames): Likewise.
843 * psymtab.h: Include symfile.h.
844 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
845 * symfile.h (symbol_filename_ftype): New.
846 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
847 map_symbol_filenames, clarify more the naming in comment.
848
849 2011-06-07 Doug Evans <dje@google.com>
850
851 * cc-with-index.sh: Fix typos in comment.
852 Look for ../../gdb, for fullname.exp.
853
854 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
855 Pedro Alves <pedro@codesourcery.com>
856
857 * cli/cli-cmds.c (shell_escape): Use waitpid.
858 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
859
860 2011-06-07 Tristan Gingold <gingold@adacore.com>
861
862 * xcoffread.c (dwarf2_xcoff_names): New variable.
863 (aix_process_linenos): Add a guard.
864 (xcoff_symfile_finish): Free dwarf2.
865 (xcoff_initial_scan): Add dwarf2 support.
866
867 2011-06-06 Pedro Alves <pedro@codesourcery.com>
868
869 * infcall.c (run_inferior_call): Don't mask async. Instead force
870 a synchronous wait, if the target can async.
871
872 * target.h (struct target_ops): Delete to_async_mask.
873 (target_async_mask): Delete.
874 * target.c (update_current_target): Delete references to to_async_mask.
875 * linux-nat.c (linux_nat_async_mask_value): Delete.
876 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
877 to linux_nat_async_mask_value.
878 (linux_nat_async_mask): Delete.
879 (linux_nat_async, linux_nat_close): Remove references to
880 linux_nat_async_mask_value.
881 * record.c (record_async_mask_value): Delete.
882 (record_async): Remove references to record_async_mask_value.
883 (record_async_mask): Delete.
884 (record_can_async_p, record_is_async_p): Remove references to
885 record_async_mask_value.
886 (init_record_ops, init_record_core_ops): Remove references to
887 record_async_mask.
888 * remote.c (remote_async_mask_value): Delete.
889 (init_remote_ops): Remove reference to remote_async_mask.
890 (remote_can_async_p, remote_is_async_p): Remove references to
891 remote_async_mask_value.
892 (remote_async): Remove references to remote_async_mask_value.
893 (remote_async_mask): Delete.
894
895 * infrun.c (fetch_inferior_event): Don't claim registers changed
896 if the current thread is already not executing.
897
898 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
899
900 From Stephen Kitt <steve@sk2.org>
901 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
902 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
903
904 2011-06-03 Joel Brobecker <brobecker@adacore.com>
905
906 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
907 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
908
909 2011-06-03 Tom Tromey <tromey@redhat.com>
910
911 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
912 code fields.
913 * python/py-exitedevent.c (create_exited_event_object): Change
914 type of 'exit_code'. Optionally add exit_code attribute.
915 (emit_exited_event): Change type of 'exit_code'.
916 * python/py-event.h (emit_exited_event): Update.
917 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
918 * infrun.c (handle_inferior_event): Set exit code fields on
919 inferior.
920 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
921 fields.
922 * inferior.c (exit_inferior_1): Initialize new fields.
923
924 2011-06-03 Tom Tromey <tromey@redhat.com>
925
926 * dwarf2expr.c (get_signed_type): New function.
927 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
928
929 2011-06-02 Keith Seitz <keiths@redhat.com>
930
931 * objc-lang.c (find_methods): Increment objfile_csym earlier.
932
933 2011-06-02 Pedro Alves <pedro@codesourcery.com>
934
935 * top.h (simplified_command_loop): Delete declaration.
936
937 2011-06-01 Mike Frysinger <vapier@gentoo.org>
938
939 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
940 gdb_sysroot to the "len" variable. Append both to "arg_buf".
941
942 2011-06-01 Yao Qi <yao@codesourcery.com>
943
944 * objfiles.h (obj_section_addr): Update reference to objfile from
945 `abfd' to `obfd'.
946 (obj_section_endaddr): Likewise.
947
948 2011-06-01 Daniel Jacobowitz <drow@false.org>
949
950 * MAINTAINERS: Update my email address and affiliation. Also
951 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
952
953 2010-05-31 Keith Seitz <keiths@redhat.com>
954
955 PR c++/12750
956 * linespec.c (get_search_block): New function.
957 (find_methods): Add FILE_SYMTATB parameter and use it and
958 get_search_block to pass an appropriate block to
959 lookup_symbol_in_namespace.
960 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
961 Check if *ARGPTR starts with a filename first.
962 If it does, call locate_first_half again to locate the next
963 "first half" of the linespec.
964 Pass FILE_SYMTATB to decode_objc and decode_compound.
965 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
966 (locate_first_half): Stop on the first colon seen.
967 (decode_compound): Add FILE_SYMTAB parameter.
968 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
969 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
970 get_search_block with lookup_symbol.
971 (find_method): Add FILE_SYMTAB parameter and pass it to
972 find_methods.
973 (decode_objc): Use get_search_block.
974
975 2010-05-31 Keith Seitz <keiths@redhat.com>
976
977 PR symtab/12704
978 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
979 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
980 and CP_ANONYMOUS_NAMESPACE_LEN.
981 (cp_is_anonymous): Likewise.
982 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
983 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
984 * dwarf2read.c (namespace_name): Likewise.
985 (fixup_partial_die): Likewise.
986 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
987 seen in the input, keep it.
988
989 2011-05-30 Pedro Alves <pedro@codesourcery.com>
990
991 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
992 * inf-loop.h (inferior_event_handler_wrapper): Delete.
993 * inf-loop.c (inferior_event_handler_wrapper): Delete.
994 (inferior_event_handler): Don't handle INF_QUIT_REQ.
995 * remote.c (_initialize_remote): Register
996 async_remote_interrupt_twice directly as
997 sigint_remote_twice_token event.
998
999 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1000
1001 * target.h (enum inferior_event_type): Delete INF_ERROR.
1002 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
1003
1004 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1005
1006 * interps.c (interp_set): Don't cancel continuations.
1007
1008 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1009
1010 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
1011
1012 2011-05-30 Pedro Alves <pedro@codesourcery.com>
1013
1014 * continuations.h (continuation_ftype): Add `err' parameter.
1015 Document parameters.
1016 (do_all_continuations, do_all_continuations_thread)
1017 (do_all_intermediate_continuations)
1018 (do_all_intermediate_continuations_thread)
1019 (do_all_inferior_continuations): Add `err' parameter.
1020 * continuations.c (do_my_continuations_1, do_my_continuations)
1021 (do_all_inferior_continuations, do_all_continuations_ptid)
1022 (do_all_continuations_thread_callback)
1023 (do_all_continuations_thread, do_all_continuations)
1024 (do_all_intermediate_continuations_thread_callback)
1025 (do_all_intermediate_continuations_thread)
1026 (do_all_intermediate_continuations): Add `err' parameter, and pass
1027 it down all the way to the continuations proper.
1028 * inf-loop.c (inferior_event_handler): If fetching an inferior
1029 event throws an error, don't pop the target, and still call the
1030 continuations, but with `err' set. Adjust all other continuation
1031 calls.
1032 * breakpoint.c (until_break_command_continuation): Add `err'
1033 parameter.
1034 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
1035 issue another step if `err' is set.
1036 (struct until_next_continuation_args): New.
1037 (until_next_continuation): Add `err' parameter. Adjust.
1038 (until_next_command): Adjust.
1039 (struct finish_command_continuation_args): Add `thread' field.
1040 (finish_command_continuation): Add `err' parameter. Handle it.
1041 (finish_forward): Adjust.
1042 (attach_command_continuation): Add `err' parameter. Handle it.
1043 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
1044 cancel the continuations.
1045 * interps.c (interp_set): Adjust to cancel the continuations.
1046 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
1047 continuations rather than discarding.
1048 (free_thread): Don't clear thread inferior resources here.
1049 (delete_thread_1): Do it here instead. And do it before removing
1050 the thread from the threads list. Tag the thread as exited before
1051 clearing thread inferior resources.
1052
1053 2011-05-30 Joel Brobecker <brobecker@adacore.com>
1054
1055 * infcall.c (call_function_by_hand): Rephrase error message.
1056
1057 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1058
1059 * defs.h (struct thread_info, struct inferior): Delete forward
1060 declarations.
1061 * breakpoint.h (struct thread_info): New forward declaration.
1062 * observer.sh (struct inferior): New forward declaration.
1063 * python/python-internal.h (struct inferior): New forward
1064 declaration.
1065
1066 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1067
1068 * defs.h (struct continuation, continuation_ftype)
1069 (continuation_free_arg_ftype, add_continuation)
1070 (do_all_continuations, do_all_continuations_thread)
1071 (discard_all_continuations, discard_all_continuations_thread)
1072 (add_intermediate_continuation, do_all_intermediate_continuations)
1073 (do_all_intermediate_continuations_thread)
1074 (discard_all_intermediate_continuations)
1075 (discard_all_intermediate_continuations_thread)
1076 (add_inferior_continuation, do_all_inferior_continuations)
1077 (discard_all_inferior_continuations): Move to ...
1078 * continuations.h: ... this new file.
1079 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
1080 infcmd.c, inferior.c, infrun.c, interps.c: Include
1081 continuations.h.
1082
1083 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1084 Doug Evans <dje@google.com>
1085
1086 Fix PR 10970, PR 12702.
1087 * linux-nat.c (linux_lwp_is_zombie): New function.
1088 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
1089 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
1090
1091 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1092
1093 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
1094 typedefs.
1095 (add_continuation, add_intermediate_continuation)
1096 (add_inferior_continuation): Use them.
1097 * continuations.c (struct continuation): Use them.
1098 (make_continuation_ftype): Delete.
1099 (make_continuation, add_inferior_continuation, add_continuation)
1100 (add_intermediate_continuation): Use continuation_ftype and
1101 continuation_free_arg_ftype. Rename parameters to shorter names.
1102
1103 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1104
1105 * continuations.c (make_continuation): Make it return void.
1106 (do_my_continuations): Rename to ...
1107 (do_my_continuations_1): ... this. Remove old_chain parameter and
1108 adjust.
1109 (do_my_continuations): New.
1110 (discard_my_continuations): Rename to ...
1111 (discard_my_continuations_1): ... this. Remove old_chain
1112 parameter and adjust.
1113 (discard_my_continuations): New.
1114 (add_inferior_continuation): Simplify.
1115 (do_all_inferior_continuations): Reimplement on top
1116 do_my_continuations.
1117 (discard_all_inferior_continuations): Simplify.
1118 (add_continuation): Simplify.
1119 (do_all_continuations_ptid): Simplify.
1120 (discard_all_continuations_thread_callback): Simplify.
1121 (add_intermediate_continuation): Simplify.
1122 (discard_all_intermediate_continuations_thread_callback):
1123 Simplify.
1124
1125 2011-05-27 Pedro Alves <pedro@codesourcery.com>
1126
1127 * utils.c (struct continuation, add_continuation)
1128 (add_inferior_continuation)
1129 (do_all_inferior_continuations, discard_all_inferior_continuations)
1130 (restore_thread_cleanup, do_all_continuations_ptid)
1131 (do_all_continuations_thread_callback)
1132 (do_all_continuations_thread, do_all_continuations)
1133 (discard_all_continuations_thread_callback)
1134 (discard_all_continuations_thread, discard_all_continuations)
1135 (add_intermediate_continuation)
1136 (do_all_intermediate_continuations_thread_callback)
1137 (do_all_intermediate_continuations_thread)
1138 (do_all_intermediate_continuations)
1139 (discard_all_intermediate_continuations_thread_callback)
1140 (discard_all_intermediate_continuations_thread)
1141 (discard_all_intermediate_continuations): Move to ...
1142 * continuations.c: ... this new file, and adjust to no longer
1143 implement continuations on top of cleanups.
1144 * Makefile.in (SFILES): Add continuations.c.
1145 (COMMON_OBS): Add continuations.o.
1146
1147 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1148
1149 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
1150 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
1151 Internal error on invalid values.
1152 * reverse.c: Don't handle EXEC_ERROR.
1153 * mi/mi-main.c: Don't handle EXEC_ERROR.
1154
1155 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1156
1157 * record.c: Include event-loop.h, inf-loop.h.
1158 (record_beneath_to_async): New global.
1159 (tmp_to_async): New global.
1160 (record_async_inferior_event_token): New global.
1161 (record_open_1): Don't error out if async is enabled.
1162 (record_open): Handle to_async. Create an async event source in
1163 the event loop.
1164 (record_close): Delete the async event source.
1165 (record_resumed): New global.
1166 (record_execution_dir): New global.
1167 (record_resume, record_core_resume): Set them. Register the
1168 target on the event loop.
1169 (record_wait): Rename to ...
1170 (record_wait_1): ... this. Add more debug output. Handle
1171 TARGET_WNOHANG, and the target beneath returning
1172 TARGET_WAITKIND_IGNORE.
1173 (record_wait): Reimplement on top of record_wait_1.
1174 (record_async_mask_value): New global.
1175 (record_async, record_async_mask, record_can_async_p)
1176 (record_is_async_p, record_execution_direction): New functions.
1177 (init_record_ops, init_record_core_ops): Install new methods.
1178 * infrun.c (fetch_inferior_event): Temporarily switch the global
1179 execution direction to the direction the target was going.
1180 (execution_direction): Change type to int.
1181 * target.c (default_execution_direction): New function.
1182 (update_current_target): Inherit and de_fault
1183 to_execution_direction.
1184 * target.h (struct target_ops) <to_execution_direction>: New
1185 field.
1186 (target_execution_direction): New macro.
1187 * inferior.h (execution_direction): Change type to int.
1188
1189 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1190
1191 * infcall.c (call_function_by_hand): Don't allow calling functions
1192 in reverse execution mode.
1193
1194 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1195
1196 * infcmd.c (finish_command): Allow async finish in reverse.
1197
1198 2011-05-26 Yao Qi <yao@codesourcery.com>
1199
1200 * gdb_thread_db.h: Delete. Move to ...
1201 * common/gdb_thread_db.h: ... here.
1202
1203 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1204
1205 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
1206 function's entry point instead of a manually managed momentary
1207 breakpoint, and only ever issue one proceed call.
1208 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
1209 doing a reverse-finish, switch to stepi mode, to do another step.
1210 (insert_step_resume_breakpoint_at_sal): Make public.
1211 (normal_stop): No need to save function value return registers if
1212 going reverse.
1213 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
1214
1215 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1216
1217 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
1218 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
1219 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
1220 at the end.
1221 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
1222 step-resume breakpoints.
1223 (print_it_typical): Handle bp_hp_step_resume.
1224 (bpstat_what): Ditto.
1225 (bptype_string): Ditto.
1226 (print_one_breakpoint_location): Ditto.
1227 (allocate_bp_location): Ditto.
1228 (mention): Ditto.
1229 (breakpoint_re_set_one): Ditto.
1230 * infrun.c (handle_inferior_event): Adjust. Split
1231 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
1232 BPSTAT_WHAT_HP_STEP_RESUME.
1233 (insert_step_resume_breakpoint_at_sal): Rename to ...
1234 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
1235 parameter. Handle it.
1236 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
1237 insert_step_resume_breakpoint_at_sal_1.
1238 (insert_step_resume_breakpoint_at_frame): Rename to ...
1239 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
1240 set a high-priority step-resume breakpoint.
1241 (insert_step_resume_breakpoint_at_frame): Adjust comment.
1242 (insert_step_resume_breakpoint_at_caller): Ditto.
1243
1244 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1245
1246 * breakpoint.c (iterate_over_related_breakpoints): New.
1247 (do_map_delete_breakpoint): New.
1248 (delete_command): Pass do_map_delete_breakpoint to
1249 map_breakpoint_numbers.
1250 (do_disable_breakpoint): New.
1251 (do_map_disable_breakpoint): Iterate over the breakpoint's related
1252 breakpoints.
1253 (do_enable_breakpoint): Rename to ...
1254 (enable_breakpoint_disp): ... this.
1255 (enable_breakpoint): Adjust.
1256 (do_enable_breakpoint): New.
1257 (enable_once_breakpoint): Delete.
1258 (do_map_enable_breakpoint): New.
1259 (do_map_enable_once_breakpoint): New.
1260 (enable_once_command, enable_delete_command)
1261 (delete_trace_command): Iterate over the breakpoint's related
1262 breakpoints.
1263
1264 2011-05-26 Pedro Alves <pedro@codesourcery.com>
1265
1266 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
1267 for ALPHA_ZERO_REGNUM.
1268 (alpha_supply_int_regs): Explicitly supply zero as the value for
1269 ALPHA_ZERO_REGNUM in the register cache.
1270 * alpha-nat.c (fetch_osf_core_registers): Ditto.
1271
1272 2011-05-26 Yao Qi <yao@codesourcery.com>
1273
1274 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
1275
1276 2011-05-26 Tristan Gingold <gingold@adacore.com>
1277
1278 * symfile.h (struct dwarf2_section_names): New type.
1279 (struct dwarf2_debug_sections): New type.
1280 (dwarf2_has_info): Add parameter.
1281 * dwarf2read.c (dwarf2_elf_names): New variable.
1282 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
1283 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
1284 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
1285 (dwarf2_has_info): Add names parameter. Pass names
1286 to dwarf2_locate_sections.
1287 (section_is_p): Rewrite using the names parameter.
1288 (dwarf2_locate_sections): Use section names from the names parameter.
1289 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
1290 * elfread.c (read_psyms): Ditto.
1291 * machoread.c (macho_symfile_read): Ditto.
1292
1293 2011-05-25 Andreas Schwab <schwab@redhat.com>
1294
1295 PR gdb/8677
1296 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
1297
1298 2011-05-24 Keith Seitz <keiths@redhat.com>
1299
1300 PR breakpoint/12803
1301 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
1302 (decode_compound): Unconditionally call keep_name_info.
1303
1304 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1305
1306 * breakpoint.c (watchpoint_check): If the watchpoint went out of
1307 scope, clear its command list.
1308 (map_breakpoint_numbers): Don't walk the related breakpoints list
1309 of each breakpoint.
1310
1311 2011-05-24 Tom Tromey <tromey@redhat.com>
1312
1313 * MAINTAINERS: Move Jim Blandy to past maintainers.
1314
1315 2011-05-24 Tristan Gingold <gingold@adacore.com>
1316
1317 * symfile.h (enum dwarf2_section_enum): New type.
1318 (dwarf2_get_section_info): New prototype.
1319 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
1320 section_name by sect. Use a switch to select the info.
1321 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
1322 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
1323
1324 2011-05-24 Pedro Alves <pedro@codesourcery.com>
1325
1326 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
1327 shared library event breakpoint if there's no execution.
1328
1329 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
1330
1331 * breakpont.c (remove_hw_watchpoints): Remove unused function.
1332 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
1333
1334 2011-05-23 Tom Tromey <tromey@redhat.com>
1335
1336 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
1337 NULL.
1338
1339 2011-05-23 Doug Evans <dje@google.com>
1340
1341 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
1342 entry for RuntimeError to doc string.
1343
1344 2011-05-23 Jerome Guitton <guitton@adacore.com>
1345
1346 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
1347 sequence for probing loops.
1348
1349 2011-05-23 Pedro Alves <pedro@codesourcery.com>
1350
1351 * infrun.c (user_visible_resume_ptid): Fix typos in describing
1352 comment.
1353
1354 2011-05-21 Mark Kettenis <kettenis@gnu.org>
1355
1356 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
1357 zero as the value for %g0 in the register cache.
1358 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
1359 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1360
1361 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1362
1363 * infrun.c (proceed): Set previous_inferior_ptid here.
1364 (init_wait_for_inferior): Initialize previous_inferior_ptid from
1365 inferior_ptid, not null_ptid.
1366 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
1367 (fetch_inferior_event): Nor here.
1368
1369 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1370
1371 * inf-loop.c (inferior_event_handler): Only output a message if
1372 verbose.
1373
1374 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
1375
1376 * MAINTAINERS: Update my e-mail address.
1377
1378 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1379
1380 * infrun.c (proceed): Switch the inferior event loop to
1381 INF_EXEC_COMPLETE if the target refused to resume from a
1382 vfork/fork.
1383
1384 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1385
1386 * infcmd.c: Include "inf-loop.h".
1387 (step_once): When stepping into an inline subroutine, pretend the
1388 target has run. If the target can async, switch the inferior
1389 event loop to INF_EXEC_COMPLETE.
1390 * inferior.h (user_visible_resume_ptid): Declare.
1391 * infrun.c (user_visible_resume_ptid): New function, factored out
1392 from `resume'.
1393 (resume): Use it.
1394 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
1395 that the current thread is running. Merge async and sync
1396 branches.
1397
1398 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1399
1400 * infcmd.c (step_1): Simplify synchronous case.
1401
1402 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1403
1404 * tracepoint.c: Include exceptions.h.
1405 (TFILE_PID): Move higher in file.
1406 (tfile_open): Delay pushing the tfile target until we're assured
1407 the tfile header is present in the file. Wrap reading the initial
1408 newline-terminated lines in TRY_CATCH. Pop the target if the
1409 initial setup failed. Add the tfile's thread immediately
1410 aftwards, before any non-essential setup. Don't skip
1411 post_create_inferior if there are no traceframes present in the
1412 file.
1413 (tfile_close): Remove redundant check for null before xfree call.
1414 (tfile_thread_alive): New function.
1415 (init_tfile_ops): Register it as to_thread_alive callback.
1416
1417 2011-05-20 Pedro Alves <pedro@codesourcery.com>
1418
1419 * tracepoint.c (tfile_open): Delete #if 0'd code.
1420
1421 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1422
1423 Fix -readnow for -gdwarf-4 unused type units.
1424 * dwarf2read.c (struct signatured_type): Remove the field offset.
1425 (create_signatured_type_table_from_index): Remove its initialization.
1426 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
1427 instead. Add a complaint call.
1428 (process_psymtab_comp_unit): Change assignment to gdb_assert.
1429 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
1430 (lookup_signatured_type_at_offset, read_signatured_type)
1431 (write_one_signatured_type): Update the field for per_cu.
1432
1433 2011-05-19 Tom Tromey <tromey@redhat.com>
1434
1435 * python/py-inferior.c (python_inferior_exit): Use
1436 target_gdbarch.
1437 (python_on_resume): Likewise.
1438
1439 2011-05-19 Matt Rice <ratmice@gmail.com>
1440
1441 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
1442
1443 2011-05-19 Hui Zhu <teawater@gmail.com>
1444
1445 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
1446
1447 2011-05-19 Hui Zhu <teawater@gmail.com>
1448
1449 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
1450
1451 2011-05-18 Tom Tromey <tromey@redhat.com>
1452
1453 * dwarf2read.c (dwarf2_add_field): Constify.
1454 * value.c (value_static_field): Constify.
1455 * gdbtypes.h (struct main_type) <field.field_location.physname>:
1456 Now const.
1457 * ax-gdb.c (gen_static_field): Constify
1458
1459 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1460
1461 * linux-nat.c (kill_callback): Use SIGKILL first.
1462
1463 2011-05-18 Joel Brobecker <brobecker@adacore.com>
1464
1465 * ada-lang.c (print_it_exception): Avoid use of sprintf.
1466
1467 2011-05-18 Tom Tromey <tromey@redhat.com>
1468
1469 * value.c (value_fn_field): Constify.
1470 * symtab.c (gdb_mangle_name): Constify.
1471 * stabsread.c (update_method_name_from_physname): Make 'physname'
1472 argument const.
1473 * p-typeprint.c (pascal_type_print_method_args): Make arguments
1474 const. Use explicit fputc_filtered loop.
1475 (pascal_type_print_base): Constify.
1476 * p-lang.h (pascal_type_print_method_args): Update.
1477 * linespec.c (add_matching_methods): Constify.
1478 (add_constructors): Likewise.
1479 * jv-typeprint.c (java_type_print_base): Constify.
1480 * gdbtypes.h (struct cplus_struct_type)
1481 <fn_fieldlist.fn_field.physname>: Now const.
1482 * dwarf2read.c (compute_delayed_physnames): Constify.
1483 (dwarf2_add_member_fn): Likewise.
1484 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
1485
1486 2011-05-18 Pedro Alves <pedro@codesourcery.com>
1487
1488 * infrun.c (resume): Mention which is the current thread, and its
1489 current PC in debug output.
1490 (prepare_to_proceed): Mention the thread switching in debug
1491 output.
1492
1493 2011-05-18 Tom Tromey <tromey@redhat.com>
1494
1495 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
1496 path check. Use xmalloc and cleanups.
1497 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
1498
1499 2011-05-17 Tom Tromey <tromey@redhat.com>
1500
1501 * cp-valprint.c (cp_print_value_fields): Catch errors from
1502 value_static_field.
1503
1504 2011-05-17 Tom Tromey <tromey@redhat.com>
1505
1506 * dwarf2read.c (dwarf2_get_die_type): Call
1507 get_die_type_at_offset.
1508 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
1509 get_base_type function.
1510
1511 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
1512
1513 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
1514 trap_expected.
1515
1516 2011-05-16 Doug Evans <dje@google.com>
1517
1518 * python/py-auto-load.c (source_section_scripts): Mention objfile
1519 name in warning.
1520
1521 2011-05-15 Doug Evans <dje@google.com>
1522
1523 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
1524 (try_thread_db_load_from_pdir): Call it. If unable to find
1525 libthread_db in directory of libpthread, see if we're looking at
1526 the separate-debug-info copy.
1527
1528 * python/py-autoload.c (print_script): Print "Missing" instead of
1529 "No" for missing scripts.
1530 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
1531
1532 2011-05-13 Doug Evans <dje@google.com>
1533
1534 * ui-file.c (stdio_file_write_async_safe): Add comment.
1535
1536 2011-05-14 Hui Zhu <teawater@gmail.com>
1537
1538 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
1539
1540 2011-05-13 Doug Evans <dje@google.com>
1541
1542 Support $pdir and $sdir in libthread-db-search-path.
1543 * NEWS: Mention $sdir,$pdir.
1544 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
1545 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
1546 (try_thread_db_load_from_sdir): New function.
1547 (try_thread_db_load_from_dir): New function.
1548 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
1549 system directories if search of libthread-db-search-path fails,
1550 that is now done via $sdir.
1551 (has_libpthread): New function.
1552 (thread_db_load): Remove search for libthread_db in directory of
1553 libpthread, that is now done via $pdir.
1554
1555 * NEWS: Mention "info auto-load-scripts".
1556 * python/py-auto-load.c (struct auto_load_pspace_info): New member
1557 script_not_found_warning_printed.
1558 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
1559 all callers updated. Initialize script_not_found_warning_printed.
1560 (get_auto_load_pspace_data_for_loading): New function.
1561 (maybe_add_script): New function.
1562 (source_section_scripts): Simplify. Only print one warning regardless
1563 of the number of auto-load scripts not found.
1564 (clear_section_scripts): Clear script_not_found_warning_printed.
1565 (auto_load_objfile_script): Record script in hash table.
1566 (count_matching_scripts): New function.
1567 (maybe_print_script): Renamed from maybe_print_section_script, all
1568 callers updated. Rewrite to use ui_out_*.
1569 (info_auto_load_scripts): Renamed from
1570 maintenance_print_section_scripts, all callers updated.
1571 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
1572 renamed as "info auto-load-scripts".
1573
1574 2011-05-13 Tom Tromey <tromey@redhat.com>
1575
1576 * dwarf2expr.c (read_uleb128): Cast intermediate result.
1577 (read_sleb128): Likewise.
1578
1579 2011-05-13 Tom Tromey <tromey@redhat.com>
1580
1581 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
1582 offset display.
1583
1584 2011-05-13 Doug Evans <dje@google.com>
1585
1586 * linux-nat.c (debug_linux_nat_async): Delete.
1587 Replace all references to use debug_linux_nat instead.
1588 (show_debug_linux_nat_async): Delete.
1589 (sigchld_handler): Call ui_file_write_async_safe instead of
1590 fprintf_unfiltered.
1591 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
1592 * ui-file.c (struct ui_file): New member to_write_async_safe.
1593 (null_file_write_async_safe): New function.
1594 (ui_file_write_async_safe): New function.
1595 (set_ui_file_write_async_safe): New function.
1596 (ui_file_new): Initialize to_write_async_safe.
1597 (stdio_file_write_async_safe): New function.
1598 (struct stdio_file): New member fd.
1599 (stdio_file_new): Initialize to_write_async_safe, fd.
1600 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
1601 fileno.
1602 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
1603 (set_ui_file_write_async_safe): Declare.
1604 (ui_file_write_async_safe): Declare.
1605
1606 2011-05-13 Tom Tromey <tromey@redhat.com>
1607
1608 * utils.c (do_value_free): New function.
1609 (make_cleanup_value_free): Likewise.
1610 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
1611 freeing correctly.
1612 (dwarf2_loc_desc_needs_frame): Call
1613 make_cleanup_value_free_to_mark.
1614 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
1615 * dwarf2expr.c (free_dwarf_expr_context): Don't call
1616 value_free_to_mark.
1617 (new_dwarf_expr_context): Don't call value_mark.
1618 * dwarf2-frame.c (execute_stack_op): Call
1619 make_cleanup_value_free_to_mark.
1620 * defs.h (make_cleanup_value_free): Declare.
1621
1622 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1623
1624 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
1625 prepare_execute_command.
1626 * top.c (prepare_execute_command): Return cleanup.
1627 (execute_command): Use cleanup from prepare_execute_command.
1628 * top.h (prepare_execute_command): Change prototype to return
1629 cleanup.
1630 * defs.h (struct value): Add opaque declaration.
1631 (make_cleanup_value_free_to_mark): Add prototype.
1632 * utils.c (do_value_free_to_mark): New function.
1633 (make_cleanup_value_free_to_mark): Likewise.
1634
1635 2011-05-12 Tom Tromey <tromey@redhat.com>
1636
1637 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
1638 cast left-hand-side to unsigned.
1639
1640 2011-05-12 Tom Tromey <tromey@redhat.com>
1641
1642 PR gdb/12617:
1643 * value.h (value_from_contents): Declare.
1644 * value.c (value_from_contents): New function.
1645 * dwarf2read.c (dwarf_stack_op_name): Add new values.
1646 (dwarf2_get_die_type): New function.
1647 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
1648 (allocate_piece_closure): Acquire reference to values.
1649 (read_pieced_value): Update for value-based expressions.
1650 (write_pieced_value): Likewise.
1651 (free_pieced_value_closure): Call value_free as needed.
1652 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
1653 Update for value-based expressions.
1654 * dwarf2loc.h (dwarf2_get_die_type): Declare.
1655 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
1656 <get_base_type>: New field.
1657 (struct dwarf_expr_piece) <v.value>: Change type.
1658 <v.regno>: New field.
1659 (struct dwarf_expr_context) <mark>: New field.
1660 (dwarf_expr_piece, dwarf_expr_fetch): Update.
1661 (dwarf_expr_pop, dwarf_expr_push): Remove.
1662 (dwarf_expr_push_address): Declare.
1663 * dwarf2expr.c (dwarf_arch_cookie): New global.
1664 (struct dwarf_gdbarch_types): New.
1665 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
1666 functions.
1667 (dwarf_expr_push): Change type of 'value' argument. Update. Now
1668 static.
1669 (dwarf_expr_push_address): New function.
1670 (dwarf_expr_pop): Now static.
1671 (dwarf_expr_fetch): Change return type.
1672 (dwarf_require_integral): New function.
1673 (dwarf_expr_fetch): Simplify.
1674 (add_piece): Update.
1675 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
1676 functions.
1677 (execute_stack_op) <sign_ext>: Remove.
1678 Use values for DWARF stack.
1679 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
1680 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1681 New cases.
1682 (_initialize_dwarf2expr): New function.
1683 (add_piece): Update.
1684 (new_dwarf_expr_context): Set new field.
1685 (free_dwarf_expr_context): Call value_free_to_mark.
1686 * dwarf2-frame.c (no_base_type): New function.
1687 (execute_stack_op): Set get_base_type field. Update.
1688
1689 2011-05-12 Tom Tromey <tromey@redhat.com>
1690
1691 * dwarf2read.c (read_common_block): Fix formatting.
1692
1693 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
1694
1695 * breakpoint.c (disable_breakpoint): Disable all locations
1696 associated with a tracepoint on target if a trace experiment is
1697 running.
1698 (disable_command): Disable a specific tracepoint location on target if
1699 a trace experiment is running.
1700 (do_enable_breakpoint): Enable all locations associated with a
1701 tracepoint on target if a trace experiment is running.
1702 (enable_command) Enable a specific tracepoint location on target if a
1703 trace experiment is running.
1704 * target.c (update_current_target): Add INHERIT and de_fault clauses for
1705 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1706 to_disable_tracepoint.
1707 * target.h: Add declaration of struct bp_location.
1708 (struct target_ops): Add new functions
1709 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1710 to_disable_tracepoint to target operations.
1711 (target_supports_enable_disable_tracepoint): New macro.
1712 (target_enable_tracepoint): New macro.
1713 (target_disable_tracepoint): New macro.
1714 * remote.c (struct remote_state): Add new field.
1715 (remote_enable_disable_tracepoint_feature): New.
1716 (remote_protocol_features): Add new entry.
1717 (remote_supports_enable_disable_tracepoint): New.
1718 (remote_enable_tracepoint): New.
1719 (remote_disable_tracepoint): New.
1720 (init_remote_ops): Add remote_enable_tracepoint,
1721 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
1722 to remote operations.
1723 * tracepoint.c (start_tracing): Allow tracing to start without any
1724 tracepoints enabled with just a warning if they can be re-enabled
1725 later.
1726 * NEWS: Add news item for the new behaviour of the enable and disable
1727 GDB commands when applied to tracepoints.
1728 Add news items for the new remote packets QTEnable and QTDisable.
1729
1730 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1731
1732 * config.in: Regenerate.
1733 * configure: Regenerate.
1734 * configure.ac <--with-system-readline> (for readline_echoing_p):
1735 Remove the test.
1736 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
1737 (tui_old_rl_echoing_p): ... here.
1738 (tui_setup_io): Rename extern declaration readline_echoing_p to
1739 _rl_echoing_p. Adjust assignments for the both renames.
1740
1741 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1742
1743 * symtab.c (lookup_symtab): Run cleanup before returning.
1744
1745 2011-05-11 Tom Tromey <tromey@redhat.com>
1746
1747 * dwarf2read.c (handle_data_member_location): New function.
1748 (dwarf2_add_field): Use it.
1749 (read_common_block): Likewise.
1750
1751 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1752
1753 Make addrs->SECTINDEX always defined.
1754 * symfile.c (relative_addr_info_to_section_offsets): Check for
1755 SECTINDEX -1, not for zero ADDR.
1756 (addrs_section_compar): Remove checking for invalid SECTINDEX.
1757 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
1758 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
1759 on its validity.
1760
1761 2011-05-10 Doug Evans <dje@google.com>
1762
1763 * linux-thread-db.c: Whitespace cleanup.
1764 (try_thread_db_load_1): Fix comment.
1765
1766 * linux-thread-db.c (set_libthread_db_search_path): New function.
1767 (_initialize_thread_db): Add setter for libthread-db-search-path.
1768
1769 2011-05-09 Doug Evans <dje@google.com>
1770
1771 * NEWS: Mention --with-iconv-bin.
1772 * configure.ac: New option --with-iconv-bin.
1773 * configure: Regenerate.
1774 * config.in: Regenerate.
1775 * defs.h (relocate_gdb_directory): Declare.
1776 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
1777 removed progname parameter, and exported. All callers updated.
1778 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
1779
1780 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
1781 adding missing call to restore_child_signals_mask.
1782
1783 2011-05-09 Pedro Alves <pedro@codesourcery.com>
1784
1785 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
1786 parameter.
1787 * infrun.c (proceed, start_remote): Adjust.
1788 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
1789 and adjust to not handle it.
1790 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
1791 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1792 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
1793 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
1794 * windows-nat.c (do_initial_windows_stuff): Adjust.
1795 * infcmd.c (attach_command): Adjust.
1796 (notice_new_inferior): Adjust.
1797
1798 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1799
1800 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
1801 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
1802 * spu-tdep.c (op_selb): Use correct value.
1803
1804 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1805
1806 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
1807 "parent" parameter to symbol_file_add_from_bfd call.
1808
1809 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1810 Thiago Jung Bauermann <bauerman@br.ibm.com>
1811
1812 Implement support for PowerPC BookE masked watchpoints.
1813 * NEWS: Mention masked watchpoint support. Create "Changed commands"
1814 section.
1815 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
1816 method. Initialize to NULL in all existing breakpoint_ops instances.
1817 (struct breakpoint) <hw_wp_mask>: New field.
1818 * breakpoint.c (is_masked_watchpoint): Add prototype.
1819 (update_watchpoint): Don't set b->val for masked watchpoints. Call
1820 breakpoint's breakpoint_ops.works_in_software_mode if available.
1821 (watchpoints_triggered): Handle the case of a hardware masked
1822 watchpoint trigger.
1823 (watchpoint_check): Likewise.
1824 (works_in_software_mode_watchpoint): New function.
1825 (insert_masked_watchpoint, remove_masked_watchpoint)
1826 (resources_needed_masked_watchpoint)
1827 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
1828 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
1829 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
1830 functions.
1831 (masked_watchpoint_breakpoint_ops): New structure.
1832 (watch_command_1): Check for the existence of the `mask' parameter.
1833 Set b->ops according to the type of hardware watchpoint being created.
1834 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
1835 (ppc_linux_remove_mask_watchpoint)
1836 (ppc_linux_masked_watch_num_registers): New functions.
1837 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
1838 to_remove_mask_watchpoint and to_masked_watch_num_registers.
1839 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
1840 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
1841 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1842 (target_masked_watch_num_registers): New functions.
1843 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
1844 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
1845 methods.
1846 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1847 (target_masked_watch_num_registers): Add prototypes.
1848
1849 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1850
1851 PR 12573
1852 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
1853 (producer_is_gcc_ge_4_0): New function.
1854 (process_full_comp_unit): Set also symtab->locations_valid. Move the
1855 symtab->language code.
1856 (var_decode_location): Set cu->has_loclist.
1857 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
1858 skip. Intialize force_skip from locations_valid. Move the prologue
1859 skipping code into two passes.
1860 * symtab.h (struct symtab): Make the primary field a bitfield. New
1861 field locations_valid.
1862
1863 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1864
1865 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
1866 (classify_inner_name): Call cp_lookup_nested_type with
1867 yylval.tsym.type.
1868 * cp-namespace.c (cp_lookup_nested_type): New variable
1869 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
1870 type_name_no_tag_or_error with saved_parent_type.
1871 * dwarf2read.c (load_partial_dies): Read in any children of
1872 DW_TAG_typedef with complaint in such case.
1873 * gdbtypes.c (type_name_no_tag_or_error): New function.
1874 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
1875 * valops.c (destructor_name_p): New comment for parameter type. Remove
1876 type const. Make dname and cp const. Call type_name_no_tag_or_error.
1877 * value.h (destructor_name_p): Remove type const.
1878
1879 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1880
1881 * symtab.c (compare_symbol_name): New function.
1882 (completion_list_add_name, expand_partial_symbol_name): Call it,
1883 remove the variable ncmp.
1884 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
1885 gdb_assert it.
1886
1887 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1888
1889 Demote to sw watchpoint only in update_watchpoint.
1890 * breakpoint.c (update_watchpoint): Change between software and
1891 hardware watchpoint for all kinds of watchpoints, not just
1892 read/write ones. Determine b->exact value here instead of
1893 in watch_command_1. Error out if there are not enough resources
1894 for a read or access hardware watchpoint.
1895 (watch_command_1): Remove logic of checking whether there are
1896 enough resources available, since update_watchpoint will do that
1897 work now. Don't set b->exact here. Catch exceptions thrown by
1898 update_watchpoint and delete the watchpoint.
1899 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
1900 Use target_exact_watchpoints instead.
1901 (delete_breakpoint): Notify observers only if deleted watchpoint
1902 has a breakpoint number assigned to it.
1903
1904 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
1905
1906 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1907
1908 2011-05-05 Jerome Guitton <guitton@adacore.com>
1909
1910 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
1911 New functions.
1912 (i386_stack_tramp_frame_unwind): New static global.
1913 (i386_match_pattern): New function, extracted from i386_match_insn.
1914 (i386_match_insn): Use i386_match_pattern.
1915 (i386_match_insn_block): New function.
1916 (i386_tramp_chain_in_reg_insns)
1917 (i386_tramp_chain_on_stack_insns): New static variables.
1918 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
1919 of unwinders.
1920
1921 2011-05-04 Joseph Myers <joseph@codesourcery.com>
1922
1923 * configure.host (xscale*): Don't handle target.
1924 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
1925 handle targets.
1926
1927 2011-05-04 Yao Qi <yao@codesourcery.com>
1928
1929 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
1930
1931 2011-05-03 Joel Brobecker <brobecker@adacore.com>
1932
1933 Revert:
1934 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
1935 | * elfread.c (elf_symtab_read): Stop memory leak.
1936
1937 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
1938
1939 * nto-tdep.c (nto_target): Replace deprecated call to
1940 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
1941
1942 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1943
1944 Fix false GCC warning.
1945 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
1946
1947 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1948
1949 * breakpoint.c (update_watchpoint): Move code to change
1950 the enable state of breakpoint from here ...
1951 (do_enable_breakpoint): ... to here.
1952
1953 2011-04-26 Andrew Gontarek <andrewg@cray.com>
1954
1955 * valprint.c (val_print_array_elements): Fixed poor performance
1956 of printing very large arrays with repeat_count_threshold set
1957 to unlimited. New comment.
1958
1959 2011-04-29 Tom Tromey <tromey@redhat.com>
1960
1961 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
1962 (mi_parse): Likewise.
1963 * breakpoint.c (break_range_command): Use sizeof char*, not
1964 char**.
1965 (create_breakpoint): Likewise.
1966 (parse_breakpoint_sals): Likewise.
1967
1968 2011-04-29 Pedro Alves <pedro@codesourcery.com>
1969
1970 * linux-nat.c (linux_child_remove_fork_catchpoint)
1971 (linux_child_remove_vfork_catchpoint)
1972 (linux_child_remove_exec_catchpoint): New functions.
1973 (linux_target_install_ops): Install them.
1974
1975 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
1976
1977 PR mi/12531
1978
1979 * varobj.c (install_default_visualizer): Do not install a
1980 visualizer if the varobj is CPLUS_FAKE_CHILD.
1981 (construct_visualizer): Likewise.
1982
1983 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1984
1985 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
1986 case insensitive comparison.
1987
1988 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
1989
1990 * infrun.c (proceed): Revert previous change.
1991 (resume): Instead, handle the case of signal delivery while stepping
1992 off a breakpoint location here, and only if software single-stepping
1993 is used. Handle nested signals.
1994
1995 2011-04-28 Yao Qi <yao@codesourcery.com>
1996
1997 * arm-tdep.c (copy_unmodified): Rename to ...
1998 (arm_copy_unmodified): .. this. New.
1999 (copy_preload): Move common part to ...
2000 (install_preload): .. this. New.
2001 (arm_copy_preload): New.
2002 (copy_preload_reg): Move common part to ...
2003 (install_preload_reg): ... this. New.
2004 (arm_copy_preload_reg): New.
2005 (copy_b_bl_blx): Move common part to ...
2006 (install_b_bl_blx): .. this. New.
2007 (arm_copy_b_bl_blx): New.
2008 (copy_bx_blx_reg): Move common part to ...
2009 (install_bx_blx_reg): ... this. New.
2010 (arm_copy_bx_blx_reg): New.
2011 (copy_alu_reg): Move common part to ...
2012 (install_alu_reg): ... this. New.
2013 (arm_copy_alu_reg): New.
2014 (copy_alu_shifted_reg): Move common part to ...
2015 (install_alu_shifted_reg): ... this. New.
2016 (copy_ldr_str_ldrb_strb): Move common part to ...
2017 (install_ldr_str_ldrb_strb): ... this. New.
2018 (arm_copy_ldr_str_ldrb_strb): New.
2019 (copy_copro_load_store): Move some common part to ...
2020 (install_copy_copro_load_store): ... this. New.
2021 (arm_copy_copro_load_store): New.
2022 (copy_svc): Delete.
2023 (arm_copy_svc): Renamed from copy_svc.
2024 (copy_undef): Delete.
2025 (arm_copy_undef): Renamed from copy_undef.
2026 (decode_ext_reg_ld_st): Delete.
2027 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2028 (decode_svc_copro): Delete.
2029 (arm_decode_svc_copro): Renamed from decode_svc_copro.
2030 (copy_copro_load_store, copy_alu_imm): update callers.
2031 (copy_extra_ld_st, copy_block_xfer): Likewise.
2032 (decode_misc_memhint_neon, decode_unconditional): Likewise.
2033 (decode_miscellaneous, decode_dp_misc): Likewise.
2034 (decode_ld_st_word_ubyte, decode_media): Likewise.
2035 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
2036 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
2037 (decode_unconditional, decode_miscellaneous): Likewise.
2038 (decode_media, decode_b_bl_ldmstm): Likewise.
2039 (arm_process_displaced_insn): Likewise..
2040 (decode_misc_memhint_neon): Delete.
2041 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
2042 (decode_miscellaneous): Delete.
2043 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
2044 (decode_dp_misc): Delete.
2045 (arm_decode_dp_misc): Renamed from decode_dp_misc.
2046 (decode_ld_st_word_ubyte): Delete.
2047 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
2048 (decode_media): Delete.
2049 (arm_decode_media): Renamed from decode_media.
2050 (decode_b_bl_ldmstm): Delete.
2051 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
2052 (decode_ext_reg_ld_st): Delete.
2053 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2054 (decode_unconditional): Delete.
2055 (arm_decode_unconditional): Renamed from decode_unconditional.
2056
2057 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2058
2059 Case insensitive lookups implementation.
2060 * dwarf2read.c: Include ctype.h.
2061 (struct mapped_index): New field version.
2062 (mapped_index_string_hash): New parameter index_version. New comment
2063 for it. Call tolower appropriately.
2064 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
2065 Choose the right index version for mapped_index_string_hash.
2066 (dwarf2_read_index): Support also the index version 5. Initialize the
2067 new struct mapped_index field version.
2068 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
2069 (find_slot): Explain the version needs. Pass INT_MAX for the new
2070 parameter.
2071 (write_psymtabs_to_index): Produce version 5.
2072 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
2073 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
2074 * psymtab.c (lookup_partial_symbol): Find the
2075 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
2076 entries.
2077 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
2078 NAME lowercasing.
2079 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
2080 (completion_list_add_name): New variable ncmp, initialize it, use it.
2081 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
2082 * utils.c (strcmp_iw): Support case_sensitive_off.
2083 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
2084 New function comment part. New variables saved_string1,
2085 saved_string2 and case_pass. Add a proper second pass.
2086
2087 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2088
2089 Replace re_comp/re_exec by regcomp/regexec.
2090 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
2091 (search_symbols_name_matches): Use them, use regexec.
2092 (search_symbols): New variable retval_chain, adjust the use of
2093 old_chain against it. Replace re_comp by regcomp. Use the new struct
2094 search_symbols_data fields, use regexec instead of re_exec.
2095
2096 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2097
2098 Format the code for the next patch.
2099 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
2100 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
2101 New variables c1 and c2.
2102
2103 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2104
2105 * infrun.c (proceed): Do not single-step into signal delivery
2106 when stepping off a breakpoint location.
2107 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
2108 (insert_step_resume_breakpoint_at_caller): Likewise.
2109 (insert_step_resume_breakpoint_at_sal): Likewise.
2110 (insert_longjmp_resume_breakpoint): Likewise.
2111
2112 2011-04-27 Yao Qi <yao@codesourcery.com>
2113
2114 * common/linux-ptrace.h: Remove include <sys/wait.h>.
2115
2116 2011-04-27 Joel Brobecker <brobecker@adacore.com>
2117
2118 * procfs.c (procfs_pass_signals): Fix advance declaration.
2119
2120 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2121
2122 * target.h (struct target_ops): Remove to_notice_signals;
2123 add to_pass_signals.
2124 (target_notice_signals): Remove.
2125 (target_pass_signals): Add prototype.
2126 * target.c (update_current_target): Remove to_notice_signals;
2127 mention to_pass_signals.
2128 (target_pass_signals): New function.
2129 (debug_to_notice_signals): Remove.
2130 (setup_target_debug): Do not install debug_to_notice_signals.
2131
2132 * infrun.c (signal_pass): New global.
2133 (resume): Call target_pass_signals.
2134 (handle_inferior_event): Report all signals while stepping over
2135 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
2136 are re-inserted when stepping over a signal handler.
2137 (signal_cache_update): New function.
2138 (signal_stop_update): Call it.
2139 (signal_print_update): Likewise.
2140 (signal_pass_update): Likewise.
2141 (handle_command): Call signal_cache_update and target_pass_signals
2142 instead of target_notice_signals.
2143 (_initialize_infrun): Initialize signal_pass.
2144
2145 * linux-nat.c (pass_mask): New global.
2146 (linux_nat_pass_signals): New function.
2147 (linux_nat_create_inferior): Report all signals initially.
2148 (linux_nat_attach): Likewise.
2149 (linux_nat_resume): Use pass_mask to decide whether to directly
2150 handle an inferior signal.
2151 (linux_nat_wait_1): Likewise.
2152 (linux_nat_add_target): Install to_pass_signals callback.
2153
2154 * nto-procfs.c (notice_signals): Remove.
2155 (procfs_resume): Do not call notice_signals.
2156 (procfs_notice_signals): Remove.
2157 (procfs_pass_signals): New function.
2158 (init_procfs_ops): Install to_pass_signals callback instead of
2159 to_notice_signals callback.
2160 (_initialize_procfs): Report all signals initially.
2161
2162 * procfs.c (procfs_notice_signals): Remove.
2163 (procfs_pass_signals): New function.
2164 (procfs_target): Install to_pass_signals callback instead of
2165 to_notice_signals callback.
2166 (register_gdb_signals): Remove.
2167 (procfs_debug_inferior): Report all signals initially.
2168 (procfs_init_inferior): Remove redundant register_gdb_signals call.
2169
2170 * remote.c (remote_pass_signals): Add numsigs and pass_signals
2171 parameters; use them instead of calling signal_..._state routines.
2172 (remote_notice_signals): Remove.
2173 (remote_start_remote): Report all signals initially.
2174 (remote_resume): Do not call remote_pass_signals.
2175 (_initialize_remote): Install to_pass_signals callback instead of
2176 to_notice_signals callback.
2177
2178 2011-04-27 Pedro Alves <pedro@codesourcery.com>
2179
2180 * breakpoint.c (user_settable_breakpoint): Delete.
2181 (user_breakpoint_p): Remove check on user_settable_breakpoint.
2182 (delete_command): Check user_breakpoint_p instead of looking at
2183 the breakpoint's type.
2184 (disable_command): Ditto.
2185 (enable_command): Ditto.
2186 (delete_trace_command): Use user_breakpoint_p instead of looking
2187 at the breakpoint number directly. When checking if there are
2188 user visible tracepoints, in order to know whether to ask the user
2189 for confirmation, check whether the breakpoint is actually a
2190 tracepoint.
2191
2192 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
2193
2194 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
2195 compilation.
2196
2197 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
2198
2199 MI breakpoint notifications.
2200
2201 * annotate.c (breakpoint_changed): Adjust parameter type.
2202 * breakpoint.c (set_breakpoint_condition): Adjust to change
2203 in breakpoint_modified type.
2204 (breakpoint_set_commands): Likewise.
2205 (do_map_commands_command): Likewise.
2206 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
2207 changed after bumping hit count.
2208 (bpstat_stop_status): Likewise.
2209 (print_one_breakpoint_location): Don't wrap in tuple here.
2210 (print_one_breakpoint): Always print individual locations.
2211 For locations, use unnamed tuple.
2212 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
2213 has changed.
2214 (create_catchpoint, create_syscall_event_catchpoint): Call
2215 breakpoint_created obsever.
2216 (mention): Don't call breakpoint_created observer.
2217 (create_breakpoint_sal): Call breakpoint_created observer.
2218 (create_breakpoint, watch_command_1): Likewise.
2219 (create_ada_exception_breakpoint): Likewise.
2220 (delete_breakpoint): Call breakpoint_deleted breakpoint.
2221 (locations_are_equal): New.
2222 (update_breakpoint_locations): If locations were changed, notify.
2223 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
2224 Call breakpoint_modified observer.
2225
2226 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2227 (mi_cmd_break_insert): Don't set observers for modify and delete.
2228 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
2229 (mi_breakpoint_created, mi_breakpoint_deleted)
2230 (mi_breakpoint_modified): New.
2231 (mi_interpreter_init): Hook the above.
2232 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
2233 while -break-* commands are executing.
2234 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
2235 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
2236 (mi_redirect): New.
2237 (mi_ui_out_impl): Hook in mi_redirect.
2238 (mi_field_skip): True to the name, skip the field, don't output
2239 a field with an empty value.
2240
2241 * python/py-breakpoint.c (gdbpy_breakpoint_created)
2242 (gdbpy_breakpoint_deleted): Adjust.
2243 * tui/tui-hooks.c (tui_event_create_breakpoint)
2244 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
2245
2246 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
2247
2248 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
2249 (procfs_remove_hw_watchpoint): Likewise.
2250
2251 2011-04-26 Michael Walle <michael@walle.cc>
2252
2253 * remote.c (remote_start_remote): Ack packet after sending the
2254 interrupt sequence.
2255
2256 2011-04-26 Yao Qi <yao@codesourcery.com>
2257
2258 * linux-nat.c: Move common macros to ...
2259 Include linux-ptrace.h.
2260 * common/linux-ptrace.h: ... here. New.
2261
2262 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2263
2264 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
2265 !objfile_has_partial_symbols. New comment.
2266 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
2267 SYM_READ_PSYMBOLS is not present. Extend the comment.
2268 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
2269
2270 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2271
2272 * defs.h (ENUM_BITFIELD): Remove.
2273
2274 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2275 Eli Zaretskii <eliz@gnu.org>
2276
2277 * NEWS: Document the new gdbserver --once option.
2278
2279 2011-04-21 Jie Zhang <jzhang918@gmail.com>
2280
2281 * MAINTAINERS: Update my email address.
2282
2283 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2284
2285 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
2286 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
2287 function call if __STDC_ISO_10646__ macro is defined.
2288 (intermediate_encoding): New prototype.
2289 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
2290 to generate compile time error for unsupported gdb_wchar_t size.
2291 (ENDIAN_SUFFIX): New macro.
2292 (intermediate_encoding): New function.
2293
2294 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2295
2296 * ada-lang.c (struct add_partial_datum): Update the comment for
2297 expand_partial_symbol_name.
2298 (ada_add_partial_symbol_completions): Rename to ...
2299 (ada_expand_partial_symbol_name): ... here, change return type, update
2300 function comment, call symbol_completion_match instead of
2301 symbol_completion_add.
2302 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
2303 and ada_expand_partial_symbol_name.
2304 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
2305 FILE_MATCHER.
2306 (dw2_map_symbol_names): Remove.
2307 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
2308 * psymtab.c (map_symbol_names_psymtab): Remove.
2309 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
2310 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
2311 order.
2312 (psym_functions): Unlist map_symbol_names_psymtab.
2313 (map_partial_symbol_names): Rename to ...
2314 (expand_partial_symbol_names): ... here, change the FUN type, call
2315 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
2316 * psymtab.h (map_partial_symbol_names): Rename to ...
2317 (expand_partial_symbol_names): ... here, change the FUN type.
2318 * symfile.h (struct quick_symbol_functions): Update the description of
2319 expand_symtabs_matching. Remove map_symbol_names.
2320 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
2321 (struct add_name_data): Update the comment for
2322 expand_partial_symbol_name.
2323 (add_partial_symbol_name): Rename to ...
2324 (expand_partial_symbol_name): ... here. Replace
2325 completion_list_add_name call by strncmp.
2326 (default_make_symbol_completion_list_break_on): Use now
2327 expand_partial_symbol_names and expand_partial_symbol_name.
2328 * symtab.h (enum search_domain): New element ALL_DOMAIN.
2329
2330 2011-04-20 Tom Tromey <tromey@redhat.com>
2331
2332 * dwarf2read.c (save_gdb_index_command): Replace format
2333 documentation with a pointer to the manual.
2334
2335 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2336
2337 * regcache.c: Include remote.h.
2338 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
2339 (regcache_dump): Handle regcache_dump_remote.
2340 (maintenance_print_remote_registers): New function.
2341 (_initialize_regcache): Install "maint print remote-registers"
2342 command.
2343 * remote.c (map_regcache_remote_table): New function, factored out
2344 from ...
2345 (init_remote_state): ... here.
2346 (remote_register_number_and_offset): New.
2347 * remote.h (remote_register_number_and_offset): Declare.
2348
2349 2011-04-20 Pedro Alves <pedro@codesourcery.com>
2350
2351 * regcache.c (get_thread_arch_regcache): If creating a regcache for
2352 null_ptid, assume and allow a NULL address space, instead of
2353 asking the target for the ptid's address space.
2354 * infrun.c (ptid_is_pid): Remove assertion.
2355
2356 2011-04-19 Tom Tromey <tromey@redhat.com>
2357
2358 * windows-tdep.c (windows_xfer_shared_library):
2359 * windows-nat.c (get_module_name, windows_make_so):
2360 * v850-tdep.c (v850_handle_pushm):
2361 * utils.c (null_cleanup, gdb_realpath):
2362 * ui-out.c (get_next_header):
2363 * tracepoint.c (clear_traceframe_info):
2364 * symtab.c (lookup_symtab):
2365 * serial.h (struct serial_ops):
2366 * mipsread.c (read_alphacoff_dynamic_symtab):
2367 * infcmd.c (print_return_value):
2368 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
2369 * f-exp.y (parse_number):
2370 * exceptions.c (catch_exceptions):
2371 * dummy-frame.c (dummy_frame_this_id):
2372 * defs.h (struct cleanup):
2373 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
2374 * arm-tdep.c (arm_push_dummy_call):
2375 * amd64-tdep.h (amd64_collect_xsave):
2376 * amd64-tdep.c (amd64_collect_xsave):
2377 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
2378 * README (typing): Remove duplicate words.
2379 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
2380 * infrun.c (siginfo_value_read): Fix typo.
2381 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
2382 * top.c (source_line_number): Add comma.
2383
2384 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
2385
2386 * thread.c (any_live_thread_of_process): Prioritize threads
2387 that are not executing.
2388 * gdbthread.h (any_live_thread_of_process): Update comment
2389 as per above change.
2390
2391 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
2392
2393 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
2394 (scan_xcoff_symtab): Likewise.
2395
2396 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2397
2398 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
2399 inside if clause.
2400
2401 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2402 Pedro Alves <pedro@codesourcery.com>
2403
2404 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
2405 variables to simplify code and avoid == operator at end of
2406 line as this is against GNU coding standards.
2407
2408 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2409
2410 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
2411 lm_name to name_lm to avoid conflict with lm_name function.
2412
2413 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2414
2415 ARI fixes: Use only lowercase function name for static functions.
2416 * nto-tdep.c (LM_ADDR): Rename to...
2417 (lm_addr): New function name.
2418 (nto_relocate_section_addresses): Adapt to change above.
2419 * solib-sunos.c (LM_ADDR): Rename to...
2420 (lm_addr): New function name.
2421 (LM_NEXT): Rename to...
2422 (lm_next): New function name.
2423 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
2424 function name changes above.
2425 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
2426 (lm_addr_from_link_map): New function name.
2427 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2428 (has_lm_dynamic_from_link_map): New function name.
2429 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2430 (lm_dynamic_from_link_map): New function name.
2431 (LM_ADDR_CHECK): Rename to...
2432 (lm_addr_check): New function name.
2433 (LM_NEXT): Rename to...
2434 (lm_next): New function name.
2435 (LM_PREV): Rename to...
2436 (lm_prev): New function name.
2437 (LM_NAME): Rename to...
2438 (lm_name): New function name.
2439 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
2440 (ignore_first_link_map_entry): New function name.
2441 (svr4_keep_data_in_core): Adapt to function name changes above.
2442 (svr4_current_sos): Likewise.
2443 (enable_break): Likewise.
2444 (svr4_relocate_section_addresses): Likewise.
2445
2446 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2447
2448 ARI cleanup.
2449 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
2450 sprintf. Simplify code and avoid loosing memory.
2451 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
2452 (call0_frame_cache): Remove && operator from end of line.
2453
2454 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2455
2456 Fix libraries displacement if they change whether they were prelinked.
2457 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
2458 does not match. Comment why.
2459
2460 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2461
2462 * corelow.c: Include wrapper.h.
2463 (core_open): Call now gdb_target_find_new_threads.
2464 * wrapper.c: Include target.h.
2465 (gdb_target_find_new_threads): New.
2466 * wrapper.h (gdb_target_find_new_threads): New declaration.
2467
2468 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2469
2470 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
2471 even if !TARGET_HAS_EXECUTION.
2472
2473 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2474
2475 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
2476 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
2477 bfd_get_synthetic_symtab.
2478 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
2479 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
2480 parameter parent, remove the call to add_separate_debug_objfile.
2481 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
2482 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2483 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
2484 parent, new comment for it, call add_separate_debug_objfile for it.
2485 (symbol_file_add_separate): Pass objfile as the parameter parent,
2486 remove the call to add_separate_debug_objfile.
2487 (symbol_file_add_from_bfd): New parameter parent, pass it.
2488 (symbol_file_add): Pass NULL to the new parameter parent.
2489 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
2490
2491 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2492
2493 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
2494 BSF_SYNTHETIC.
2495
2496 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2497
2498 Fix Python access to inlined frames.
2499 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
2500 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2501
2502 2011-04-15 Tom Tromey <tromey@redhat.com>
2503
2504 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
2505
2506 2011-04-15 Gary Benson <gbenson@redhat.com>
2507
2508 * MAINTAINERS: Add myself to write-after-approval section.
2509
2510 2011-04-14 Mike Frysinger <vapier@gentoo.org>
2511
2512 * remote-sim.c (sim_command_completer): New function.
2513 (_initialize_remote_sim): Set completer to sim_command_completer.
2514
2515 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2516
2517 * breakpoint.c (print_exception_catchpoint): Rename to ...
2518 (print_it_exception_catchpoint): ... this.
2519 (gnu_v3_exception_catchpoint_ops): Update with new name
2520 for print_it_exception_catchpoint.
2521
2522 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
2523
2524 * MAINTAINERS: Add myself for write after approval privileges.
2525
2526 2011-04-13 Marek Polacek <mpolacek@redhat.com>
2527
2528 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2529
2530 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2531
2532 * breakpoint.c (watch_command_1): Remove colon from exp_string.
2533
2534 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2535
2536 * breakpoint.c (save_breakpoints): Verify whether
2537 breakpoint_ops.print_recreate is defined before calling it.
2538
2539 2011-04-11 Gary Benson <gbenson@redhat.com>
2540
2541 Fix failure with --enable-maintainer-mode.
2542 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
2543
2544 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2545
2546 Code cleanup.
2547 * symtab.c (search_symbols): Reorder the KIND description in the
2548 function comment. Remove the unused 4th element of types, types2,
2549 types3 and types4. New gdb_assert on KIND.
2550 (symtab_symbol_info): Remove the unused 4th element of classnames.
2551 New gdb_assert on KIND.
2552 * symtab.h (enum search_domain): New warning in the enum comment.
2553 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
2554 TYPES_DOMAIN.
2555
2556 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2557
2558 Fix crash of gdb save-index on a STABS file.
2559 * dwarf2read.c (write_psymtabs_to_index): Return also on no
2560 PSYMTABS_ADDRMAP.
2561
2562 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2563
2564 Fix DW_AT_accessibility compatibility with gcc-4.6+.
2565 * dwarf2read.c: Include ctype.h.
2566 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
2567 functions.
2568 (dwarf2_add_field): Fix new_field->accessibility by calling
2569 dwarf2_default_access_attribute. Restructure setting accessibility
2570 vs. virtuality.
2571 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
2572 is_private and is_protected by calling
2573 dwarf2_default_access_attribute.
2574
2575 2011-04-08 Kevin Buettner <kevinb@redhat.com>
2576
2577 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
2578 to the initialization.
2579
2580 2011-04-08 Steve Ellcey <sje@cup.hp.com>
2581
2582 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
2583 initalization.
2584
2585 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
2586
2587 Remove support for old Cygwin 1.5 versions.
2588 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
2589 function on old Cygwin version.
2590 * windows-nat.c: Remove cygwin version check and always define
2591 __USEWIDE for Cygwin compilation.
2592
2593 2011-04-07 Yao Qi <yao@codesourcery.com>
2594
2595 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
2596 and TO.
2597 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
2598 (arm_copy_svc): Remove parameters INSN and TO.
2599 (decode_svc_copro): Update caller.
2600 * arm-tdep.h (struct displaced_step_closure): Remove parameters
2601 from function pointer `copy_svc_os'.
2602
2603 2011-04-07 Yao Qi <yao@codesourcery.com>
2604
2605 * arm-tdep.c (cleanup_branch): Set a correct return address in
2606 LR for ARM and Thumb.
2607
2608 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2609
2610 Code cleanup.
2611 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
2612 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
2613 in the function comment, a new note on values compatibility.
2614 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
2615 * symtab.h (SYMBOL_HASH_NEXT): New.
2616
2617 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
2618
2619 * ppc-linux-nat.c (check_condition): Add len output parameter.
2620 Set it based on the memory region referenced in the condition
2621 expression. Update all callers.
2622
2623 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2624
2625 Fix crash regression on systems featuring .gdb_index.
2626 * objfiles.c (free_objfile): Move the
2627 forget_cached_source_info_for_objfile call earlier. Comment it.
2628 Extend the comment for objfile_free_data.
2629
2630 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2631
2632 Fix regression of displaying the debug format.
2633 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
2634 subfile.
2635
2636 2011-04-04 Tom Tromey <tromey@redhat.com>
2637
2638 * cli/cli-interp.c (struct captured_execute_command_args):
2639 Remove.
2640 (do_captured_execute_command): Remove.
2641 (safe_execute_command): Use TRY_CATCH.
2642 * cli/cli-script.c (struct wrapped_read_command_file_args):
2643 Remove.
2644 (wrapped_read_command_file): Remove.
2645 (script_from_file): Use TRY_CATCH.
2646 * exceptions.c (catch_exception): Remove.
2647 * exceptions.h (catch_exception): Remove.
2648 (deprecated_throw_reason): Update comment.
2649 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
2650 argument to 'context'.
2651 (mi_execute_command): Use TRY_CATCH.
2652 * remote.c (struct start_remote_args): Remove.
2653 (remote_start_remote): Update; change arguments.
2654 (remote_open_1): Use TRY_CATCH.
2655
2656 2011-04-04 Tom Tromey <tromey@redhat.com>
2657
2658 * tracepoint.c (scope_info): Update.
2659 * symtab.c (decode_line_spec): Update.
2660 * python/python.c (gdbpy_decode_line): Update.
2661 * linespec.h (decode_line_1): Update.
2662 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
2663 (decode_compound, find_method, symtab_from_filename)
2664 (decode_variable): Likewise.
2665 * cli/cli-cmds.c (edit_command): Update.
2666 (list_command): Update.
2667 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
2668 argument.
2669 (create_breakpoint): Update.
2670 (until_break_command): Update.
2671 (addr_string_to_sals): Update.
2672 (decode_line_spec_1): Update.
2673
2674 2011-04-04 Tom Tromey <tromey@redhat.com>
2675
2676 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
2677 (do_captured_parse_breakpoint): Remove.
2678 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
2679 Use TRY_CATCH directly.
2680
2681 2011-04-04 Tom Tromey <tromey@redhat.com>
2682
2683 * symtab.h (free_symtab): Remove.
2684 (forget_cached_source_info_for_objfile): Declare.
2685 * symmisc.c (free_symtab): Remove.
2686 * source.c (forget_cached_source_info_for_objfile): New function.
2687 (forget_cached_source_info): Use it.
2688 * objfiles.c (free_objfile): Simplify check before calling
2689 clear_current_source_symtab_and_line. Call
2690 forget_cached_source_info_for_objfile.
2691
2692 2011-04-04 Tom Tromey <tromey@redhat.com>
2693
2694 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
2695 (new_symtab): Don't set `free_code' on symtab.
2696 (new_linetable): Properly handle size==0.
2697 * symtab.h (struct symtab) <free_code, free_func>: Remove.
2698 * symmisc.c (free_symtab): Don't free the linetable. Don't call
2699 free_func.
2700 * jv-lang.c (struct jv_per_objfile_data): New.
2701 (jv_per_objfile_free): Free the data.
2702 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
2703 (get_java_class_symtab): Set the `dict' field on the
2704 jv_per_objfile_data.
2705 (free_class_block): Remove.
2706 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
2707 the symtab.
2708
2709 2011-04-04 Tom Tromey <tromey@redhat.com>
2710
2711 * symfile.c (reread_symbols): Update.
2712 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
2713 field.
2714 * objfiles.c (allocate_objfile): Update.
2715 * cp-support.h (cp_check_possible_namespace_symbols): Don't
2716 declare.
2717 * cp-namespace.c (lookup_symbol_file): Don't call
2718 lookup_possible_namespace_symbol.
2719 (initialize_namespace_symtab, get_possible_namespace_block)
2720 (free_namespace_block, cp_check_possible_namespace_symbols)
2721 (check_possible_namespace_symbols_loop)
2722 (check_one_possible_namespace_symbol)
2723 (lookup_possible_namespace_symbol): Remove.
2724 (maintenance_cplus_namespace): Replace with notice.
2725 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
2726
2727 2011-04-04 Tom Tromey <tromey@redhat.com>
2728
2729 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
2730 * symtab.h (struct symtab) <producer, debugformat>: Now const.
2731 * symmisc.c (free_symtab): Don't free debugformat.
2732 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
2733 (record_debugformat, record_producer): Document.
2734 * buildsym.c (end_symtab): Don't save debugformat and producer
2735 names on obstack.
2736 (end_symtab): Don't free debugformat and producer fields.
2737 (record_debugformat): Don't call xstrdup.
2738 (record_producer): Likewise.
2739
2740 2011-04-04 Tom Tromey <tromey@redhat.com>
2741
2742 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
2743 (source_line_charpos, source_charpos_line): Remove.
2744
2745 2011-04-04 Tom Tromey <tromey@redhat.com>
2746
2747 * symtab.h (domain_enum): Split in two...
2748 (enum search_domain): New.
2749 (search_symbols): Update.
2750 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
2751 redundant declarations.
2752 (search_symbols): Change 'kind' argument to search_domain.
2753 Update.
2754 (print_symbol_info): Likewise.
2755 (symtab_symbol_info): Likewise.
2756 * symfile.h (struct quick_symbol_functions)
2757 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
2758 <expand_symtabs_matching>: Likewise.
2759 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
2760 (expand_symtabs_matching_via_partial): Update.
2761 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
2762 (dw2_expand_symtabs_for_function): Update.
2763 * block.h: Moved anonymous enum...
2764 * defs.h (enum block_enum): ... here. Now named.
2765
2766 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2767
2768 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
2769 * version.in: Bump version to 7.3.50.20110403-cvs.
2770
2771 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2772
2773 * NEWS: Create a new section for the next release branch.
2774 Rename the section of the current branch, now that it has
2775 been cut.
2776
2777 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2778
2779 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
2780 for "fpscr" in target description.
2781
2782 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2783
2784 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
2785 initialize it. Delay HASH initialization. Strip the part after open
2786 parenthesis for languages with qualifiers. Call do_cleanups.
2787
2788 2011-04-01 Tom Tromey <tromey@redhat.com>
2789
2790 * utils.c (report_command_stats): Don't print `-' for negative
2791 number.
2792
2793 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
2794
2795 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
2796 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
2797 typedefs.
2798
2799 2011-04-01 Joel Brobecker <brobecker@adacore.com>
2800
2801 * breakpoint.h (bpdisp_text): Add declaration.
2802 * breakpoint.c (bpdisp_text): Make non-static.
2803 * ada-lang.c: #include "mi/mi-common.h".
2804 (print_it_exception): Rewrite to improve GDB/MI output.
2805
2806 2011-04-01 Pedro Alves <pedro@codesourcery.com>
2807
2808 * arm-tdep.h (struct address_space): Add forward declaration.
2809
2810 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2811
2812 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
2813 * arm-tdep.c (arm_override_mode): New global.
2814 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
2815 execution mode heuristics.
2816 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
2817 second single-step breakpoint if needed, using
2818 arm_insert_single_step_breakpoint.
2819 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
2820 ARM execution mode, do not call thumb_get_next_pc_raw.
2821 (arm_get_next_pc): Encode execution mode in return value. Call
2822 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
2823 (arm_insert_single_step_breakpoint): New function.
2824 (arm_software_single_step): Call it.
2825 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
2826 argument to return execution mode of sigreturn target.
2827 (arm_linux_syscall_next_pc): Use it.
2828 (arm_linux_copy_svc): Update call.
2829 (arm_linux_software_single_step): Call
2830 arm_insert_single_step_breakpoint.
2831
2832 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2833
2834 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
2835 the comment.
2836
2837 2011-03-31 Tom Tromey <tromey@redhat.com>
2838
2839 * varobj.c (update_dynamic_varobj_children): Properly handle
2840 errors from iterator.
2841
2842 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2843
2844 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
2845 struct linkage name twice.
2846
2847 2011-03-31 Tom Tromey <tromey@redhat.com>
2848
2849 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
2850 missing ">" to message.
2851
2852 2011-03-31 Tom Tromey <tromey@redhat.com>
2853
2854 * varobj.c (instantiate_pretty_printer): Remove duplicate
2855 'return'.
2856
2857 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
2858
2859 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
2860 if neither saved value nor register available (e.g. signal frame).
2861
2862 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2863
2864 * macroexp.c (expand): Avoid uninitialized variable
2865 compiler warning.
2866
2867 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2868
2869 * breakpoint.c (break_range_command): Fix typo in comment.
2870
2871 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2872 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2873
2874 Implement support for PowerPC BookE ranged breakpoints.
2875 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
2876 * breakpoint.h (struct bp_target_info) <length>: New member
2877 variable.
2878 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
2879 instead of struct breakpoint as argument, and also add ASPACE
2880 and BP_ADDR arguments. Update all callers.
2881 (struct breakpoint_ops) <print_one_detail>: New method.
2882 (struct breakpoint) <addr_string_range_end>: New member variable.
2883 * breakpoint.c (breakpoint_location_address_match): Add function
2884 prototype.
2885 (insert_bp_location): Set bl->target_info.length.
2886 (breakpoint_here_p): Call breakpoint_location_address_match.
2887 (moribund_breakpoint_here_p): Likewise.
2888 (regular_breakpoint_inserted_here_p): Likewise.
2889 (breakpoint_thread_match): Likewise.
2890 (bpstat_stop_status): Likewise.
2891 (bpstat_check_location): Move call to
2892 breakpoint_ops.breakpoint_hit to the top.
2893 (print_one_breakpoint_location): Call
2894 breakpoint_ops.print_one_detail if available.
2895 (breakpoint_address_match_range): New function.
2896 (breakpoint_location_address_match): Likewise.
2897 (breakpoint_locations_match): Compare the length field of the
2898 locations too.
2899 (hw_breakpoint_used_count): Count resources used by all locations
2900 in a breakpoint, and use breakpoint_ops.resources_needed if
2901 available.
2902 (breakpoint_hit_ranged_breakpoint): New function.
2903 (resources_needed_ranged_breakpoint): Likewise.
2904 (print_it_ranged_breakpoint): Likewise.
2905 (print_one_ranged_breakpoint): Likewise.
2906 (print_one_detail_ranged_breakpoint): Likewise.
2907 (print_mention_ranged_breakpoint): Likewise.
2908 (print_recreate_ranged_breakpoint): Likewise.
2909 (ranged_breakpoint_ops): New structure.
2910 (find_breakpoint_range_end): New function.
2911 (break_range_command): Likewise.
2912 (delete_breakpoint): Free addr_string_range_end.
2913 (update_breakpoint_locations): Add SALS_END argument. Update
2914 all callers. Calculate breakpoint length if a non-zero SALS_END
2915 is given. Call breakpoint_locations_match instead of
2916 breakpoint_address_match.
2917 (reset_breakpoint): Find SaL of the end of the range if B is a
2918 ranged breakpoint.
2919 (_initialize_breakpoint): Register break-range command.
2920 * defs.h (print_core_address): Add function prototype.
2921 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
2922 function.
2923 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
2924 (ppc_linux_remove_hw_breakpoint): Likewise.
2925 (_initialize_ppc_linux_nat): Initialize
2926 to_ranged_break_num_registers.
2927 * target.c (update_current_target): Add comment about
2928 to_ranged_break_num_registers.
2929 (target_ranged_break_num_registers): New function.
2930 * target.h (struct target_ops) <to_ranged_break_num_registers>:
2931 New method.
2932 (target_ranged_break_num_registers): Add function prototype.
2933 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
2934 * utils.c (print_core_address): ... here.
2935
2936 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
2937
2938 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
2939 variable compiler warning.
2940
2941 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
2942
2943 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
2944 code from here ...
2945 (re_set_breakpoint): ... to here ...
2946 (addr_string_to_sals): ... and here.
2947
2948 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
2949
2950 * Makefile.in (SFILES): Add missing C sources.
2951 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
2952 Add missing headers.
2953
2954 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2955
2956 * .gitignore: New file.
2957
2958 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2959
2960 * NEWS: Mention new cfi device simulation.
2961
2962 2011-03-29 Tom Tromey <tromey@redhat.com>
2963
2964 * dwarf2read.c (fixup_partial_die): Handle linkage name on
2965 otherwise anonymous types.
2966 (dwarf2_name): Likewise.
2967 * valops.c (value_struct_elt_for_reference): Refine artificial
2968 type logic. Call error if j==-1.
2969
2970 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
2971
2972 Fix false GCC warning.
2973 * infcall.c (find_function_addr): Initialize funaddr.
2974
2975 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
2976
2977 Fix mingw compilation with --enable-targets=all.
2978 * remote-mips.c (gdb_usleep.h): Include header.
2979 (mips_enter_debug): Use gdb_usleep instead of sleep.
2980
2981 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2982
2983 Support resolution of STT_GNU_IFUNC via breakpoints.
2984 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
2985 bp_gnu_ifunc_resolver_return.
2986 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
2987 the loop. Support bp_gnu_ifunc_resolver and
2988 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
2989 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
2990 breakpoints.
2991 (bptype_string, print_one_breakpoint_location): Support
2992 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
2993 (user_settable_breakpoint): Return true also for
2994 bp_gnu_ifunc_resolver.
2995 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
2996 bp_gnu_ifunc_resolver_return.
2997 (set_breakpoint_location_function): New parameter explicit_loc,
2998 describe it. Call find_pc_partial_function_gnu_ifunc with new
2999 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
3000 EXPLICIT_LOC is not set.
3001 (set_raw_breakpoint): Set EXPLICIT_LOC for
3002 set_breakpoint_location_function.
3003 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
3004 set_breakpoint_location_function.
3005 (mention): Support bp_gnu_ifunc_resolver and
3006 bp_gnu_ifunc_resolver_return.
3007 (add_location_to_breakpoint): Set EXPLICIT_LOC for
3008 set_breakpoint_location_function.
3009 (update_breakpoint_locations): Remove static.
3010 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
3011 bp_gnu_ifunc_resolver_return.
3012 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
3013 bp_gnu_ifunc_resolver_return.
3014 (update_breakpoint_locations): New declaration.
3015 * elfread.c: Include gdbthread.h and regcache.h.
3016 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
3017 functions.
3018 (elf_gnu_ifunc_fns): Install them.
3019 * minsyms.c (stub_gnu_ifunc_resolver_stop)
3020 (stub_gnu_ifunc_resolver_return_stop): New functions.
3021 (stub_gnu_ifunc_fns): Install them.
3022 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
3023 and gnu_ifunc_resolver_return_stop.
3024 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
3025
3026 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3027
3028 STT_GNU_IFUNC reader implementation.
3029 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
3030 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
3031 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
3032 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
3033 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
3034 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
3035 (elf_gnu_ifunc_resolve_addr): New.
3036 (elf_symfile_read): Call elf_rel_plt_read.
3037 (elf_gnu_ifunc_fns): New.
3038 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
3039 Install elf_gnu_ifunc_fns.
3040 * infcall.c (find_function_return_type): New function.
3041 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
3042 * minsyms.c (stub_gnu_ifunc_resolve_addr)
3043 (stub_gnu_ifunc_resolve_name): New functions.
3044 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
3045 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
3046 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
3047
3048 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3049
3050 Code cleanup for later STT_GNU_IFUNC support.
3051 * infcall.c (find_function_addr): Remove variable code, use explicit
3052 dereferences for it. Move VALUE_TYPE initialization later.
3053
3054 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3055
3056 GDB find_pc_partial_function support for STT_GNU_IFUNC.
3057 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
3058 (clear_pc_function_cache): Clear it.
3059 (find_pc_partial_function): Rename to ...
3060 (find_pc_partial_function_gnu_ifunc): ... this function. New
3061 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
3062 (find_pc_partial_function): New wrapper for this function.
3063 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
3064
3065 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3066
3067 GDB internal type support for STT_GNU_IFUNC.
3068 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
3069 (elf_symtab_read): Set mst_text_gnu_ifunc for
3070 BSF_GNU_INDIRECT_FUNCTION.
3071 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
3072 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
3073 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
3074 nodebug_got_plt_symbol.
3075 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
3076 (TYPE_GNU_IFUNC): New.
3077 (struct main_type): New field flag_gnu_ifunc.
3078 (struct builtin_type): New field builtin_func_func.
3079 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
3080 nodebug_got_plt_symbol.
3081 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
3082 (in_gnu_ifunc_stub): New.
3083 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
3084 mst_text_gnu_ifunc.
3085 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
3086 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
3087 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
3088 in_gnu_ifunc_stub.
3089 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
3090 * symtab.c (search_symbols): Likewise.
3091 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
3092 and mst_slot_got_plt.
3093 (in_gnu_ifunc_stub): New declaration.
3094
3095 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3096
3097 Support a ring of related breakpoints.
3098 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
3099 other functions, add gdb_assert.
3100 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
3101 watchpoint_del_at_next_stop.
3102 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
3103 (bpstat_stop_status): Handle ring in related_breakpoint.
3104 (set_raw_breakpoint_without_location): Initialize ring in
3105 related_breakpoint.
3106 (delete_breakpoint): Handle ring in related_breakpoint, use
3107 watchpoint_del_at_next_stop.
3108 (map_breakpoint_numbers): Handle ring in related_breakpoint.
3109
3110 2011-03-28 Tom Tromey <tromey@redhat.com>
3111
3112 PR symtab/12441:
3113 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
3114 with `language_minimal'.
3115
3116 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
3117
3118 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
3119 instead of checking for STT_ARM_TFUNC symbol type.
3120
3121 2011-03-25 Tom Tromey <tromey@redhat.com>
3122
3123 * linespec.c (symbol_found): Restore line-based result for
3124 non-LOC_LABEL symbols.
3125
3126 2011-03-25 Kai Tietz <ktietz@redhat.com>
3127
3128 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
3129 instead of strcmp for comparison.
3130 (tui_source_is_displayed): Likewise.
3131 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
3132
3133 2011-03-24 Mark Wielaard <mjw@redhat.com>
3134
3135 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
3136 complaint.
3137 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
3138 (find_partial_die_in_comp_unit): Likewise in comment.
3139 (read_attribute_value): Likewise.
3140 (lookup_die_type): Likewise.
3141 (dwarf_form_name): Likewise.
3142 (dump_die_shallow): Likewise.
3143 (follow_die_ref_or_sig): Likewise.
3144
3145 2011-03-24 Tom Tromey <tromey@redhat.com>
3146
3147 PR breakpoints/11816:
3148 * linespec.c (decode_line_1): Parse `function:label' linespecs.
3149 (decode_compound): Update.
3150 (find_function_symbol): New function.
3151 (decode_dollar): Update.
3152 (decode_label): Add 'function_symbol' parameter. Handle
3153 function-relative labels.
3154 (decode_variable): Update.
3155 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
3156 not its line. Set `special_display' and canonical name for
3157 labels.
3158
3159 2011-03-24 Tom Tromey <tromey@redhat.com>
3160
3161 * linespec.h (struct linespec_result) <special_display>: New
3162 field.
3163 * breakpoint.h (struct breakpoint) <display_canonical>: New
3164 field.
3165 * breakpoint.c (print_breakpoint_location): Respect
3166 display_canonical.
3167 (create_breakpoint_sal): Add 'display_canonical' parameter.
3168 (create_breakpoints_sal): Update.
3169 (create_breakpoint): Update.
3170
3171 2011-03-24 Tom Tromey <tromey@redhat.com>
3172
3173 * symtab.c (decode_line_spec): Update.
3174 * linespec.c (build_canonical_line_spec): Change type of
3175 'canonical'.
3176 (decode_line_2, decode_line_1, decode_objc, decode_compound)
3177 (find_method, decode_all_digits, decode_dollar, decode_label)
3178 (symbol_found): Likewise.
3179 (init_linespec_result): New function.
3180 * breakpoint.c (struct captured_parse_breakpoint_args)
3181 <canonical_p>: New field, replaces addr_string_p.
3182 (create_breakpoints_sal): Add 'canonical' parameter, replacing
3183 'addr_string'.
3184 (parse_breakpoint_sals): Likewise.
3185 (do_captured_parse_breakpoint): Update.
3186 (create_breakpoint): Use struct linespec_result.
3187 (until_break_command): Update.
3188 (breakpoint_re_set_one): Update.
3189 (decode_line_spec_1): Update.
3190 * linespec.h (struct linespec_result): New.
3191 (init_linespec_result): Declare.
3192
3193 2011-03-23 Pedro Alves <pedro@codesourcery.com>
3194
3195 * regcache.c (regcache_raw_read): If the target didn't supply a
3196 given raw register, mark it as unavailable.
3197
3198 2011-03-23 Kai Tietz <ktietz@redhat.com>
3199
3200 * breakpoint.c (clear_command): Use filename_cmp
3201 instead of strcmp for comparison.
3202 * buildsym.c (watch_main_source_file_lossage): Likewise.
3203 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
3204 checking just for slash.
3205 * dbxread.c (read_dbx_symtab): Use lbasename instead of
3206 strrchr and filename_cmp instead of strcmp for filenames.
3207 (add_old_header_file): Use filename_cmp
3208 instead of strcmp for comparison.
3209 * exec.c (exec_set_section_address): Likewise.
3210 * macrotab.c (macro_lookup_inclusion): Likewise.
3211 (macro_lookup_inclusion): Likewise.
3212 * elfread.c (_initialize_elfread): Likewise.
3213 (elfstab_offset_sections): Likewise.
3214 (elfstab_offset_sections): Use lbasename instead of
3215 strrchr.
3216 * mdebugread.c (parse_partial_symbols): Likewise.
3217 (arse_partial_symbols): Use filename_(n)cmp instead of
3218 str(n)cmp for comparison.
3219 * minsyms.c (lookup_minimal_symbol): Likewise.
3220 * psymtab.c (read_psymtabs_with_filename): Likewise.
3221 * solib.c (solib_read_symbols): Likewise.
3222 (reload_shared_libraries_1): Likewise.
3223 * symmisc.c (maintenance_print_symbols): Likewise.
3224 * symfile.c (separate_debug_file_exists): Likewise.
3225 (reread_symbols): Likewise.
3226 (find_separate_debug_file_by_debuglink): Likewise.
3227 * remote-fileio.c (remote_fileio_func_rename): Likewise.
3228 * source.c (add_path): Likewise.
3229 * symtab.c (filename_seen): Likewise.
3230 (file_matches): Likewise.
3231 (print_symbol_info): Likewise.
3232 (maybe_add_partial_symtab_filename): Likewise.
3233 (make_source_files_completion_list): Likewise.
3234 * xml-syscall.c (init_sysinfo): Likewise.
3235 * windows-nat.c (_initialize_check_for_gdb_ini): Use
3236 IS_DIR_SEPARATOR for checking for trailing path separator.
3237
3238 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3239
3240 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
3241 label abort_expression.
3242 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
3243 DWARF_VALUE_OPTIMIZED_OUT.
3244
3245 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3246
3247 Code cleanup.
3248 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
3249 to linkage_name. Invert its value. Update the function comment.
3250 (c_type_print_varspec_suffix): Invert it at the caller.
3251 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
3252
3253 2011-03-22 Pedro Alves <pedro@codesourcery.com>
3254
3255 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
3256 errors when reading the `stop_pc'.
3257 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
3258 get_frame_pc.
3259
3260 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3261
3262 * NEWS: Document gdb.Write stream keyword.
3263
3264 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3265
3266 Revert:
3267 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3268 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3269 (dwarf2_add_field): Fix new_field->accessibility for
3270 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3271
3272 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
3273
3274 PR python/12183
3275
3276 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
3277 other error classes. Do not print stack trace.
3278
3279 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3280
3281 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3282 (dwarf2_add_field): Fix new_field->accessibility for
3283 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3284
3285 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
3286
3287 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
3288 encountering a load via a non-SP register.
3289
3290 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
3291
3292 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
3293 field in returned unwinder.
3294
3295 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3296
3297 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
3298
3299 2012-03-21 Joel Brobecker <brobecker@adacore.com>
3300
3301 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
3302 of xmalloc.
3303
3304 2012-03-18 Pedro Alves <pedro@codesourcery.com>
3305
3306 * frame.c (frame_unwind_register): Throw an error if unwinding the
3307 register failed.
3308 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
3309 an unwind stop reason.
3310 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
3311 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
3312 UNWIND_UNAVAILABLE>: New.
3313 * inline-frame.c (inline_frame_unwind): Install
3314 default_frame_unwind_stop_reason.
3315 * frame-unwind.c: Include "exceptions.h".
3316 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
3317 (default_frame_unwind_stop_reason): New.
3318 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
3319 (default_frame_unwind_stop_reason): Declare.
3320 (struct frame_unwind) <stop_reason>: New function pointer.
3321
3322 * dummy-frame.c: Install default_frame_unwind_stop_reason.
3323 * dwarf2-frame.c: Include exceptions.h.
3324 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
3325 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
3326 computing the CFA. If such an error was thrown, set
3327 unavailable_retaddr.
3328 (dwarf2_frame_unwind_stop_reason): New.
3329 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
3330 unavailable.
3331 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
3332 (dwarf2_signal_frame_unwind): Ditto.
3333
3334 * amd64-tdep.c: Include "exceptions.h".
3335 (struct amd64_frame_cache): New field "base_p".
3336 (amd64_init_frame_cache): Clear it.
3337 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
3338 Avoid reading registers with functions that throw if the register
3339 is not necessary to compute the frame base.
3340 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3341 swallowing NOT_AVAILABLE_ERROR.
3342 (amd64_frame_unwind_stop_reason): New.
3343 (amd64_frame_this_id): Don't build a frame id if the frame base
3344 was unavailable.
3345 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
3346 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3347 base_p if the frame base was computable.
3348 (amd64_sigtramp_frame_unwind_stop_reason): New.
3349 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
3350 frame base was unavailable.
3351 (amd64_sigtramp_frame_unwind): Install
3352 amd64_sigtramp_frame_unwind_stop_reason.
3353 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3354 base_p if the frame base was computable.
3355 (amd64_epilogue_frame_unwind_stop_reason): New.
3356 (amd64_epilogue_frame_this_id): Don't build a frame id if the
3357 frame base was unavailable.
3358 (amd64_epilogue_frame_unwind): Install
3359 amd64_epilogue_frame_unwind_stop_reason.
3360 * i386-tdep.c: Include "exceptions.h".
3361 (struct i386_frame_cache): New field "base_p".
3362 (i386_init_frame_cache): Clear it.
3363 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
3364 Avoid reading registers with functions that throw if the register
3365 is not necessary to compute the frame base.
3366 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3367 swallowing NOT_AVAILABLE_ERROR.
3368 (i386_frame_unwind_stop_reason): New.
3369 (i386_frame_this_id): Don't build a frame id if the frame base was
3370 unavailable.
3371 (i386_frame_prev_register): Handle unavailable SP.
3372 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
3373 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3374 base_p if the frame base was computable.
3375 (i386_epilogue_frame_unwind_stop_reason): New.
3376 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
3377 base was unavailable.
3378 (i386_epilogue_frame_unwind): Install
3379 i386_epilogue_frame_unwind_stop_reason.
3380 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3381 base_p if the frame base was computable.
3382 (i386_sigtramp_frame_unwind_stop_reason): New.
3383 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
3384 base was unavailable.
3385 (i386_sigtramp_frame_unwind): Install
3386 i386_sigtramp_frame_unwind_stop_reason.
3387 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
3388 type's size, not the register's.
3389 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
3390
3391 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
3392 default_frame_unwind_stop_reason.
3393 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
3394 (alpha_heuristic_frame_unwind): Ditto.
3395 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
3396 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
3397 * avr-tdep.c (avr_frame_unwind): Ditto.
3398 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
3399 Ditto.
3400 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
3401 * frv-tdep.c (frv_frame_unwind): Ditto.
3402 * h8300-tdep.c (h8300_frame_unwind): Ditto.
3403 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
3404 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
3405 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
3406 (hppa_stub_frame_unwind): Ditto.
3407 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
3408 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
3409 (ia64_libunwind_frame_unwind)
3410 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
3411 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
3412 * lm32-tdep.c (lm32_frame_unwind): Ditto.
3413 * m32c-tdep.c (m32c_unwind): Ditto.
3414 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
3415 * m32r-tdep.c (m32r_frame_unwind): Ditto.
3416 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
3417 * m68k-tdep.c (m68k_frame_unwind): Ditto.
3418 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
3419 * m88k-tdep.c (m88k_frame_unwind): Ditto.
3420 * mep-tdep.c (mep_frame_unwind): Ditto.
3421 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
3422 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
3423 (mips_stub_frame_unwind): Ditto.
3424 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
3425 * moxie-tdep.c (moxie_frame_unwind): Ditto.
3426 * mt-tdep.c (mt_frame_unwind): Ditto.
3427 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
3428 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
3429 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
3430 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
3431 (s390_sigtramp_frame_unwind): Ditto.
3432 * score-tdep.c (score_prologue_unwind): Ditto.
3433 * sh-tdep.c (sh_frame_unwind): Ditto.
3434 * sh64-tdep.c (sh64_frame_unwind): Ditto.
3435 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
3436 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
3437 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
3438 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
3439 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
3440 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
3441 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
3442 (sparc64obsd_trapframe_unwind): Ditto.
3443 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
3444 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
3445 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
3446 * v850-tdep.c (v850_frame_unwind): Ditto.
3447 * vax-tdep.c (vax_frame_unwind): Ditto.
3448 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
3449 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
3450 * xtensa-tdep.c (xtensa_unwind): Ditto.
3451
3452 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3453
3454 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
3455 there's always a frame. Use get_frame_pc_if_available instead of
3456 get_frame_pc, and if there's no PC available, don't look up a
3457 symtab.
3458
3459 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3460
3461 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
3462 unavailable PC.
3463
3464 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3465
3466 * tracepoint.c (set_traceframe_context): Handle unavailable PC
3467 gracefully.
3468
3469 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3470
3471 * frame.h (frame_unwind_caller_pc_if_available): Declare.
3472 * frame.c (frame_unwind_caller_pc_if_available): New.
3473 * stack.c (frame_info): Handle unavailable PC.
3474
3475 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3476
3477 * frame.c (frame_unwind_pc): Rename to ...
3478 (frame_unwind_pc_if_available): ... this. New `pc' output
3479 parameter. Change return type to int. Gracefully handle
3480 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
3481 happened, or 1 otherwise.
3482 (frame_unwind_pc): Reimplement on top of
3483 frame_unwind_pc_if_available.
3484 (get_frame_func): Rename to ...
3485 (get_frame_func_if_available): New `pc' output parameter. Change
3486 return type to int. Gracefully handle the PC not being available.
3487 (get_frame_func): Reimplement on top of
3488 get_frame_func_if_available.
3489 (select_frame): Handle the PC being unavailable.
3490 (get_prev_frame): Handle the PC being unavailable.
3491 (get_frame_pc_if_available): New.
3492 (get_frame_address_in_block_if_available): New.
3493 (find_frame_sal): Handle the frame PC not being available.
3494 * frame.h (get_frame_pc_if_available): Declare.
3495 (get_frame_address_in_block_if_available): Declare.
3496 (get_frame_func_if_available): Declare.
3497 * stack.c (print_frame_info): Handle the PC being unavailable.
3498 (find_frame_funname): Ditto.
3499 (print_frame): Handle the PC being unavailable.
3500 (get_frame_language): Ditto.
3501 * blockframe.c (get_frame_block): Ditto.
3502 * macroscope.c (default_macro_scope): Ditto.
3503 * tui/tui-stack.c (tui_show_frame_info): Ditto.
3504
3505 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3506
3507 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
3508 NOT_AVAILABLE_ERROR when evaluating the location expression.
3509
3510 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3511
3512 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
3513 returning that the register piece is unavailable/optimized out.
3514 (write_pieced_value): Handle get_frame_register_bytes returning
3515 that the register piece is unavailable/optimized out when doing a
3516 read-modify write of a bitfield.
3517 * findvar.c (value_from_register): Handle get_frame_register_bytes
3518 returning that the register piece is unavailable/optimized out.
3519 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
3520 and `unavailablep'. Throw error on bad debug info. Use
3521 frame_register instead of frame_register_read, to fill in the new
3522 arguments.
3523 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
3524 and `unavailablep'.
3525 * valops.c: (value_assign): Adjust, and handle
3526 get_frame_register_bytes failing.
3527 * spu-tdep.c: Include exceptions.h.
3528 (spu_software_single_step): Adjust, and handle
3529 get_frame_register_bytes failing.
3530 (spu_get_longjmp_target): Ditto.
3531 * gdbarch.sh (register_to_value): Change to return int. New
3532 parameters `optimizedp' and `unavailablep'.
3533 * gdbarch.h, gdbarch.c: Regenerate.
3534 * i386-tdep.c (i386_register_to_value): Adjust to new
3535 gdbarch_register_to_value interface.
3536 * i387-tdep.c (i387_register_to_value): Ditto.
3537 * i387-tdep.h (i387_register_to_value): Ditto.
3538 * alpha-tdep.c (alpha_register_to_value): Ditto.
3539 * ia64-tdep.c (ia64_register_to_value): Ditto.
3540 * m68k-tdep.c (m68k_register_to_value): Ditto.
3541 * mips-tdep.c (mips_register_to_value): Ditto.
3542 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
3543
3544 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3545
3546 * findvar.c (value_of_register): Mark the value as unavailable, if
3547 the register is unavailable.
3548 * frame.h (frame_register_unwind): New `unavailablep' parameter.
3549 (frame_register): New `unavailablep' parameter.
3550 (frame_register_read): Update comment.
3551 * frame.c (frame_register_unwind): New `unavailablep' parameter.
3552 Set it if the register is unavailable. If the register is
3553 unavailable, clear the output buffer.
3554 (frame_register): New `unavailablep' parameter. Pass it down.
3555 (frame_unwind_register): Adjust.
3556 (put_frame_register): Adjust.
3557 (frame_register_read): Adjust. Also return false if the register
3558 is not available.
3559 (frame_register_unwind_location): Adjust.
3560 * sentinel-frame.c (sentinel_frame_prev_register): If the register
3561 is unavailable, mark the value accordingly.
3562 * stack.c (frame_info): Handle unavailable registers.
3563
3564 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3565
3566 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
3567 simplify, using regcache_cooked_read.
3568
3569 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3570
3571 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
3572 (regcache_raw_read_unsigned, regcache_raw_read_signed)
3573 (regcache_raw_read_unsigned, regcache_raw_read_part)
3574 (regcache_cooked_read, regcache_cooked_read_signed)
3575 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
3576 (regcache_cooked_read_ftype): Change return to enum
3577 register_status.
3578 * regcache.c: Include exceptions.h
3579 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
3580 (do_cooked_read): Change return to enum register_status. Always
3581 forward to regcache_cooked_read.
3582 (regcache_raw_read): Change return to enum register_status. If
3583 the register is not REG_VALID, memset the buffer. Return the
3584 register's status.
3585 (regcache_raw_read_signed): Handle non-REG_VALID registers and
3586 return the register's status.
3587 (regcache_raw_read_unsigned): Ditto.
3588 (regcache_cooked_read): Change return to enum register_status.
3589 Assert that with read-only regcaches, the register's status must
3590 be known. If the regcache is read-only, and the register is not
3591 REG_VALID, memset the buffer. Return the register's status.
3592 (regcache_cooked_read_signed): Change return to enum
3593 register_status. Handle non-REG_VALID registers and return the
3594 register's status.
3595 (regcache_cooked_read_unsigned): Change return to enum
3596 register_status. Handle non-REG_VALID registers and return the
3597 register's status.
3598 (regcache_xfer_part, regcache_raw_read_part)
3599 (regcache_cooked_read_part): Change return to enum
3600 register_status. Return the register's status.
3601 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
3602 unavailable.
3603 (regcache_dump): Handle unavailable cooked registers.
3604 * frame.c (do_frame_register_read): Adjust interface to match
3605 regcache_cooked_read_ftype.
3606 * gdbarch.sh (pseudo_register_read): Change return to enum
3607 register_status.
3608 * gdbarch.h, gdbarch.c: Regenerate.
3609
3610 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
3611 register_status.
3612 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
3613 register_status. If reading a raw register indicates the raw
3614 register is not valid, return the raw register's status,
3615 otherwise, return REG_VALID.
3616 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
3617 register_status. Handle non-REG_VALID raw registers and return
3618 the register's status.
3619 * arm-tdep.c (arm_neon_quad_read)
3620 (arm_pseudo_read): Change return to enum register_status. Handle
3621 non-REG_VALID raw registers and return the register's status.
3622 * avr-tdep.c (avr_pseudo_register_read): Ditto.
3623 * frv-tdep.c (frv_pseudo_register_read): Ditto.
3624 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
3625 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
3626 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
3627 register_status.
3628 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
3629 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
3630 (m32c_part_write, m32c_cat_read, m32c_cat_write)
3631 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
3632 (m32c_pseudo_register_read): Change return to enum
3633 register_status. Adjust.
3634 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
3635 enum register_status. Return the register's status.
3636 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
3637 register_status. Return the register's status.
3638 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
3639 * mips-tdep.c (mips_pseudo_register_read): Ditto.
3640 * mt-tdep.c (mt_pseudo_register_read): Ditto.
3641 * rs6000-tdep.c (move_ev_register_func): New typedef.
3642 (e500_move_ev_register): Use it. Change return to enum
3643 register_status. Return the register's status.
3644 (do_regcache_raw_read): New function.
3645 (do_regcache_raw_write): New function.
3646 (e500_pseudo_register_read): Change return to enum
3647 register_status. Return the register's status. Use
3648 do_regcache_raw_read.
3649 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
3650 (dfp_pseudo_register_read): Change return to enum register_status.
3651 Return the register's status.
3652 (vsx_pseudo_register_read): Ditto.
3653 (efpr_pseudo_register_read): Ditto.
3654 (rs6000_pseudo_register_read): Ditto.
3655 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
3656 register_status. Return the register's status.
3657 * sh64-tdep.c (pseudo_register_read_portions): New function.
3658 (sh64_pseudo_register_read): Change return to enum
3659 register_status. Use pseudo_register_read_portions. Return the
3660 register's status.
3661 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
3662 register_status. Return the register's status.
3663 * sh-tdep.c (pseudo_register_read_portions): New function.
3664 (sh_pseudo_register_read): Change return to enum register_status.
3665 Use pseudo_register_read_portions. Return the register's status.
3666 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
3667 enum register_status. Return the register's status.
3668 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
3669 * spu-tdep.c (spu_pseudo_register_read_spu)
3670 (spu_pseudo_register_read): Ditto.
3671 * xtensa-tdep.c (xtensa_register_read_masked)
3672 (xtensa_pseudo_register_read): Ditto.
3673 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
3674
3675 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3676
3677 * python/py-value.c (valpy_getitem): Fix formatting of error function
3678 call.
3679
3680 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3681
3682 ARI fixes: Add missing internationalization markups throughout
3683 C source files.
3684 * darwin-nat-info.c: Ditto.
3685 * record.c: Ditto.
3686 * remote.c: Ditto.
3687 * mi/mi-main.c: Ditto.
3688
3689 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3690
3691 ARI fixes: Add missing internationalization markups throughout
3692 yacc files.
3693 * c-exp.y: Ditto.
3694 * cp-name-parser.y: Ditto.
3695 * f-exp.y: Ditto.
3696 * m2-exp.y: Ditto.
3697 * objc-exp.y: Ditto.
3698 * p-exp.y: Ditto.
3699
3700 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3701
3702 ARI fixes: Messages should have no trailing new lines.
3703 * darwin-nat.c (mach_check_error): Remove trailing new line from
3704 warning function call message.
3705 * record.c (bfdcore_read): Idem for error call.
3706
3707 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3708
3709 * common/signals.c (target_signal_from_host): Add _ markup to error
3710 function call message.
3711 (target_signal_to_host): Add _ markup and remove trailing new line
3712 from warning call message.
3713 (target_signal_from_command): Add _ markup to error function call
3714 message.
3715
3716 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
3717
3718 PR python/12149
3719
3720 * python/python.c (gdbpy_write): Accept a stream argument and
3721 operate to the appropriate stream.
3722 (gdbpy_flush): Likewise.
3723 (_initialize_python): Add stream constants.
3724 (finish_python_initialization): Add GdbOutputErrorFile class.
3725
3726 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3727
3728 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3729
3730 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3731
3732 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
3733 to store_signed_integer. Add debug message when relocating CALL
3734 instructions. Fix formatting of debug message.
3735 * i386-tdep.c (i386_relocate_instruction): Ditto.
3736
3737 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3738
3739 * target.h (struct target_ops): Remove to_lookup_symbol field.
3740 (target_lookup_symbol): Delete macro.
3741 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
3742 (update_current_target, setup_target_debug): Remove handling
3743 of to_lookup_symbol target_ops field.
3744 * ada-tasks.c (get_known_tasks_addr): Remove use of
3745 target_lookup_symbol.
3746 * coffread.c (coff_symtab_read): Likewise.
3747 * dbxread.c (read_dbx_symtab): Ditto.
3748
3749 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3750
3751 PR gdb/12116:
3752 * configure.ac: Add getthrds declaration check.
3753 * configure, config.in: Regenerate.
3754 * aix-thread.c (getthrds): Declare only if not already declared
3755 in procinfo.h. More declaration out of get_signaled_thread to
3756 global scope.
3757
3758 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
3759
3760 * python/py-symtab.c: Populate symtab_object_methods,
3761 sal_object_methods.
3762 (stpy_is_valid): New function.
3763 (salpy_is_valid): Ditto.
3764 * python/py-symbol.c: Declare symbol_object_methods. Populate.
3765 (sympy_is_valid): New function.
3766 * python/py-objfile.c: Declare objfile_object_methods. Populate.
3767 (objfpy_is_valid): New function.
3768 * python/py-inferior.c: Populate inferior_object_methods.
3769 (infpy_is_valid): New function.
3770 * python/py-infthread.c: Populate thread_object_methods.
3771 (thpy_is_valid): New function.
3772 * python/py-block.c: Declare block_object_methods. Populate. Declare
3773 block_iterator_object_methods. Populate.
3774 (blpy_is_valid): New function.
3775 (blpy_iter_is_valid): Ditto.
3776
3777 2011-03-16 Keith Seitz <keiths@redhat.com>
3778
3779 * linespec.c (find_methods): Canonicalize NAME before looking
3780 up the symbol.
3781 (name_end): New function.
3782 (keep_name_info): New function.
3783 (decode_line_1): Use keep_name_info.
3784 (decode_compound): Likewise.
3785 * cli/cli-utils.h (remove_trailing_whitespace): New function.
3786 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
3787
3788 PR c++/12273
3789 * linespec.c (locate_first_half): Keep overload information, too.
3790 (decode_compound): Use a string to represent break characters
3791 to escape the loop.
3792 If P points to a break character, do not increment it.
3793 For C++ and Java, keep overload information and relevant keywords.
3794 If we cannot find a symbol, search the minimal symbols.
3795
3796 PR c++/11734
3797 * linespec.c (decode_compound): Rename SAVED_ARG to
3798 THE_REAL_SAVED_ARG.
3799 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
3800 single-quotes.
3801 Pass a valid block to lookup_symbol.
3802 (lookup_prefix_sym): Likewise.
3803 (find_method): Construct search name based on SYM_CLASS instead
3804 of SAVED_ARG.
3805 * psymtab.c (lookup_partial_symbol): Add language parameter.
3806 (lookup_symbol_aux_psymtabs): Likewise.
3807 Don't assume that the psymtab we found was the right one. Search
3808 for the desired symbol in the symtab to be certain.
3809 (psymtab_search_name): New function.
3810 (lookup_partial_symbol): Use psymtab_search_name.
3811 Add language parameter.
3812 (read_symtabs_for_function): Add language parameter and pass to
3813 lookup_partial_symbol.
3814 (find_symbol_file_from_partial): Likewise.
3815
3816 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
3817
3818 PR gdb/12528
3819 * dwarf2read.c (noop_record_line): New function.
3820 (dwarf_decode_lines): Ignore line tables for GCd functions.
3821
3822 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3823
3824 Fix ARI warnings about new lines at the end of messages, which
3825 are unneeded as there is a new line added at the end of the message
3826 automatically.
3827 * darwin-nat.c (darwin_stop_inferior): Ditto.
3828 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
3829 * dfp.c (decimal_to_number): Ditto.
3830 * exec.c (print_section_info): Ditto.
3831 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
3832 * osdata.c (get_osdata): Ditto.
3833 * record.c (bfdcore_write): Ditto.
3834 * remote-mips.c (mips_readchar): Ditto.
3835 * remote.c (read_ptid): Ditto.
3836 * ser-mingw.c (ser_windows_raw): Ditto.
3837 * tracepoint.c (add_local_symbols): Ditto.
3838 * windows-nat.c (fake_create_process): Ditto.
3839
3840 2011-03-16 Tom Tromey <tromey@redhat.com>
3841
3842 * tracepoint.c (stop_tracing): Don't declare.
3843 * event-top.c (after_char_processing_hook): Add `(void)'.
3844
3845 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
3846
3847 * NEWS: Add Parameter sub-classing description.
3848
3849 2011-03-16 Kai Tietz <ktietz@redhat.com>
3850
3851 * MAINTAINERS: Update my e-mail address.
3852
3853 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
3854
3855 * MAINTAINERS: Add myself for write after approval privileges.
3856
3857 2011-03-15 Michael Snyder <msnyder@vmware.com>
3858
3859 * frame.c (find_frame_sal): Assert sym is not null.
3860
3861 * dbxread.c (process_one_symbol): Assert 'name' is not null.
3862
3863 * objc-lang.c (selectors_info): Check strchr for null result.
3864
3865 * stabsread.c (define_symbol): Guard against bad stabstring input.
3866
3867 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3868
3869 Remove trailing spaces and tabulations from pascal language
3870 support sources.
3871 p-exp.y: Ditto.
3872 p-lang.c: Ditto.
3873 p-lang.h: Ditto.
3874 p-valprint.c: Ditto.
3875
3876 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3877
3878 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
3879 than LOW. Comment it.
3880 (read_partial_die): Call complaint for inappropriate zero LOWPC or
3881 HIGHPC not strictly higher than LOWPC.
3882
3883 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3884
3885 Fix formatting of function declarations returning a pointer in
3886 previous commit.
3887 * varobj.c (varobj_add_child): Ditto.
3888 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
3889 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
3890
3891 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3892
3893 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
3894 for the "generic" vector ABI used with GCC 4.3 and later.
3895 (ppc64_sysv_abi_return_value): Likewise.
3896
3897 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3898
3899 * infcall.c (call_function_by_hand): Function return value is
3900 always a non_lval, even when using struct_return.
3901
3902 2011-03-15 Pedro Alves <pedro@codesourcery.com>
3903
3904 * printcmd.c (ALL_DISPLAYS_SAFE): New.
3905 (map_display_numbers): New.
3906 (do_delete_display): New.
3907 (undisplay_command): Use map_display_numbers.
3908 (do_enable_disable_display): New.
3909 (enable_disable_display_command): New function.
3910 (enable_display): Delete.
3911 (enable_display_command): New.
3912 (disable_display_command): Reimplement.
3913 (_initialize_printcmd): Adjust "enable display" command to use
3914 `enable_display_command' as callback.
3915
3916 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3917
3918 * NEWS: Add Python breakpoint 'stop' operation.
3919
3920 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3921
3922 * NEWS: Delete duplicate entry. Fix typo.
3923
3924 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3925
3926 Fix ARI warning about function names in first column.
3927 Put prototype declaration on same line as return type.
3928 * objc-exp.y: Ditto.
3929 * p-exp.y: Ditto.
3930 * python/py-stopevent.h: Ditto.
3931 For long function names, split parameters to
3932 allow function name on same line as return type.
3933 * solib-pa64.c: Ditto.
3934 * varobj.c: Ditto.
3935 * varobj.h: Ditto.
3936 For long function declaration, use single line.
3937 * hppa-tdep.h: Ditto.
3938 * inferior.h: Ditto.
3939
3940 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3941
3942 * python/python.h: Declare gdbpy_should_stop and
3943 gdbpy_breakpoint_has_py_cond.
3944 * python/python.c: Add python.h to includes. Remove python.h from
3945 HAVE_PYTHON definition
3946 (gdbpy_should_stop): New dummy function.
3947 (gdbpy_breakpoint_has_py_cond): New dummy function.
3948 * python/py-breakpoint.c (bppy_init): Rewrite to allow
3949 sub-classing capabilities.
3950 (gdbpy_should_stop): New function.
3951 (gdbpy_breakpoint_has_py_cond): New function.
3952 (local_setattro): New function.
3953 * breakpoint.c (condition_command): Add check for Python 'stop'
3954 operation.
3955 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
3956 operation function as part of stop/continue tests.
3957
3958 2011-03-14 Tom Tromey <tromey@redhat.com>
3959
3960 PR gdb/12576:
3961 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
3962 (needs_frame_dwarf_call): Likewise.
3963
3964 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3965
3966 Fix ARI warning about functions without parameters that do not
3967 use (void).
3968 * breakpoint.c (all_tracepoints): Replace () by (void).
3969 * f-exp.y (match_string_literal): Ditto.
3970 (yylex): Ditto.
3971 * m2-exp.y (yylex): Ditto.
3972 * mep-tdep.c (current_me_module): Ditto.
3973 (current_options): Ditto.
3974 (current_cop_data_bus_width): Ditto.
3975 (current_cr_names): Ditto.
3976 (current_cr_is_float): Ditto.
3977 (current_ccr_names): Ditto.
3978 * objc-exp.y (yylex): Ditto.
3979 * p-exp.y (yylex): Ditto.
3980 * remote.c (send_interrupt_sequence): Ditto.
3981 * tracepoint.c (current_trace_status): Ditto.
3982 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
3983 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
3984
3985 2011-03-11 Michael Snyder <msnyder@vmware.com>
3986
3987 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
3988 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
3989 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
3990 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
3991 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
3992
3993 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
3994 (delete_async_event_handler): Ditto.
3995
3996 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
3997
3998 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
3999
4000 * top.c (set_verbose): Assert showcmd was found.
4001
4002 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
4003
4004 * xtensa-tdep.c (warning_once): Correct style issues.
4005
4006 2011-03-11 Yao Qi <yao@codesourcery.com>
4007
4008 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
4009
4010 2011-03-11 Andreas Schwab <schwab@redhat.com>
4011
4012 * common/aclocal.m4: Remove.
4013
4014 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
4015
4016 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
4017 (xtensa_write_register, xtensa_read_register): Likewise.
4018 (xtensa_hextochar): Removed.
4019 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
4020
4021 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
4022
4023 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
4024 (xtensa_call0_frame_cache_t): Update comments. New fields added.
4025 (xtensa_alloc_frame_cache): Add initialization for new fields.
4026 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
4027 (warning_once): New function.
4028 (xtensa_insn_kind): New item c0opc_and.
4029 (call0_classify_opcode): Add the case for AND instruction.
4030 (call0_track_op): Change arguments. New local variable litbase.
4031 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
4032 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
4033 in the prologue.
4034 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
4035 (call0_analyze_prologue): Update the comments. Change arguments.
4036 Add the variety of updates to handle extended prologues, which now can
4037 conduct dynamic stack adjustments.
4038 (call0_frame_cache): Likewise.
4039 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
4040 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
4041
4042 2011-03-10 Michael Snyder <msnyder@vmware.com>
4043
4044 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
4045 (cmd_qtframe): Ditto.
4046 (cmd_qtbuffer): Ditto.
4047 (cmd_bigqtbuffer): Ditto.
4048
4049 2011-03-10 Tom Tromey <tromey@redhat.com>
4050
4051 * tracepoint.c (trace_actions_command): Update.
4052 * thread.c (thread_apply_command): Update.
4053 * reverse.c (delete_bookmark_command): Update.
4054 (bookmarks_info): Update.
4055 * printcmd.c (undisplay_command): Update.
4056 * memattr.c (mem_enable_command): Update.
4057 (mem_disable_command): Update.
4058 (mem_delete_command): Update.
4059 * inferior.c (detach_inferior_command): Update.
4060 (kill_inferior_command): Update.
4061 (remove_inferior_command): Update.
4062 * cli/cli-utils.h (struct get_number_or_range_state): New.
4063 (init_number_or_range): Declare.
4064 (get_number_or_range): Update.
4065 * cli/cli-utils.c (init_number_or_range): New function.
4066 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
4067 static variables.
4068 (number_is_in_list): Update.
4069 * breakpoint.h (get_tracepoint_by_number): Update.
4070 * breakpoint.c (map_breakpoint_numbers): Update for change to
4071 get_number_or_range.
4072 (find_location_by_number): Use get_number, not
4073 get_number_or_range.
4074 (trace_pass_set_count): New function.
4075 (trace_pass_command): Update for change to get_number_or_range.
4076 Rework loop logic.
4077 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
4078 'state' parameter.
4079
4080 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
4081
4082 * python/py-param.c (add_setshow_generic): Add set/show callback
4083 parameters. Register Python object context.
4084 (get_show_value): New function.
4085 (get_set_value): New function.
4086 (call_doc_function): New function.
4087 (get_doc_string): Move behind get_show_value/get_set_value.
4088
4089 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
4090
4091 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
4092
4093 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
4094
4095 * xtensa-tdep.c (xtensa_read_register): Add comment.
4096 (xtensa_write_register): Likewise.
4097 (xtensa_hextochar): Add comment and update to match coding conventions.
4098 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
4099 (execute_l32e, execute_s32e, execute_code): Update comments.
4100 (xtensa_exception_handler_t): Update to match coding conventions.
4101 (xtensa_insn_kind): Likewise.
4102
4103 2011-03-09 Michael Snyder <msnyder@vmware.com>
4104
4105 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
4106
4107 2011-03-09 Pedro Alves <pedro@codesourcery.com>
4108
4109 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
4110
4111 2011-03-09 Tom Tromey <tromey@redhat.com>
4112
4113 * thread.c (restore_selected_frame): Handle frame_level == -1.
4114 (make_cleanup_restore_current_thread): Use
4115 get_selected_frame_if_set.
4116 * frame.h (get_selected_frame_if_set): Declare.
4117 * frame.c (get_selected_frame_if_set): New function.
4118
4119 2011-03-09 Pedro Alves <pedro@codesourcery.com>
4120
4121 * cli/cli-cmds.c (shell_escape): Use lbasename.
4122 * coffread.c (coff_start_symtab): Constify parameter.
4123 (complete_symtab): Constify `name' parameter.
4124 (coff_symtab_read): Constify `filestring' local.
4125 (coff_getfilename): Constify return and `result' local.
4126 Use lbasename.
4127 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
4128 * linux-fork.c (info_checkpoints_command): Use lbasename.
4129 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
4130 * minsyms.c (lookup_minimal_symbol): Use lbasename.
4131 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
4132 * procfs.c (procfs_make_note_section): Use lbasename.
4133 * tui/tui-io.c (printable_part): Constity return and parameter.
4134 Use lbasename.
4135 (print_filename): Constify parameters, and local `s'.
4136 (tui_rl_display_match_list): Constify local `temp'.
4137
4138 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4139
4140 Revert:
4141 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4142 Fix DWARF-3+ DW_AT_accessibility default assumption.
4143 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4144 cu->header.version >= 3.
4145
4146 2011-03-09 Yao Qi <yao@codesourcery.com>
4147
4148 * common/Makefile.in: Remove.
4149 * common/configure: Remove.
4150 * common/configure.ac: Remove.
4151
4152 2011-03-09 Yao Qi <yao@codesourcery.com>
4153
4154 Revert:
4155 2011-02-11 Yao Qi <yao@codesourcery.com>
4156
4157 * common/Makefile.in: Add copyright header.
4158
4159 2011-02-11 Yao Qi <yao@codesourcery.com>
4160
4161 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4162 libcommon.a.
4163 * configure.ac: Add common to sub dir.
4164 * configure: Regenerate.
4165
4166 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4167
4168 * xtensa-tdep.c (call0_ret): New function.
4169 (xtensa_skip_prologue): Speed up analysis.
4170
4171 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4172
4173 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
4174 while executing MI command -data-list-changed-registers.
4175
4176 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4177
4178 * xtensa-tdep.c (xtensa_read_register): New function.
4179 (xtensa_write_register): New function.
4180 (xtensa_find_register_by_name): New function.
4181 (xtensa_windowed_frame_cache): Update comments in type description.
4182 (xtensa_frame_cache): Likewise.
4183 (xtensa_window_interrupt_insn): New function.
4184 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
4185 (xtensa_insn_kind): Add new instructions.
4186 (rwx_special_register): New function.
4187 (call0_classify_opcode): Add new instructions to the analysis.
4188 (a0_saved, a7_saved, a11_saved): New variables.
4189 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
4190 (execute_l32e): New function.
4191 (execute_s32e): New function.
4192 (xtensa_exception_handler_t): New type.
4193 (execute_code): New function.
4194 (xtensa_window_interrupt_frame_cache): New function to conduct frame
4195 analysis for Xtensa Window Exception handlers.
4196
4197 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4198
4199 * xtensa-tdep.c (TX_PS): New.
4200 (windowing_enabled): Update to count for Call0 ABI.
4201 (xtensa_hextochar): New.
4202 (xtensa_init_reggroups): Make algorithm generic.
4203 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
4204
4205 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
4206
4207 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4208
4209 2011-03-08 Michael Snyder <msnyder@vmware.com>
4210
4211 * i386-tdep.c (i386_follow_jump): Check return value of
4212 target_read_memory.
4213 (i386_analyze_struct_return): Ditto.
4214 (i386_skip_probe): Ditto.
4215 (i386_match_insn): Ditto.
4216 (i386_skip_noop): Ditto.
4217 (i386_analyze_frame_setup): Ditto.
4218 (i386_analyze_register_saves): Ditto.
4219 (i386_skip_prologue): Ditto.
4220 (i386_skip_main_prologue): Ditto.
4221
4222 * target.c (read_whatever_is_readable): Fix memory leak.
4223
4224 * i386-tdep.c (i386_process_record): Document fall through.
4225
4226 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4227
4228 Fix DWARF-3+ DW_AT_accessibility default assumption.
4229 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4230 cu->header.version >= 3.
4231
4232 2011-03-08 Pedro Alves <pedro@codesourcery.com>
4233
4234 * remote.c (remote_check_symbols): Skip if the target has no
4235 execution.
4236
4237 2011-03-08 Joel Brobecker <brobecker@adacore.com>
4238
4239 * target.c (read_whatever_is_readable): Reformat comment,
4240 with a minor typo fix. Minor reformatting of the code.
4241
4242 2011-03-08 Yao Qi <yao@codesourcery.com>
4243
4244 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
4245 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
4246 Use cached result instead of calling displaced_in_arm_mode again.
4247 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
4248 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
4249 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
4250 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
4251 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
4252 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
4253 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
4254 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
4255 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4256 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
4257 (arm_catch_kernel_helper_return): Likewise.
4258 * gdb/arm-tdep.h : Update function declarations.
4259
4260 2011-03-07 Michael Snyder <msnyder@vmware.com>
4261
4262 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
4263
4264 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
4265
4266 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
4267
4268 * elfread.c (elf_symtab_read): Stop memory leak.
4269
4270 * main.c (captured_main): Fix memory leak.
4271
4272 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
4273
4274 * ada-lang.c (compare_names): Call is_name_suffix with string1
4275 instead of string2.
4276
4277 2011-03-07 Tom Tromey <tromey@redhat.com>
4278
4279 * xcoffread.c (xcoff_sym_fns): Update.
4280 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
4281 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
4282 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
4283 (symbol_file_add_with_addrs_or_offsets): Likewise.
4284 (reread_symbols): Handle OBJF_PSYMTABS_READ.
4285 * somread.c (som_sym_fns): Update.
4286 * psymtab.h (require_partial_symbols): Declare.
4287 * psymtab.c (require_partial_symbols): New function.
4288 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
4289 (ALL_OBJFILE_PSYMTABS): Undef.
4290 (ALL_PSYMTABS): Move from psympriv.h.
4291 (lookup_partial_symtab, find_pc_sect_psymtab)
4292 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
4293 (find_last_source_symtab_from_partial)
4294 (forget_cached_source_info_partial)
4295 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
4296 (expand_partial_symbol_tables, read_psymtabs_with_filename)
4297 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
4298 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
4299 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
4300 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
4301 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
4302 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
4303 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
4304 psymtabs.
4305 * mipsread.c (ecoff_sym_fns): Update.
4306 * machoread.c (macho_sym_fns): Update.
4307 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
4308 (read_psyms): New function.
4309 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
4310 (elf_sym_fns_lazy_psyms): New global.
4311 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
4312 dwarf2_build_psymtabs.
4313 * dbxread.c (aout_sym_fns): Update.
4314 * coffread.c (coff_sym_fns): Update.
4315
4316 2011-03-07 Tom Tromey <tromey@redhat.com>
4317
4318 * infrun.c (print_exited_reason): Include inferior id and pid in
4319 message.
4320
4321 2011-03-07 Tom Tromey <tromey@redhat.com>
4322
4323 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
4324 parameter.
4325 (target_has_execution_1): Update.
4326 (target_has_execution_current): Declare.
4327 (target_has_execution): Call target_has_execution_current.
4328 (default_child_has_execution): Update.
4329 * target.c (default_child_has_execution): Add 'the_ptid'
4330 parameter.
4331 (target_has_execution_1): Likewise.
4332 (target_has_execution_current): New function.
4333 (add_target): Update.
4334 (init_dummy_target): Update.
4335 * remote-m32r-sdi.c (m32r_has_execution): New function.
4336 (init_m32r_ops): Use it.
4337 * record.c (record_core_has_execution): Now static. Add
4338 'the_ptid' parameter.
4339 * inferior.c (have_live_inferiors): Don't save current thread.
4340 Use target_has_execution_1.
4341
4342 2011-03-07 Yao Qi <yao@codesourcery.com>
4343
4344 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
4345
4346 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4347
4348 * elfread.c (elf_symtab_read): Minor reformatting.
4349
4350 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4351
4352 * objc-lang.c (selectors_info): Minor reformatting.
4353
4354 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4355
4356 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
4357
4358 2011-03-07 Joel Brobecker <brobecker@adacore.com>
4359 Michael Snyder <msnyder@vmware.com>
4360
4361 * ada-valprint.c (ada_val_print_array): Move the declaration of
4362 "byte_order" and "elttype" inside the block where these variables
4363 are actually used. Remove some special handling for the case
4364 where "elttype" and "eltlen" are null. Replace by a comment
4365 and a couple of assertion checks.
4366
4367 2011-03-05 Michael Snyder <msnyder@vmware.com>
4368
4369 * source.c (add_path): Replace semicolon at end of block.
4370 * dwarf2expr.c (execute_stack_op): Ditto.
4371
4372 2011-03-05 Mike Frysinger <vapier@gentoo.org>
4373
4374 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
4375 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
4376 (bfin-*-*): Likewise.
4377
4378 2011-03-05 Michael Snyder <msnyder@vmware.com>
4379
4380 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
4381 * mdebugread.c (parse_symbol): Ditto.
4382 * parse.c (parse_exp_in_context): Ditto.
4383 * source.c (add_path): Ditto.
4384 * utils.c (gnu_debuglink_crc32): Ditto.
4385 * varobj.c (variable_language): Ditto.
4386
4387 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
4388
4389 2011-03-04 Michael Snyder <msnyder@vmware.com>
4390
4391 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
4392
4393 * symfile.c (simple_overlay_update): Check for null return value
4394 from lookup_minimal_symbol.
4395
4396 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
4397
4398 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4399
4400 * eval.c (parse_and_eval_address_1): Remove function.
4401 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
4402 instead of parse_and_eval_address_1.
4403 * value.h (parse_and_eval_address_1): Remove prototype.
4404
4405 2011-03-04 Michael Snyder <msnyder@vmware.com>
4406
4407 * remote.c (putpkt_binary): Document that case stmt falls through.
4408
4409 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4410
4411 * breakpointc (print_it_typical): Move NULL check from here...
4412 (print_bp_stop_message): ... to here.
4413
4414 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
4415
4416 * breakpoint.c (enable_command): Use break instead of continue,
4417 and fill in a missing break.
4418 (disable_command): Ditto.
4419
4420 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4421
4422 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
4423 (terminal_save_ours): Remove misleading comment.
4424 (inflow_inferior_data_cleanup): Free ttystate.
4425 (inflow_inferior_exit): Likewise.
4426 (copy_terminal_info): Copy ttystate.
4427
4428 * serial.c (serial_copy_tty_state): New function.
4429 * serial.h (serial_copy_tty_state): Add prototype.
4430 (struct serial_ops): Add copy_tty_state callback.
4431 * ser-base.c (ser_base_copy_tty_state): New function.
4432 * ser-base.h (ser_base_copy_tty_state): Add prototype.
4433 * ser-go32.c (dos_copy_tty_state): New function.
4434 (dos_ops): Install copy_tty_state callback.
4435 * ser-mingw.c (_initialize_ser_windows): Likewise.
4436 * ser-pipe.c (_initialize_ser_pipe): Likewise.
4437 * ser-unix.c (hardwire_copy_tty_state): New function.
4438 (_initialize_ser_hardwire): Install it.
4439
4440 2011-03-04 Michael Snyder <msnyder@vmware.com>
4441
4442 * breakpoint.c (create_breakpoint): Add missing break statement.
4443
4444 Reverting this patch:
4445 * infcall.c (call_function_by_hand): Add break statements for lint.
4446
4447 Reverting this patch:
4448 * cli/cli-script.c (script_from_file): Add break for lint.
4449
4450 2011-03-04 Michael Snyder <msnyder@vmware.com>
4451
4452 * solib.c (reload_shared_libraries_1): Close memory leak.
4453
4454 2011-03-03 Tom Tromey <tromey@redhat.com>
4455
4456 PR gdb/12538:
4457 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
4458 DW_STRING is NULL.
4459
4460 2011-03-03 Michael Snyder <msnyder@vmware.com>
4461
4462 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
4463 fields of struct 'st' to zero.
4464
4465 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
4466 sal.pspace before calling set_current_source_symtab_and_line.
4467
4468 2011-03-03 Yao Qi <yao@codesourcery.com>
4469
4470 * Makefile.in (configure-common): Remove. Let Makefile
4471 in dir common to rebuild itself.
4472 (common/Makefile): Likewise.
4473
4474 2011-03-03 Joel Brobecker <brobecker@adacore.com>
4475
4476 * utils.c (parse_escape): Add i18n markup in error message.
4477
4478 2011-03-03 Yao Qi <yao@codesourcery.com>
4479
4480 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
4481 ARM_PC_REGNUM.
4482 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
4483 (displaced_write_reg, displaced_read_reg): Likewise.
4484 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
4485 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4486 (cleanup_branch): Replace magic number 14 and 15 with
4487 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
4488
4489 2011-03-02 Michael Snyder <msnyder@vmware.com>
4490
4491 * maint.c (maintenance_do_deprecate): No need to check for NULL.
4492
4493 * cli/cli-script.c (script_from_file): Add break for lint.
4494
4495 * mdebugread.c (parse_partial_symbols): Fix indent.
4496
4497 * target-descriptions.c (tdesc_gdb_type): No need to call
4498 xstrdup, callee saves a copy.
4499
4500 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
4501
4502 * infcall.c (call_function_by_hand): Add break statements for lint.
4503
4504 * utils.c (parse_escape): Escape the escape char.
4505
4506 * python/py-inferior.c (build_inferior_list): Error out if
4507 PyList_Append fails.
4508 (gdbpy_inferiors): Error out if build_inferior_list fails.
4509
4510 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
4511 a function call.
4512
4513 * record.c (record_restore): Move printf to before error return.
4514
4515 2011-03-02 Yao Qi <yao@codesourcery.com>
4516
4517 * arm-tdep.h (struct displaced_step_closure): Add two new fields
4518 is_thumb and insn_size.
4519 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
4520 on both ARM and Thumb mode.
4521 (arm_process_displaced_insn): Set is_thumb and insn_size.
4522 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
4523 (arm_displaced_step_fixup): Likewise.
4524
4525 2011-03-01 Michael Snyder <msnyder@vmware.com>
4526
4527 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
4528
4529 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
4530
4531 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
4532
4533 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
4534
4535 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
4536 with xmalloc.
4537
4538 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
4539 which shadows function parameter.
4540
4541 * tracepoint.c (create_tsv_from_upload): Superfluous call
4542 to xstrdup. Callee already calls xstrdup.
4543
4544 * linespec.c (decode_line_1): Remove unnecessary null check.
4545
4546 * tracepoint.c (scope_info): Fix mem leak, remove underused
4547 variable.
4548
4549 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
4550 superfluous null check.
4551
4552 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
4553 (value_of_builtin_frame_fp_reg): Ditto.
4554
4555 * event-top.c (display_gdb_prompt): Remove superfluous null check.
4556
4557 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
4558 be null.
4559
4560 * linespec.c (decode_line_1): Check for null before dereference.
4561
4562 * reverse.c (record_restore): Move null-check to before pointer
4563 dereference.
4564
4565 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
4566
4567 * objc-lang.c (selectors_info): Add explanitory comment.
4568 (classes_info): Ditto.
4569
4570 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4571
4572 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
4573 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
4574 versions of the trampoline. Handle Thumb vs. ARM addresses.
4575 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
4576 (arm_linux_init_abi): Install it.
4577 * arm-tdep.c (arm_psr_thumb_bit): Make global.
4578 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
4579
4580 2011-02-28 Michael Snyder <msnyder@vmware.com>
4581
4582 * ui-out.c (ui_out_field_core_addr): Make local char buffer
4583 a little bigger, to avoid possibility of an overflow.
4584
4585 * breakpoint.c (breakpoint_adjustment_warning): Make local char
4586 buffers a little bigger, to avoid possibility of an overflow.
4587
4588 * coffread.c (coff_getfilename): Add check to avoid overflow.
4589
4590 * objc-lang.c (selectors_info): Add a small safety margin to
4591 avoid overflow.
4592 (classes_info): Error out on too long REGEXP.
4593
4594 * infrun.c (handle_inferior_event): Remove unused function call.
4595
4596 * fork-child.c (fork_inferior): Remove ifdef'd code and
4597 unused variable.
4598
4599 * linux-thread-db.c (attach_thread): Discard unused value.
4600
4601 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
4602
4603 * remote.c (remote_get_noisy_reply): Discard unused value.
4604 (remote_vcont_resume): Ditto.
4605 (remote_stop_ns): Ditto.
4606
4607 * linespec.c (decode_objc): Delete unused variable.
4608
4609 * tui/tui-regs.c (tui_register_format): Delete unused variable.
4610
4611 * dwarf2read.c (add_partial_symbol): Discard unused values.
4612 (read_base_type): Delete unused variable.
4613
4614 * dbxread.c (read_dbx_symtab): Discard unused value.
4615
4616 * eval.c (evaluate_subexp_standard): Delete unused variable,
4617 and discard unused values.
4618
4619 * infcmd.c (_initialize_infcmd): Discard unused values.
4620
4621 * stabsread.c (rs6000_builtin_type): Missing break statement.
4622
4623 * dbxread.c (process_one_symbol): Discard unused value.
4624
4625 * coffread.c (coff_end_symtab): Delete unused variable.
4626
4627 * dwarf2read.c (dw2_get_file_names): Discard unused value.
4628 (dwarf2_add_typedef): Delete unused variable.
4629 (read_namespace): Ditto.
4630 (dwarf_decode_macros): Ditto.
4631
4632 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
4633
4634 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
4635
4636 * p-valprint.c (pascal_val_print): Discard unused value.
4637
4638 * utils.c (nquery): Call va_end before return;
4639 (yquery): Ditto.
4640 (query): Ditto.
4641
4642 * proc-service.c (ps_plog): Call va_end before return.
4643
4644 2011-02-28 Tom Tromey <tromey@redhat.com>
4645
4646 * python/python.c (gdbpy_value_cst): New global.
4647 (_initialize_python): Initialize it.
4648 * python/python-internal.h (gdbpy_value_cst): Declare.
4649 * python/py-value.c (convert_value_from_python): Use
4650 gdbpy_value_cst.
4651
4652 2011-02-28 Michael Snyder <msnyder@vmware.com>
4653
4654 * python/py-cmd.c (cmdpy_init): Fix memory leak.
4655
4656 * breakpoint.c (catch_syscall_completer): Free malloced list.
4657
4658 * jv-lang.c (java_primitive_type_from_name): Add missing break.
4659
4660 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
4661 (lval_func_check_synthetic_pointer): Ditto.
4662 (lval_func_free_closure): Fix use-after-free.
4663
4664 2011-02-28 Tom Tromey <tromey@redhat.com>
4665
4666 * psymtab.c (expand_partial_symbol_tables): Use
4667 ALL_OBJFILE_PSYMTABS.
4668
4669 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4670
4671 * objc-lang.c (selectors_info): Error on too long REGEXP.
4672
4673 2011-02-28 Michael Snyder <msnyder@vmware.com>
4674
4675 * python/py-param.c (set_parameter_value): Add missing
4676 break statement.
4677
4678 * linux-record.c (record_linux_system_call): Add missing
4679 break statement.
4680
4681 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4682
4683 * breakpoint.c (print_one_breakpoint_location): Remove unused
4684 argument PRINT_ADDRESS_BITS. Update callers.
4685 (print_one_breakpoint): Likewise.
4686
4687 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4688
4689 * breakpoint.c (wrap_indent_at_field): New function.
4690 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
4691 Allocate ui_stream locally instead of using STB argument.
4692 (print_one_breakpoint_location): Update call.
4693 * ui-out.c (ui_out_query_field): New function.
4694 * ui-out.h (ui_out_query_field): Add prototype.
4695
4696 2011-02-28 Joel Brobecker <brobecker@adacore.com>
4697
4698 From Michael Snyder <msnyder@vmware.com>
4699 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
4700
4701 2011-02-27 Michael Snyder <msnyder@vmware.com>
4702
4703 * objc-lang.c (selectors_info): Prevent string overrun.
4704
4705 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
4706 error in strncpy.
4707
4708 * symtab.c (rbreak_command): Move variable 'file_name' to
4709 outer scope.
4710
4711 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
4712 param with a local variable of the same name.
4713
4714 2011-02-27 Michael Snyder <msnyder@vmware.com>
4715
4716 * value.c (value_from_history_ref): New function.
4717 * value.h (value_from_history_ref): Export.
4718 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
4719 to parse value history references.
4720 * cli/cli-utils.h (get_number_trailer): Update comment.
4721
4722 2011-02-27 Michael Snyder <msnyder@vmware.com>
4723
4724 * inferior.c (detach_inferior_command): Use get_number_or_range.
4725 (kill_inferior_command): Ditto.
4726 (remove_inferior_command): Ditto.
4727 (initialize_inferiors): Make command names plural.
4728 Update help strings.
4729
4730 2011-02-27 Michael Snyder <msnyder@vmware.com>
4731
4732 * darwin-nat-info.c: Fix comment typo.
4733 * dwarf2expr.h: Ditto.
4734 * fbsd-nat.c: Ditto.
4735 * fbsd-nat.h: Ditto.
4736 * frame-unwind.h: Ditto.
4737 * frame.h: Ditto.
4738 * hppa-hpux-tdep.c: Ditto.
4739 * i386-linux-nat.c: Ditto.
4740 * linux-nat.c: Ditto.
4741 * nbsd-nat.c: Ditto.
4742 * nbsd-nat.h: Ditto.
4743 * ppc-linux-tdep.c: Ditto.
4744 * serial.c: Ditto.
4745 * ui-file.h: Ditto.
4746 * tui/tui-winsource.c: Ditto.
4747
4748 2011-02-26 Michael Snyder <msnyder@vmware.com>
4749
4750 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
4751
4752 * maint.c (maintenance_do_deprecate): Plug a memory leak.
4753
4754 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
4755 with a local variable of the same name.
4756
4757 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
4758 param with a local variable of the same name.
4759 (i387_supply_xsave): Ditto.
4760
4761 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
4762 that it does not shadow a function parameter.
4763
4764 * i386-nat.c (i386_length_and_rw_bits): Document that case
4765 statement is meant to fall through.
4766
4767 * expprint.c (dump_subexp_body_standard): Document that case
4768 statement is meant to fall through.
4769
4770 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
4771 dead if statement. Condition can't be false.
4772
4773 2011-02-25 Michael Snyder <msnyder@vmware.com>
4774
4775 * arm-tdep.c: Fix typos in comments.
4776 * bsd-uthread.c: Ditto.
4777 * completer.c: Ditto.
4778 * corelow.c: Ditto.
4779 * cp-namespace.c: Ditto.
4780 * cp-support.c: Ditto.
4781 * cris-tdep.c: Ditto.
4782 * dbxread.c: Ditto.
4783 * dwarf2read.c: Ditto.
4784 * frame.h: Ditto.
4785 * gdbtypes.h: Ditto.
4786 * inferior.h: Ditto.
4787 * mdebugread.c: Ditto.
4788 * mips-tdep.c: Ditto.
4789 * ppc-linux-nat.c: Ditto.
4790 * ppc-linux-tdep.c: Ditto.
4791 * printcmd.c: Ditto.
4792 * sol-thread.c: Ditto.
4793 * solib-frv.c: Ditto.
4794 * solist.h: Ditto.
4795 * sparc64-tdep.c: Ditto.
4796 * spu-tdep.c: Ditto.
4797 * stabsread.c: Ditto.
4798 * symfile.c: Ditto.
4799 * valops.c: Ditto.
4800 * varobj.c: Ditto.
4801 * vax-nat.c: Ditto.
4802 * python/py-block.c: Ditto.
4803 * python/py-symbol.c: Ditto.
4804 * python/py-symtab.c: Ditto.
4805 * python/py-value.c: Ditto.
4806 * tui/tui-win.c: Ditto.
4807
4808 2011-02-25 Michael Snyder <msnyder@vmware.com>
4809
4810 * inferior.c (print_inferior): Accept a string instead of an int
4811 for requested_inferiors, and use get_number_or_range to parse it.
4812 (info_inferiors_command): Pass args string to print_inferior.
4813 (initialize_inferiors): Change help string for info inferiors.
4814 * inferior.h (print_inferior): Export prototype change.
4815
4816 2011-02-25 Tom Tromey <tromey@redhat.com>
4817
4818 * common/ax.def (invalid2): Set to 0x31.
4819
4820 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4821
4822 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
4823 L and plongest.
4824 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
4825 use L and plongest.
4826 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
4827
4828 2011-02-24 Michael Snyder <msnyder@vmware.com>
4829
4830 * Makefile.in (clean): Make clean should remove generated files
4831 observer.h and observer.inc.
4832
4833 2011-02-24 Joel Brobecker <brobecker@adacore.com>
4834
4835 Revert the following patch (not approved yet):
4836 2011-02-21 Hui Zhu <teawater@gmail.com>
4837 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4838 * ax-gdb.c (gen_printf_expr_callback): New function.
4839 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4840 * ax-general.c (ax_memcpy): New function.
4841 (ax_print): Handle "printf".
4842 (ax_reqs): Ditto.
4843 * ax.h (ax_memcpy): Forward declare.
4844 * common/ax.def (invalid2): Removed.
4845 (printf): New entry.
4846 * printcmd.c (printcmd.h): New include.
4847 (string_printf): New function.
4848 (ui_printf): Removed.
4849 (printf_command): Remove static. Call string_printf.
4850 (eval_command): Call string_printf.
4851 * printcmd.h: New file.
4852 * tracepoint.c (validate_actionline,
4853 encode_actions_1): handle printf_command.
4854
4855 2011-02-23 Tom Tromey <tromey@redhat.com>
4856
4857 * ax-general.c (ax_pick): Add missing newline.
4858
4859 2011-02-23 Michael Snyder <msnyder@vmware.com>
4860
4861 * breakpoint.c (breakpoint_1): Change first argument from an int
4862 to a char pointer, so that the function now accepts a list of
4863 breakpoints rather than just one. Use new function
4864 'number_is_in_list' to implement.
4865 (breakpoints_info): Pass char * instead of int to breakpoint_1.
4866 (watchpoints_info): Ditto.
4867 (tracepoints_info): Ditto.
4868 (maintenance_info_breakpoints): Ditto.
4869 (_initialize_breakpoint): Update help strings to reflect the fact
4870 that these functions can now take more than one argument.
4871 * cli/cli-utils.c (number_is_in_list): New function.
4872 * cli/cli-utils.h (number_is_in_list): Export.
4873
4874 2011-02-23 Michael Snyder <msnyder@vmware.com>
4875
4876 * memattr.c (mem_enable_command): Use get_number_or_range.
4877 (mem_disable_command): Ditto.
4878 (mem_delete_command): Ditto.
4879 (_initialize_mem): Tweak usage message to reflect multiple
4880 arguments.
4881
4882 2011-02-22 Doug Evans <dje@google.com>
4883
4884 Add gdb.lookup_global_symbol python function.
4885 * NEWS: Add entry.
4886 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
4887 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
4888 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
4889
4890 2011-02-22 Tom Tromey <tromey@redhat.com>
4891
4892 * language.c (language_class_name_from_physname): Rename
4893 'curr_language' argument to 'lang'; use in body.
4894
4895 2011-02-22 Michael Snyder <msnyder@vmware.com>
4896
4897 * cli/cli-utils.c (number_is_in_list): Check for zero return.
4898
4899 2011-02-22 Pedro Alves <pedro@codesourcery.com>
4900
4901 * frame-unwind.h: Fix comment to mention the this frame, not the
4902 next.
4903
4904 2011-02-22 Tom Tromey <tromey@redhat.com>
4905
4906 * symfile.c (auto_solib_limit): Remove.
4907 * symfile.h (auto_solib_limit): Remove.
4908
4909 2011-02-22 Joel Brobecker <brobecker@adacore.com>
4910
4911 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
4912
4913 2011-02-21 Michael Snyder <msnyder@vmware.com>
4914
4915 * gdbthread.h (print_thread_info): Change prototype.
4916 * thread.c (print_thread_info): Accept char* instead of int for
4917 requested_threads argument. Use new function number_is_in_list
4918 to determine which threads to list.
4919 (info_threads_command): Pass char* to print_thread_info.
4920 * cli/cli-utils.c (number_is_in_list): New function.
4921 * cli/cli-utils.h (number_is_in_list): Export.
4922 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
4923 print_thread_info.
4924 (print_one_inferior): Ditto.
4925 (mi_cmd_list_thread_groups): Ditto.
4926
4927 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4928
4929 * common/Makefile.in (CFLAGS): New.
4930 (COMPILE): Add $(CFLAGS).
4931
4932 2011-02-21 Tom Tromey <tromey@redhat.com>
4933
4934 * breakpoint.c (catch_syscall_command_1): Fix typo.
4935
4936 2011-02-21 Tom Tromey <tromey@redhat.com>
4937
4938 * reverse.c: Include cli-utils.h.
4939 * printcmd.c: Include cli-utils.h.
4940 (string_printf): Use skip_spaces.
4941 * cli/cli-utils.h: New file.
4942 * cli/cli-utils.c: New file.
4943 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
4944 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
4945 * breakpoint.h (get_number, get_number_or_range): Move to
4946 cli-utils.h.
4947 * breakpoint.c: Include cli-utils.h.
4948 (get_number_trailer, get_number, get_number_or_range)
4949 (ep_skip_leading_whitespace): Move to cli-utils.c.
4950 (create_breakpoint_sal, find_condition_and_thread)
4951 (decode_static_tracepoint_spec, watch_command_1)
4952 (watch_maybe_just_location, ep_parse_optional_if_clause)
4953 (catch_fork_command_1, catch_exec_command_1)
4954 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
4955 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
4956 (SUBDIR_CLI_SRCS): Add cli-utils.c.
4957 (HFILES_NO_SRCDIR): Add cli-utils.h.
4958 (cli-utils.o): New target.
4959
4960 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4961
4962 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
4963 before calling discard_all_inferiors.
4964
4965 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
4966
4967 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
4968 (struct builtin_opencl_type): Remove.
4969 (builtin_opencl_type): Change return type to "struct type **".
4970 (lookup_opencl_vector_type): Update caller.
4971 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
4972 (build_opencl_types): Install plain array of "struct type *"
4973 instead of "struct builtin_opencl_type".
4974
4975 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4976 Ulrich Weigand <uweigand@de.ibm.com>
4977
4978 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
4979 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
4980 (struct arm_linux_hwbp_cap): New type.
4981 (arm_linux_get_hwbp_cap): New function.
4982 (arm_linux_get_hw_breakpoint_count): Likewise.
4983 (arm_linux_get_hw_watchpoint_count): Likewise.
4984 (arm_linux_can_use_hw_breakpoint): Likewise.
4985 (arm_hwbp_type): New type.
4986 (arm_hwbp_control_t): Likewise.
4987 (struct arm_linux_hw_breakpoint): Likewise.
4988 (struct arm_linux_thread_points): Likewise.
4989 (arm_threads): New global variable.
4990 (arm_linux_find_breakpoints_by_tid): New function.
4991 (arm_hwbp_control_initialize): Likewise.
4992 (arm_hwbp_control_is_enabled): Likewise.
4993 (arm_hwbp_control_disable): Likewise.
4994 (arm_linux_hw_breakpoint_initialize): Likewise.
4995 (arm_linux_get_hwbp_type): Likewise.
4996 (arm_linux_hw_watchpoint_initialize): Likewise.
4997 (arm_linux_hw_breakpoint_equal): Likewise.
4998 (arm_linux_insert_hw_breakpoint1): Likewise.
4999 (arm_linux_remove_hw_breakpoint1): Likewise.
5000 (arm_linux_insert_hw_breakpoint): Likewise.
5001 (arm_linux_remove_hw_breakpoint): Likewise.
5002 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
5003 (arm_linux_insert_watchpoint): Likewise.
5004 (arm_linux_remove_watchpoint): Likewise.
5005 (arm_linux_stopped_data_address): Likewise.
5006 (arm_linux_stopped_by_watchpoint): Likewise.
5007 (arm_linux_watchpoint_addr_within_range): Likewise.
5008 (arm_linux_new_thread): Likewise.
5009 (arm_linux_thread_exit): Likewise.
5010 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
5011 related target callbacks. Register arm_linux_new_thread and
5012 arm_linux_thread_exit.
5013 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
5014 * arm-tdep.c (arm_pc_is_thumb): Make global.
5015 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
5016
5017 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
5018
5019 * breakpoint.c (update_watchpoint): Do not attempt to recreate
5020 per-frame locations while within a function epilogue.
5021
5022 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
5023
5024 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
5025 to GNU coding standards.
5026
5027 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
5028
5029 Allow use of mingw native on Windows 95 OS.
5030 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
5031 (ser_windows_close): Only call CancelIo if function exists.
5032 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
5033 to check for existence of CancelIo function in kernel32 DLL.
5034
5035 2011-02-21 Hui Zhu <teawater@gmail.com>
5036
5037 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
5038 * ax-gdb.c (gen_printf_expr_callback): New function.
5039 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
5040 * ax-general.c (ax_memcpy): New function.
5041 (ax_print): Handle "printf".
5042 (ax_reqs): Ditto.
5043 * ax.h (ax_memcpy): Forward declare.
5044 * common/ax.def (invalid2): Removed.
5045 (printf): New entry.
5046 * printcmd.c (printcmd.h): New include.
5047 (string_printf): New function.
5048 (ui_printf): Removed.
5049 (printf_command): Remove static. Call string_printf.
5050 (eval_command): Call string_printf.
5051 * printcmd.h: New file.
5052 * tracepoint.c (validate_actionline,
5053 encode_actions_1): handle printf_command.
5054
5055 2011-02-19 Michael Snyder <msnyder@vmware.com>
5056
5057 * reverse.c (delete_one_bookmark): Argument is now bookmark
5058 id rather than pointer to bookmark struct.
5059 (delete_bookmark_command): Use get_number_or_range.
5060 (goto_bookmark_command): Parse with get_number instead of strtoul.
5061 (bookmark_1): New function. Print info for one bookmark.
5062 (bookmarks_info): Use get_number_or_range and bookmark_1.
5063
5064 2011-02-18 Michael Snyder <msnyder@vmware.com>
5065
5066 * thread.c (info_threads_command): Re-implement using
5067 get_number_or_range.
5068 (thread_apply_command): Ditto.
5069
5070 2011-02-18 Tom Tromey <tromey@redhat.com>
5071
5072 * common/ax.def: New file.
5073 * ax.h (enum agent_op): Use ax.def.
5074 * ax-general.c (aop_map): Use ax.def.
5075
5076 2011-02-18 Tom Tromey <tromey@redhat.com>
5077
5078 * ax-general.c (aop_map): Add pick and rot.
5079 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
5080 <DW_OP_rot>: Implement.
5081 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
5082 (ax_pick): Declare.
5083 * ax-general.c (ax_pick): New function.
5084
5085 2011-02-18 Tom Tromey <tromey@redhat.com>
5086
5087 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
5088
5089 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5090 Tom Tromey <tromey@redhat.com>
5091
5092 * cp-support.c (make_symbol_overload_list_namespace): Do not call
5093 make_symbol_overload_list_block with NULL BLOCK.
5094 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
5095
5096 2011-02-18 Pedro Alves <pedro@codesourcery.com>
5097
5098 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
5099 * breakpoint.h (get_number_or_range): Declare.
5100 * printcmd.c (ALL_DISPLAYS): Declare.
5101 (delete_display): Reimplement taking a display pointer.
5102 (undisplay_command): Accept a range of displays to delete, using
5103 get_number_or_range.
5104
5105 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5106
5107 * c-valprint.c (c_val_print): Add embedded_offset to address
5108 for arrays of unspecified length.
5109 * p-valprint.c (pascal_val_print): Likewise.
5110
5111 2011-02-18 Yao Qi <yao@codesourcery.com>
5112
5113 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
5114 (arm_process_displaced_insn): .. here. Remove parameter INSN.
5115 (thumb_process_displaced_insn): New.
5116 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
5117 call to arm_process_displaced_insn.
5118 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
5119
5120 2011-02-17 Tom Tromey <tromey@redhat.com>
5121
5122 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
5123 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
5124 compile_dwarf_to_ax. No longer static. Call
5125 dwarf2_compile_cfa_to_ax.
5126 (locexpr_tracepoint_var_ref): Update.
5127 (loclist_tracepoint_var_ref): Update.
5128 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
5129 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
5130 argument; add 'gdbarch' and 'pc'.
5131 (dwarf2_compile_cfa_to_ax): New function.
5132 (dwarf2_frame_cache): Update.
5133
5134 2011-02-17 Joel Brobecker <brobecker@adacore.com>
5135
5136 * ada-lang.c (ada_type_of_array): Fix the size of the array
5137 in the case of an unconstrained packed array.
5138
5139 2011-02-17 Yao Qi <yao@codesourcery.com>
5140
5141 * common/Makefile.in: Add more targets for make.
5142
5143 2011-02-16 Tom Tromey <tromey@redhat.com>
5144
5145 * dwarf2loc.c (unimplemented): Fix typo.
5146
5147 2011-02-16 Tom Tromey <tromey@redhat.com>
5148
5149 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
5150 (compile_dwarf_to_ax) <default>: Use unimplemented.
5151 <DW_OP_deref>: Update.
5152 (disassemble_dwarf_expression): Update.
5153 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
5154 (decode_locdesc): Update.
5155 * dwarf2expr.h (dwarf_stack_op_name): Update.
5156
5157 2011-02-16 Tom Tromey <tromey@redhat.com>
5158
5159 * ax.h (struct aop_map) <name>: Now const.
5160
5161 2011-02-16 Tom Tromey <tromey@redhat.com>
5162
5163 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
5164 than axs_rvalue.
5165
5166 2011-02-16 Yao Qi <yao@codesourcery.com>
5167
5168 * infrun.c (get_displaced_step_closure_by_addr): New.
5169 * inferior.h: Declare it.
5170 * arm-tdep.c: (arm_pc_is_thumb): Call
5171 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
5172 returns non-NULL.
5173
5174 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5175 Jan Kratochvil <jan.kratochvil@redhat.com>
5176
5177 gdb/
5178 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
5179
5180 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5181 Jan Kratochvil <jan.kratochvil@redhat.com>
5182
5183 * value.c (value_contents_copy_raw): Extend describing comment.
5184 Assert that the destination contents we're overwriting are wholly
5185 available.
5186 (value_contents_copy): Extend describing comment.
5187
5188 2011-02-16 Pedro Alves <pedro@codesourcery.com>
5189 Jan Kratochvil <jan.kratochvil@redhat.com>
5190
5191 * value.c (value_available_contents_eq): Remove redundant local
5192 variables. Fix available contents comparision.
5193 * value.h (value_available_contents_eq): Extend describing
5194 comment.
5195
5196 2011-02-16 Yao Qi <yao@codesourcery.com>
5197
5198 * thread.c (info_threads_command): Add missing i18n markup and remove
5199 trailing newline.
5200
5201 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
5202
5203 * breakpoint.c (longjmp_names): New variable.
5204 (struct breakpoint_objfile_data): New type.
5205 (breakpoint_objfile_key): New variable.
5206 (msym_not_found): New variable.
5207 (msym_not_found_p): New predicate.
5208 (get_breakpoint_objfile_data): New function.
5209 (create_overlay_event_breakpoint): Check per-objfile cache for
5210 symbols first.
5211 (create_longjmp_master_breakpoint): Likewise.
5212 (create_std_terminate_master_breakpoint): Likewise.
5213 (create_exception_master_breakpoint): Likewise.
5214 (_initialize_breakpoint): Register per-objfile data key.
5215
5216 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
5217
5218 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
5219 parameter value.
5220 (create_longjmp_master_breakpoint): Loop over longjmp names.
5221 (create_std_terminate_master_breakpoint): Const-propagate parameter
5222 value.
5223 (update_breakpoints_after_exec): Adjust.
5224 (breakpoint_re_set): Adjust.
5225
5226 2011-02-15 Michael Snyder <msnyder@vmware.com>
5227
5228 * thread.c (info_threads_command): Process arg as thread id,
5229 or list of thread ids.
5230 (thread_find_command): New command.
5231 (_initialize_thread): Document argument for info threads.
5232 Document 'thread find' command.
5233 * NEWS: Document new command "thread find".
5234
5235 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5236
5237 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
5238 * aclocal.m4: Regenerated with aclocal-1.11.1.
5239 * common/configure: Regenerate with autoconf-2.64.
5240
5241 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
5242
5243 * opencl-lang.c (build_opencl_types): Set the size of the built-in
5244 bool data type to a size of one byte.
5245
5246 2011-02-15 Pedro Alves <pedro@codesourcery.com>
5247 Jan Kratochvil <jan.kratochvil@redhat.com>
5248
5249 * target.c (memory_xfer_live_readonly_partial): Document where to
5250 look for interface description.
5251
5252 2011-02-15 Yao Qi <yao@codesourcery.com>
5253
5254 PR tdep/12352
5255 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
5256 order to store PC value on stack instead of text section.
5257
5258 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
5259
5260 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
5261 the EFP register set size.
5262 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
5263 data from the VMX register.
5264 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
5265 and write data from/to the VMX register.
5266
5267 2011-02-14 Michael Snyder <msnyder@vmware.com>
5268
5269 * command.h (enum command_class): New class 'no_set_class', for
5270 "show" commands without a corresponding "set" command.
5271 * value.c (_initialize_values): Use 'no_set_class' for "show values".
5272 * copying.c (_initialize_copying): Ditto for "show copying" and
5273 "show warranty".
5274 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
5275 "show version".
5276 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
5277 which there is no corresponding "set" command (eg. "show copying").
5278
5279 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5280 Jan Kratochvil <jan.kratochvil@redhat.com>
5281
5282 * exec.c (section_table_available_memory): Change `len' parameter
5283 type to ULONGEST.
5284 * exec.h (section_table_available_memory): Ditto.
5285 * value.h (read_value_memory): Rename the `offset' parameter to
5286 `embedded_offset'.
5287
5288 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5289 Jan Kratochvil <jan.kratochvil@redhat.com>
5290
5291 * memrange.c (compare_mem_ranges): Mention sort order in
5292 describing comment.
5293 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
5294 * tracepoint.c (traceframe_available_memory): Extend comment to
5295 mention what happens to RESULT when the target does not support
5296 the query.
5297
5298 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5299 Jan Kratochvil <jan.kratochvil@redhat.com>
5300
5301 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
5302 range.
5303
5304 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5305
5306 * value.c (value_bits_valid, value_bits_synthetic_pointer):
5307 No longer handle NULL values.
5308
5309 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5310
5311 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
5312 * value.c: Include "exceptions.h".
5313 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
5314 generic error.
5315 * cp-abi.c: Include gdb_assert.h.
5316 (baseclass_offset): Add `embedded_offset' and `val' parameters.
5317 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
5318 errors.
5319 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
5320 parameters. No longer returns -1 on error.
5321 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
5322 `val' parameters.
5323 * cp-valprint.c: Include exceptions.h.
5324 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
5325 the baseclass_offset. Handle unavailable base classes. Use
5326 val_print_invalid_address.
5327 * p-valprint.c: Include exceptions.h.
5328 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
5329 when fetching the baseclass_offset. No longer expect
5330 baseclass_offset returning -1. Handle unavailable base classes.
5331 Use val_print_invalid_address.
5332 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
5333 `valaddr' parameter, and change its type to gdb_byte pointer. Add
5334 `embedded_offset' and `val' parameters. Adjust.
5335 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
5336 parameter, and change its type to gdb_byte pointer. Add
5337 `embedded_offset' and `val' parameters. Adjust. No longer expect
5338 baseclass_offset returning -1.
5339 (value_dynamic_cast): Use value_contents_for_printing rather than
5340 value_contents. Adjust.
5341 (search_struct_field): No longer expect baseclass_offset returning
5342 -1.
5343 (search_struct_method): If reading memory from the target is
5344 necessary, wrap it in a new value to pass to baseclass_offset. No
5345 longer expect baseclass_offset returning -1.
5346 (find_method_list): No longer expect baseclass_offset returning
5347 -1. Use value_contents_for_printing rather than value_contents.
5348 * valprint.c (val_print_invalid_address): New function.
5349 * valprint.h (val_print_invalid_address): Declare.
5350 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
5351 and `val' parameters. No longer expect baseclass_offset returning
5352 -1. Adjust.
5353 * gnu-v2-abi.c: Include "exceptions.h".
5354 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
5355 parameters. Handle unavailable memory. Recurse through
5356 gnuv2_baseclass_offset directly, rather than through
5357 baseclass_offset. No longer returns -1 on not found, instead
5358 throw an error.
5359 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
5360 `val' parameters. Adjust.
5361
5362 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5363
5364 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
5365 almost but not quite adjacent.
5366
5367 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5368
5369 * value.h (value_entirely_available): Declare.
5370 * value.c (value_entirely_available): New function.
5371 * c-valprint.c (c_value_print): Don't try fetching the pointer's
5372 real type if the pointer is unavailable.
5373
5374 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5375
5376 * valops.c (value_repeat): Use read_value_memory instead of
5377 read_memory.
5378
5379 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5380
5381 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
5382 * value.c (value_contents_copy_raw, value_contents_copy): New
5383 functions.
5384 (value_primitive_field): Use value_contents_copy_raw instead of
5385 memcpy.
5386 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
5387 memcpy.
5388 (value_array, value_slice): Ditto.
5389 * valarith.c (value_subscripted_rvalue): Use
5390 value_contents_copy_raw instead of memcpy.
5391
5392 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5393
5394 <unavailable> references.
5395
5396 * valops.c (get_value_at): Use value_from_contents_and_address,
5397 avoiding read_memory.
5398
5399 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5400
5401 * c-valprint.c (c_val_print): Print a string with unavailable
5402 contents as an array.
5403
5404 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5405
5406 * value.h (unpack_bits_as_long): Delete declaration.
5407 (unpack_value_bits_as_long): Declare.
5408 (unpack_value_field_as_long): Declare.
5409 (value_field_bitfield): Declare.
5410 * value.c (unpack_bits_as_long): Rename to...
5411 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
5412 value parameters. Return the extracted result in a new output
5413 parameter. If the value contents are unavailable, return false,
5414 otherwise return true.
5415 (unpack_value_bits_as_long): New.
5416 (unpack_field_as_long): Rename to...
5417 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
5418 Add embedded_offset and value parameters. Return the extracted
5419 result in a new output parameter. If the value contents are
5420 unavailable, return false, otherwise return true.
5421 (unpack_value_field_as_long): New.
5422 (unpack_field_as_long_1): New.
5423 (unpack_field_as_long): Reimplement as wrapper around
5424 unpack_value_field_as_long_1.
5425 (value_field_bitfield): New function.
5426 * valops.c (value_fetch_lazy): When fetching a bitfield, use
5427 unpack_value_bits_as_long. Mark the value as unavailable, if it
5428 is unavailable.
5429 * jv-valprint.c (java_print_value_fields): Use
5430 value_field_bitfield.
5431 * p-valprint.c (pascal_object_print_value_fields): Use
5432 value_field_bitfield.
5433 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
5434
5435 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5436
5437 * value.c (get_internalvar_integer): Also return the int value of
5438 TYPE_CODE_INT INTERNALVAR_VALUE values.
5439 (set_internalvar): Don't special case TYPE_CODE_INT.
5440
5441 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5442
5443 * value.c (struct internalvar) <enum internalvar_kind>: Remove
5444 INTERNALVAR_POINTER.
5445 <pointer>: Delete.
5446 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
5447 (set_internalvar): Remove special TYPE_CODE_PTR handling.
5448 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
5449
5450 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5451
5452 * value.h (value_available_contents_eq): Declare.
5453 * value.c (find_first_range_overlap): New function.
5454 (value_available_contents_eq): New function.
5455 * valprint.c (val_print_array_elements): Use
5456 value_available_contents_eq.
5457 * ada-valprint.c (val_print_packed_array_elements): Use
5458 value_available_contents_eq.
5459 * jv-valprint.c (java_value_print): Use
5460 value_available_contents_eq.
5461
5462 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5463
5464 * target.c (target_read_live_memory): New function.
5465 (memory_xfer_live_readonly_partial): New.
5466 (memory_xfer_partial): If reading from a traceframe, fallback to
5467 reading unavailable read-only memory from read-only regions of
5468 live target memory.
5469 * tracepoint.c (disconnect_tracing): Adjust.
5470 (set_current_traceframe): New, factored out from
5471 set_traceframe_number.
5472 (set_traceframe_number): Reimplement to only change the traceframe
5473 number on the GDB side.
5474 (do_restore_current_traceframe_cleanup): Adjust.
5475 (make_cleanup_restore_traceframe_number): New.
5476 (cur_traceframe_number): New global.
5477 (tfile_open): Set cur_traceframe_number to no traceframe.
5478 (set_tfile_traceframe): New function.
5479 (tfile_trace_find): If looking up a traceframe using any method
5480 other than by number, make sure the current tfile traceframe
5481 matches gdb's current traceframe. Update the current tfile
5482 traceframe if the lookup succeeded.
5483 (tfile_fetch_registers, tfile_xfer_partial)
5484 (tfile_get_trace_state_variable_value): Make sure the remote
5485 traceframe matches gdb's current traceframe.
5486 * remote.c (remote_traceframe_number): New global.
5487 (remote_open_1): Set it to -1.
5488 (set_remote_traceframe): New function.
5489 (remote_fetch_registers, remote_store_registers)
5490 (remote_xfer_memory, remote_xfer_partial)
5491 (remote_get_trace_state_variable_value): Make sure the remote
5492 traceframe matches gdb's current traceframe.
5493 (remote_trace_find): If looking up a traceframe using any method
5494 other than by number, make sure the current remote traceframe
5495 matches gdb's current traceframe. Update the current remote
5496 traceframe if the lookup succeeded.
5497 * infrun.c (fetch_inferior_event): Adjust.
5498 * tracepoint.h (set_current_traceframe): Declare.
5499 (get_traceframe_number, set_traceframe_number): Add describing
5500 comments.
5501
5502 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5503
5504 Mark pieces of values as unavailable if the corresponding memory
5505 is unavailable.
5506
5507 * valops.c: Include tracepoint.h.
5508 (value_fetch_lazy): Use read_value_memory.
5509 (read_value_memory): New.
5510 * value.h (read_value_memory): Declare.
5511 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
5512 * exec.c (section_table_available_memory): New function.
5513 * exec.h (section_table_available_memory): Declare.
5514
5515 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5516
5517 * Makefile.in (SFILES): Add memrange.c.
5518 (HFILES_NO_SRCDIR): Add memrange.h.
5519 (COMMON_OBS): Add memrange.o.
5520 * memrange.c: New file.
5521 * memrange.h: New file.
5522 * tracepoint.c: Include memrange.h.
5523 (struct mem_range): Delete.
5524 (mem_range_s): Delete.
5525 (traceframe_available_memory): New function.
5526 * tracepoint.h (traceframe_available_memory): Declare.
5527
5528 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5529
5530 * target.h (struct traceframe_info): Forward declare.
5531 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
5532 (struct target_ops) <to_traceframe_info>: New field.
5533 (target_traceframe_info): New.
5534 * target.c (update_current_target): Inherit and default
5535 to_traceframe_info.
5536 * remote.c (PACKET_qXfer_traceframe_info): New.
5537 (remote_protocol_features): Register qXfer:traceframe-info:read.
5538 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
5539 (remote_traceframe_info): New.
5540 (init_remote_ops): Install it.
5541 (_initialize_remote): Install "set/show remote traceframe-info"
5542 commands.
5543 * tracepoint.h (parse_traceframe_info): Declare.
5544 * tracepoint.c (struct mem_range): New.
5545 (mem_range_s): New typedef.
5546 (struct traceframe_info): New.
5547 (traceframe_info): New global.
5548 (free_traceframe_info): New function.
5549 (clear_traceframe_info): New function.
5550 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
5551 info.
5552 (build_traceframe_info): New function.
5553 (tfile_traceframe_info): New function.
5554 (init_tfile_ops): Install tfile_traceframe_info.
5555 (traceframe_info_start_memory, free_result): New functions.
5556 (memory_attributes, traceframe_info_elements): New globals.
5557 (parse_traceframe_info, get_traceframe_info): New functions.
5558 * features/traceframe-info.dtd: New file.
5559 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
5560
5561 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5562
5563 Base support for <unavailable> value contents.
5564
5565 * value.h (value_bytes_available): Declare.
5566 (mark_value_bytes_unavailable): Declare.
5567 * value.c (struct range): New struct.
5568 (range_s): New typedef.
5569 (ranges_overlap): New function.
5570 (range_lessthan): New function.
5571 (ranges_contain_p): New function.
5572 (struct value) <unavailable>: New field.
5573 (value_bytes_available): New function.
5574 (mark_value_bytes_unavailable): New function.
5575 (require_not_optimized_out): Constify parameter.
5576 (require_available): New function.
5577 (value_contents_all, value_contents): Require all bytes be
5578 available.
5579 (value_free): Free `unavailable'.
5580 (value_copy): Copy `unavailable'.
5581 * valprint.h (val_print_unavailable): Declare.
5582 * valprint.c (valprint_check_validity): Rename `offset' parameter
5583 to `embedded_offset'. If printing a scalar, check whether the
5584 value chunk is available.
5585 (val_print_unavailable): New.
5586 (val_print_scalar_formatted): Check whether the value is
5587 available.
5588 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
5589 pretty-printing unavailable values.
5590
5591 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5592
5593 Fix const/volatile qualifiers of C++ types, PR c++/12328.
5594 * c-typeprint.c (c_type_print_args): Update the function comment. New
5595 variable param_type, initialize it. Remove const/volatile qualifiers
5596 for language_cplus and !show_artificial. Use param_type.
5597
5598 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5599
5600 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
5601 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
5602 * symtab.h (struct symtab) <next>: Comment extension.
5603
5604 2011-02-12 Yao Qi <yao@codesourcery.com>
5605
5606 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
5607
5608 2011-02-11 Yao Qi <yao@codesourcery.com>
5609
5610 * common/Makefile.in: Add copyright header.
5611
5612 2011-02-11 Pedro Alves <pedro@codesourcery.com>
5613
5614 * infrun.c (proceed): Move switching out and in of tfind mode from
5615 here ...
5616 (fetch_inferior_event): ... to here.
5617
5618 2011-02-11 Yao Qi <yao@codesourcery.com>
5619
5620 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5621 libcommon.a.
5622 * configure.ac: Add common to sub dir.
5623 * configure: Regenerate.
5624
5625 2011-02-11 Yao Qi <yao@codesourcery.com>
5626
5627 Build libcommon.a.
5628
5629 * common/Makefile.in: New.
5630 * common/configure.ac: New.
5631 * common/aclocal.m4: New.
5632 * common/configure: Generate.
5633
5634 2011-02-10 Pedro Alves <pedro@codesourcery.com>
5635
5636 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
5637 side of the parenthesis.
5638
5639 Merge from GCC:
5640 2010-07-13 Jakub Jelinek <jakub@redhat.com>
5641 * vec.h (VEC_block_remove): Fix comment.
5642
5643 2011-02-08 Michael Snyder <msnyder@vmware.com>
5644
5645 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
5646
5647 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5648
5649 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
5650 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
5651 psubd and paddd.
5652
5653 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5654
5655 PR 12361.
5656 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
5657 phsubsw.
5658 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
5659 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
5660
5661 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5662
5663 * dwarf2read.c (read_subroutine_type): Set special calling
5664 convention flag for functions compiled by IBM XL C for OpenCL.
5665 * ppc-sysv-tdep.c: Include "dwarf2.h"
5666 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
5667 calling convention.
5668 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
5669 IBM OpenCL vector types calling convention.
5670 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
5671 (ppc_sysv_abi_broken_return_value): Likewise.
5672 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
5673 types calling convention.
5674 (ppc64_sysv_abi_return_value): Likewise.
5675 * spu-tdep.c: Include "dwarf2.h"
5676 (spu_return_value): Implement IBM OpenCL vector types calling
5677 convention.
5678
5679 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5680
5681 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
5682 correct ABI for AltiVec vector arguments.
5683
5684 2011-02-07 Pedro Alves <pedro@codesourcery.com>
5685
5686 * valprint.c (val_print): Extend comment.
5687 * ada-valprint.c (ada_valprint): Rewrite comment deferring
5688 interface explanation to val_print.
5689 (ada_val_print_array): Adjust comment to current interface.
5690 (print_field_values): Adjust comment to current interface.
5691 * c-valprint.c (c_val_print): Rewrite comment deferring interface
5692 explanation to val_print.
5693 * f-valprint.c (f_val_print): Ditto.
5694 * jv-valprint.c (java_val_print): Ditto.
5695 * m2-valprint.c (m2_val_print): Ditto.
5696 * p-valprint.c (pascal_val_print): Ditto.
5697
5698 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
5699
5700 * breakpoint.c (parse_breakpoint_sals): Fix description.
5701
5702 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
5703 Oguz Kayral <oguzkayral@gmail.com>
5704
5705 * python/py-inferior.c (python_on_normal_stop): New function.
5706 (python_on_resume): New function.
5707 (python_inferior_exit): New function.
5708 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
5709 inferior_exit observers.
5710 * python/py-evtregistry.c: New file.
5711 * python/py-threadevent.c : New file.
5712 * python/py-event.c: New file.
5713 * python/py-evts.c: New file.
5714 * python/py-continueevent.c: New file.
5715 * python/py-bpevent.c: New file.
5716 * python/py-signalevent.c: New file.
5717 * python/py-exetiedevent.c: New file.
5718 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
5719 Move struct breakpoint_object from here...
5720 * python/python-internal.h: ... to here.
5721 * python/py-event.h: New file.
5722 * python/py-events.h: New file.
5723 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
5724 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
5725 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
5726 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
5727 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
5728 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
5729 Add build rules for all the above.
5730
5731 2011-02-04 Tom Tromey <tromey@redhat.com>
5732
5733 * dwarf2read.c (dwarf2_section_empty_p): New function.
5734 (dwarf2_read_section): Use dwarf2_section_empty_p.
5735 (dwarf2_section_size): New function.
5736 (dwarf2_get_section_info): Unconditionally read section.
5737 (dwarf2_read_index): Use dwarf2_section_empty_p.
5738 (partial_read_comp_unit_head): Use dwarf2_section_size.
5739 (dwarf2_symbol_mark_computed): Likewise.
5740
5741 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5742
5743 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
5744
5745 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5746
5747 * mips-linux-tdep.c: Include xml-syscall.h.
5748 (mips_linux_get_syscall_number): New function.
5749 (mips_linux_init_abi): Add calls to
5750 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
5751 * data-directory/Makefile.in (SYSCALLS_FILES): Add
5752 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
5753 * syscalls/mips-n32-linux.xml: New file.
5754 * syscalls/mips-n64-linux.xml: New file.
5755 * syscalls/mips-o32-linux.xml: New file.
5756
5757 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5758
5759 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
5760 Complain about inverted range entries.
5761 (dwarf2_record_block_ranges): Likewise.
5762
5763 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5764
5765 Fix some typos.
5766 * breakpoint.c (update_watchpoint): Fix name of the
5767 update_global_location_list function.
5768 (print_one_breakpoint): Fix typo.
5769 (_initialize_breakpoint): Remove extra space in hbreak help
5770 string.
5771 * breakpoint.h (struct bp_location) <length>: Fix field
5772 description.
5773
5774 2011-02-04 Pedro Alves <pedro@codesourcery.com>
5775
5776 * regcache.c (registers_changed_ptid): Don't explictly always
5777 clear `current_regcache'. Only clear current_thread_ptid and
5778 current_thread_arch when PTID matches. Only reinit the frame
5779 cache if PTID matches the current inferior_ptid. Move alloca(0)
5780 call to ...
5781 (registers_changed): ... here.
5782
5783 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
5784
5785 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
5786 starts with __stack_chk_guard as stack guard symbol.
5787
5788 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
5789
5790 * disasm.c (compare_lines): Handle the end of sequence markers
5791 within the line table to better support disassembling over
5792 compilation unit boundaries.
5793
5794 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5795
5796 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
5797 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
5798 implementation even if no symbols are available.
5799 (thumb_analyze_prologue): Update call to skip_prologue_function.
5800 (arm_analyze_prologue): Likewise.
5801
5802 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5803
5804 * arm-tdep.c: Include "observer.h".
5805 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
5806 (arm_exidx_data_key): New static variable.
5807 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
5808 (struct arm_exidx_data): Likewise.
5809 (arm_exidx_data_free): New function.
5810 (arm_compare_exidx_entries): Likewise.
5811 (arm_obj_section_from_vma): Likewise.
5812 (arm_exidx_new_objfile): Likewise.
5813 (arm_find_exidx_entry): Likewise.
5814 (arm_exidx_fill_cache): Likewise.
5815 (arm_exidx_unwind_sniffer): Likewise.
5816 (arm_exidx_unwind): New global variable.
5817 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
5818 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
5819 observer. Register arm_exidx_data_key as objfile data.
5820
5821 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5822
5823 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
5824 due to accessing uninitialized variable. Fix indentation.
5825
5826 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5827
5828 * c-valprint.c (c_value_print): When doing virtual base pointer
5829 adjustment, create a new value with adjusted contents rather than
5830 changing the contents of the value being printed (and getting it
5831 wrong).
5832
5833 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5834
5835 * xml-support.c (xml_find_attribute): New.
5836 (xinclude_start_include): Use it.
5837 * xml-support.h (xml_find_attribute): Declare.
5838 * memory-map.c (memory_map_start_memory)
5839 (memory_map_start_property): Use xml_find_attribute.
5840 * osdata.c (osdata_start_osdata, osdata_start_column): Use
5841 xml_find_attribute.
5842 * remote.c (start_thread): Use xml_find_attribute.
5843 * solib-target.c (library_list_start_segment)
5844 (library_list_start_section, library_list_start_library)
5845 (library_list_start_list): Use xml_find_attribute.
5846 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
5847 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
5848 (tdesc_start_field): Use xml_find_attribute.
5849
5850 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
5851
5852 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
5853 (BUILD_OCL_VTYPES): Update.
5854
5855 2011-02-02 Joel Brobecker <brobecker@adacore.com>
5856
5857 * configure.ac: Work around non-GNU sed limitation when computing
5858 python version number.
5859 * configure: Regenerate.
5860
5861 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5862
5863 Fix debug printing of TYPE_INSTANCE.
5864 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
5865 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
5866
5867 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5868
5869 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
5870 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
5871 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
5872 * ada-operator.inc: Rename the file to ...
5873 * ada-operator.def: ... here, wrap all the entries by macro OP.
5874 * expprint.c (op_name_standard): Remove all the entries. Include
5875 "std-operator.def" instead.
5876 * expression.h (enum exp_opcode): Include "std-operator.def" and
5877 "ada-operator.def". Move all the entries ...
5878 * std-operator.def: ... here, wrap all the entries by macro OP.
5879
5880 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
5881
5882 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
5883 * breakpoint.c (remove_jit_event_breakpoints): New function.
5884 * jit.c (jit_descriptor_addr): Delete.
5885 (registering_code): Delete.
5886 (clear_int): Delete.
5887 (jit_inferior_data): New variable.
5888 (struct jit_inferior_data): New type.
5889 (get_jit_inferior_data): New function.
5890 (jit_inferior_data_cleanup): New function.
5891 (jit_read_descriptor): Adjust.
5892 (jit_register_code): Adjust.
5893 (jit_breakpoint_re_set_internal): New function; move code here ...
5894 (jit_inferior_init): ... from here.
5895 (jit_breakpoint_re_set): Adjust.
5896 (jit_reset_inferior_data_and_breakpoints): New function.
5897 (jit_inferior_created_observer): Adjust.
5898 (jit_inferior_exit_hook): Adjust.
5899 (jit_executable_changed_observer): New function.
5900 (jit_event_handler): Adjust.
5901 (_initialize_jit): Adjust.
5902
5903 2011-01-31 Michael Snyder <msnyder@vmware.com>
5904
5905 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
5906 line.
5907
5908 2011-01-31 Tom Tromey <tromey@redhat.com>
5909
5910 PR python/12216:
5911 * python/python.c (execute_gdb_command): Call
5912 prevent_dont_repeat.
5913 * top.c (suppress_dont_repeat): New global.
5914 (dont_repeat): Use it.
5915 (prevent_dont_repeat): New function.
5916 * command.h (prevent_dont_repeat): Declare.
5917
5918 2011-01-31 Tom Tromey <tromey@redhat.com>
5919
5920 * infcmd.c (finish_backward): Use breakpoint_set_silent.
5921 * python/py-breakpoint.c (bppy_set_silent): Use
5922 breakpoint_set_silent.
5923 (bppy_set_thread): Use breakpoint_set_thread.
5924 (bppy_set_task): Use breakpoint_set_task.
5925 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
5926 (breakpoint_set_task): Declare.
5927 (make_breakpoint_silent): Remove.
5928 * breakpoint.c (breakpoint_set_silent): New function.
5929 (breakpoint_set_thread): Likewise.
5930 (breakpoint_set_task): Likewise.
5931 (make_breakpoint_silent): Remove.
5932
5933 2011-01-31 Tom Tromey <tromey@redhat.com>
5934
5935 * breakpoint.h (user_breakpoint_p): Declare.
5936 * breakpoint.c (user_breakpoint_p): New function.
5937 (breakpoint_1): Use it.
5938 (save_breakpoints): Likewise.
5939
5940 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5941
5942 * configure.ac: Add handling of Python distribution on Windows.
5943 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
5944 sysconfig variables are not defined, then do not use them.
5945 On Windows, if LIBPL is not defined, then use prefix + '/libs'
5946 instead. On Windows, return all paths using forward-slashes
5947 rather than backslashes.
5948
5949 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5950
5951 * configure.ac: Remove fallback behavior for building
5952 against Python. Remove tweaking of Python include path.
5953 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
5954 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
5955 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
5956 Always restore CPPFLAGS and LIBS after linking test.
5957 * configure: Regenerated.
5958 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
5959 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
5960 * python/python-internal.h: Adjust includes of Python .h files.
5961
5962 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5963
5964 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
5965 in error message.
5966
5967 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5968
5969 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
5970 value test.
5971
5972 2011-01-31 Yao Qi <yao@codesourcery.com>
5973
5974 * arm-linux-nat.c: Update calls to regcache_register_status
5975 instead of regcache_valid_p.
5976 * aix-thread.c: Likewise.
5977 * i386gnu-nat.c: Likewise.
5978
5979 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5980
5981 Fix crash.
5982 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
5983 touching TYPE_FIELD_ARTIFICIAL.
5984
5985 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
5986
5987 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
5988 Committers.
5989
5990 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5991
5992 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
5993 selected, don't try iterating over the traceframe's blocks.
5994 (tfile_has_stack): If there's no traceframe selected, then there's
5995 no stack.
5996 (tfile_has_registers): If there's no traceframe selected, then
5997 there's no registers.
5998
5999 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6000
6001 * target.c (memory_xfer_partial): No need to restore shadows if we
6002 haven't read anything.
6003
6004 2011-01-28 Pedro Alves <pedro@codesourcery.com>
6005
6006 * mips-tdep.c (mips_print_register): Use get_frame_register_value
6007 and val_print_scalar_formatted.
6008
6009 2011-01-27 Pedro Alves <pedro@codesourcery.com>
6010
6011 * tracepoint.c (tfile_read): New.
6012 (tfile_open): Use it.
6013 (tfile_get_traceframe_address): Use it.
6014 (tfile_trace_find): Use it.
6015 (walk_blocks_callback_func): New typedef.
6016 (match_blocktype): New function.
6017 (traceframe_walk_blocks): New function.
6018 (traceframe_find_block_type): New function.
6019 (tfile_fetch_registers, tfile_xfer_partial)
6020 (tfile_get_trace_state_variable_value): Use
6021 traceframe_find_block_type and tfile_read.
6022
6023 2011-01-26 Kevin Buettner <kevinb@redhat.com>
6024
6025 * remote-mips.c: Add internationalization mark ups. Remove
6026 trailing \n from already marked up strings.
6027
6028 2011-01-26 Tom Tromey <tromey@redhat.com>
6029
6030 * python/py-prettyprint.c (print_string_repr): Clear
6031 'addressprint' option when calling val_print_string.
6032 (print_children): Handle Val_pretty_default. Clear 'addressprint'
6033 option when calling val_print_string.
6034
6035 2011-01-26 Tom Tromey <tromey@redhat.com>
6036
6037 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
6038 GDB_PY_LL_ARG.
6039 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
6040 macros.
6041 (gdb_py_longest, gdb_py_ulongest): New typedefs.
6042 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
6043 (gdb_py_long_as_ulongest): New defines.
6044 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
6045 (gdb_py_int_as_long): Declare.
6046 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
6047 GDB_PY_LL_ARG, gdb_py_object_from_longest.
6048 (valpy_long): Add comment.
6049 * python/py-utils.c (get_addr_from_python): Use
6050 gdb_py_long_as_ulongest. Handle overflow properly.
6051 (gdb_py_object_from_longest): New function.
6052 (gdb_py_object_from_ulongest): Likewise.
6053 (gdb_py_int_as_long): Likewise.
6054 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
6055 * python/py-symtab.c (salpy_get_pc): Use
6056 gdb_py_long_from_ulongest.
6057 (salpy_get_line): Use PyInt_FromLong.
6058 * python/py-param.c (set_parameter_value): Use
6059 gdb_py_int_as_long.
6060 * python/py-lazy-string.c (stpy_get_address): Use
6061 gdb_py_long_from_ulongest.
6062 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
6063 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
6064 * python/py-breakpoint.c (bppy_set_thread): Use
6065 gdb_py_int_as_long.
6066 (bppy_set_task): Likewise.
6067 (bppy_set_ignore_count): Likewise.
6068 (bppy_set_hit_count): Likewise.
6069 * python/py-block.c (blpy_get_start): Use
6070 gdb_py_object_from_ulongest.
6071 (blpy_get_end): Likewise.
6072 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
6073
6074 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
6075
6076 PR/symtab 11766:
6077 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
6078 * gdb/solib.c (solib_read_symbols): Check for addr_low in
6079 equality test for objfile, initialize addr_low if needed.
6080
6081 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6082
6083 * tui/tui-regs.c (tui_register_format): Remove dead code.
6084
6085 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6086
6087 * printcmd.c (print_formatted): Use val_print_scalar_formatted
6088 instead of print_scalar_formatted.
6089 (print_scalar_formatted): Don't handle 's' format strings here,
6090 and add an assertion that we never see such format here.
6091 * valprint.h (val_print_scalar_formatted): Declare.
6092 * valprint.c (val_print_scalar_formatted): New.
6093 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
6094 instead of print_scalar_formatted.
6095 * jv-valprint.c (java_val_print): Ditto.
6096 * p-valprint.c (pascal_val_print): Ditto.
6097 * ada-valprint.c (ada_val_print_1): Ditto.
6098 * f-valprint.c (f_val_print): Ditto.
6099 * infcmd.c (registers_info): Ditto.
6100 * m2-valprint.c (m2_val_print): Ditto.
6101
6102 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6103
6104 * m2-valprint.c (print_unbounded_array): Pass
6105 value_contents_for_printing rather than value_contents, to
6106 m2_print_array_contents. Also pass in the value.
6107
6108 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6109
6110 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
6111 (save_gdb_index_command): Switch to .gdb_index version 4.
6112
6113 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6114
6115 * mi/mi-main.c (get_register): Use get_frame_register_value rather
6116 than frame_register, and always pass a valid value to val_print.
6117
6118 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6119
6120 Centralize printing "<optimized out>".
6121
6122 * valprint.h (val_print_optimized_out): Declare.
6123 * cp-valprint.c (cp_print_value_fields): Use
6124 val_print_optimized_out.
6125 * jv-valprint.c (java_print_value_fields): Ditto.
6126 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6127 * printcmd.c (print_formatted): Ditto.
6128 * valprint.c (valprint_check_validity): Ditto.
6129 (value_check_printable): Ditto.
6130 (val_print_optimized_out): New.
6131
6132 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6133
6134 * infcmd.c (default_print_registers_info): Allocate values so to
6135 never pass a NULL value to val_print.
6136
6137 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6138
6139 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
6140 boolean. Make sure to always pass a value that matches the
6141 contents buffer to callees. Preserve `address' for following
6142 iterations.
6143 * value.c (value_contents_for_printing_const): New.
6144 (value_address): Constify value argument.
6145 * value.h (value_contents_for_printing_const): Declare.
6146 (value_address): Constify value argument.
6147
6148 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6149
6150 * regcache.c (struct regcache_descr): Rename
6151 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
6152 and sizeof_cooked_register_valid_p to
6153 sizeof_cooked_register_status.
6154 (init_regcache_descr): Adjust.
6155 (struct regcache): Rename register_valid_p field to
6156 register_status.
6157 (regcache_xmalloc_1, regcache_xfree, regcache_save)
6158 (do_cooked_read): Adjust.
6159 (regcache_valid_p): Rename to ...
6160 (regcache_register_status): ... this. Adjust.
6161 (regcache_invalidate): Adjust.
6162 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
6163 Adjust.
6164 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
6165 as unavailable, not valid.
6166 (regcache_dump): Adjust.
6167 * regcache.h (enum register_status): New.
6168 (regcache_register_status): Declare.
6169 (regcache_invalidate): Delete declaration.
6170 * corelow.c (get_core_registers): Adjust.
6171 * tracepoint.c (tfile_fetch_registers): Adjust.
6172 * trad-frame.c (REG_VALUE): Rename to ...
6173 (TF_REG_VALUE): ... this.
6174 (REG_UNKNOWN): Rename to ...
6175 (TF_REG_UNKNOWN): ... this.
6176 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
6177 * mi/mi-main.c (register_changed_p): Adjust.
6178
6179 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6180
6181 * regcache.c (struct regcache_descr): Remove outdated comment.
6182 (init_regcache_descr): Remove sizeof_raw_register_valid_p
6183 overallocate hack.
6184 (regcache_xmalloc): Rename to ...
6185 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
6186 Allocate the regcache type accordingly.
6187 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
6188 (regcache_xfree): Asser the source is also readonly. Copy sizeof
6189 cooked registers, not raw.
6190 (regcache_dup_no_passthrough): Delete.
6191 (get_thread_arch_regcache): Use regcache_xmalloc_1.
6192 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
6193 mention obsolete write_register_bytes.
6194 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
6195
6196 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6197
6198 Stop remote_read_bytes from handling partial reads itself.
6199
6200 * remote-fileio.c: Include target.h.
6201 (remote_fileio_write_bytes): Delete.
6202 (remote_fileio_func_open, remote_fileio_func_write)
6203 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
6204 target_read_memory.
6205 (remote_fileio_func_stat): Use target_read_memory and
6206 target_write_memory.
6207 (remote_fileio_func_gettimeofday): Use target_write_memory.
6208 (remote_fileio_func_system): Use target_read_memory.
6209 * remote.c (remote_write_bytes): Make it static.
6210 (remote_read_bytes): Don't handle partial reads here.
6211 * remote.h (remote_read_bytes): Delete declaration.
6212
6213 2011-01-25 Pedro Alves <pedro@codesourcery.com>
6214
6215 Simplify XML parsing a bit.
6216
6217 * xml-support.h (gdb_xml_parse_quick): Declare.
6218 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
6219 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
6220 parameter.
6221 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
6222 gdb_xml_create_parser_and_cleanup_1.
6223 (gdb_xml_parse_quick): New.
6224 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
6225 * osdata.c (osdata_parse): Ditto.
6226 * remote.c (remote_threads_info): Ditto.
6227 * solib-target.c (solib_target_parse_libraries): Ditto.
6228 * xml-syscall.c (syscall_parse_xml): Ditto.
6229 * xml-tdesc.c (tdesc_parse_xml): Ditto.
6230
6231 2011-01-24 Kevin Buettner <kevinb@redhat.com>
6232
6233 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
6234 with remote-mips.o added to gdb_target_obs.
6235 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
6236
6237 2011-01-24 Pedro Alves <pedro@codesourcery.com>
6238
6239 * ada-valprint.c (val_print_packed_array_elements): Pass the
6240 correct struct value to val_print.
6241 (ada_val_print_1): Ditto.
6242
6243 2011-01-24 Pedro Alves <pedro@codesourcery.com>
6244
6245 Don't lose embedded_offset in printing routines throughout.
6246
6247 * valprint.h (val_print_array_elements): Change prototype.
6248 * valprint.c (val_print_array_elements): Add `embedded_offset'
6249 parameter, and adjust to pass it down to val_print, while passing
6250 `valaddr' or `address' unmodified. Take embedded_offset into
6251 account when checking repetitions.
6252 * c-valprint.c (c_val_print): Pass embedded_offset to
6253 val_print_array_elements instead of adjusting `valaddr' and
6254 `address'.
6255 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
6256 embedded_offset to val_print_array_elements instead of adjusting
6257 `valaddr'.
6258 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
6259 * p-valprint.c (pascal_val_print): Pass embedded_offset to
6260 val_print_array_elements and pascal_object_print_value_fields
6261 instead of adjusting `valaddr'.
6262 (pascal_object_print_value_fields): Add `offset' parameter, and
6263 adjust to use it.
6264 (pascal_object_print_value): Add `offset' parameter, and adjust to
6265 use it.
6266 (pascal_object_print_static_field): Use
6267 value_contents_for_printing/value_embedded_offset, rather than
6268 value_contents.
6269 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
6270 parameter, and adjust to use it. Use
6271 value_contents_for_printing/value_embedded_offset, rather than
6272 value_contents.
6273 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
6274 (ada_val_print_array): Add `offset' parameter, and adjust to use
6275 it.
6276 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
6277 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
6278 Instead work with offsets. Use
6279 value_contents_for_printing/value_embedded_offset, rather than
6280 value_contents. Change `defer_val_int' local type to CORE_ADDR,
6281 and use value_from_pointer to extract a target pointer, rather
6282 than value_from_longest.
6283 (print_variant_part): Add `offset' parameter. Replace
6284 `outer_valaddr' parameter by a new `outer_offset' parameter.
6285 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6286 (ada_value_print): Use
6287 value_contents_for_printing/value_embedded_offset, rather than
6288 value_contents.
6289 (print_record): Add `offset' parameter, and adjust to pass it
6290 down.
6291 (print_field_values): Add `offset' parameter. Replace
6292 `outer_valaddr' parameter by a new `outer_offset' parameter.
6293 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6294 Use value_contents_for_printing/value_embedded_offset, rather than
6295 value_contents.
6296 * d-valprint.c (dynamic_array_type): Use
6297 value_contents_for_printing/value_embedded_offset, rather than
6298 value_contents.
6299 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
6300 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6301 (java_print_value_fields): Take `offset' into account. Don't
6302 re-adjust `valaddr'. Instead pass down adjusted offsets.
6303 (java_val_print): Take `embedded_offset' into account. Pass it to
6304 java_print_value_fields.
6305 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
6306 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
6307 down adjusted offsets.
6308 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
6309 (f_val_print): Take `embedded_offset' into account.
6310
6311 2011-01-21 Joel Brobecker <brobecker@adacore.com>
6312
6313 * inflow.c: Include "gdbcmd.h".
6314 (interactive_mode): New static global, moved here from top.c.
6315 (show_interactive_mode): New function, moved here from top.c.
6316 use gdb_has_a_terminal instead of input_from_terminal_p to
6317 determine the current mode.
6318 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
6319 setting.
6320 (_initialize_inflow): Add the "set/show interactive-mode"
6321 commands. Moved here from top.c, after having adjusted slightly
6322 the help text.
6323 * top.c (interactive_mode, show_interactive_mode): Delete, moved
6324 to inflow.c.
6325 (input_from_terminal_p): Remove handling of "interactive-mode"
6326 setting, moved to infow.c.
6327 (init_main): Remove creation of the "set/show interactive-mode"
6328 commands, moved to inflow.c.
6329
6330 2011-01-19 Joel Brobecker <brobecker@adacore.com>
6331
6332 * NEWS: Add entry for native ia64-hpux support.
6333
6334 2011-01-19 Tom Tromey <tromey@redhat.com>
6335
6336 PR mi/8618:
6337 * thread.c (free_thread): Free 'name'.
6338 (print_thread_info): Emit thread name. Change CLI output.
6339 (thread_name_command): New function.
6340 (do_captured_thread_select): Emit newline.
6341 (_initialize_thread): Register 'thread name' command.
6342 * target.h (struct target_ops) <to_thread_name>: New field.
6343 (target_thread_name): New macro.
6344 * target.c (update_current_target): Handle to_thread_name.
6345 * python/py-infthread.c (thpy_get_name): New function.
6346 (thpy_set_name): Likewise.
6347 (thread_object_getset): Add "name".
6348 * linux-nat.c (linux_nat_thread_name): New function.
6349 (linux_nat_add_target): Set to_thread_name.
6350 * gdbthread.h (struct thread_info) <name>: New field.
6351
6352 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6353
6354 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
6355 (ada_val_print_1): Likewise.
6356
6357 2011-01-18 Joel Brobecker <brobecker@adacore.com>
6358
6359 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
6360 upper limit address is not greater than the function end address
6361 when the upper limit could not be computed using the debugging
6362 info.
6363
6364 2011-01-17 Tom Tromey <tromey@redhat.com>
6365
6366 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
6367 get_regcomp_error.
6368 * utils.c: Include gdb_regex.h.
6369 (do_regfree_cleanup): New function.
6370 (make_regfree_cleanup): Likewise.
6371 (get_regcomp_error): Likewise.
6372 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
6373
6374 2011-01-17 Tom Tromey <tromey@redhat.com>
6375
6376 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
6377 re_compile_fastmap.
6378
6379 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
6380
6381 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
6382 for internal variables.
6383 (last_was_structop): New static variable.
6384 (COMPLETE): New token.
6385 (field_exp): New rule to group all '.' suffix handling.
6386 Add mark_struct_expression calls when approriate to be able
6387 to correctly find fields for completion.
6388 (yylex): Adapt to handle field completion and set INTVAR when
6389 required.
6390
6391 2011-01-14 Yao Qi <yao@codesourcery.com>
6392
6393 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
6394 save_reggroup, restore_reggroup and all_reggroup.
6395
6396 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6397
6398 * ada-valprint. (ada_printchar): Use the correct type length
6399 in call to ada_emit_char.
6400 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
6401
6402 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
6403
6404 * solib-som.h (hpux_major_release): Declare variable here.
6405 * solib-som.c: Remove <sys/utsname.h> header.
6406 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
6407 (hpux_major_release): Make global, change default value to
6408 DEFAULT_HPUX_MAJOR_RELEASE.
6409 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
6410 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
6411 Add "solib-som.h" header.
6412 (set_hpux_major_release): New function.
6413 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
6414
6415 2011-01-14 Mike Frysinger <vapier@gentoo.org>
6416
6417 * configure.tgt (*-*-uclinux*): Match more Linux os targets
6418
6419 2011-01-14 Joel Brobecker <brobecker@adacore.com>
6420
6421 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
6422 new-line at end of warning message.
6423 (ia64_hpux_store_register): Remove trailing new-line at end of
6424 error message.
6425 * ia64-hpux-tdep.c: Rephrase comment.
6426 * solib-ia64-hpux.c (struct dld_info): Change type of field
6427 dld_flags from "long long" to ULONGEST.
6428
6429 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6430
6431 * target.h (deprecated_child_ops): Delete declaration.
6432 * target.c (deprecated_child_ops): Delete definition.
6433
6434 2011-01-14 Pedro Alves <pedro@codesourcery.com>
6435
6436 * Makefile.in (hpux-thread.o): Delete rule.
6437 * configure.ac: Don't check for HPUX DCE threads support.
6438 * configure, config.in: Regenerate.
6439 * hppa-hpux-nat.c (child_suppress_run): Delete.
6440 (hppa_hpux_child_can_run): Delete.
6441 (_initialize_hppa_hpux_nat): Don't override to_can_run.
6442 * hpux-thread.c: Delete.
6443
6444 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6445
6446 * hpux-thread.c (hpux_pid_to_str): Delete.
6447
6448 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6449
6450 * ada-valprint.c (ada_emit_char): Remove strange code.
6451 Check that c is <= UCHAR_MAX before passing it to isascii.
6452 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
6453
6454 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6455
6456 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
6457 to the case where instream is stdin.
6458
6459 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6460
6461 * ia64-tdep.h (struct regcache): Forward declare.
6462 (struct ia64_infcall_ops): New struct type.
6463 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
6464 and "infcall_ops".
6465 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
6466 Renames ia64_find_global_pointer.
6467 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
6468 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
6469 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
6470 methods.
6471 (ia64_infcall_ops): New static global constant.
6472 (ia64_gdbarch_init): Set tdep->infcall_ops.
6473 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
6474 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
6475 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
6476 (ia64_hpux_dummy_code): New static global constant.
6477 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
6478 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
6479 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
6480 New function.
6481 (ia64_hpux_infcall_ops): New static global constant.
6482 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
6483 for inferior function calls to work properly on ia64-hpux.
6484
6485 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6486
6487 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
6488 * ia64-tdep.h (struct frame_info): forward declaration.
6489 (struct gdbarch_tdep): Add field size_of_register_frame.
6490 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
6491 to determine the size of the register frame.
6492 (ia64_size_of_register_frame): New function.
6493 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
6494 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
6495 (IA64_HPUX_UREG_REASON): New macro.
6496 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
6497 New functions.
6498 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
6499 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
6500 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
6501 objects.
6502
6503 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6504
6505 Add support for ia64-hpux.
6506 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
6507 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
6508
6509 * configure.host: Add handling for ia64-hpux hosts. Add associated
6510 floatformats.
6511 * configure.tgt: Add handling for ia64-hpux targets.
6512 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
6513 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
6514 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
6515
6516 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6517
6518 [ttrace] Compute thread list immediately after attach.
6519 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
6520 New subprogram.
6521 (inf_ttrace_attach): Use it.
6522
6523 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6524
6525 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
6526 if we could not determine the frame's function address. Instead,
6527 use the frame's PC, and then continue.
6528
6529 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6530
6531 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
6532 not already defined.
6533
6534 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6535
6536 * ia64-tdep.c (ia64_struct_type_p): New function.
6537 (ia64_extract_return_value): Handle integral values that are
6538 less than 8 bytes long.
6539 (ia64_push_dummy_call): Likewise.
6540
6541 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6542
6543 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
6544 floatformat_ia64_ext.
6545 (floatformat_ia64_ext_big): New static const.
6546 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
6547
6548 2011-01-12 Tom Tromey <tromey@redhat.com>
6549
6550 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
6551 messages.
6552 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
6553 (mi_cmd_thread_list_ids): Likewise.
6554 (mi_cmd_data_list_changed_registers): Likewise.
6555 (mi_cmd_data_list_register_values): Likewise.
6556 (mi_cmd_data_write_register_values): Likewise.
6557 (mi_cmd_data_evaluate_expression): Likewise.
6558 (mi_cmd_data_read_memory): Likewise.
6559 (mi_cmd_data_read_memory_bytes): Likewise.
6560 (mi_cmd_data_write_memory): Likewise.
6561 (mi_cmd_enable_timings): Likewise.
6562 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
6563 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
6564 (mi_cmd_var_delete): Likewise.
6565 (mi_cmd_var_set_format): Likewise.
6566 (mi_cmd_var_show_format): Likewise.
6567 (mi_cmd_var_info_num_children): Likewise.
6568 (mi_cmd_var_list_children): Likewise.
6569 (mi_cmd_var_info_type): Likewise.
6570 (mi_cmd_var_info_expression): Likewise.
6571 (mi_cmd_var_show_attributes): Likewise.
6572 (mi_cmd_var_assign): Likewise.
6573 (mi_cmd_var_update): Likewise.
6574 (mi_cmd_enable_pretty_printing): Likewise.
6575 (mi_cmd_var_set_update_range): Likewise.
6576 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
6577 messages.
6578 (mi_cmd_target_file_put): Likewise.
6579 (mi_cmd_target_file_delete): Likewise.
6580 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
6581 messages.
6582 (mi_cmd_stack_info_depth): Likewise.
6583 (mi_cmd_stack_list_locals): Likewise.
6584 (mi_cmd_stack_list_args): Likewise.
6585 (mi_cmd_stack_select_frame): Likewise.
6586 (mi_cmd_stack_select_frame): Likewise.
6587 (mi_cmd_stack_info_frame): Likewise.
6588 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
6589 messages.
6590 (mi_cmd_file_list_exec_source_files): Likewise.
6591 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
6592 (mi_cmd_env_cd): Likewise.
6593 (mi_cmd_env_path): Likewise.
6594 (mi_cmd_env_dir): Likewise.
6595 (mi_cmd_inferior_tty_show): Likewise.
6596 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
6597 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
6598 (mi_cmd_break_watch): Likewise.
6599
6600 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
6601
6602 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
6603 (ppc_linux_insert_hw_breakpoint): Likewise.
6604 (ppc_linux_remove_hw_breakpoint): Likewise.
6605 (ppc_linux_insert_watchpoint): Likewise.
6606
6607 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6608 Jan Kratochvil <jan.kratochvil@redhat.com>
6609
6610 PR fortran/11104 and DWARF unbound arrays detection.
6611 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
6612 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
6613 unspecified upper bound.
6614 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
6615 variables array_size_array, tmp_type and offset_item. New variable
6616 array. Remove call to f77_get_upperbound. New variables array_type
6617 and index. Call value_subscripted_rvalue for each dimenasion. Remove
6618 the final call to deprecated_set_value_type.
6619
6620 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6621
6622 Make value allocations more lazy.
6623 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
6624 instead of allocate_value and set_value_lazy when possible.
6625 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
6626 instead of allocate_value and set_value_lazy.
6627 * findvar.c (value_of_register_lazy): Likewise.
6628 (read_var_value): Remove V preallocation, call just check_typedef in
6629 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
6630 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
6631 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
6632 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
6633 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
6634 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
6635 the end, remove set_value_lazy there.
6636 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
6637 instead of allocate_value and set_value_lazy when possible.
6638 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
6639 * value.c (allocate_computed_value): Use allocate_value_lazy instead
6640 of allocate_value and set_value_lazy.
6641 (value_from_contents_and_address): Use allocate_value_lazy instead of
6642 allocate_value and set_value_lazy when possible.
6643
6644 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6645
6646 * disasm.c (dump_insns): Support dumping opcodes for MI.
6647 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
6648 dumping of instruction opcodes.
6649
6650 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
6651
6652 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
6653 appropiately.
6654
6655 2011-01-11 Tom Tromey <tromey@redhat.com>
6656
6657 * thread.c (do_captured_thread_select): Emit newline before
6658 printing frame.
6659
6660 2011-01-11 Michael Snyder <msnyder@vmware.com>
6661
6662 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
6663 * score-tdep.c: Ditto.
6664 * score-tdep.h: Ditto.
6665 * ser-base.c: Ditto.
6666 * ser-go32.c: Ditto.
6667 * serial.c: Ditto.
6668 * serial.h: Ditto.
6669 * ser-mingw.c: Ditto.
6670 * ser-pipe.c: Ditto.
6671 * ser-tcp.c: Ditto.
6672 * ser-unix.c: Ditto.
6673 * sh64-tdep.c: Ditto.
6674 * shnbsd-nat.c: Ditto.
6675 * sh-tdep.c: Ditto.
6676 * sh-tdep.h: Ditto.
6677 * solib.c: Ditto.
6678 * solib-darwin.c: Ditto.
6679 * solib-frv.c: Ditto.
6680 * solib.h: Ditto.
6681 * solib-irix.c: Ditto.
6682 * solib-osf.c: Ditto.
6683 * solib-pa64.c: Ditto.
6684 * solib-som.c: Ditto.
6685 * solib-spu.c: Ditto.
6686 * solib-sunos.c: Ditto.
6687 * solib-svr4.c: Ditto.
6688 * solist.h: Ditto.
6689 * sol-thread.c: Ditto.
6690 * somread.c: Ditto.
6691 * source.c: Ditto.
6692 * source.h: Ditto.
6693 * sparc64-linux-tdep.c: Ditto.
6694 * sparc64-tdep.c: Ditto.
6695 * sparc-linux-nat.c: Ditto.
6696 * sparc-linux-tdep.c: Ditto.
6697 * sparc-sol2-nat.c: Ditto.
6698 * sparc-sol2-tdep.c: Ditto.
6699 * sparc-tdep.c: Ditto.
6700 * sparc-tdep.h: Ditto.
6701 * spu-tdep.c: Ditto.
6702 * stabsread.c: Ditto.
6703 * stabsread.h: Ditto.
6704 * stack.c: Ditto.
6705 * symfile.c: Ditto.
6706 * symfile.h: Ditto.
6707 * symmisc.c: Ditto.
6708 * symtab.c: Ditto.
6709 * symtab.h: Ditto.
6710 * target.c: Ditto.
6711 * target-descriptions.c: Ditto.
6712 * target-descriptions.h: Ditto.
6713 * target.h: Ditto.
6714 * target-memory.c: Ditto.
6715 * terminal.h: Ditto.
6716 * thread.c: Ditto.
6717 * top.c: Ditto.
6718 * tracepoint.c: Ditto.
6719 * tracepoint.h: Ditto.
6720 * trad-frame.h: Ditto.
6721 * typeprint.c: Ditto.
6722
6723 2011-01-11 Michael Snyder <msnyder@vmware.com>
6724
6725 * ui-file.c: Comment cleanup, mostly periods and spaces.
6726 * ui-file.h: Ditto.
6727 * ui-out.c: Ditto.
6728 * ui-out.h: Ditto.
6729 * utils.c: Ditto.
6730 * v850-tdep.c: Ditto.
6731 * valarith.c: Ditto.
6732 * valops.c: Ditto.
6733 * valprint.c: Ditto.
6734 * valprint.h: Ditto.
6735 * value.c: Ditto.
6736 * value.h: Ditto.
6737 * varobj.c: Ditto.
6738 * varobj.h: Ditto.
6739 * vax-tdep.c: Ditto.
6740 * vec.c: Ditto.
6741 * vec.h: Ditto.
6742 * version.h: Ditto.
6743 * windows-nat.c: Ditto.
6744 * windows-tdep.c: Ditto.
6745 * xcoffread.c: Ditto.
6746 * xcoffsolib.c: Ditto.
6747 * xml-support.c: Ditto.
6748 * xstormy16-tdep.c: Ditto.
6749 * xtensa-tdep.c: Ditto.
6750 * xtensa-tdep.h: Ditto.
6751
6752 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6753
6754 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
6755 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
6756
6757 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6758 Thiago Jung Bauermann <bauerman@br.ibm.com>
6759
6760 Implement support for PowerPC BookE ranged watchpoints.
6761 * breakpoint.h
6762 (struct breakpoint_ops) <resources_needed>: New method.
6763 Initialize to NULL in all existing breakpoint_ops instances.
6764 (struct breakpoint) <exact>: New field.
6765 (target_exact_watchpoints): Declare external global.
6766 * breakpoint.c (target_exact_watchpoints): New global flag.
6767 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
6768 b->enable_state to bp_enabled before calling
6769 hw_watchpoint_used_count.
6770 (hw_watchpoint_used_count): Iterate over all bp_locations in a
6771 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
6772 if available.
6773 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
6774 if the watchpoint is exact.
6775 (resources_needed_watchpoint): New function.
6776 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
6777 (watch_command_1): Set b->exact if the user asked for an exact
6778 watchpoint and one can be set.
6779 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
6780 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
6781 the user asks for an exact watchpoint and one can be set. Return
6782 number of needed debug registers to watch the expression.
6783 * gdbtypes.c (is_scalar_type): New function, based on
6784 valprint.c:scalar_type_p.
6785 (is_scalar_type_recursive): New function.
6786 * gdbtypes.h (is_scalar_type_recursive): Declare.
6787 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
6788 handle regions when ranged watchpoints are available.
6789 (create_watchpoint_request): New function.
6790 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
6791 create_watchpoint_request.
6792 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
6793 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
6794 `set powerpc' and `show powerpc' commands.
6795 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6796 Mention documentation comment in the target macro.
6797 (target_region_ok_for_hw_watchpoint): Document return value.
6798
6799 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6800
6801 * breakpoint.c (update_watchpoint): Decide on using a software or
6802 hardware watchpoint after the bp_locations are created.
6803
6804 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6805
6806 Convert hardware watchpoints to use breakpoint_ops.
6807 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
6808 <insert_location>: ... this. Return int instead of void.
6809 Accept pointer to struct bp_location instead of pointer to
6810 struct breakpoint. Adapt all implementations.
6811 (breakpoint_ops) <remove>: Rename to...
6812 <remove_location>: ... this. Accept pointer to struct bp_location
6813 instead of pointer to struct breakpoint. Adapt all implementations.
6814 * breakpoint.c (insert_catchpoint): Delete function.
6815 (insert_bp_location): Call the watchpoint or catchpoint's
6816 breakpoint_ops.insert method.
6817 (remove_breakpoint_1): Call the watchpoint or catchpoint's
6818 breakpoint_ops.remove method.
6819 (insert_watchpoint, remove_watchpoint): New functions.
6820 (watchpoint_breakpoint_ops): New structure.
6821 (watch_command_1): Initialize the OPS field.
6822 * inf-child.c (inf_child_insert_fork_catchpoint)
6823 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
6824 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
6825 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
6826 Delete functions.
6827 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
6828 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
6829 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
6830 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
6831 * target.c (update_current_target): Change default implementation of
6832 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
6833 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
6834 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
6835 to_set_syscall_catchpoint to return_one.
6836 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
6837 (debug_to_insert_exec_catchpoint): Report return value.
6838 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
6839 (to_insert_exec_catchpoint): Change declaration to return int instead
6840 of void.
6841
6842 2011-01-11 Michael Snyder <msnyder@vmware.com>
6843
6844 * arm-tdep.c: Internationalization.
6845 * c-lang.c: Ditto.
6846 * charset.c: Ditto.
6847 * fork-child.c: Ditto.
6848 * nto-procfs.c: Ditto.
6849 * ppc-sysv-tdep.c: Ditto.
6850 * procfs.c: Ditto.
6851 * remote-mips.c: Ditto.
6852 * remote.c: Ditto.
6853 * rs6000-nat.c: Ditto.
6854 * rs6000-tdep.c: Ditto.
6855 * target.c: Ditto.
6856 * valops.c: Ditto.
6857 * value.c: Ditto.
6858 * xml-support.c: Ditto.
6859 * mi/mi-cmd-break.c: Ditto.
6860 * mi/mi-cmd-var.c: Ditto.
6861 * mi/mi-interp.c: Ditto.
6862 * mi/mi-main.c: Ditto.
6863
6864 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
6865
6866 * remote-sim.c (gdbsim_store_register): Update API to
6867 sim_store_register to check more error conditions.
6868
6869 2011-01-10 Michael Snyder <msnyder@vmware.com>
6870
6871 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
6872 * nto-tdep.c: Ditto.
6873 * nto-tdep.h: Ditto.
6874 * objc-exp.y: Ditto.
6875 * objc-lang.c: Ditto.
6876 * objfiles.c: Ditto.
6877 * objfiles.h: Ditto.
6878 * observer.c: Ditto.
6879 * opencl-lang.c: Ditto.
6880 * osabi.c: Ditto.
6881 * parse.c: Ditto.
6882 * parser-defs.h: Ditto.
6883 * p-exp.y: Ditto.
6884 * p-lang.c: Ditto.
6885 * posix-hdep.c: Ditto.
6886 * ppcbug-rom.c: Ditto.
6887 * ppc-linux-nat.c: Ditto.
6888 * ppc-linux-tdep.c: Ditto.
6889 * ppc-linux-tdep.h: Ditto.
6890 * ppcnbsd-tdep.c: Ditto.
6891 * ppcobsd-tdep.c: Ditto.
6892 * ppcobsd-tdep.h: Ditto.
6893 * ppc-sysv-tdep.c: Ditto.
6894 * ppc-tdep.h: Ditto.
6895 * printcmd.c: Ditto.
6896 * proc-abi.c: Ditto.
6897 * proc-flags.c: Ditto.
6898 * procfs.c: Ditto.
6899 * proc-utils.h: Ditto.
6900 * progspace.h: Ditto.
6901 * prologue-value.c: Ditto.
6902 * prologue-value.h: Ditto.
6903 * psympriv.h: Ditto.
6904 * psymtab.c: Ditto.
6905 * p-typeprint.c: Ditto.
6906 * p-valprint.c: Ditto.
6907 * ravenscar-sparc-thread.c: Ditto.
6908 * ravenscar-thread.c: Ditto.
6909 * ravenscar-thread.h: Ditto.
6910 * record.c: Ditto.
6911 * regcache.c: Ditto.
6912 * regcache.h: Ditto.
6913 * remote.c: Ditto.
6914 * remote-fileio.c: Ditto.
6915 * remote-fileio.h: Ditto.
6916 * remote.h: Ditto.
6917 * remote-m32r-sdi.c: Ditto.
6918 * remote-mips.c: Ditto.
6919 * remote-sim.c: Ditto.
6920 * rs6000-aix-tdep.c: Ditto.
6921 * rs6000-nat.c: Ditto.
6922 * rs6000-tdep.c: Ditto.
6923
6924 2011-01-10 Michael Snyder <msnyder@vmware.com>
6925
6926 * charset.c (validate): Internationalization.
6927 * coffread.c (read_one_sym): Ditto.
6928 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
6929 * h8300-tdep.c (H8300_extract_return_value): Ditto.
6930 * inflow.c (new_tty): Ditto.
6931 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
6932 * m32c-tdep.c (m32c_return_value): Ditto.
6933 * mep-tdep.c (mep_store_return_value): Ditto.
6934 * score-tdep.c (score7_fetch_insn): Ditto.
6935 * ser-mingw.c (pipe_windows_open): Ditto.
6936 * sh64-tdep.c (sh64_extract_return_value): Ditto.
6937 * spu-tdep.c (spu_register_type): Ditto.
6938 * tracepoint.c (trace_find_command): Ditto.
6939 * valarith.c (value_pos): Ditto.
6940
6941 2011-01-10 Joel Brobecker <brobecker@adacore.com>
6942
6943 * ada-valprint.c (printstr): Minor comment reformatting.
6944
6945 2011-01-08 Michael Snyder <msnyder@vmware.com>
6946
6947 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
6948 markup.
6949
6950 2011-01-08 Michael Snyder <msnyder@vmware.com>
6951
6952 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
6953 * hppa-hpux-tdep.c: Ditto.
6954 * hppa-linux-nat.c: Ditto.
6955 * hppa-linux-tdep.c: Ditto.
6956 * hppanbsd-tdep.c: Ditto.
6957 * hppa-tdep.c: Ditto.
6958 * hppa-tdep.h: Ditto.
6959 * hpux-thread.c: Ditto.
6960 * i386-cygwin-tdep.c: Ditto.
6961 * i386-darwin-nat.c: Ditto.
6962 * i386gnu-nat.c: Ditto.
6963 * i386-linux-nat.c: Ditto.
6964 * i386-linux-tdep.c: Ditto.
6965 * i386-nat.c: Ditto.
6966 * i386-nat.h: Ditto.
6967 * i386nbsd-tdep.c: Ditto.
6968 * i386-sol2-nat.c: Ditto.
6969 * i386-stub.c: Ditto.
6970 * i386-tdep.c: Ditto.
6971 * i386-tdep.h: Ditto.
6972 * i387-tdep.c: Ditto.
6973 * ia64-linux-nat.c: Ditto.
6974 * ia64-linux-tdep.c: Ditto.
6975 * ia64-tdep.c: Ditto.
6976 * infcall.c: Ditto.
6977 * infcall.h: Ditto.
6978 * infcmd.c: Ditto.
6979 * inferior.c: Ditto.
6980 * inferior.h: Ditto.
6981 * infloop.c: Ditto.
6982 * inflow.c: Ditto.
6983 * infrun.c: Ditto.
6984 * interps.c: Ditto.
6985 * interps.h: Ditto.
6986 * iq2000-tdep.c: Ditto.
6987 * irix5-nat.c: Ditto.
6988 * jit.c: Ditto.
6989 * jit.h: Ditto.
6990 * jv-exp.y: Ditto.
6991 * jv-lang.c: Ditto.
6992 * jv-lang.h: Ditto.
6993 * jv-typeprint.c: Ditto.
6994 * jv-valprint.c: Ditto.
6995 * language.c: Ditto.
6996 * language.h: Ditto.
6997 * linespec.c: Ditto.
6998 * linux-fork.c: Ditto.
6999 * linux-nat.c: Ditto.
7000 * linux-thread-db.c: Ditto.
7001 * lm32-tdep.c: Ditto.
7002
7003 2011-01-08 Michael Snyder <msnyder@vmware.com>
7004
7005 * m2-exp.y: Comment cleanup, mostly periods and spaces.
7006 * m2-lang.c: Ditto.
7007 * m2-typeprint.c: Ditto.
7008 * m2-valprint.c: Ditto.
7009 * m32c-tdep.c: Ditto.
7010 * m32r-linux-nat.c: Ditto.
7011 * m32r-rom.c: Ditto.
7012 * m32r-tdep.c: Ditto.
7013 * m32r-tdep.h: Ditto.
7014 * m68hc11-tdep.c: Ditto.
7015 * m58klinux-nat.c: Ditto.
7016 * m68k-tdep.c: Ditto.
7017 * m88k-tdep.c: Ditto.
7018 * m88k-tdep.h: Ditto.
7019 * machoread.c: Ditto.
7020 * macrocmd.c: Ditto.
7021 * macroexp.c: Ditto.
7022 * macrotab.c: Ditto.
7023 * main.c: Ditto.
7024 * maint.c: Ditto.
7025 * mdebugread.c: Ditto.
7026 * mdebugread.h: Ditto.
7027 * memattr.c: Ditto.
7028 * memattr.h: Ditto.
7029 * memory-map.h: Ditto.
7030 * mep-tdep.c: Ditto.
7031 * microblaze-rom.c: Ditto.
7032 * microblaze-tdep.c: Ditto.
7033 * minsyms.c: Ditto.
7034 * mips-irix-tdep.c: Ditto.
7035 * mips-linux-nat.c: Ditto.
7036 * mips-linux-tdep.c: Ditto.
7037 * mips-linux-tdep.h: Ditto.
7038 * mipsnbsd-nat.c: Ditto.
7039 * mipsnbsd-tdep.c: Ditto.
7040 * mipsread.c: Ditto.
7041 * mips-tdep.c: Ditto.
7042 * mips-tdep.h: Ditto.
7043 * mn10300-linux-tdep.c: Ditto.
7044 * mn10300-tdep.c: Ditto.
7045 * mn10300-tdep.h: Ditto.
7046 * monitor.c: Ditto.
7047 * monitor.h: Ditto.
7048 * moxie-tdep.c: Ditto.
7049 * moxie-tdep.h: Ditto.
7050 * mt-tdep.c: Ditto.
7051
7052 2011-01-08 Mike Frysinger <vapier@gentoo.org>
7053
7054 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
7055
7056 2011-01-08 Robert Millan <rmh@gnu.org>
7057
7058 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
7059
7060 2011-01-07 Michael Snyder <msnyder@vmware.com>
7061
7062 * charset.c (_initialize_charset): Fix typo in string.
7063
7064 2011-01-07 Michael Snyder <msnyder@vmware.com>
7065
7066 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
7067 for i18n.
7068 * tui/tui-layout.c (tui_set_layout_for_display_command):
7069 Split line so that operator goes to beginning of line.
7070 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
7071 assignment out of if statement.
7072
7073 2011-01-07 Michael Snyder <msnyder@vmware.com>
7074
7075 * ada-lang.c: Comment cleanup, mostly periods and spaces.
7076 * ada-lang.h: Ditto.
7077 * ada-tasks.c: Ditto.
7078 * ada-valprint.c: Ditto.
7079 * aix-threads.c: Ditto.
7080 * alpha-linux-nat.c: Ditto.
7081 * alpha-linux-tdep.c: Ditto.
7082 * alpha-mdebug-tdep.c: Ditto.
7083 * alpha-nat.c: Ditto.
7084 * alpha-osf1-tdep.c: Ditto.
7085 * alpha-tdep.c: Ditto.
7086 * alphabsd-nat.c: Ditto.
7087 * alphabsd-tdep.c: Ditto.
7088 * amd64-darwin-tdep.c: Ditto.
7089 * amd64-linux-nat.c: Ditto.
7090 * amd64-linux-tdep.c: Ditto.
7091 * amd64-sol2-tdep.c: Ditto.
7092 * amd64-tdep.c: Ditto.
7093 * amd64-fbsd-tdep.c: Ditto.
7094 * amd64-nbsd-tdep.c: Ditto.
7095 * amd64-obsd-tdep.c: Ditto.
7096 * amd64-linux-nat.c: Ditto.
7097 * amd64-linux-tdep.c: Ditto.
7098 * arm-tdep.c: Ditto.
7099 * arm-tdep.h: Ditto.
7100 * armnbsd-nat.c: Ditto.
7101 * avr-tdep.c: Ditto.
7102 * bfin-tdep.c: Ditto.
7103 * bsd-kvm.c: Ditto.
7104 * c-typeprintc: Ditto.
7105 * c-valprint.c: Ditto.
7106 * coff-pe-read.h: Ditto.
7107 * coffreead.c: Ditto.
7108 * cris-tdep.c: Ditto.
7109 * d-lang.c: Ditto.
7110 * darwin-nat-info.c: Ditto.
7111 * darwin-nat.c: Ditto.
7112 * dbug-rom.c: Ditto.
7113 * dbxread.c: Ditto.
7114 * dcache.c: Ditto.
7115 * dcache.h: Ditto.
7116 * dec-thread.c: Ditto.
7117 * defs.h: Ditto.
7118 * demangle.c: Ditto.
7119 * dicos-tdep.c: Ditto.
7120 * dictionary.c: Ditto.
7121 * dictionary.h: Ditto.
7122 * dink32-rom.c: Ditto.
7123 * disasm.c: Ditto.
7124 * doublest.c: Ditto.
7125 * dsrec.c: Ditto.
7126 * dummy-frame.c: Ditto.
7127 * dwarf2-frame.c: Ditto.
7128 * dwarf2expr.c: Ditto.
7129 * dwarf2loc.c: Ditto.
7130 * dwarf2read.c: Ditto.
7131 * elfread.c: Ditto.
7132 * environ.c: Ditto.
7133 * eval.c: Ditto.
7134 * event-top.h: Ditto.
7135 * exceptions.c: Ditto.
7136 * exceptions.h: Ditto.
7137 * exec.c: Ditto.
7138 * expprint.c: Ditto.
7139 * expression.h: Ditto.
7140 * f-exp.y: Ditto.
7141 * f-lang.c: Ditto.
7142 * f-lang.h: Ditto.
7143 * f-typeprint.c: Ditto.
7144 * f-valprint.c: Ditto.
7145 * fbsd-nat.c: Ditto.
7146 * findvar.c: Ditto.
7147 * fork-child.c: Ditto.
7148 * frame.c: Ditto.
7149 * frame.h: Ditto.
7150 * frv-linux-tdep.c: Ditto.
7151 * frv-tdep.c: Ditto.
7152 * gcore.c: Ditto.
7153 * gdb-stabs.h: Ditto.
7154 * gdb_assert.h: Ditto.
7155 * gdb_string.h: Ditto.
7156 * gdb_thread_db.h: Ditto.
7157 * gdb_wait.h: Ditto.
7158 * gdbarch.sh: Ditto.
7159 * gdbcore.h: Ditto.
7160 * gdbthread.h: Ditto.
7161 * gdbtypes.c: Ditto.
7162 * gdbtypes.h: Ditto.
7163 * gnu-nat.c: Ditto.
7164 * gnu-nat.h: Ditto.
7165 * gnu-v2-abi.c: Ditto.
7166 * gnu-v3-abi.c: Ditto.
7167 * go32-nat.c: Ditto.
7168 * gdbarch.c: Regenerate.
7169 * gdbarch.h: Regenerate.
7170
7171 2011-01-07 Michael Snyder <msnyder@vmware.com>
7172
7173 * ax-gdb.c: Adjust some long output strings.
7174 * breakpoint.c: Ditto.
7175 * charset.c: Ditto.
7176 * cp-abi.c: Ditto.
7177 * infcall.c: Ditto.
7178 * infrun.c: Ditto.
7179 * linux-nat.c: Ditto.
7180 * solib-pa64.c: Ditto.
7181 * solib-som.c: Ditto.
7182
7183 2011-01-06 Tom Tromey <tromey@redhat.com>
7184
7185 PR python/12367:
7186 * NEWS: Add item.
7187 * python/python.c (GdbMethods): Add "newest_frame" method.
7188 * python/python-internal.h (gdbpy_newest_frame): Declare.
7189 * python/py-frame.c (gdbpy_newest_frame): New function.
7190
7191 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
7192
7193 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
7194 * jit.c (jit_debug): New variable.
7195 (show_jit_debug): New function.
7196 (struct target_buffer): Use ULONGEST.
7197 (bfd_open_from_target_memory): Likewise.
7198 (jit_register_code, jit_inferior_init): Add debug output.
7199 (_initialize_jit): Register "debug jit" command.
7200
7201 2011-01-06 Tom Tromey <tromey@redhat.com>
7202
7203 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
7204 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
7205 and ARCH_FRAME.
7206
7207 2011-01-06 Tom Tromey <tromey@redhat.com>
7208
7209 * python/py-frame.c (frapy_block): Use get_frame_block.
7210
7211 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7212
7213 Do not stop on SIGPRIO signals by default
7214 * infrun.c (_initialize_infrun): Unset signal_stop and
7215 signal_print for TARGET_SIGNAL_PRIO.
7216
7217 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7218
7219 * ada-tasks.c: Fix style violation in comment.
7220
7221 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7222
7223 * linespec.c (decode_compound, find_method): Remove trailing \n
7224 at end of error string.
7225 * solib-irix.c (irix_current_sos): Likewise.
7226 * varobj.c (uninstall_variable): Likewise.
7227
7228 2011-01-06 Joel Brobecker <brobecker@adacore.com>
7229
7230 * copyright.py: New script.
7231 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
7232 Launch emacs without exec'ing. Call copyright.py afterwards.
7233
7234 2011-01-05 Michael Snyder <msnyder@vmware.com>
7235
7236 * addrmap.c: Shorten lines of >= 80 columns.
7237 * arch-utils.c: Ditto.
7238 * arch-utils.h: Ditto.
7239 * ax-gdb.c: Ditto.
7240 * ax-general.c: Ditto.
7241 * bcache.c: Ditto.
7242 * blockframe.c: Ditto.
7243 * breakpoint.c: Ditto.
7244 * buildsym.c: Ditto.
7245 * c-lang.c: Ditto.
7246 * c-typeprint.c: Ditto.
7247 * charset.c: Ditto.
7248 * coffread.c: Ditto.
7249 * command.h: Ditto.
7250 * corelow.c: Ditto.
7251 * cp-abi.c: Ditto.
7252 * cp-namespace.c: Ditto.
7253 * cp-support.c: Ditto.
7254 * dbug-rom.c: Ditto.
7255 * dbxread.c: Ditto.
7256 * defs.h: Ditto.
7257 * dfp.c: Ditto.
7258 * dfp.h: Ditto.
7259 * dictionary.c: Ditto.
7260 * disasm.c: Ditto.
7261 * doublest.c: Ditto.
7262 * dwarf2-frame.c: Ditto.
7263 * dwarf2expr.c: Ditto.
7264 * dwarf2loc.c: Ditto.
7265 * dwarf2read.c: Ditto.
7266 * elfread.c: Ditto.
7267 * eval.c: Ditto.
7268 * event-loop.c: Ditto.
7269 * event-loop.h: Ditto.
7270 * exceptions.h: Ditto.
7271 * exec.c: Ditto.
7272 * expprint.c: Ditto.
7273 * expression.h: Ditto.
7274 * f-lang.c: Ditto.
7275 * f-valprint.c: Ditto.
7276 * findcmd.c: Ditto.
7277 * frame-base.c: Ditto.
7278 * frame-unwind.c: Ditto.
7279 * frame-unwind.h: Ditto.
7280 * frame.c: Ditto.
7281 * frame.h: Ditto.
7282 * gcore.c: Ditto.
7283 * gdb-stabs.h: Ditto.
7284 * gdb_assert.h: Ditto.
7285 * gdb_dirent.h: Ditto.
7286 * gdb_obstack.h: Ditto.
7287 * gdbcore.h: Ditto.
7288 * gdbtypes.c: Ditto.
7289 * gdbtypes.h: Ditto.
7290 * inf-ttrace.c: Ditto.
7291 * infcall.c: Ditto.
7292 * infcmd.c: Ditto.
7293 * inflow.c: Ditto.
7294 * infrun.c: Ditto.
7295 * inline-frame.h: Ditto.
7296 * language.c: Ditto.
7297 * language.h: Ditto.
7298 * libunwind-frame.c: Ditto.
7299 * libunwind-frame.h: Ditto.
7300 * linespec.c: Ditto.
7301 * linux-nat.c: Ditto.
7302 * linux-nat.h: Ditto.
7303 * linux-thread-db.c: Ditto.
7304 * machoread.c: Ditto.
7305 * macroexp.c: Ditto.
7306 * macrotab.c: Ditto.
7307 * main.c: Ditto.
7308 * maint.c: Ditto.
7309 * mdebugread.c: Ditto.
7310 * memattr.c: Ditto.
7311 * minsyms.c: Ditto.
7312 * monitor.c: Ditto.
7313 * monitor.h: Ditto.
7314 * objfiles.c: Ditto.
7315 * objfiles.h: Ditto.
7316 * osabi.c: Ditto.
7317 * p-typeprint.c: Ditto.
7318 * p-valprint.c: Ditto.
7319 * parse.c: Ditto.
7320 * printcmd.c: Ditto.
7321 * proc-events.c: Ditto.
7322 * procfs.c: Ditto.
7323 * progspace.c: Ditto.
7324 * progspace.h: Ditto.
7325 * psympriv.h: Ditto.
7326 * psymtab.c: Ditto.
7327 * record.c: Ditto.
7328 * regcache.c: Ditto.
7329 * regcache.h: Ditto.
7330 * remote-fileio.c: Ditto.
7331 * remote.c: Ditto.
7332 * ser-mingw.c: Ditto.
7333 * ser-tcp.c: Ditto.
7334 * ser-unix.c: Ditto.
7335 * serial.c: Ditto.
7336 * serial.h: Ditto.
7337 * solib-frv.c: Ditto.
7338 * solib-irix.c: Ditto.
7339 * solib-osf.c: Ditto.
7340 * solib-pa64.c: Ditto.
7341 * solib-som.c: Ditto.
7342 * solib-sunos.c: Ditto.
7343 * solib-svr4.c: Ditto.
7344 * solib-target.c: Ditto.
7345 * solib.c: Ditto.
7346 * somread.c: Ditto.
7347 * source.c: Ditto.
7348 * stabsread.c: Ditto.
7349 * stabsread.c: Ditto.
7350 * stack.c: Ditto.
7351 * stack.h: Ditto.
7352 * symfile-mem.c: Ditto.
7353 * symfile.c: Ditto.
7354 * symfile.h: Ditto.
7355 * symmisc.c: Ditto.
7356 * symtab.c: Ditto.
7357 * symtab.h: Ditto.
7358 * target-descriptions.c: Ditto.
7359 * target-memory.c: Ditto.
7360 * target.c: Ditto.
7361 * target.h: Ditto.
7362 * terminal.h: Ditto.
7363 * thread.c: Ditto.
7364 * top.c: Ditto.
7365 * tracepoint.c: Ditto.
7366 * tracepoint.h: Ditto.
7367 * ui-file.c: Ditto.
7368 * ui-file.h: Ditto.
7369 * ui-out.h: Ditto.
7370 * user-regs.c: Ditto.
7371 * user-regs.h: Ditto.
7372 * utils.c: Ditto.
7373 * valarith.c: Ditto.
7374 * valops.c: Ditto.
7375 * valprint.c: Ditto.
7376 * valprint.h: Ditto.
7377 * value.c: Ditto.
7378 * varobj.c: Ditto.
7379 * varobj.h: Ditto.
7380 * vec.h: Ditto.
7381 * xcoffread.c: Ditto.
7382 * xcoffsolib.c: Ditto.
7383 * xcoffsolib.h: Ditto.
7384 * xml-syscall.c: Ditto.
7385 * xml-tdesc.c: Ditto.
7386
7387 2011-01-05 Michael Snyder <msnyder@vmware.com>
7388
7389 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
7390 * cli/cli-decode.c: Ditto.
7391 * cli/cli-dump.c: Ditto.
7392 * cli/cli-logging.c: Ditto.
7393 * cli/cli-script.c: Ditto.
7394 * cli/cli-setshow.c: Ditto.
7395 * common/signals.c: Ditto.
7396 * mi/mi-cmd-break.c: Ditto.
7397 * mi/mi-cmd-disas.c: Ditto.
7398 * mi/mi-cmd-stack.c: Ditto.
7399 * mi/mi-cmd-var.c: Ditto.
7400 * mi/mi-cmds.c: Ditto.
7401 * mi/mi-common.h: Ditto.
7402 * mi/mi-console.c: Ditto.
7403 * mi/mi-interp.c: Ditto.
7404 * mi/mi-main.c: Ditto.
7405 * osf-share/cma_attr.c: Ditto.
7406 * osf-share/cma_deb_core.h: Ditto.
7407 * osf-share/cma_debug_client.h: Ditto.
7408 * osf-share/cma_handle.h: Ditto.
7409 * osf-share/cma_mutex.h: Ditto.
7410 * osf-share/cma_stack_int.h: Ditto.
7411 * osf-share/cma_tcb_defs.h: Ditto.
7412 * python/py-auto-load.c: Ditto.
7413 * python/py-breakpoint.c: Ditto.
7414 * python/py-cmd.c: Ditto.
7415 * python/py-frame.c: Ditto.
7416 * python/py-objfile.c: Ditto.
7417 * python/py-param.c: Ditto.
7418 * python/py-progspace.c: Ditto.
7419 * python/py-symbol.c: Ditto.
7420 * python/py-value.c: Ditto.
7421 * python/python-internal.h: Ditto.
7422 * python/python.c: Ditto.
7423 * tui/tui-data.c: Ditto.
7424 * tui/tui-disasm.c: Ditto.
7425 * tui/tui-hooks.c: Ditto.
7426 * tui/tui-io.c: Ditto.
7427 * tui/tui-layout.c: Ditto.
7428 * tui/tui-regs.c: Ditto.
7429 * tui/tui-source.c: Ditto.
7430 * tui/tui-stack.c: Ditto.
7431 * tui/tui-win.c: Ditto.
7432 * tui/tui-windata.c: Ditto.
7433 * tui/tui-winsource.c: Ditto.
7434
7435 2011-01-05 Joel Brobecker <brobecker@adacore.com>
7436
7437 * configure.ac, gdb.1: Copyright year update.
7438
7439 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7440
7441 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
7442 this_pc_in_block, morestack_msym and morestack_name. Check for
7443 "__morestack" minimal symbol there.
7444
7445 2011-01-03 Joel Brobecker <brobecker@adacore.com>
7446
7447 * symfile.c (find_sym_fns): Add call to dont_repeat.
7448
7449 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7450
7451 Copyright year update in most files (performed by copyright.sh).
7452
7453 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7454
7455 * top.c (print_gdb_version): Update copyright year in version output.
7456
7457 For older changes see ChangeLog-2010.
7458 \f
7459 Local Variables:
7460 mode: change-log
7461 left-margin: 8
7462 fill-column: 74
7463 version-control: never
7464 coding: utf-8
7465 End: