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