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