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