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