gdb/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d9837b00
YQ
12011-03-09 Yao Qi <yao@codesourcery.com>
2
3 * common/Makefile.in: Remove.
4 * common/configure: Remove.
5 * common/configure.ac: Remove.
6
e637a4f5
YQ
72011-03-09 Yao Qi <yao@codesourcery.com>
8
9 Revert:
10 2011-02-11 Yao Qi <yao@codesourcery.com>
11
12 * common/Makefile.in: Add copyright header.
13
14 2011-02-11 Yao Qi <yao@codesourcery.com>
15
16 * Makefile.in: Remove signals.o from COMMON_OBS. Link
17 libcommon.a.
18 * configure.ac: Add common to sub dir.
19 * configure: Regenerate.
20
f976a05d
MG
212011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
22
23 * xtensa-tdep.c (call0_ret): New function.
24 (xtensa_skip_prologue): Speed up analysis.
25
57041825
MG
262011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
27
28 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
29 while executing MI command -data-list-changed-registers.
30
08b9c608
MG
312011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
32
33 * xtensa-tdep.c (xtensa_read_register): New function.
34 (xtensa_write_register): New function.
35 (xtensa_find_register_by_name): New function.
36 (xtensa_windowed_frame_cache): Update comments in type description.
37 (xtensa_frame_cache): Likewise.
38 (xtensa_window_interrupt_insn): New function.
39 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
40 (xtensa_insn_kind): Add new instructions.
41 (rwx_special_register): New function.
42 (call0_classify_opcode): Add new instructions to the analysis.
43 (a0_saved, a7_saved, a11_saved): New variables.
44 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
45 (execute_l32e): New function.
46 (execute_s32e): New function.
47 (xtensa_exception_handler_t): New type.
48 (execute_code): New function.
49 (xtensa_window_interrupt_frame_cache): New function to conduct frame
50 analysis for Xtensa Window Exception handlers.
51
4d1acb11
MG
522011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
53
98689b25
MG
54 * xtensa-tdep.c (TX_PS): New.
55 (windowing_enabled): Update to count for Call0 ABI.
56 (xtensa_hextochar): New.
57 (xtensa_init_reggroups): Make algorithm generic.
58 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
59
602011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
61
62 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 63
d3f323f3
MS
642011-03-08 Michael Snyder <msnyder@vmware.com>
65
3dcabaa8
MS
66 * i386-tdep.c (i386_follow_jump): Check return value of
67 target_read_memory.
68 (i386_analyze_struct_return): Ditto.
69 (i386_skip_probe): Ditto.
70 (i386_match_insn): Ditto.
71 (i386_skip_noop): Ditto.
72 (i386_analyze_frame_setup): Ditto.
73 (i386_analyze_register_saves): Ditto.
74 (i386_skip_prologue): Ditto.
75 (i386_skip_main_prologue): Ditto.
76
13b3fd9b
MS
77 * target.c (read_whatever_is_readable): Fix memory leak.
78
d3f323f3
MS
79 * i386-tdep.c (i386_process_record): Document fall through.
80
421d5c74
JK
812011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
82
83 Fix DWARF-3+ DW_AT_accessibility default assumption.
84 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
85 cu->header.version >= 3.
86
63154eca
PA
872011-03-08 Pedro Alves <pedro@codesourcery.com>
88
89 * remote.c (remote_check_symbols): Skip if the target has no
90 execution.
91
f1a507a1
JB
922011-03-08 Joel Brobecker <brobecker@adacore.com>
93
94 * target.c (read_whatever_is_readable): Reformat comment,
95 with a minor typo fix. Minor reformatting of the code.
96
36073a92
YQ
972011-03-08 Yao Qi <yao@codesourcery.com>
98
99 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
100 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
101 Use cached result instead of calling displaced_in_arm_mode again.
102 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
103 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
104 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
105 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
106 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
107 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
108 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
109 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
110 (cleanup_block_load_pc, copy_block_xfer): Likewise.
111 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
112 (arm_catch_kernel_helper_return): Likewise.
113 * gdb/arm-tdep.h : Update function declarations.
114
d3f323f3 1152011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 116
e0e40094
MS
117 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
118
0b2381f5
MS
119 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
120
0350914a
MS
121 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
122
69feea6f
MS
123 * elfread.c (elf_symtab_read): Stop memory leak.
124
e6040cbd
MS
125 * main.c (captured_main): Fix memory leak.
126
052874e8
AS
1272011-03-07 Andreas Schwab <schwab@linux-m68k.org>
128
129 * ada-lang.c (compare_names): Call is_name_suffix with string1
130 instead of string2.
131
b11896a5
TT
1322011-03-07 Tom Tromey <tromey@redhat.com>
133
134 * xcoffread.c (xcoff_sym_fns): Update.
135 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
136 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
137 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
138 (symbol_file_add_with_addrs_or_offsets): Likewise.
139 (reread_symbols): Handle OBJF_PSYMTABS_READ.
140 * somread.c (som_sym_fns): Update.
141 * psymtab.h (require_partial_symbols): Declare.
142 * psymtab.c (require_partial_symbols): New function.
143 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
144 (ALL_OBJFILE_PSYMTABS): Undef.
145 (ALL_PSYMTABS): Move from psympriv.h.
146 (lookup_partial_symtab, find_pc_sect_psymtab)
147 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
148 (find_last_source_symtab_from_partial)
149 (forget_cached_source_info_partial)
150 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
151 (expand_partial_symbol_tables, read_psymtabs_with_filename)
152 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
153 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
154 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
155 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
156 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
157 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
158 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
159 psymtabs.
160 * mipsread.c (ecoff_sym_fns): Update.
161 * machoread.c (macho_sym_fns): Update.
162 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
163 (read_psyms): New function.
164 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
165 (elf_sym_fns_lazy_psyms): New global.
166 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
167 dwarf2_build_psymtabs.
168 * dbxread.c (aout_sym_fns): Update.
169 * coffread.c (coff_sym_fns): Update.
170
fda326dd
TT
1712011-03-07 Tom Tromey <tromey@redhat.com>
172
173 * infrun.c (print_exited_reason): Include inferior id and pid in
174 message.
175
aeaec162
TT
1762011-03-07 Tom Tromey <tromey@redhat.com>
177
178 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
179 parameter.
180 (target_has_execution_1): Update.
181 (target_has_execution_current): Declare.
182 (target_has_execution): Call target_has_execution_current.
183 (default_child_has_execution): Update.
184 * target.c (default_child_has_execution): Add 'the_ptid'
185 parameter.
186 (target_has_execution_1): Likewise.
187 (target_has_execution_current): New function.
188 (add_target): Update.
189 (init_dummy_target): Update.
190 * remote-m32r-sdi.c (m32r_has_execution): New function.
191 (init_m32r_ops): Use it.
192 * record.c (record_core_has_execution): Now static. Add
193 'the_ptid' parameter.
194 * inferior.c (have_live_inferiors): Don't save current thread.
195 Use target_has_execution_1.
196
08e14083
YQ
1972011-03-07 Yao Qi <yao@codesourcery.com>
198
199 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
200
c05d19c5
JB
2012011-03-07 Joel Brobecker <brobecker@adacore.com>
202
203 * elfread.c (elf_symtab_read): Minor reformatting.
204
3e6ef9e4
JB
2052011-03-07 Joel Brobecker <brobecker@adacore.com>
206
207 * objc-lang.c (selectors_info): Minor reformatting.
208
dbb8534f
JB
2092011-03-07 Joel Brobecker <brobecker@adacore.com>
210
211 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
212
dd70cc93
JB
2132011-03-07 Joel Brobecker <brobecker@adacore.com>
214 Michael Snyder <msnyder@vmware.com>
215
216 * ada-valprint.c (ada_val_print_array): Move the declaration of
217 "byte_order" and "elttype" inside the block where these variables
218 are actually used. Remove some special handling for the case
219 where "elttype" and "eltlen" are null. Replace by a comment
220 and a couple of assertion checks.
221
b27cf2b3
MS
2222011-03-05 Michael Snyder <msnyder@vmware.com>
223
224 * source.c (add_path): Replace semicolon at end of block.
225 * dwarf2expr.c (execute_stack_op): Ditto.
226
5387a0c6
MF
2272011-03-05 Mike Frysinger <vapier@gentoo.org>
228
229 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
230 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
231 (bfin-*-*): Likewise.
232
e3aa49af
MS
2332011-03-05 Michael Snyder <msnyder@vmware.com>
234
82ae4854
MS
235 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
236 * mdebugread.c (parse_symbol): Ditto.
237 * parse.c (parse_exp_in_context): Ditto.
238 * source.c (add_path): Ditto.
239 * utils.c (gnu_debuglink_crc32): Ditto.
240 * varobj.c (variable_language): Ditto.
241
e3aa49af
MS
242 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
243
154f592e
MS
2442011-03-04 Michael Snyder <msnyder@vmware.com>
245
da3ecdc6
MS
246 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
247
9cc89665
MS
248 * symfile.c (simple_overlay_update): Check for null return value
249 from lookup_minimal_symbol.
250
cfdee94a
MS
251 * gdbserver/server.c (queue_stop_reply): Call xmalloc not malloc.
252
154f592e
MS
253 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
254
63ffa6ee
TJB
2552011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
256
257 * eval.c (parse_and_eval_address_1): Remove function.
258 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
259 instead of parse_and_eval_address_1.
260 * value.h (parse_and_eval_address_1): Remove prototype.
261
a17d146e
MS
2622011-03-04 Michael Snyder <msnyder@vmware.com>
263
264 * remote.c (putpkt_binary): Document that case stmt falls through.
265
1a6a67de
TJB
2662011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
267
268 * breakpointc (print_it_typical): Move NULL check from here...
269 (print_bp_stop_message): ... to here.
270
488919c4
MS
2712011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
272
273 * breakpoint.c (enable_command): Use break instead of continue,
274 and fill in a missing break.
275 (disable_command): Ditto.
276
1e182ce8
UW
2772011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
278
279 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
280 (terminal_save_ours): Remove misleading comment.
281 (inflow_inferior_data_cleanup): Free ttystate.
282 (inflow_inferior_exit): Likewise.
283 (copy_terminal_info): Copy ttystate.
284
285 * serial.c (serial_copy_tty_state): New function.
286 * serial.h (serial_copy_tty_state): Add prototype.
287 (struct serial_ops): Add copy_tty_state callback.
288 * ser-base.c (ser_base_copy_tty_state): New function.
289 * ser-base.h (ser_base_copy_tty_state): Add prototype.
290 * ser-go32.c (dos_copy_tty_state): New function.
291 (dos_ops): Install copy_tty_state callback.
292 * ser-mingw.c (_initialize_ser_windows): Likewise.
293 * ser-pipe.c (_initialize_ser_pipe): Likewise.
294 * ser-unix.c (hardwire_copy_tty_state): New function.
295 (_initialize_ser_hardwire): Install it.
296
b2c5f112
MS
2972011-03-04 Michael Snyder <msnyder@vmware.com>
298
2abae994
MS
299 * breakpoint.c (create_breakpoint): Add missing break statement.
300
7f5936f9
MS
301 Reverting this patch:
302 * infcall.c (call_function_by_hand): Add break statements for lint.
303
b2c5f112
MS
304 Reverting this patch:
305 * cli/cli-script.c (script_from_file): Add break for lint.
306
42b1321c
MS
3072011-03-04 Michael Snyder <msnyder@vmware.com>
308
309 * solib.c (reload_shared_libraries_1): Close memory leak.
310
3e2a0cee
TT
3112011-03-03 Tom Tromey <tromey@redhat.com>
312
313 PR gdb/12538:
314 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
315 DW_STRING is NULL.
316
58397cb7
MS
3172011-03-03 Michael Snyder <msnyder@vmware.com>
318
2e3fd767
MS
319 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
320 fields of struct 'st' to zero.
321
58397cb7
MS
322 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
323 sal.pspace before calling set_current_source_symtab_and_line.
324
ced54c8f
YQ
3252011-03-03 Yao Qi <yao@codesourcery.com>
326
327 * Makefile.in (configure-common): Remove. Let Makefile
328 in dir common to rebuild itself.
329 (common/Makefile): Likewise.
330
3351ea09
JB
3312011-03-03 Joel Brobecker <brobecker@adacore.com>
332
333 * utils.c (parse_escape): Add i18n markup in error message.
334
bf9f652a
YQ
3352011-03-03 Yao Qi <yao@codesourcery.com>
336
337 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
338 ARM_PC_REGNUM.
339 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
340 (displaced_write_reg, displaced_read_reg): Likewise.
341 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
342 (cleanup_block_load_pc, copy_block_xfer): Likewise.
343 (cleanup_branch): Replace magic number 14 and 15 with
344 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
345
d42de051
MS
3462011-03-02 Michael Snyder <msnyder@vmware.com>
347
240f9570
MS
348 * maint.c (maintenance_do_deprecate): No need to check for NULL.
349
10dd8b54
MS
350 * cli/cli-script.c (script_from_file): Add break for lint.
351
b98bd911
MS
352 * mdebugread.c (parse_partial_symbols): Fix indent.
353
c3e8aadd
MS
354 * gdbserver/linux-arm-low.c (arm_arch_setup): Replace malloc
355 with xmalloc.
356
3494b66d
MS
357 * target-descriptions.c (tdesc_gdb_type): No need to call
358 xstrdup, callee saves a copy.
359
daac021a
MS
360 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
361
c38d16a7
MS
362 * infcall.c (call_function_by_hand): Add break statements for lint.
363
905b671b
MS
364 * utils.c (parse_escape): Escape the escape char.
365
2d565757
MS
366 * python/py-inferior.c (build_inferior_list): Error out if
367 PyList_Append fails.
368 (gdbpy_inferiors): Error out if build_inferior_list fails.
369
8c6a60d1
MS
370 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
371 a function call.
372
d42de051
MS
373 * record.c (record_restore): Move printf to before error return.
374
4db71c0b
YQ
3752011-03-02 Yao Qi <yao@codesourcery.com>
376
377 * arm-tdep.h (struct displaced_step_closure): Add two new fields
378 is_thumb and insn_size.
379 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
380 on both ARM and Thumb mode.
381 (arm_process_displaced_insn): Set is_thumb and insn_size.
382 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
383 (arm_displaced_step_fixup): Likewise.
384
a9dc8dcc
MS
3852011-03-01 Michael Snyder <msnyder@vmware.com>
386
53624a93
MS
387 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
388
77766669
MS
389 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
390
62d5b8da
MS
391 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
392
5e9e105f
MS
393 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
394
dc19db01
MS
395 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
396 with xmalloc.
397
5ce64950
MS
398 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
399 which shadows function parameter.
400
a0aa2878
MS
401 * tracepoint.c (create_tsv_from_upload): Superfluous call
402 to xstrdup. Callee already calls xstrdup.
403
e325fb69
MS
404 * linespec.c (decode_line_1): Remove unnecessary null check.
405
21cbba77
MS
406 * tracepoint.c (scope_info): Fix mem leak, remove underused
407 variable.
408
63360adc
MS
409 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
410 superfluous null check.
411
18ea20ac 412 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 413 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 414
d014929c
MS
415 * event-top.c (display_gdb_prompt): Remove superfluous null check.
416
6e9130cf
MS
417 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
418 be null.
419
5f01dbc0
MS
420 * linespec.c (decode_line_1): Check for null before dereference.
421
d684ab85
MS
422 * reverse.c (record_restore): Move null-check to before pointer
423 dereference.
424
bfffb7e3
MS
425 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
426
a9dc8dcc
MS
427 * objc-lang.c (selectors_info): Add explanitory comment.
428 (classes_info): Ditto.
429
478fd957
UW
4302011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
431
432 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
433 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
434 versions of the trampoline. Handle Thumb vs. ARM addresses.
435 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
436 (arm_linux_init_abi): Install it.
437 * arm-tdep.c (arm_psr_thumb_bit): Make global.
438 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
439
0480cefa
MS
4402011-02-28 Michael Snyder <msnyder@vmware.com>
441
ac50ab3b
MS
442 * ui-out.c (ui_out_field_core_addr): Make local char buffer
443 a little bigger, to avoid possibility of an overflow.
444
f63fbe86
MS
445 * breakpoint.c (breakpoint_adjustment_warning): Make local char
446 buffers a little bigger, to avoid possibility of an overflow.
447
9e91a352
MS
448 * coffread.c (coff_getfilename): Add check to avoid overflow.
449
28288541
MS
450 * objc-lang.c (selectors_info): Add a small safety margin to
451 avoid overflow.
452 (classes_info): Error out on too long REGEXP.
453
098ab512
MS
454 * infrun.c (handle_inferior_event): Remove unused function call.
455
bcbd1de9
MS
456 * fork-child.c (fork_inferior): Remove ifdef'd code and
457 unused variable.
458
2e456570
MS
459 * linux-thread-db.c (attach_thread): Discard unused value.
460
14571dad
MS
461 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
462
a9cbf802
MS
463 * remote.c (remote_get_noisy_reply): Discard unused value.
464 (remote_vcont_resume): Ditto.
465 (remote_stop_ns): Ditto.
466
5715d26e
MS
467 * linespec.c (decode_objc): Delete unused variable.
468
4a9bca80
MS
469 * tui/tui-regs.c (tui_register_format): Delete unused variable.
470
f47fb265
MS
471 * dwarf2read.c (add_partial_symbol): Discard unused values.
472 (read_base_type): Delete unused variable.
473
e81cff30
MS
474 * dbxread.c (read_dbx_symtab): Discard unused value.
475
262acaeb
MS
476 * eval.c (evaluate_subexp_standard): Delete unused variable,
477 and discard unused values.
478
df983543
MS
479 * infcmd.c (_initialize_infcmd): Discard unused values.
480
89acf84d
MS
481 * stabsread.c (rs6000_builtin_type): Missing break statement.
482
ab8b8aca
MS
483 * dbxread.c (process_one_symbol): Discard unused value.
484
6b4511ab
MS
485 * coffread.c (coff_end_symtab): Delete unused variable.
486
e8e80198
MS
487 * dwarf2read.c (dw2_get_file_names): Discard unused value.
488 (dwarf2_add_typedef): Delete unused variable.
489 (read_namespace): Ditto.
490 (dwarf_decode_macros): Ditto.
491
976aa66e
MS
492 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
493
5b92b49f
MS
494 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
495
91e8df85
MS
496 * p-valprint.c (pascal_val_print): Discard unused value.
497
899500d6
MS
498 * utils.c (nquery): Call va_end before return;
499 (yquery): Ditto.
500 (query): Ditto.
501
0480cefa
MS
502 * proc-service.c (ps_plog): Call va_end before return.
503
fb6a3ed3
TT
5042011-02-28 Tom Tromey <tromey@redhat.com>
505
506 * python/python.c (gdbpy_value_cst): New global.
507 (_initialize_python): Initialize it.
508 * python/python-internal.h (gdbpy_value_cst): Declare.
509 * python/py-value.c (convert_value_from_python): Use
510 gdbpy_value_cst.
511
c05202a1
MS
5122011-02-28 Michael Snyder <msnyder@vmware.com>
513
e463f587
MS
514 * python/py-cmd.c (cmdpy_init): Fix memory leak.
515
c38eea1a
MS
516 * breakpoint.c (catch_syscall_completer): Free malloced list.
517
3ef09ab5
MS
518 * jv-lang.c (java_primitive_type_from_name): Add missing break.
519
8f9a01ee
MS
520 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
521 (lval_func_check_synthetic_pointer): Ditto.
522 (lval_func_free_closure): Fix use-after-free.
c05202a1 523
477d0d57
TT
5242011-02-28 Tom Tromey <tromey@redhat.com>
525
526 * psymtab.c (expand_partial_symbol_tables): Use
527 ALL_OBJFILE_PSYMTABS.
528
20937029
JK
5292011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
530
531 * objc-lang.c (selectors_info): Error on too long REGEXP.
532
907b7f4f
MS
5332011-02-28 Michael Snyder <msnyder@vmware.com>
534
92e96192
MS
535 * python/py-param.c (set_parameter_value): Add missing
536 break statement.
537
907b7f4f
MS
538 * linux-record.c (record_linux_system_call): Add missing
539 break statement.
540
12c5a436
UW
5412011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
542
543 * breakpoint.c (print_one_breakpoint_location): Remove unused
544 argument PRINT_ADDRESS_BITS. Update callers.
545 (print_one_breakpoint): Likewise.
546
170b53b2
UW
5472011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
548
549 * breakpoint.c (wrap_indent_at_field): New function.
550 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
551 Allocate ui_stream locally instead of using STB argument.
552 (print_one_breakpoint_location): Update call.
553 * ui-out.c (ui_out_query_field): New function.
554 * ui-out.h (ui_out_query_field): Add prototype.
555
8ab1f94d
JB
5562011-02-28 Joel Brobecker <brobecker@adacore.com>
557
558 From Michael Snyder <msnyder@vmware.com>
559 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
560
7d488639
MS
5612011-02-27 Michael Snyder <msnyder@vmware.com>
562
ae179fba
MS
563 * objc-lang.c (selectors_info): Prevent string overrun.
564
086dbf66
MS
565 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
566 error in strncpy.
567
9c1e305a
MS
568 * symtab.c (rbreak_command): Move variable 'file_name' to
569 outer scope.
570
7d488639
MS
571 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
572 param with a local variable of the same name.
573
3bd0f5ef
MS
5742011-02-27 Michael Snyder <msnyder@vmware.com>
575
576 * value.c (value_from_history_ref): New function.
577 * value.h (value_from_history_ref): Export.
578 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
579 to parse value history references.
580 * cli/cli-utils.h (get_number_trailer): Update comment.
581
5822011-02-27 Michael Snyder <msnyder@vmware.com>
583
584 * inferior.c (detach_inferior_command): Use get_number_or_range.
585 (kill_inferior_command): Ditto.
586 (remove_inferior_command): Ditto.
587 (initialize_inferiors): Make command names plural.
588 Update help strings.
589
766062f6
MS
5902011-02-27 Michael Snyder <msnyder@vmware.com>
591
592 * darwin-nat-info.c: Fix comment typo.
593 * dwarf2expr.h: Ditto.
594 * fbsd-nat.c: Ditto.
595 * fbsd-nat.h: Ditto.
596 * frame-unwind.h: Ditto.
597 * frame.h: Ditto.
598 * hppa-hpux-tdep.c: Ditto.
599 * i386-linux-nat.c: Ditto.
600 * linux-nat.c: Ditto.
601 * nbsd-nat.c: Ditto.
602 * nbsd-nat.h: Ditto.
603 * ppc-linux-tdep.c: Ditto.
604 * serial.c: Ditto.
605 * ui-file.h: Ditto.
606 * tui/tui-winsource.c: Ditto.
607
f2c4ead5
MS
6082011-02-26 Michael Snyder <msnyder@vmware.com>
609
86b887df
MS
610 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
611
66fd3b1e
MS
612 * maint.c (maintenance_do_deprecate): Plug a memory leak.
613
8c814cdd
MS
614 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
615 with a local variable of the same name.
616
6d5e094a 617 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 618 param with a local variable of the same name.
6d5e094a 619 (i387_supply_xsave): Ditto.
e5b3d7d6 620
5eee517d
MS
621 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
622 that it does not shadow a function parameter.
623
8fbf6b93
MS
624 * i386-nat.c (i386_length_and_rw_bits): Document that case
625 statement is meant to fall through.
626
cb969d61
MS
627 * expprint.c (dump_subexp_body_standard): Document that case
628 statement is meant to fall through.
629
f2c4ead5
MS
630 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
631 dead if statement. Condition can't be false.
632
b021a221
MS
6332011-02-25 Michael Snyder <msnyder@vmware.com>
634
635 * arm-tdep.c: Fix typos in comments.
636 * bsd-uthread.c: Ditto.
637 * completer.c: Ditto.
638 * corelow.c: Ditto.
639 * cp-namespace.c: Ditto.
640 * cp-support.c: Ditto.
641 * cris-tdep.c: Ditto.
642 * dbxread.c: Ditto.
643 * dwarf2read.c: Ditto.
644 * frame.h: Ditto.
645 * gdbtypes.h: Ditto.
646 * inferior.h: Ditto.
647 * mdebugread.c: Ditto.
648 * mips-tdep.c: Ditto.
649 * ppc-linux-nat.c: Ditto.
650 * ppc-linux-tdep.c: Ditto.
651 * printcmd.c: Ditto.
652 * sol-thread.c: Ditto.
653 * solib-frv.c: Ditto.
654 * solist.h: Ditto.
655 * sparc64-tdep.c: Ditto.
656 * spu-tdep.c: Ditto.
657 * stabsread.c: Ditto.
658 * symfile.c: Ditto.
659 * valops.c: Ditto.
660 * varobj.c: Ditto.
661 * vax-nat.c: Ditto.
662 * python/py-block.c: Ditto.
663 * python/py-symbol.c: Ditto.
664 * python/py-symtab.c: Ditto.
665 * python/py-value.c: Ditto.
666 * tui/tui-win.c: Ditto.
667
c82c0b55
MS
6682011-02-25 Michael Snyder <msnyder@vmware.com>
669
670 * inferior.c (print_inferior): Accept a string instead of an int
671 for requested_inferiors, and use get_number_or_range to parse it.
672 (info_inferiors_command): Pass args string to print_inferior.
673 (initialize_inferiors): Change help string for info inferiors.
674 * inferior.h (print_inferior): Export prototype change.
675
ee00cd23
TT
6762011-02-25 Tom Tromey <tromey@redhat.com>
677
678 * common/ax.def (invalid2): Set to 0x31.
679
0502ed8c
JK
6802011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
681
682 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
683 L and plongest.
684 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
685 use L and plongest.
686 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
687
2c9de912
MS
6882011-02-24 Michael Snyder <msnyder@vmware.com>
689
690 * Makefile.in (clean): Make clean should remove generated files
691 observer.h and observer.inc.
692
a04b0428
JB
6932011-02-24 Joel Brobecker <brobecker@adacore.com>
694
695 Revert the following patch (not approved yet):
696 2011-02-21 Hui Zhu <teawater@gmail.com>
697 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
698 * ax-gdb.c (gen_printf_expr_callback): New function.
699 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
700 * ax-general.c (ax_memcpy): New function.
701 (ax_print): Handle "printf".
702 (ax_reqs): Ditto.
703 * ax.h (ax_memcpy): Forward declare.
704 * common/ax.def (invalid2): Removed.
705 (printf): New entry.
706 * printcmd.c (printcmd.h): New include.
707 (string_printf): New function.
708 (ui_printf): Removed.
709 (printf_command): Remove static. Call string_printf.
710 (eval_command): Call string_printf.
711 * printcmd.h: New file.
712 * tracepoint.c (validate_actionline,
713 encode_actions_1): handle printf_command.
714
2b52013f
TT
7152011-02-23 Tom Tromey <tromey@redhat.com>
716
717 * ax-general.c (ax_pick): Add missing newline.
718
e5a67952
MS
7192011-02-23 Michael Snyder <msnyder@vmware.com>
720
721 * breakpoint.c (breakpoint_1): Change first argument from an int
722 to a char pointer, so that the function now accepts a list of
723 breakpoints rather than just one. Use new function
724 'number_is_in_list' to implement.
725 (breakpoints_info): Pass char * instead of int to breakpoint_1.
726 (watchpoints_info): Ditto.
727 (tracepoints_info): Ditto.
728 (maintenance_info_breakpoints): Ditto.
729 (_initialize_breakpoint): Update help strings to reflect the fact
730 that these functions can now take more than one argument.
731 * cli/cli-utils.c (number_is_in_list): New function.
732 * cli/cli-utils.h (number_is_in_list): Export.
733
7342011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
735
736 * memattr.c (mem_enable_command): Use get_number_or_range.
737 (mem_disable_command): Ditto.
738 (mem_delete_command): Ditto.
739 (_initialize_mem): Tweak usage message to reflect multiple
740 arguments.
741
6e6fbe60
DE
7422011-02-22 Doug Evans <dje@google.com>
743
744 Add gdb.lookup_global_symbol python function.
745 * NEWS: Add entry.
746 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
747 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
748 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
749
79b97fa8
TT
7502011-02-22 Tom Tromey <tromey@redhat.com>
751
752 * language.c (language_class_name_from_physname): Rename
753 'curr_language' argument to 'lang'; use in body.
754
298f437a
MS
7552011-02-22 Michael Snyder <msnyder@vmware.com>
756
757 * cli/cli-utils.c (number_is_in_list): Check for zero return.
758
b7ea3126
PA
7592011-02-22 Pedro Alves <pedro@codesourcery.com>
760
761 * frame-unwind.h: Fix comment to mention the this frame, not the
762 next.
763
58ee6d60
TT
7642011-02-22 Tom Tromey <tromey@redhat.com>
765
766 * symfile.c (auto_solib_limit): Remove.
767 * symfile.h (auto_solib_limit): Remove.
768
36238dbc
JB
7692011-02-22 Joel Brobecker <brobecker@adacore.com>
770
771 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
772
aea5b279
MS
7732011-02-21 Michael Snyder <msnyder@vmware.com>
774
775 * gdbthread.h (print_thread_info): Change prototype.
776 * thread.c (print_thread_info): Accept char* instead of int for
777 requested_threads argument. Use new function number_is_in_list
778 to determine which threads to list.
779 (info_threads_command): Pass char* to print_thread_info.
780 * cli/cli-utils.c (number_is_in_list): New function.
781 * cli/cli-utils.h (number_is_in_list): Export.
782 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
783 print_thread_info.
784 (print_one_inferior): Ditto.
785 (mi_cmd_list_thread_groups): Ditto.
786
8caa75ee
JK
7872011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
788
789 * common/Makefile.in (CFLAGS): New.
790 (COMPILE): Add $(CFLAGS).
791
ea666128
TT
7922011-02-21 Tom Tromey <tromey@redhat.com>
793
794 * breakpoint.c (catch_syscall_command_1): Fix typo.
795
e9cafbcc
TT
7962011-02-21 Tom Tromey <tromey@redhat.com>
797
798 * reverse.c: Include cli-utils.h.
799 * printcmd.c: Include cli-utils.h.
800 (string_printf): Use skip_spaces.
801 * cli/cli-utils.h: New file.
802 * cli/cli-utils.c: New file.
803 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
804 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
805 * breakpoint.h (get_number, get_number_or_range): Move to
806 cli-utils.h.
807 * breakpoint.c: Include cli-utils.h.
808 (get_number_trailer, get_number, get_number_or_range)
809 (ep_skip_leading_whitespace): Move to cli-utils.c.
810 (create_breakpoint_sal, find_condition_and_thread)
811 (decode_static_tracepoint_spec, watch_command_1)
812 (watch_maybe_just_location, ep_parse_optional_if_clause)
813 (catch_fork_command_1, catch_exec_command_1)
814 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
815 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
816 (SUBDIR_CLI_SRCS): Add cli-utils.c.
817 (HFILES_NO_SRCDIR): Add cli-utils.h.
818 (cli-utils.o): New target.
819
f67fd822
PM
8202011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
821
822 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
823 before calling discard_all_inferiors.
824
c9def01d
UW
8252011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
826
827 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
828 (struct builtin_opencl_type): Remove.
829 (builtin_opencl_type): Change return type to "struct type **".
830 (lookup_opencl_vector_type): Update caller.
831 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
832 (build_opencl_types): Install plain array of "struct type *"
833 instead of "struct builtin_opencl_type".
834
e3039479
UW
8352011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
836 Ulrich Weigand <uweigand@de.ibm.com>
837
838 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
839 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
840 (struct arm_linux_hwbp_cap): New type.
841 (arm_linux_get_hwbp_cap): New function.
842 (arm_linux_get_hw_breakpoint_count): Likewise.
843 (arm_linux_get_hw_watchpoint_count): Likewise.
844 (arm_linux_can_use_hw_breakpoint): Likewise.
845 (arm_hwbp_type): New type.
846 (arm_hwbp_control_t): Likewise.
847 (struct arm_linux_hw_breakpoint): Likewise.
848 (struct arm_linux_thread_points): Likewise.
849 (arm_threads): New global variable.
850 (arm_linux_find_breakpoints_by_tid): New function.
851 (arm_hwbp_control_initialize): Likewise.
852 (arm_hwbp_control_is_enabled): Likewise.
853 (arm_hwbp_control_disable): Likewise.
854 (arm_linux_hw_breakpoint_initialize): Likewise.
855 (arm_linux_get_hwbp_type): Likewise.
856 (arm_linux_hw_watchpoint_initialize): Likewise.
857 (arm_linux_hw_breakpoint_equal): Likewise.
858 (arm_linux_insert_hw_breakpoint1): Likewise.
859 (arm_linux_remove_hw_breakpoint1): Likewise.
860 (arm_linux_insert_hw_breakpoint): Likewise.
861 (arm_linux_remove_hw_breakpoint): Likewise.
862 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
863 (arm_linux_insert_watchpoint): Likewise.
864 (arm_linux_remove_watchpoint): Likewise.
865 (arm_linux_stopped_data_address): Likewise.
866 (arm_linux_stopped_by_watchpoint): Likewise.
867 (arm_linux_watchpoint_addr_within_range): Likewise.
868 (arm_linux_new_thread): Likewise.
869 (arm_linux_thread_exit): Likewise.
870 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
871 related target callbacks. Register arm_linux_new_thread and
872 arm_linux_thread_exit.
873 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
874 * arm-tdep.c (arm_pc_is_thumb): Make global.
875 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
876
b5db5dfc
UW
8772011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
878
879 * breakpoint.c (update_watchpoint): Do not attempt to recreate
880 per-frame locations while within a function epilogue.
881
e25b2cfa
PM
8822011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
883
884 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
885 to GNU coding standards.
886
4af53f97
PM
8872011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
888
889 Allow use of mingw native on Windows 95 OS.
e25b2cfa 890 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
891 (ser_windows_close): Only call CancelIo if function exists.
892 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
893 to check for existence of CancelIo function in kernel32 DLL.
894
d0e92d82
HZ
8952011-02-21 Hui Zhu <teawater@gmail.com>
896
897 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
898 * ax-gdb.c (gen_printf_expr_callback): New function.
899 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
900 * ax-general.c (ax_memcpy): New function.
901 (ax_print): Handle "printf".
902 (ax_reqs): Ditto.
903 * ax.h (ax_memcpy): Forward declare.
904 * common/ax.def (invalid2): Removed.
905 (printf): New entry.
906 * printcmd.c (printcmd.h): New include.
907 (string_printf): New function.
908 (ui_printf): Removed.
909 (printf_command): Remove static. Call string_printf.
910 (eval_command): Call string_printf.
911 * printcmd.h: New file.
912 * tracepoint.c (validate_actionline,
913 encode_actions_1): handle printf_command.
914
7d357efd
MS
9152011-02-19 Michael Snyder <msnyder@vmware.com>
916
917 * reverse.c (delete_one_bookmark): Argument is now bookmark
918 id rather than pointer to bookmark struct.
919 (delete_bookmark_command): Use get_number_or_range.
920 (goto_bookmark_command): Parse with get_number instead of strtoul.
921 (bookmark_1): New function. Print info for one bookmark.
922 (bookmarks_info): Use get_number_or_range and bookmark_1.
923
7a45ebd7
MS
9242011-02-18 Michael Snyder <msnyder@vmware.com>
925
926 * thread.c (info_threads_command): Re-implement using
927 get_number_or_range.
65ebfb52 928 (thread_apply_command): Ditto.
7a45ebd7 929
94d5e490
TT
9302011-02-18 Tom Tromey <tromey@redhat.com>
931
932 * common/ax.def: New file.
933 * ax.h (enum agent_op): Use ax.def.
934 * ax-general.c (aop_map): Use ax.def.
935
c7f96d2b
TT
9362011-02-18 Tom Tromey <tromey@redhat.com>
937
938 * ax-general.c (aop_map): Add pick and rot.
939 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
940 <DW_OP_rot>: Implement.
941 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
942 (ax_pick): Declare.
943 * ax-general.c (ax_pick): New function.
944
66694b75
TT
9452011-02-18 Tom Tromey <tromey@redhat.com>
946
947 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
948
eeaafae2
JK
9492011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
950 Tom Tromey <tromey@redhat.com>
951
952 * cp-support.c (make_symbol_overload_list_namespace): Do not call
953 make_symbol_overload_list_block with NULL BLOCK.
954 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
955
3c3fe74c
PA
9562011-02-18 Pedro Alves <pedro@codesourcery.com>
957
958 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
959 * breakpoint.h (get_number_or_range): Declare.
960 * printcmd.c (ALL_DISPLAYS): Declare.
961 (delete_display): Reimplement taking a display pointer.
962 (undisplay_command): Accept a range of displays to delete, using
963 get_number_or_range.
964
13163d80
PM
9652011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
966
967 * c-valprint.c (c_val_print): Add embedded_offset to address
968 for arrays of unspecified length.
969 * p-valprint.c (pascal_val_print): Likewise.
970
b434a28f
YQ
9712011-02-18 Yao Qi <yao@codesourcery.com>
972
973 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
974 (arm_process_displaced_insn): .. here. Remove parameter INSN.
975 (thumb_process_displaced_insn): New.
976 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
977 call to arm_process_displaced_insn.
978 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
979
9f6f94ff
TT
9802011-02-17 Tom Tromey <tromey@redhat.com>
981
982 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
983 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
984 compile_dwarf_to_ax. No longer static. Call
985 dwarf2_compile_cfa_to_ax.
986 (locexpr_tracepoint_var_ref): Update.
987 (loclist_tracepoint_var_ref): Update.
988 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
989 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
990 argument; add 'gdbarch' and 'pc'.
991 (dwarf2_compile_cfa_to_ax): New function.
992 (dwarf2_frame_cache): Update.
993
e67ad678
JB
9942011-02-17 Joel Brobecker <brobecker@adacore.com>
995
996 * ada-lang.c (ada_type_of_array): Fix the size of the array
997 in the case of an unconstrained packed array.
998
946ebb0d
YQ
9992011-02-17 Yao Qi <yao@codesourcery.com>
1000
1001 * common/Makefile.in: Add more targets for make.
1002
1ba1b353
TT
10032011-02-16 Tom Tromey <tromey@redhat.com>
1004
1005 * dwarf2loc.c (unimplemented): Fix typo.
1006
b1bfef65
TT
10072011-02-16 Tom Tromey <tromey@redhat.com>
1008
1009 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
1010 (compile_dwarf_to_ax) <default>: Use unimplemented.
1011 <DW_OP_deref>: Update.
1012 (disassemble_dwarf_expression): Update.
1013 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
1014 (decode_locdesc): Update.
1015 * dwarf2expr.h (dwarf_stack_op_name): Update.
1016
5f1e6f19
TT
10172011-02-16 Tom Tromey <tromey@redhat.com>
1018
1019 * ax.h (struct aop_map) <name>: Now const.
1020
a0c78a73
PA
10212011-02-16 Tom Tromey <tromey@redhat.com>
1022
1023 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
1024 than axs_rvalue.
1025
946ebb0d 10262011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
1027
1028 * infrun.c (get_displaced_step_closure_by_addr): New.
1029 * inferior.h: Declare it.
1030 * arm-tdep.c: (arm_pc_is_thumb): Call
1031 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
1032 returns non-NULL.
1033
08807d5a
PA
10342011-02-16 Pedro Alves <pedro@codesourcery.com>
1035 Jan Kratochvil <jan.kratochvil@redhat.com>
1036
1037 gdb/
1038 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
1039
29976f3f
PA
10402011-02-16 Pedro Alves <pedro@codesourcery.com>
1041 Jan Kratochvil <jan.kratochvil@redhat.com>
1042
1043 * value.c (value_contents_copy_raw): Extend describing comment.
1044 Assert that the destination contents we're overwriting are wholly
1045 available.
fb68ae73 1046 (value_contents_copy): Extend describing comment.
29976f3f 1047
cd24cfaa
PA
10482011-02-16 Pedro Alves <pedro@codesourcery.com>
1049 Jan Kratochvil <jan.kratochvil@redhat.com>
1050
1051 * value.c (value_available_contents_eq): Remove redundant local
1052 variables. Fix available contents comparision.
1053 * value.h (value_available_contents_eq): Extend describing
1054 comment.
1055
60bbf338
YQ
10562011-02-16 Yao Qi <yao@codesourcery.com>
1057
1058 * thread.c (info_threads_command): Add missing i18n markup and remove
1059 trailing newline.
1060
17450429
PP
10612011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
1062
1063 * breakpoint.c (longjmp_names): New variable.
1064 (struct breakpoint_objfile_data): New type.
1065 (breakpoint_objfile_key): New variable.
1066 (msym_not_found): New variable.
1067 (msym_not_found_p): New predicate.
1068 (get_breakpoint_objfile_data): New function.
1069 (create_overlay_event_breakpoint): Check per-objfile cache for
1070 symbols first.
1071 (create_longjmp_master_breakpoint): Likewise.
1072 (create_std_terminate_master_breakpoint): Likewise.
1073 (create_exception_master_breakpoint): Likewise.
1074 (_initialize_breakpoint): Register per-objfile data key.
1075
af02033e
PP
10762011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
1077
1078 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
1079 parameter value.
1080 (create_longjmp_master_breakpoint): Loop over longjmp names.
1081 (create_std_terminate_master_breakpoint): Const-propagate parameter
1082 value.
1083 (update_breakpoints_after_exec): Adjust.
1084 (breakpoint_re_set): Adjust.
1085
60f98dde
MS
10862011-02-15 Michael Snyder <msnyder@vmware.com>
1087
cdf99611
MS
1088 * thread.c (info_threads_command): Process arg as thread id,
1089 or list of thread ids.
1090 (thread_find_command): New command.
1091 (_initialize_thread): Document argument for info threads.
1092 Document 'thread find' command.
1093 * NEWS: Document new command "thread find".
60f98dde 1094
0feedb2c
JK
10952011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1096
1097 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
1098 * aclocal.m4: Regenerated with aclocal-1.11.1.
1099 * common/configure: Regenerate with autoconf-2.64.
1100
648cd113
KW
11012011-02-15 Ken Werner <ken.werner@de.ibm.com>
1102
1103 * opencl-lang.c (build_opencl_types): Set the size of the built-in
1104 bool data type to a size of one byte.
1105
5657161f
PA
11062011-02-15 Pedro Alves <pedro@codesourcery.com>
1107 Jan Kratochvil <jan.kratochvil@redhat.com>
1108
1109 * target.c (memory_xfer_live_readonly_partial): Document where to
1110 look for interface description.
1111
494e194e
YQ
11122011-02-15 Yao Qi <yao@codesourcery.com>
1113
1114 PR tdep/12352
1115 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
1116 order to store PC value on stack instead of text section.
1117
d9492458
TJB
11182011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
1119
1120 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
1121 the EFP register set size.
1122 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
1123 data from the VMX register.
1124 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
1125 and write data from/to the VMX register.
1126
cdf99611
MS
11272011-02-14 Michael Snyder <msnyder@vmware.com>
1128
1129 * command.h (enum command_class): New class 'no_set_class', for
1130 "show" commands without a corresponding "set" command.
1131 * value.c (_initialize_values): Use 'no_set_class' for "show values".
1132 * copying.c (_initialize_copying): Ditto for "show copying" and
1133 "show warranty".
1134 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
1135 "show version".
1136 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
1137 which there is no corresponding "set" command (eg. "show copying").
1138
424447ee
PA
11392011-02-14 Pedro Alves <pedro@codesourcery.com>
1140 Jan Kratochvil <jan.kratochvil@redhat.com>
1141
1142 * exec.c (section_table_available_memory): Change `len' parameter
1143 type to ULONGEST.
1144 * exec.h (section_table_available_memory): Ditto.
1145 * value.h (read_value_memory): Rename the `offset' parameter to
1146 `embedded_offset'.
1147
c0f61f9c 11482011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 1149 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
1150
1151 * memrange.c (compare_mem_ranges): Mention sort order in
1152 describing comment.
1153 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
1154 * tracepoint.c (traceframe_available_memory): Extend comment to
1155 mention what happens to RESULT when the target does not support
1156 the query.
1157
6bfc80c7
PA
11582011-02-14 Pedro Alves <pedro@codesourcery.com>
1159 Jan Kratochvil <jan.kratochvil@redhat.com>
1160
1161 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
1162 range.
1163
e7303042
PA
11642011-02-14 Pedro Alves <pedro@codesourcery.com>
1165
1166 * value.c (value_bits_valid, value_bits_synthetic_pointer):
1167 No longer handle NULL values.
1168
8af8e3bc
PA
11692011-02-14 Pedro Alves <pedro@codesourcery.com>
1170
1171 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
1172 * value.c: Include "exceptions.h".
1173 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
1174 generic error.
1175 * cp-abi.c: Include gdb_assert.h.
1176 (baseclass_offset): Add `embedded_offset' and `val' parameters.
1177 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
1178 errors.
1179 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
1180 parameters. No longer returns -1 on error.
1181 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
1182 `val' parameters.
1183 * cp-valprint.c: Include exceptions.h.
1184 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
1185 the baseclass_offset. Handle unavailable base classes. Use
1186 val_print_invalid_address.
1187 * p-valprint.c: Include exceptions.h.
1188 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
1189 when fetching the baseclass_offset. No longer expect
1190 baseclass_offset returning -1. Handle unavailable base classes.
1191 Use val_print_invalid_address.
1192 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
1193 `valaddr' parameter, and change its type to gdb_byte pointer. Add
1194 `embedded_offset' and `val' parameters. Adjust.
1195 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
1196 parameter, and change its type to gdb_byte pointer. Add
1197 `embedded_offset' and `val' parameters. Adjust. No longer expect
1198 baseclass_offset returning -1.
1199 (value_dynamic_cast): Use value_contents_for_printing rather than
1200 value_contents. Adjust.
1201 (search_struct_field): No longer expect baseclass_offset returning
1202 -1.
1203 (search_struct_method): If reading memory from the target is
1204 necessary, wrap it in a new value to pass to baseclass_offset. No
1205 longer expect baseclass_offset returning -1.
1206 (find_method_list): No longer expect baseclass_offset returning
1207 -1. Use value_contents_for_printing rather than value_contents.
1208 * valprint.c (val_print_invalid_address): New function.
1209 * valprint.h (val_print_invalid_address): Declare.
1210 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
1211 and `val' parameters. No longer expect baseclass_offset returning
1212 -1. Adjust.
1213 * gnu-v2-abi.c: Include "exceptions.h".
1214 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
1215 parameters. Handle unavailable memory. Recurse through
1216 gnuv2_baseclass_offset directly, rather than through
1217 baseclass_offset. No longer returns -1 on not found, instead
1218 throw an error.
1219 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
1220 `val' parameters. Adjust.
1221
1b28d0b3
PA
12222011-02-14 Pedro Alves <pedro@codesourcery.com>
1223
1224 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
1225 almost but not quite adjacent.
1226
ec0a52e1
PA
12272011-02-14 Pedro Alves <pedro@codesourcery.com>
1228
1229 * value.h (value_entirely_available): Declare.
1230 * value.c (value_entirely_available): New function.
1231 * c-valprint.c (c_value_print): Don't try fetching the pointer's
1232 real type if the pointer is unavailable.
1233
24e6bcee
PA
12342011-02-14 Pedro Alves <pedro@codesourcery.com>
1235
1236 * valops.c (value_repeat): Use read_value_memory instead of
1237 read_memory.
1238
39d37385
PA
12392011-02-14 Pedro Alves <pedro@codesourcery.com>
1240
1241 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
1242 * value.c (value_contents_copy_raw, value_contents_copy): New
1243 functions.
1244 (value_primitive_field): Use value_contents_copy_raw instead of
1245 memcpy.
1246 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
1247 memcpy.
1248 (value_array, value_slice): Ditto.
1249 * valarith.c (value_subscripted_rvalue): Use
1250 value_contents_copy_raw instead of memcpy.
1251
a3d34bf4
PA
12522011-02-14 Pedro Alves <pedro@codesourcery.com>
1253
1254 <unavailable> references.
1255
1256 * valops.c (get_value_at): Use value_from_contents_and_address,
1257 avoiding read_memory.
1258
9fc6d940
PA
12592011-02-14 Pedro Alves <pedro@codesourcery.com>
1260
1261 * c-valprint.c (c_val_print): Print a string with unavailable
1262 contents as an array.
1263
5467c6c8
PA
12642011-02-14 Pedro Alves <pedro@codesourcery.com>
1265
1266 * value.h (unpack_bits_as_long): Delete declaration.
1267 (unpack_value_bits_as_long): Declare.
1268 (unpack_value_field_as_long): Declare.
1269 (value_field_bitfield): Declare.
1270 * value.c (unpack_bits_as_long): Rename to...
1271 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
1272 value parameters. Return the extracted result in a new output
1273 parameter. If the value contents are unavailable, return false,
1274 otherwise return true.
1275 (unpack_value_bits_as_long): New.
1276 (unpack_field_as_long): Rename to...
1277 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
1278 Add embedded_offset and value parameters. Return the extracted
1279 result in a new output parameter. If the value contents are
1280 unavailable, return false, otherwise return true.
1281 (unpack_value_field_as_long): New.
1282 (unpack_field_as_long_1): New.
1283 (unpack_field_as_long): Reimplement as wrapper around
1284 unpack_value_field_as_long_1.
1285 (value_field_bitfield): New function.
1286 * valops.c (value_fetch_lazy): When fetching a bitfield, use
1287 unpack_value_bits_as_long. Mark the value as unavailable, if it
1288 is unavailable.
1289 * jv-valprint.c (java_print_value_fields): Use
1290 value_field_bitfield.
1291 * p-valprint.c (pascal_object_print_value_fields): Use
1292 value_field_bitfield.
1293 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
1294
3158c6ed
PA
12952011-02-14 Pedro Alves <pedro@codesourcery.com>
1296
1297 * value.c (get_internalvar_integer): Also return the int value of
1298 TYPE_CODE_INT INTERNALVAR_VALUE values.
1299 (set_internalvar): Don't special case TYPE_CODE_INT.
1300
9fbdca0d
PA
13012011-02-14 Pedro Alves <pedro@codesourcery.com>
1302
1303 * value.c (struct internalvar) <enum internalvar_kind>: Remove
1304 INTERNALVAR_POINTER.
1305 <pointer>: Delete.
1306 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
1307 (set_internalvar): Remove special TYPE_CODE_PTR handling.
1308 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
1309
c8c1c22f
PA
13102011-02-14 Pedro Alves <pedro@codesourcery.com>
1311
1312 * value.h (value_available_contents_eq): Declare.
1313 * value.c (find_first_range_overlap): New function.
1314 (value_available_contents_eq): New function.
1315 * valprint.c (val_print_array_elements): Use
1316 value_available_contents_eq.
1317 * ada-valprint.c (val_print_packed_array_elements): Use
1318 value_available_contents_eq.
1319 * jv-valprint.c (java_value_print): Use
1320 value_available_contents_eq.
1321
e6e4e701
PA
13222011-02-14 Pedro Alves <pedro@codesourcery.com>
1323
1324 * target.c (target_read_live_memory): New function.
1325 (memory_xfer_live_readonly_partial): New.
1326 (memory_xfer_partial): If reading from a traceframe, fallback to
1327 reading unavailable read-only memory from read-only regions of
1328 live target memory.
1329 * tracepoint.c (disconnect_tracing): Adjust.
1330 (set_current_traceframe): New, factored out from
1331 set_traceframe_number.
1332 (set_traceframe_number): Reimplement to only change the traceframe
1333 number on the GDB side.
1334 (do_restore_current_traceframe_cleanup): Adjust.
1335 (make_cleanup_restore_traceframe_number): New.
1336 (cur_traceframe_number): New global.
1337 (tfile_open): Set cur_traceframe_number to no traceframe.
1338 (set_tfile_traceframe): New function.
1339 (tfile_trace_find): If looking up a traceframe using any method
1340 other than by number, make sure the current tfile traceframe
1341 matches gdb's current traceframe. Update the current tfile
1342 traceframe if the lookup succeeded.
1343 (tfile_fetch_registers, tfile_xfer_partial)
1344 (tfile_get_trace_state_variable_value): Make sure the remote
1345 traceframe matches gdb's current traceframe.
1346 * remote.c (remote_traceframe_number): New global.
1347 (remote_open_1): Set it to -1.
1348 (set_remote_traceframe): New function.
1349 (remote_fetch_registers, remote_store_registers)
1350 (remote_xfer_memory, remote_xfer_partial)
1351 (remote_get_trace_state_variable_value): Make sure the remote
1352 traceframe matches gdb's current traceframe.
1353 (remote_trace_find): If looking up a traceframe using any method
1354 other than by number, make sure the current remote traceframe
1355 matches gdb's current traceframe. Update the current remote
1356 traceframe if the lookup succeeded.
1357 * infrun.c (fetch_inferior_event): Adjust.
1358 * tracepoint.h (set_current_traceframe): Declare.
1359 (get_traceframe_number, set_traceframe_number): Add describing
1360 comments.
1361
e6ca34fc
PA
13622011-02-14 Pedro Alves <pedro@codesourcery.com>
1363
1364 Mark pieces of values as unavailable if the corresponding memory
1365 is unavailable.
1366
1367 * valops.c: Include tracepoint.h.
1368 (value_fetch_lazy): Use read_value_memory.
1369 (read_value_memory): New.
1370 * value.h (read_value_memory): Declare.
1371 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
1372 * exec.c (section_table_available_memory): New function.
1373 * exec.h (section_table_available_memory): Declare.
1374
2a7498d8
PA
13752011-02-14 Pedro Alves <pedro@codesourcery.com>
1376
1377 * Makefile.in (SFILES): Add memrange.c.
1378 (HFILES_NO_SRCDIR): Add memrange.h.
1379 (COMMON_OBS): Add memrange.o.
1380 * memrange.c: New file.
1381 * memrange.h: New file.
1382 * tracepoint.c: Include memrange.h.
1383 (struct mem_range): Delete.
1384 (mem_range_s): Delete.
1385 (traceframe_available_memory): New function.
1386 * tracepoint.h (traceframe_available_memory): Declare.
1387
b3b9301e
PA
13882011-02-14 Pedro Alves <pedro@codesourcery.com>
1389
1390 * target.h (struct traceframe_info): Forward declare.
1391 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
1392 (struct target_ops) <to_traceframe_info>: New field.
1393 (target_traceframe_info): New.
1394 * target.c (update_current_target): Inherit and default
1395 to_traceframe_info.
1396 * remote.c (PACKET_qXfer_traceframe_info): New.
1397 (remote_protocol_features): Register qXfer:traceframe-info:read.
1398 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
1399 (remote_traceframe_info): New.
1400 (init_remote_ops): Install it.
1401 (_initialize_remote): Install "set/show remote traceframe-info"
1402 commands.
1403 * tracepoint.h (parse_traceframe_info): Declare.
1404 * tracepoint.c (struct mem_range): New.
1405 (mem_range_s): New typedef.
1406 (struct traceframe_info): New.
1407 (traceframe_info): New global.
1408 (free_traceframe_info): New function.
1409 (clear_traceframe_info): New function.
1410 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
1411 info.
1412 (build_traceframe_info): New function.
1413 (tfile_traceframe_info): New function.
1414 (init_tfile_ops): Install tfile_traceframe_info.
1415 (traceframe_info_start_memory, free_result): New functions.
1416 (memory_attributes, traceframe_info_elements): New globals.
1417 (parse_traceframe_info, get_traceframe_info): New functions.
1418 * features/traceframe-info.dtd: New file.
1419 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
1420
4e07d55f
PA
14212011-02-14 Pedro Alves <pedro@codesourcery.com>
1422
1423 Base support for <unavailable> value contents.
1424
4e07d55f
PA
1425 * value.h (value_bytes_available): Declare.
1426 (mark_value_bytes_unavailable): Declare.
1427 * value.c (struct range): New struct.
1428 (range_s): New typedef.
1429 (ranges_overlap): New function.
1430 (range_lessthan): New function.
1431 (ranges_contain_p): New function.
1432 (struct value) <unavailable>: New field.
1433 (value_bytes_available): New function.
1434 (mark_value_bytes_unavailable): New function.
1435 (require_not_optimized_out): Constify parameter.
1436 (require_available): New function.
1437 (value_contents_all, value_contents): Require all bytes be
1438 available.
1439 (value_free): Free `unavailable'.
1440 (value_copy): Copy `unavailable'.
1441 * valprint.h (val_print_unavailable): Declare.
1442 * valprint.c (valprint_check_validity): Rename `offset' parameter
1443 to `embedded_offset'. If printing a scalar, check whether the
1444 value chunk is available.
1445 (val_print_unavailable): New.
1446 (val_print_scalar_formatted): Check whether the value is
1447 available.
1448 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
1449 pretty-printing unavailable values.
1450
bc9a5551
JK
14512011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1452
1453 Fix const/volatile qualifiers of C++ types, PR c++/12328.
1454 * c-typeprint.c (c_type_print_args): Update the function comment. New
1455 variable param_type, initialize it. Remove const/volatile qualifiers
1456 for language_cplus and !show_artificial. Use param_type.
1457
93b55aa1
JK
14582011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1459
1460 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
1461 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
1462 * symtab.h (struct symtab) <next>: Comment extension.
1463
181d9476
YQ
14642011-02-12 Yao Qi <yao@codesourcery.com>
1465
1466 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
1467
b708a5c7
JK
14682011-02-11 Yao Qi <yao@codesourcery.com>
1469
1470 * common/Makefile.in: Add copyright header.
1471
c5187ac6
PA
14722011-02-11 Pedro Alves <pedro@codesourcery.com>
1473
1474 * infrun.c (proceed): Move switching out and in of tfind mode from
1475 here ...
1476 (fetch_inferior_event): ... to here.
1477
4f3e6fb7
YQ
14782011-02-11 Yao Qi <yao@codesourcery.com>
1479
1480 * Makefile.in: Remove signals.o from COMMON_OBS. Link
1481 libcommon.a.
1482 * configure.ac: Add common to sub dir.
1483 * configure: Regenerate.
1484
b708a5c7
JK
14852011-02-11 Yao Qi <yao@codesourcery.com>
1486
1487 Build libcommon.a.
1488
1489 * common/Makefile.in: New.
1490 * common/configure.ac: New.
1491 * common/aclocal.m4: New.
1492 * common/configure: Generate.
1493
2287cc7e
PA
14942011-02-10 Pedro Alves <pedro@codesourcery.com>
1495
1496 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
1497 side of the parenthesis.
1498
1499 Merge from GCC:
1500 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 1501 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 1502
fd62cb89
MS
15032011-02-08 Michael Snyder <msnyder@vmware.com>
1504
1505 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
1506
56d2815c
JK
15072011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1508
1509 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
1510 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
1511 psubd and paddd.
1512
4f7d61a8
JK
15132011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1514
1515 PR 12361.
1516 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
1517 phsubsw.
1518 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
1519 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
1520
54fcddd0
UW
15212011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1522
1523 * dwarf2read.c (read_subroutine_type): Set special calling
1524 convention flag for functions compiled by IBM XL C for OpenCL.
1525 * ppc-sysv-tdep.c: Include "dwarf2.h"
1526 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
1527 calling convention.
1528 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
1529 IBM OpenCL vector types calling convention.
1530 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
1531 (ppc_sysv_abi_broken_return_value): Likewise.
1532 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
1533 types calling convention.
1534 (ppc64_sysv_abi_return_value): Likewise.
1535 * spu-tdep.c: Include "dwarf2.h"
1536 (spu_return_value): Implement IBM OpenCL vector types calling
1537 convention.
1538
d6dafb7c
UW
15392011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1540
1541 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
1542 correct ABI for AltiVec vector arguments.
1543
32b72a42
PA
15442011-02-07 Pedro Alves <pedro@codesourcery.com>
1545
1546 * valprint.c (val_print): Extend comment.
1547 * ada-valprint.c (ada_valprint): Rewrite comment deferring
1548 interface explanation to val_print.
1549 (ada_val_print_array): Adjust comment to current interface.
1550 (print_field_values): Adjust comment to current interface.
1551 * c-valprint.c (c_val_print): Rewrite comment deferring interface
1552 explanation to val_print.
1553 * f-valprint.c (f_val_print): Ditto.
1554 * jv-valprint.c (java_val_print): Ditto.
1555 * m2-valprint.c (m2_val_print): Ditto.
1556 * p-valprint.c (pascal_val_print): Ditto.
1557
9998af43
TJB
15582011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
1559
1560 * breakpoint.c (parse_breakpoint_sals): Fix description.
1561
505500db 15622011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 1563 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
1564
1565 * python/py-inferior.c (python_on_normal_stop): New function.
1566 (python_on_resume): New function.
1567 (python_inferior_exit): New function.
1568 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
1569 inferior_exit observers.
1570 * python/py-evtregistry.c: New file.
1571 * python/py-threadevent.c : New file.
1572 * python/py-event.c: New file.
1573 * python/py-evts.c: New file.
1574 * python/py-continueevent.c: New file.
1575 * python/py-bpevent.c: New file.
1576 * python/py-signalevent.c: New file.
1577 * python/py-exetiedevent.c: New file.
1578 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
1579 Move struct breakpoint_object from here...
1580 * python/python-internal.h: ... to here.
1581 * python/py-event.h: New file.
1582 * python/py-events.h: New file.
1583 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
1584 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
1585 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
1586 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
1587 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
1588 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
1589 Add build rules for all the above.
1590
9e0ac564
TT
15912011-02-04 Tom Tromey <tromey@redhat.com>
1592
1593 * dwarf2read.c (dwarf2_section_empty_p): New function.
1594 (dwarf2_read_section): Use dwarf2_section_empty_p.
1595 (dwarf2_section_size): New function.
1596 (dwarf2_get_section_info): Unconditionally read section.
1597 (dwarf2_read_index): Use dwarf2_section_empty_p.
1598 (partial_read_comp_unit_head): Use dwarf2_section_size.
1599 (dwarf2_symbol_mark_computed): Likewise.
1600
eee5b35e
DD
16012011-02-04 David Daney <ddaney@caviumnetworks.com>
1602
1603 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
1604
385203ed
DD
16052011-02-04 David Daney <ddaney@caviumnetworks.com>
1606
1607 * mips-linux-tdep.c: Include xml-syscall.h.
1608 (mips_linux_get_syscall_number): New function.
1609 (mips_linux_init_abi): Add calls to
1610 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
1611 * data-directory/Makefile.in (SYSCALLS_FILES): Add
1612 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
1613 * syscalls/mips-n32-linux.xml: New file.
1614 * syscalls/mips-n64-linux.xml: New file.
1615 * syscalls/mips-o32-linux.xml: New file.
1616
9277c30c
UW
16172011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
1618
1619 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
1620 Complain about inverted range entries.
1621 (dwarf2_record_block_ranges): Likewise.
1622
a3be7890
TJB
16232011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1624
1625 Fix some typos.
1626 * breakpoint.c (update_watchpoint): Fix name of the
1627 update_global_location_list function.
1628 (print_one_breakpoint): Fix typo.
1629 (_initialize_breakpoint): Remove extra space in hbreak help
1630 string.
1631 * breakpoint.h (struct bp_location) <length>: Fix field
1632 description.
1633
041274d8
PA
16342011-02-04 Pedro Alves <pedro@codesourcery.com>
1635
1636 * regcache.c (registers_changed_ptid): Don't explictly always
1637 clear `current_regcache'. Only clear current_thread_ptid and
1638 current_thread_arch when PTID matches. Only reinit the frame
1639 cache if PTID matches the current inferior_ptid. Move alloca(0)
1640 call to ...
1641 (registers_changed): ... here.
1642
c1c2ab58
UW
16432011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
1644
1645 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
1646 starts with __stack_chk_guard as stack guard symbol.
1647
9011945e
AB
16482011-02-03 Andrew Burgess <aburgess@broadcom.com>
1649
1650 * disasm.c (compare_lines): Handle the end of sequence markers
1651 within the line table to better support disassembling over
1652 compilation unit boundaries.
1653
e0634ccf
UW
16542011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1655
1656 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
1657 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
1658 implementation even if no symbols are available.
1659 (thumb_analyze_prologue): Update call to skip_prologue_function.
1660 (arm_analyze_prologue): Likewise.
1661
0e9e9abd
UW
16622011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1663
1664 * arm-tdep.c: Include "observer.h".
1665 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
1666 (arm_exidx_data_key): New static variable.
1667 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
1668 (struct arm_exidx_data): Likewise.
1669 (arm_exidx_data_free): New function.
1670 (arm_compare_exidx_entries): Likewise.
1671 (arm_obj_section_from_vma): Likewise.
1672 (arm_exidx_new_objfile): Likewise.
1673 (arm_find_exidx_entry): Likewise.
1674 (arm_exidx_fill_cache): Likewise.
1675 (arm_exidx_unwind_sniffer): Likewise.
1676 (arm_exidx_unwind): New global variable.
1677 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
1678 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
1679 observer. Register arm_exidx_data_key as objfile data.
1680
2e9e421f
UW
16812011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1682
1683 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
1684 due to accessing uninitialized variable. Fix indentation.
1685
580688f3
PA
16862011-02-02 Pedro Alves <pedro@codesourcery.com>
1687
1688 * c-valprint.c (c_value_print): When doing virtual base pointer
1689 adjustment, create a new value with adjusted contents rather than
1690 changing the contents of the value being printed (and getting it
1691 wrong).
1692
3d2c1d41
PA
16932011-02-02 Pedro Alves <pedro@codesourcery.com>
1694
1695 * xml-support.c (xml_find_attribute): New.
1696 (xinclude_start_include): Use it.
1697 * xml-support.h (xml_find_attribute): Declare.
1698 * memory-map.c (memory_map_start_memory)
1699 (memory_map_start_property): Use xml_find_attribute.
1700 * osdata.c (osdata_start_osdata, osdata_start_column): Use
1701 xml_find_attribute.
1702 * remote.c (start_thread): Use xml_find_attribute.
1703 * solib-target.c (library_list_start_segment)
1704 (library_list_start_section, library_list_start_library)
1705 (library_list_start_list): Use xml_find_attribute.
1706 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
1707 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
1708 (tdesc_start_field): Use xml_find_attribute.
1709
0af3e2db
UW
17102011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
1711
1712 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
1713 (BUILD_OCL_VTYPES): Update.
1714
c1039e3c
JB
17152011-02-02 Joel Brobecker <brobecker@adacore.com>
1716
1717 * configure.ac: Work around non-GNU sed limitation when computing
1718 python version number.
1719 * configure: Regenerate.
1720
600ea1be
JK
17212011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1722
1723 Fix debug printing of TYPE_INSTANCE.
1724 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
1725 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
1726
56c12414
JK
17272011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1728
1729 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
1730 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
1731 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
1732 * ada-operator.inc: Rename the file to ...
1733 * ada-operator.def: ... here, wrap all the entries by macro OP.
1734 * expprint.c (op_name_standard): Remove all the entries. Include
1735 "std-operator.def" instead.
1736 * expression.h (enum exp_opcode): Include "std-operator.def" and
1737 "ada-operator.def". Move all the entries ...
1738 * std-operator.def: ... here, wrap all the entries by macro OP.
1739
c52b559d
PP
17402011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1741
1742 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
1743 * breakpoint.c (remove_jit_event_breakpoints): New function.
1744 * jit.c (jit_descriptor_addr): Delete.
1745 (registering_code): Delete.
1746 (clear_int): Delete.
1747 (jit_inferior_data): New variable.
1748 (struct jit_inferior_data): New type.
1749 (get_jit_inferior_data): New function.
1750 (jit_inferior_data_cleanup): New function.
1751 (jit_read_descriptor): Adjust.
1752 (jit_register_code): Adjust.
1753 (jit_breakpoint_re_set_internal): New function; move code here ...
1754 (jit_inferior_init): ... from here.
1755 (jit_breakpoint_re_set): Adjust.
1756 (jit_reset_inferior_data_and_breakpoints): New function.
1757 (jit_inferior_created_observer): Adjust.
1758 (jit_inferior_exit_hook): Adjust.
1759 (jit_executable_changed_observer): New function.
1760 (jit_event_handler): Adjust.
1761 (_initialize_jit): Adjust.
1762
e839132d
MS
17632011-01-31 Michael Snyder <msnyder@vmware.com>
1764
1765 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
1766 line.
1767
47a80e90
TT
17682011-01-31 Tom Tromey <tromey@redhat.com>
1769
1770 PR python/12216:
1771 * python/python.c (execute_gdb_command): Call
1772 prevent_dont_repeat.
1773 * top.c (suppress_dont_repeat): New global.
1774 (dont_repeat): Use it.
1775 (prevent_dont_repeat): New function.
1776 * command.h (prevent_dont_repeat): Declare.
1777
45a43567
TT
17782011-01-31 Tom Tromey <tromey@redhat.com>
1779
1780 * infcmd.c (finish_backward): Use breakpoint_set_silent.
1781 * python/py-breakpoint.c (bppy_set_silent): Use
1782 breakpoint_set_silent.
1783 (bppy_set_thread): Use breakpoint_set_thread.
1784 (bppy_set_task): Use breakpoint_set_task.
1785 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
1786 (breakpoint_set_task): Declare.
1787 (make_breakpoint_silent): Remove.
1788 * breakpoint.c (breakpoint_set_silent): New function.
1789 (breakpoint_set_thread): Likewise.
1790 (breakpoint_set_task): Likewise.
1791 (make_breakpoint_silent): Remove.
1792
09d682a4
TT
17932011-01-31 Tom Tromey <tromey@redhat.com>
1794
1795 * breakpoint.h (user_breakpoint_p): Declare.
1796 * breakpoint.c (user_breakpoint_p): New function.
1797 (breakpoint_1): Use it.
1798 (save_breakpoints): Likewise.
1799
9c4ea6c5
JB
18002011-01-31 Joel Brobecker <brobecker@adacore.com>
1801
1802 * configure.ac: Add handling of Python distribution on Windows.
1803 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
1804 sysconfig variables are not defined, then do not use them.
1805 On Windows, if LIBPL is not defined, then use prefix + '/libs'
1806 instead. On Windows, return all paths using forward-slashes
1807 rather than backslashes.
1808
ac534cba
JB
18092011-01-31 Joel Brobecker <brobecker@adacore.com>
1810
1811 * configure.ac: Remove fallback behavior for building
1812 against Python. Remove tweaking of Python include path.
1813 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
1814 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
1815 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
1816 Always restore CPPFLAGS and LIBS after linking test.
1817 * configure: Regenerated.
1818 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
1819 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
1820 * python/python-internal.h: Adjust includes of Python .h files.
1821
c2f0d045
JB
18222011-01-31 Joel Brobecker <brobecker@adacore.com>
1823
1824 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
1825 in error message.
1826
6b0c4c1f
JB
18272011-01-31 Joel Brobecker <brobecker@adacore.com>
1828
1829 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
1830 value test.
1831
672c9795
YQ
18322011-01-31 Yao Qi <yao@codesourcery.com>
1833
1834 * arm-linux-nat.c: Update calls to regcache_register_status
1835 instead of regcache_valid_p.
1836 * aix-thread.c: Likewise.
1837 * i386gnu-nat.c: Likewise.
1838
80b23b6a
JK
18392011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1840
1841 Fix crash.
1842 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
1843 touching TYPE_FIELD_ARTIFICIAL.
1844
4cd712bd
RE
18452011-01-28 Richard Earnshaw <rearnsha@arm.com>
1846
1847 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
1848 Committers.
1849
ffd5ec24
PA
18502011-01-28 Pedro Alves <pedro@codesourcery.com>
1851
1852 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
1853 selected, don't try iterating over the traceframe's blocks.
1854 (tfile_has_stack): If there's no traceframe selected, then there's
1855 no stack.
1856 (tfile_has_registers): If there's no traceframe selected, then
1857 there's no registers.
1858
e8c9e0a1
PA
18592011-01-28 Pedro Alves <pedro@codesourcery.com>
1860
1861 * target.c (memory_xfer_partial): No need to restore shadows if we
1862 haven't read anything.
1863
de15c4ab
PA
18642011-01-28 Pedro Alves <pedro@codesourcery.com>
1865
1866 * mips-tdep.c (mips_print_register): Use get_frame_register_value
1867 and val_print_scalar_formatted.
1868
9f41c731
PA
18692011-01-27 Pedro Alves <pedro@codesourcery.com>
1870
1871 * tracepoint.c (tfile_read): New.
1872 (tfile_open): Use it.
1873 (tfile_get_traceframe_address): Use it.
1874 (tfile_trace_find): Use it.
1875 (walk_blocks_callback_func): New typedef.
1876 (match_blocktype): New function.
1877 (traceframe_walk_blocks): New function.
1878 (traceframe_find_block_type): New function.
1879 (tfile_fetch_registers, tfile_xfer_partial)
1880 (tfile_get_trace_state_variable_value): Use
1881 traceframe_find_block_type and tfile_read.
1882
cdefc55d
KB
18832011-01-26 Kevin Buettner <kevinb@redhat.com>
1884
1885 * remote-mips.c: Add internationalization mark ups. Remove
1886 trailing \n from already marked up strings.
1887
a81766d8
TT
18882011-01-26 Tom Tromey <tromey@redhat.com>
1889
1890 * python/py-prettyprint.c (print_string_repr): Clear
1891 'addressprint' option when calling val_print_string.
1892 (print_children): Handle Val_pretty_default. Clear 'addressprint'
1893 option when calling val_print_string.
1894
74aedc46
TT
18952011-01-26 Tom Tromey <tromey@redhat.com>
1896
1897 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
1898 GDB_PY_LL_ARG.
1899 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
1900 macros.
1901 (gdb_py_longest, gdb_py_ulongest): New typedefs.
1902 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
1903 (gdb_py_long_as_ulongest): New defines.
1904 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
1905 (gdb_py_int_as_long): Declare.
1906 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
1907 GDB_PY_LL_ARG, gdb_py_object_from_longest.
1908 (valpy_long): Add comment.
1909 * python/py-utils.c (get_addr_from_python): Use
1910 gdb_py_long_as_ulongest. Handle overflow properly.
1911 (gdb_py_object_from_longest): New function.
1912 (gdb_py_object_from_ulongest): Likewise.
1913 (gdb_py_int_as_long): Likewise.
1914 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
1915 * python/py-symtab.c (salpy_get_pc): Use
1916 gdb_py_long_from_ulongest.
1917 (salpy_get_line): Use PyInt_FromLong.
1918 * python/py-param.c (set_parameter_value): Use
1919 gdb_py_int_as_long.
1920 * python/py-lazy-string.c (stpy_get_address): Use
1921 gdb_py_long_from_ulongest.
1922 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
1923 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
1924 * python/py-breakpoint.c (bppy_set_thread): Use
1925 gdb_py_int_as_long.
1926 (bppy_set_task): Likewise.
1927 (bppy_set_ignore_count): Likewise.
1928 (bppy_set_hit_count): Likewise.
1929 * python/py-block.c (blpy_get_start): Use
1930 gdb_py_object_from_ulongest.
1931 (blpy_get_end): Likewise.
1932 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
1933
e4f6d2ec
TJB
19342011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
1935
1936 PR/symtab 11766:
1937 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
1938 * gdb/solib.c (solib_read_symbols): Check for addr_low in
1939 equality test for objfile, initialize addr_low if needed.
1940
b30aa278
PA
19412011-01-25 Pedro Alves <pedro@codesourcery.com>
1942
1943 * tui/tui-regs.c (tui_register_format): Remove dead code.
1944
ab2188aa
PA
19452011-01-25 Pedro Alves <pedro@codesourcery.com>
1946
1947 * printcmd.c (print_formatted): Use val_print_scalar_formatted
1948 instead of print_scalar_formatted.
1949 (print_scalar_formatted): Don't handle 's' format strings here,
1950 and add an assertion that we never see such format here.
1951 * valprint.h (val_print_scalar_formatted): Declare.
1952 * valprint.c (val_print_scalar_formatted): New.
1953 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
1954 instead of print_scalar_formatted.
1955 * jv-valprint.c (java_val_print): Ditto.
1956 * p-valprint.c (pascal_val_print): Ditto.
1957 * ada-valprint.c (ada_val_print_1): Ditto.
1958 * f-valprint.c (f_val_print): Ditto.
1959 * infcmd.c (registers_info): Ditto.
1960 * m2-valprint.c (m2_val_print): Ditto.
1961
66d61a4c
PA
19622011-01-25 Pedro Alves <pedro@codesourcery.com>
1963
1964 * m2-valprint.c (print_unbounded_array): Pass
1965 value_contents_for_printing rather than value_contents, to
1966 m2_print_array_contents. Also pass in the value.
1967
831adc1f
JK
19682011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1969
1970 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
1971 (save_gdb_index_command): Switch to .gdb_index version 4.
1972
20622269
PA
19732011-01-25 Pedro Alves <pedro@codesourcery.com>
1974
1975 * mi/mi-main.c (get_register): Use get_frame_register_value rather
1976 than frame_register, and always pass a valid value to val_print.
1977
585fdaa1
PA
19782011-01-25 Pedro Alves <pedro@codesourcery.com>
1979
1980 Centralize printing "<optimized out>".
1981
1982 * valprint.h (val_print_optimized_out): Declare.
1983 * cp-valprint.c (cp_print_value_fields): Use
1984 val_print_optimized_out.
1985 * jv-valprint.c (java_print_value_fields): Ditto.
1986 * p-valprint.c (pascal_object_print_value_fields): Ditto.
1987 * printcmd.c (print_formatted): Ditto.
1988 * valprint.c (valprint_check_validity): Ditto.
1989 (value_check_printable): Ditto.
1990 (val_print_optimized_out): New.
1991
29ec5263
PA
19922011-01-25 Pedro Alves <pedro@codesourcery.com>
1993
1994 * infcmd.c (default_print_registers_info): Allocate values so to
1995 never pass a NULL value to val_print.
1996
de4127a3
PA
19972011-01-25 Pedro Alves <pedro@codesourcery.com>
1998
1999 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
2000 boolean. Make sure to always pass a value that matches the
2001 contents buffer to callees. Preserve `address' for following
2002 iterations.
2003 * value.c (value_contents_for_printing_const): New.
2004 (value_address): Constify value argument.
2005 * value.h (value_contents_for_printing_const): Declare.
2006 (value_address): Constify value argument.
2007
ee99023e
PA
20082011-01-25 Pedro Alves <pedro@codesourcery.com>
2009
2010 * regcache.c (struct regcache_descr): Rename
2011 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
2012 and sizeof_cooked_register_valid_p to
2013 sizeof_cooked_register_status.
2014 (init_regcache_descr): Adjust.
2015 (struct regcache): Rename register_valid_p field to
2016 register_status.
2017 (regcache_xmalloc_1, regcache_xfree, regcache_save)
2018 (do_cooked_read): Adjust.
2019 (regcache_valid_p): Rename to ...
2020 (regcache_register_status): ... this. Adjust.
2021 (regcache_invalidate): Adjust.
2022 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
2023 Adjust.
2024 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
2025 as unavailable, not valid.
2026 (regcache_dump): Adjust.
2027 * regcache.h (enum register_status): New.
2028 (regcache_register_status): Declare.
2029 (regcache_invalidate): Delete declaration.
2030 * corelow.c (get_core_registers): Adjust.
2031 * tracepoint.c (tfile_fetch_registers): Adjust.
2032 * trad-frame.c (REG_VALUE): Rename to ...
2033 (TF_REG_VALUE): ... this.
2034 (REG_UNKNOWN): Rename to ...
2035 (TF_REG_UNKNOWN): ... this.
2036 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
2037 * mi/mi-main.c (register_changed_p): Adjust.
2038
99e42fd8
PA
20392011-01-25 Pedro Alves <pedro@codesourcery.com>
2040
2041 * regcache.c (struct regcache_descr): Remove outdated comment.
2042 (init_regcache_descr): Remove sizeof_raw_register_valid_p
2043 overallocate hack.
2044 (regcache_xmalloc): Rename to ...
2045 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
2046 Allocate the regcache type accordingly.
2047 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
2048 (regcache_xfree): Asser the source is also readonly. Copy sizeof
2049 cooked registers, not raw.
2050 (regcache_dup_no_passthrough): Delete.
2051 (get_thread_arch_regcache): Use regcache_xmalloc_1.
2052 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
2053 mention obsolete write_register_bytes.
2054 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
2055
f7605bc2
PA
20562011-01-25 Pedro Alves <pedro@codesourcery.com>
2057
2058 Stop remote_read_bytes from handling partial reads itself.
2059
2060 * remote-fileio.c: Include target.h.
2061 (remote_fileio_write_bytes): Delete.
2062 (remote_fileio_func_open, remote_fileio_func_write)
2063 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
2064 target_read_memory.
2065 (remote_fileio_func_stat): Use target_read_memory and
2066 target_write_memory.
2067 (remote_fileio_func_gettimeofday): Use target_write_memory.
2068 (remote_fileio_func_system): Use target_read_memory.
2069 * remote.c (remote_write_bytes): Make it static.
2070 (remote_read_bytes): Don't handle partial reads here.
2071 * remote.h (remote_read_bytes): Delete declaration.
2072
efc0eabd
PA
20732011-01-25 Pedro Alves <pedro@codesourcery.com>
2074
2075 Simplify XML parsing a bit.
2076
2077 * xml-support.h (gdb_xml_parse_quick): Declare.
2078 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
2079 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
2080 parameter.
2081 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
2082 gdb_xml_create_parser_and_cleanup_1.
2083 (gdb_xml_parse_quick): New.
2084 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
2085 * osdata.c (osdata_parse): Ditto.
2086 * remote.c (remote_threads_info): Ditto.
2087 * solib-target.c (solib_target_parse_libraries): Ditto.
2088 * xml-syscall.c (syscall_parse_xml): Ditto.
2089 * xml-tdesc.c (tdesc_parse_xml): Ditto.
2090
314d366a
KB
20912011-01-24 Kevin Buettner <kevinb@redhat.com>
2092
2093 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
2094 with remote-mips.o added to gdb_target_obs.
2095 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
2096
a491d753
PA
20972011-01-24 Pedro Alves <pedro@codesourcery.com>
2098
2099 * ada-valprint.c (val_print_packed_array_elements): Pass the
2100 correct struct value to val_print.
2101 (ada_val_print_1): Ditto.
2102
490f124f
PA
21032011-01-24 Pedro Alves <pedro@codesourcery.com>
2104
2105 Don't lose embedded_offset in printing routines throughout.
2106
2107 * valprint.h (val_print_array_elements): Change prototype.
2108 * valprint.c (val_print_array_elements): Add `embedded_offset'
2109 parameter, and adjust to pass it down to val_print, while passing
2110 `valaddr' or `address' unmodified. Take embedded_offset into
2111 account when checking repetitions.
2112 * c-valprint.c (c_val_print): Pass embedded_offset to
2113 val_print_array_elements instead of adjusting `valaddr' and
2114 `address'.
2115 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
2116 embedded_offset to val_print_array_elements instead of adjusting
2117 `valaddr'.
2118 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
2119 * p-valprint.c (pascal_val_print): Pass embedded_offset to
2120 val_print_array_elements and pascal_object_print_value_fields
2121 instead of adjusting `valaddr'.
2122 (pascal_object_print_value_fields): Add `offset' parameter, and
2123 adjust to use it.
2124 (pascal_object_print_value): Add `offset' parameter, and adjust to
2125 use it.
2126 (pascal_object_print_static_field): Use
2127 value_contents_for_printing/value_embedded_offset, rather than
2128 value_contents.
2129 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
2130 parameter, and adjust to use it. Use
2131 value_contents_for_printing/value_embedded_offset, rather than
2132 value_contents.
2133 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
2134 (ada_val_print_array): Add `offset' parameter, and adjust to use
2135 it.
2136 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
2137 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
2138 Instead work with offsets. Use
2139 value_contents_for_printing/value_embedded_offset, rather than
2140 value_contents. Change `defer_val_int' local type to CORE_ADDR,
2141 and use value_from_pointer to extract a target pointer, rather
2142 than value_from_longest.
2143 (print_variant_part): Add `offset' parameter. Replace
2144 `outer_valaddr' parameter by a new `outer_offset' parameter.
2145 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
2146 (ada_value_print): Use
2147 value_contents_for_printing/value_embedded_offset, rather than
2148 value_contents.
2149 (print_record): Add `offset' parameter, and adjust to pass it
2150 down.
2151 (print_field_values): Add `offset' parameter. Replace
2152 `outer_valaddr' parameter by a new `outer_offset' parameter.
2153 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
2154 Use value_contents_for_printing/value_embedded_offset, rather than
2155 value_contents.
2156 * d-valprint.c (dynamic_array_type): Use
2157 value_contents_for_printing/value_embedded_offset, rather than
2158 value_contents.
2159 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
2160 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
2161 (java_print_value_fields): Take `offset' into account. Don't
2162 re-adjust `valaddr'. Instead pass down adjusted offsets.
2163 (java_val_print): Take `embedded_offset' into account. Pass it to
2164 java_print_value_fields.
2165 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
2166 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
2167 down adjusted offsets.
2168 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
2169 (f_val_print): Take `embedded_offset' into account.
2170
7bfc9434
JB
21712011-01-21 Joel Brobecker <brobecker@adacore.com>
2172
2173 * inflow.c: Include "gdbcmd.h".
2174 (interactive_mode): New static global, moved here from top.c.
2175 (show_interactive_mode): New function, moved here from top.c.
2176 use gdb_has_a_terminal instead of input_from_terminal_p to
2177 determine the current mode.
2178 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
2179 setting.
2180 (_initialize_inflow): Add the "set/show interactive-mode"
2181 commands. Moved here from top.c, after having adjusted slightly
2182 the help text.
2183 * top.c (interactive_mode, show_interactive_mode): Delete, moved
2184 to inflow.c.
2185 (input_from_terminal_p): Remove handling of "interactive-mode"
2186 setting, moved to infow.c.
2187 (init_main): Remove creation of the "set/show interactive-mode"
2188 commands, moved to inflow.c.
2189
44603653
JB
21902011-01-19 Joel Brobecker <brobecker@adacore.com>
2191
2192 * NEWS: Add entry for native ia64-hpux support.
2193
4694da01
TT
21942011-01-19 Tom Tromey <tromey@redhat.com>
2195
2196 PR mi/8618:
2197 * thread.c (free_thread): Free 'name'.
2198 (print_thread_info): Emit thread name. Change CLI output.
2199 (thread_name_command): New function.
2200 (do_captured_thread_select): Emit newline.
2201 (_initialize_thread): Register 'thread name' command.
2202 * target.h (struct target_ops) <to_thread_name>: New field.
2203 (target_thread_name): New macro.
2204 * target.c (update_current_target): Handle to_thread_name.
2205 * python/py-infthread.c (thpy_get_name): New function.
2206 (thpy_set_name): Likewise.
2207 (thread_object_getset): Add "name".
2208 * linux-nat.c (linux_nat_thread_name): New function.
2209 (linux_nat_add_target): Set to_thread_name.
2210 * gdbthread.h (struct thread_info) <name>: New field.
2211
10d44370
JB
22122011-01-18 Joel Brobecker <brobecker@adacore.com>
2213
2214 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
2215 (ada_val_print_1): Likewise.
2216
e3acb115
JB
22172011-01-18 Joel Brobecker <brobecker@adacore.com>
2218
2219 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
2220 upper limit address is not greater than the function end address
2221 when the upper limit could not be computed using the debugging
2222 info.
2223
dc92e161
TT
22242011-01-17 Tom Tromey <tromey@redhat.com>
2225
2226 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
2227 get_regcomp_error.
2228 * utils.c: Include gdb_regex.h.
2229 (do_regfree_cleanup): New function.
2230 (make_regfree_cleanup): Likewise.
2231 (get_regcomp_error): Likewise.
2232 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
2233
f55af66d
TT
22342011-01-17 Tom Tromey <tromey@redhat.com>
2235
2236 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
2237 re_compile_fastmap.
2238
a5a44b53
PM
22392011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
2240
2241 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
2242 for internal variables.
2243 (last_was_structop): New static variable.
2244 (COMPLETE): New token.
2245 (field_exp): New rule to group all '.' suffix handling.
2246 Add mark_struct_expression calls when approriate to be able
2247 to correctly find fields for completion.
2248 (yylex): Adapt to handle field completion and set INTVAR when
2249 required.
2250
2c291032
YQ
22512011-01-14 Yao Qi <yao@codesourcery.com>
2252
2253 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
2254 save_reggroup, restore_reggroup and all_reggroup.
2255
447b483c
JB
22562011-01-14 Joel Brobecker <brobecker@adacore.com>
2257
2258 * ada-valprint. (ada_printchar): Use the correct type length
2259 in call to ada_emit_char.
2260 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
2261
7b64a93b
PM
22622011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
2263
2264 * solib-som.h (hpux_major_release): Declare variable here.
2265 * solib-som.c: Remove <sys/utsname.h> header.
2266 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
2267 (hpux_major_release): Make global, change default value to
2268 DEFAULT_HPUX_MAJOR_RELEASE.
2269 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
2270 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
2271 Add "solib-som.h" header.
2272 (set_hpux_major_release): New function.
2273 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
2274
4e18c053
MF
22752011-01-14 Mike Frysinger <vapier@gentoo.org>
2276
2277 * configure.tgt (*-*-uclinux*): Match more Linux os targets
2278
a9df6b22
JB
22792011-01-14 Joel Brobecker <brobecker@adacore.com>
2280
2281 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
2282 new-line at end of warning message.
2283 (ia64_hpux_store_register): Remove trailing new-line at end of
2284 error message.
2285 * ia64-hpux-tdep.c: Rephrase comment.
2286 * solib-ia64-hpux.c (struct dld_info): Change type of field
2287 dld_flags from "long long" to ULONGEST.
2288
ecb956dd
PA
22892011-01-14 Pedro Alves <pedro@codesourcery.com>
2290
2291 * target.h (deprecated_child_ops): Delete declaration.
2292 * target.c (deprecated_child_ops): Delete definition.
2293
76adfcae
PA
22942011-01-14 Pedro Alves <pedro@codesourcery.com>
2295
2296 * Makefile.in (hpux-thread.o): Delete rule.
2297 * configure.ac: Don't check for HPUX DCE threads support.
2298 * configure, config.in: Regenerate.
2299 * hppa-hpux-nat.c (child_suppress_run): Delete.
2300 (hppa_hpux_child_can_run): Delete.
2301 (_initialize_hppa_hpux_nat): Don't override to_can_run.
2302 * hpux-thread.c: Delete.
2303
042e866e
JB
23042011-01-13 Joel Brobecker <brobecker@adacore.com>
2305
2306 * hpux-thread.c (hpux_pid_to_str): Delete.
2307
4ffa5a33
JB
23082011-01-13 Joel Brobecker <brobecker@adacore.com>
2309
2310 * ada-valprint.c (ada_emit_char): Remove strange code.
2311 Check that c is <= UCHAR_MAX before passing it to isascii.
2312 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
2313
de8fa76c
JB
23142011-01-13 Joel Brobecker <brobecker@adacore.com>
2315
2316 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
2317 to the case where instream is stdin.
2318
c4de7027
JB
23192011-01-13 Joel Brobecker <brobecker@adacore.com>
2320
2321 * ia64-tdep.h (struct regcache): Forward declare.
2322 (struct ia64_infcall_ops): New struct type.
2323 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
2324 and "infcall_ops".
2325 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
2326 Renames ia64_find_global_pointer.
2327 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
2328 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
2329 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
2330 methods.
2331 (ia64_infcall_ops): New static global constant.
2332 (ia64_gdbarch_init): Set tdep->infcall_ops.
2333 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
2334 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
2335 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
2336 (ia64_hpux_dummy_code): New static global constant.
2337 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
2338 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
2339 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
2340 New function.
2341 (ia64_hpux_infcall_ops): New static global constant.
2342 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
2343 for inferior function calls to work properly on ia64-hpux.
2344
77ca787b
JB
23452011-01-13 Joel Brobecker <brobecker@adacore.com>
2346
2347 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
2348 * ia64-tdep.h (struct frame_info): forward declaration.
2349 (struct gdbarch_tdep): Add field size_of_register_frame.
2350 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
2351 to determine the size of the register frame.
2352 (ia64_size_of_register_frame): New function.
2353 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
2354 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
2355 (IA64_HPUX_UREG_REASON): New macro.
2356 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
2357 New functions.
2358 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
2359 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
2360 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
2361 objects.
2362
92c9a463
JB
23632011-01-13 Joel Brobecker <brobecker@adacore.com>
2364
2365 Add support for ia64-hpux.
2366 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
2367 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
2368
2369 * configure.host: Add handling for ia64-hpux hosts. Add associated
2370 floatformats.
2371 * configure.tgt: Add handling for ia64-hpux targets.
2372 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
2373 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
2374 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
2375
f688d93f
JB
23762011-01-13 Joel Brobecker <brobecker@adacore.com>
2377
2378 [ttrace] Compute thread list immediately after attach.
2379 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
2380 New subprogram.
2381 (inf_ttrace_attach): Use it.
2382
1b89e62f
JB
23832011-01-13 Joel Brobecker <brobecker@adacore.com>
2384
2385 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
2386 if we could not determine the frame's function address. Instead,
2387 use the frame's PC, and then continue.
2388
3e5e6e2a
JB
23892011-01-13 Joel Brobecker <brobecker@adacore.com>
2390
2391 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
2392 not already defined.
2393
825d6d8a
JB
23942011-01-13 Joel Brobecker <brobecker@adacore.com>
2395
2396 * ia64-tdep.c (ia64_struct_type_p): New function.
2397 (ia64_extract_return_value): Handle integral values that are
2398 less than 8 bytes long.
2399 (ia64_push_dummy_call): Likewise.
2400
7458e667
JB
24012011-01-13 Joel Brobecker <brobecker@adacore.com>
2402
2403 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
2404 floatformat_ia64_ext.
2405 (floatformat_ia64_ext_big): New static const.
2406 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
2407
1b05df00
TT
24082011-01-12 Tom Tromey <tromey@redhat.com>
2409
2410 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
2411 messages.
2412 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
2413 (mi_cmd_thread_list_ids): Likewise.
2414 (mi_cmd_data_list_changed_registers): Likewise.
2415 (mi_cmd_data_list_register_values): Likewise.
2416 (mi_cmd_data_write_register_values): Likewise.
2417 (mi_cmd_data_evaluate_expression): Likewise.
2418 (mi_cmd_data_read_memory): Likewise.
2419 (mi_cmd_data_read_memory_bytes): Likewise.
2420 (mi_cmd_data_write_memory): Likewise.
2421 (mi_cmd_enable_timings): Likewise.
2422 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
2423 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
2424 (mi_cmd_var_delete): Likewise.
2425 (mi_cmd_var_set_format): Likewise.
2426 (mi_cmd_var_show_format): Likewise.
2427 (mi_cmd_var_info_num_children): Likewise.
2428 (mi_cmd_var_list_children): Likewise.
2429 (mi_cmd_var_info_type): Likewise.
2430 (mi_cmd_var_info_expression): Likewise.
2431 (mi_cmd_var_show_attributes): Likewise.
2432 (mi_cmd_var_assign): Likewise.
2433 (mi_cmd_var_update): Likewise.
2434 (mi_cmd_enable_pretty_printing): Likewise.
2435 (mi_cmd_var_set_update_range): Likewise.
2436 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
2437 messages.
2438 (mi_cmd_target_file_put): Likewise.
2439 (mi_cmd_target_file_delete): Likewise.
2440 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
2441 messages.
2442 (mi_cmd_stack_info_depth): Likewise.
2443 (mi_cmd_stack_list_locals): Likewise.
2444 (mi_cmd_stack_list_args): Likewise.
2445 (mi_cmd_stack_select_frame): Likewise.
2446 (mi_cmd_stack_select_frame): Likewise.
2447 (mi_cmd_stack_info_frame): Likewise.
2448 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
2449 messages.
2450 (mi_cmd_file_list_exec_source_files): Likewise.
2451 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
2452 (mi_cmd_env_cd): Likewise.
2453 (mi_cmd_env_path): Likewise.
2454 (mi_cmd_env_dir): Likewise.
2455 (mi_cmd_inferior_tty_show): Likewise.
2456 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
2457 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
2458 (mi_cmd_break_watch): Likewise.
2459
ad422571
TJB
24602011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
2461
2462 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
2463 (ppc_linux_insert_hw_breakpoint): Likewise.
2464 (ppc_linux_remove_hw_breakpoint): Likewise.
2465 (ppc_linux_insert_watchpoint): Likewise.
2466
c2ff108b
JK
24672011-01-12 Andrew Burgess <aburgess@broadcom.com>
2468 Jan Kratochvil <jan.kratochvil@redhat.com>
2469
2470 PR fortran/11104 and DWARF unbound arrays detection.
2471 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
2472 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
2473 unspecified upper bound.
2474 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
2475 variables array_size_array, tmp_type and offset_item. New variable
2476 array. Remove call to f77_get_upperbound. New variables array_type
2477 and index. Call value_subscripted_rvalue for each dimenasion. Remove
2478 the final call to deprecated_set_value_type.
2479
41e8491f
JK
24802011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2481
2482 Make value allocations more lazy.
2483 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
2484 instead of allocate_value and set_value_lazy when possible.
2485 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
2486 instead of allocate_value and set_value_lazy.
2487 * findvar.c (value_of_register_lazy): Likewise.
2488 (read_var_value): Remove V preallocation, call just check_typedef in
2489 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
2490 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
2491 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
2492 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
2493 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
2494 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
2495 the end, remove set_value_lazy there.
2496 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
2497 instead of allocate_value and set_value_lazy when possible.
2498 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
2499 * value.c (allocate_computed_value): Use allocate_value_lazy instead
2500 of allocate_value and set_value_lazy.
2501 (value_from_contents_and_address): Use allocate_value_lazy instead of
2502 allocate_value and set_value_lazy when possible.
2503
b716877b
AB
25042011-01-12 Andrew Burgess <aburgess@broadcom.com>
2505
2506 * disasm.c (dump_insns): Support dumping opcodes for MI.
2507 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
2508 dumping of instruction opcodes.
2509
d5ae309f
JB
25102011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
2511
2512 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
2513 appropiately.
2514
98871305
TT
25152011-01-11 Tom Tromey <tromey@redhat.com>
2516
2517 * thread.c (do_captured_thread_select): Emit newline before
2518 printing frame.
2519
c378eb4e
MS
25202011-01-11 Michael Snyder <msnyder@vmware.com>
2521
2522 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
2523 * score-tdep.c: Ditto.
2524 * score-tdep.h: Ditto.
2525 * ser-base.c: Ditto.
2526 * ser-go32.c: Ditto.
2527 * serial.c: Ditto.
2528 * serial.h: Ditto.
2529 * ser-mingw.c: Ditto.
2530 * ser-pipe.c: Ditto.
2531 * ser-tcp.c: Ditto.
2532 * ser-unix.c: Ditto.
2533 * sh64-tdep.c: Ditto.
2534 * shnbsd-nat.c: Ditto.
2535 * sh-tdep.c: Ditto.
2536 * sh-tdep.h: Ditto.
2537 * solib.c: Ditto.
2538 * solib-darwin.c: Ditto.
2539 * solib-frv.c: Ditto.
2540 * solib.h: Ditto.
2541 * solib-irix.c: Ditto.
2542 * solib-osf.c: Ditto.
2543 * solib-pa64.c: Ditto.
2544 * solib-som.c: Ditto.
2545 * solib-spu.c: Ditto.
2546 * solib-sunos.c: Ditto.
2547 * solib-svr4.c: Ditto.
2548 * solist.h: Ditto.
2549 * sol-thread.c: Ditto.
2550 * somread.c: Ditto.
2551 * source.c: Ditto.
2552 * source.h: Ditto.
2553 * sparc64-linux-tdep.c: Ditto.
2554 * sparc64-tdep.c: Ditto.
2555 * sparc-linux-nat.c: Ditto.
2556 * sparc-linux-tdep.c: Ditto.
2557 * sparc-sol2-nat.c: Ditto.
2558 * sparc-sol2-tdep.c: Ditto.
2559 * sparc-tdep.c: Ditto.
2560 * sparc-tdep.h: Ditto.
2561 * spu-tdep.c: Ditto.
2562 * stabsread.c: Ditto.
2563 * stabsread.h: Ditto.
2564 * stack.c: Ditto.
2565 * symfile.c: Ditto.
2566 * symfile.h: Ditto.
2567 * symmisc.c: Ditto.
2568 * symtab.c: Ditto.
2569 * symtab.h: Ditto.
2570 * target.c: Ditto.
2571 * target-descriptions.c: Ditto.
2572 * target-descriptions.h: Ditto.
2573 * target.h: Ditto.
2574 * target-memory.c: Ditto.
2575 * terminal.h: Ditto.
2576 * thread.c: Ditto.
2577 * top.c: Ditto.
2578 * tracepoint.c: Ditto.
2579 * tracepoint.h: Ditto.
2580 * trad-frame.h: Ditto.
2581 * typeprint.c: Ditto.
2582
581e13c1
MS
25832011-01-11 Michael Snyder <msnyder@vmware.com>
2584
2585 * ui-file.c: Comment cleanup, mostly periods and spaces.
2586 * ui-file.h: Ditto.
2587 * ui-out.c: Ditto.
2588 * ui-out.h: Ditto.
2589 * utils.c: Ditto.
2590 * v850-tdep.c: Ditto.
2591 * valarith.c: Ditto.
2592 * valops.c: Ditto.
2593 * valprint.c: Ditto.
2594 * valprint.h: Ditto.
2595 * value.c: Ditto.
2596 * value.h: Ditto.
2597 * varobj.c: Ditto.
2598 * varobj.h: Ditto.
2599 * vax-tdep.c: Ditto.
2600 * vec.c: Ditto.
2601 * vec.h: Ditto.
2602 * version.h: Ditto.
2603 * windows-nat.c: Ditto.
2604 * windows-tdep.c: Ditto.
2605 * xcoffread.c: Ditto.
2606 * xcoffsolib.c: Ditto.
2607 * xml-support.c: Ditto.
2608 * xstormy16-tdep.c: Ditto.
2609 * xtensa-tdep.c: Ditto.
2610 * xtensa-tdep.h: Ditto.
2611
90e4670f
TJB
26122011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
2613
2614 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
2615 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
2616
e09342b5
TJB
26172011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2618 Thiago Jung Bauermann <bauerman@br.ibm.com>
2619
2620 Implement support for PowerPC BookE ranged watchpoints.
2621 * breakpoint.h
2622 (struct breakpoint_ops) <resources_needed>: New method.
2623 Initialize to NULL in all existing breakpoint_ops instances.
2624 (struct breakpoint) <exact>: New field.
2625 (target_exact_watchpoints): Declare external global.
2626 * breakpoint.c (target_exact_watchpoints): New global flag.
2627 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
2628 b->enable_state to bp_enabled before calling
2629 hw_watchpoint_used_count.
2630 (hw_watchpoint_used_count): Iterate over all bp_locations in a
2631 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
2632 if available.
2633 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
2634 if the watchpoint is exact.
2635 (resources_needed_watchpoint): New function.
2636 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
2637 (watch_command_1): Set b->exact if the user asked for an exact
2638 watchpoint and one can be set.
2639 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
2640 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
2641 the user asks for an exact watchpoint and one can be set. Return
2642 number of needed debug registers to watch the expression.
2643 * gdbtypes.c (is_scalar_type): New function, based on
2644 valprint.c:scalar_type_p.
2645 (is_scalar_type_recursive): New function.
2646 * gdbtypes.h (is_scalar_type_recursive): Declare.
2647 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
2648 handle regions when ranged watchpoints are available.
2649 (create_watchpoint_request): New function.
2650 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
2651 create_watchpoint_request.
2652 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
2653 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
2654 `set powerpc' and `show powerpc' commands.
2655 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
2656 Mention documentation comment in the target macro.
2657 (target_region_ok_for_hw_watchpoint): Document return value.
2658
9fa40276
TJB
26592011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
2660
2661 * breakpoint.c (update_watchpoint): Decide on using a software or
2662 hardware watchpoint after the bp_locations are created.
2663
77b06cd7
TJB
26642010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
2665
2666 Convert hardware watchpoints to use breakpoint_ops.
2667 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
2668 <insert_location>: ... this. Return int instead of void.
2669 Accept pointer to struct bp_location instead of pointer to
2670 struct breakpoint. Adapt all implementations.
2671 (breakpoint_ops) <remove>: Rename to...
2672 <remove_location>: ... this. Accept pointer to struct bp_location
2673 instead of pointer to struct breakpoint. Adapt all implementations.
2674 * breakpoint.c (insert_catchpoint): Delete function.
2675 (insert_bp_location): Call the watchpoint or catchpoint's
2676 breakpoint_ops.insert method.
2677 (remove_breakpoint_1): Call the watchpoint or catchpoint's
2678 breakpoint_ops.remove method.
2679 (insert_watchpoint, remove_watchpoint): New functions.
2680 (watchpoint_breakpoint_ops): New structure.
2681 (watch_command_1): Initialize the OPS field.
2682 * inf-child.c (inf_child_insert_fork_catchpoint)
2683 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
2684 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
2685 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
2686 Delete functions.
2687 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
2688 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
2689 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
2690 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
2691 * target.c (update_current_target): Change default implementation of
2692 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
2693 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
2694 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
2695 to_set_syscall_catchpoint to return_one.
2696 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
2697 (debug_to_insert_exec_catchpoint): Report return value.
2698 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
2699 (to_insert_exec_catchpoint): Change declaration to return int instead
2700 of void.
2701
9b20d036
MS
27022011-01-11 Michael Snyder <msnyder@vmware.com>
2703
2704 * arm-tdep.c: Internationalization.
2705 * c-lang.c: Ditto.
2706 * charset.c: Ditto.
2707 * fork-child.c: Ditto.
2708 * nto-procfs.c: Ditto.
2709 * ppc-sysv-tdep.c: Ditto.
2710 * procfs.c: Ditto.
2711 * remote-mips.c: Ditto.
2712 * remote.c: Ditto.
2713 * rs6000-nat.c: Ditto.
2714 * rs6000-tdep.c: Ditto.
2715 * target.c: Ditto.
2716 * valops.c: Ditto.
2717 * value.c: Ditto.
2718 * xml-support.c: Ditto.
2719 * mi/mi-cmd-break.c: Ditto.
2720 * mi/mi-cmd-var.c: Ditto.
2721 * mi/mi-interp.c: Ditto.
2722 * mi/mi-main.c: Ditto.
2723
dae477fe
AB
27242011-01-11 Andrew Burgess <aburgess@broadcom.com>
2725
2726 * remote-sim.c (gdbsim_store_register): Update API to
2727 sim_store_register to check more error conditions.
2728
0df8b418
MS
27292011-01-10 Michael Snyder <msnyder@vmware.com>
2730
2731 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
2732 * nto-tdep.c: Ditto.
2733 * nto-tdep.h: Ditto.
2734 * objc-exp.y: Ditto.
2735 * objc-lang.c: Ditto.
2736 * objfiles.c: Ditto.
2737 * objfiles.h: Ditto.
2738 * observer.c: Ditto.
2739 * opencl-lang.c: Ditto.
2740 * osabi.c: Ditto.
2741 * parse.c: Ditto.
2742 * parser-defs.h: Ditto.
2743 * p-exp.y: Ditto.
2744 * p-lang.c: Ditto.
2745 * posix-hdep.c: Ditto.
2746 * ppcbug-rom.c: Ditto.
2747 * ppc-linux-nat.c: Ditto.
2748 * ppc-linux-tdep.c: Ditto.
2749 * ppc-linux-tdep.h: Ditto.
2750 * ppcnbsd-tdep.c: Ditto.
2751 * ppcobsd-tdep.c: Ditto.
2752 * ppcobsd-tdep.h: Ditto.
2753 * ppc-sysv-tdep.c: Ditto.
2754 * ppc-tdep.h: Ditto.
2755 * printcmd.c: Ditto.
2756 * proc-abi.c: Ditto.
2757 * proc-flags.c: Ditto.
2758 * procfs.c: Ditto.
2759 * proc-utils.h: Ditto.
2760 * progspace.h: Ditto.
2761 * prologue-value.c: Ditto.
2762 * prologue-value.h: Ditto.
2763 * psympriv.h: Ditto.
2764 * psymtab.c: Ditto.
2765 * p-typeprint.c: Ditto.
2766 * p-valprint.c: Ditto.
2767 * ravenscar-sparc-thread.c: Ditto.
2768 * ravenscar-thread.c: Ditto.
2769 * ravenscar-thread.h: Ditto.
2770 * record.c: Ditto.
2771 * regcache.c: Ditto.
2772 * regcache.h: Ditto.
2773 * remote.c: Ditto.
2774 * remote-fileio.c: Ditto.
2775 * remote-fileio.h: Ditto.
2776 * remote.h: Ditto.
2777 * remote-m32r-sdi.c: Ditto.
2778 * remote-mips.c: Ditto.
2779 * remote-sim.c: Ditto.
2780 * rs6000-aix-tdep.c: Ditto.
2781 * rs6000-nat.c: Ditto.
2782 * rs6000-tdep.c: Ditto.
2783
0d7a18f7
MS
27842011-01-10 Michael Snyder <msnyder@vmware.com>
2785
2786 * charset.c (validate): Internationalization.
2787 * coffread.c (read_one_sym): Ditto.
2788 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
2789 * h8300-tdep.c (H8300_extract_return_value): Ditto.
2790 * inflow.c (new_tty): Ditto.
2791 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
2792 * m32c-tdep.c (m32c_return_value): Ditto.
2793 * mep-tdep.c (mep_store_return_value): Ditto.
2794 * score-tdep.c (score7_fetch_insn): Ditto.
2795 * ser-mingw.c (pipe_windows_open): Ditto.
2796 * sh64-tdep.c (sh64_extract_return_value): Ditto.
2797 * spu-tdep.c (spu_register_type): Ditto.
2798 * tracepoint.c (trace_find_command): Ditto.
2799 * valarith.c (value_pos): Ditto.
2800
9a153e0b
JB
28012011-01-10 Joel Brobecker <brobecker@adacore.com>
2802
2803 * ada-valprint.c (printstr): Minor comment reformatting.
2804
35ecd2d6
MS
28052011-01-08 Michael Snyder <msnyder@vmware.com>
2806
2807 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
2808 markup.
2809
1777feb0
MS
28102011-01-08 Michael Snyder <msnyder@vmware.com>
2811
2812 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
2813 * hppa-hpux-tdep.c: Ditto.
2814 * hppa-linux-nat.c: Ditto.
2815 * hppa-linux-tdep.c: Ditto.
2816 * hppanbsd-tdep.c: Ditto.
2817 * hppa-tdep.c: Ditto.
2818 * hppa-tdep.h: Ditto.
2819 * hpux-thread.c: Ditto.
2820 * i386-cygwin-tdep.c: Ditto.
2821 * i386-darwin-nat.c: Ditto.
2822 * i386gnu-nat.c: Ditto.
2823 * i386-linux-nat.c: Ditto.
2824 * i386-linux-tdep.c: Ditto.
2825 * i386-nat.c: Ditto.
2826 * i386-nat.h: Ditto.
2827 * i386nbsd-tdep.c: Ditto.
2828 * i386-sol2-nat.c: Ditto.
2829 * i386-stub.c: Ditto.
2830 * i386-tdep.c: Ditto.
2831 * i386-tdep.h: Ditto.
2832 * i387-tdep.c: Ditto.
2833 * ia64-linux-nat.c: Ditto.
2834 * ia64-linux-tdep.c: Ditto.
2835 * ia64-tdep.c: Ditto.
2836 * infcall.c: Ditto.
2837 * infcall.h: Ditto.
2838 * infcmd.c: Ditto.
2839 * inferior.c: Ditto.
2840 * inferior.h: Ditto.
2841 * infloop.c: Ditto.
2842 * inflow.c: Ditto.
2843 * infrun.c: Ditto.
2844 * interps.c: Ditto.
2845 * interps.h: Ditto.
2846 * iq2000-tdep.c: Ditto.
2847 * irix5-nat.c: Ditto.
2848 * jit.c: Ditto.
2849 * jit.h: Ditto.
2850 * jv-exp.y: Ditto.
2851 * jv-lang.c: Ditto.
2852 * jv-lang.h: Ditto.
2853 * jv-typeprint.c: Ditto.
2854 * jv-valprint.c: Ditto.
2855 * language.c: Ditto.
2856 * language.h: Ditto.
2857 * linespec.c: Ditto.
2858 * linux-fork.c: Ditto.
2859 * linux-nat.c: Ditto.
2860 * linux-thread-db.c: Ditto.
2861 * lm32-tdep.c: Ditto.
2862
025bb325
MS
28632011-01-08 Michael Snyder <msnyder@vmware.com>
2864
2865 * m2-exp.y: Comment cleanup, mostly periods and spaces.
2866 * m2-lang.c: Ditto.
2867 * m2-typeprint.c: Ditto.
2868 * m2-valprint.c: Ditto.
2869 * m32c-tdep.c: Ditto.
2870 * m32r-linux-nat.c: Ditto.
2871 * m32r-rom.c: Ditto.
2872 * m32r-tdep.c: Ditto.
2873 * m32r-tdep.h: Ditto.
2874 * m68hc11-tdep.c: Ditto.
2875 * m58klinux-nat.c: Ditto.
2876 * m68k-tdep.c: Ditto.
2877 * m88k-tdep.c: Ditto.
2878 * m88k-tdep.h: Ditto.
2879 * machoread.c: Ditto.
2880 * macrocmd.c: Ditto.
2881 * macroexp.c: Ditto.
2882 * macrotab.c: Ditto.
2883 * main.c: Ditto.
2884 * maint.c: Ditto.
2885 * mdebugread.c: Ditto.
2886 * mdebugread.h: Ditto.
2887 * memattr.c: Ditto.
2888 * memattr.h: Ditto.
2889 * memory-map.h: Ditto.
2890 * mep-tdep.c: Ditto.
2891 * microblaze-rom.c: Ditto.
2892 * microblaze-tdep.c: Ditto.
2893 * minsyms.c: Ditto.
2894 * mips-irix-tdep.c: Ditto.
2895 * mips-linux-nat.c: Ditto.
2896 * mips-linux-tdep.c: Ditto.
2897 * mips-linux-tdep.h: Ditto.
2898 * mipsnbsd-nat.c: Ditto.
2899 * mipsnbsd-tdep.c: Ditto.
2900 * mipsread.c: Ditto.
2901 * mips-tdep.c: Ditto.
2902 * mips-tdep.h: Ditto.
2903 * mn10300-linux-tdep.c: Ditto.
2904 * mn10300-tdep.c: Ditto.
2905 * mn10300-tdep.h: Ditto.
2906 * monitor.c: Ditto.
2907 * monitor.h: Ditto.
2908 * moxie-tdep.c: Ditto.
2909 * moxie-tdep.h: Ditto.
2910 * mt-tdep.c: Ditto.
2911
1642781b
MF
29122011-01-08 Mike Frysinger <vapier@gentoo.org>
2913
2914 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
2915
394b0adb
JB
29162011-01-08 Robert Millan <rmh@gnu.org>
2917
2918 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
2919
b670013c
MS
29202011-01-07 Michael Snyder <msnyder@vmware.com>
2921
2922 * charset.c (_initialize_charset): Fix typo in string.
2923
a743e542
MS
29242011-01-07 Michael Snyder <msnyder@vmware.com>
2925
2926 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
2927 for i18n.
2928 * tui/tui-layout.c (tui_set_layout_for_display_command):
2929 Split line so that operator goes to beginning of line.
2930 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
2931 assignment out of if statement.
2932
0963b4bd
MS
29332011-01-07 Michael Snyder <msnyder@vmware.com>
2934
2935 * ada-lang.c: Comment cleanup, mostly periods and spaces.
2936 * ada-lang.h: Ditto.
2937 * ada-tasks.c: Ditto.
2938 * ada-valprint.c: Ditto.
2939 * aix-threads.c: Ditto.
2940 * alpha-linux-nat.c: Ditto.
2941 * alpha-linux-tdep.c: Ditto.
2942 * alpha-mdebug-tdep.c: Ditto.
2943 * alpha-nat.c: Ditto.
2944 * alpha-osf1-tdep.c: Ditto.
2945 * alpha-tdep.c: Ditto.
2946 * alphabsd-nat.c: Ditto.
2947 * alphabsd-tdep.c: Ditto.
2948 * amd64-darwin-tdep.c: Ditto.
2949 * amd64-linux-nat.c: Ditto.
2950 * amd64-linux-tdep.c: Ditto.
2951 * amd64-sol2-tdep.c: Ditto.
2952 * amd64-tdep.c: Ditto.
2953 * amd64-fbsd-tdep.c: Ditto.
2954 * amd64-nbsd-tdep.c: Ditto.
2955 * amd64-obsd-tdep.c: Ditto.
2956 * amd64-linux-nat.c: Ditto.
2957 * amd64-linux-tdep.c: Ditto.
2958 * arm-tdep.c: Ditto.
2959 * arm-tdep.h: Ditto.
2960 * armnbsd-nat.c: Ditto.
2961 * avr-tdep.c: Ditto.
2962 * bfin-tdep.c: Ditto.
2963 * bsd-kvm.c: Ditto.
2964 * c-typeprintc: Ditto.
2965 * c-valprint.c: Ditto.
2966 * coff-pe-read.h: Ditto.
2967 * coffreead.c: Ditto.
2968 * cris-tdep.c: Ditto.
2969 * d-lang.c: Ditto.
2970 * darwin-nat-info.c: Ditto.
2971 * darwin-nat.c: Ditto.
2972 * dbug-rom.c: Ditto.
2973 * dbxread.c: Ditto.
2974 * dcache.c: Ditto.
2975 * dcache.h: Ditto.
2976 * dec-thread.c: Ditto.
2977 * defs.h: Ditto.
2978 * demangle.c: Ditto.
2979 * dicos-tdep.c: Ditto.
2980 * dictionary.c: Ditto.
2981 * dictionary.h: Ditto.
2982 * dink32-rom.c: Ditto.
2983 * disasm.c: Ditto.
2984 * doublest.c: Ditto.
2985 * dsrec.c: Ditto.
2986 * dummy-frame.c: Ditto.
2987 * dwarf2-frame.c: Ditto.
2988 * dwarf2expr.c: Ditto.
2989 * dwarf2loc.c: Ditto.
2990 * dwarf2read.c: Ditto.
2991 * elfread.c: Ditto.
2992 * environ.c: Ditto.
2993 * eval.c: Ditto.
2994 * event-top.h: Ditto.
2995 * exceptions.c: Ditto.
2996 * exceptions.h: Ditto.
2997 * exec.c: Ditto.
2998 * expprint.c: Ditto.
2999 * expression.h: Ditto.
3000 * f-exp.y: Ditto.
3001 * f-lang.c: Ditto.
3002 * f-lang.h: Ditto.
3003 * f-typeprint.c: Ditto.
3004 * f-valprint.c: Ditto.
3005 * fbsd-nat.c: Ditto.
3006 * findvar.c: Ditto.
3007 * fork-child.c: Ditto.
3008 * frame.c: Ditto.
3009 * frame.h: Ditto.
3010 * frv-linux-tdep.c: Ditto.
3011 * frv-tdep.c: Ditto.
3012 * gcore.c: Ditto.
3013 * gdb-stabs.h: Ditto.
3014 * gdb_assert.h: Ditto.
3015 * gdb_string.h: Ditto.
3016 * gdb_thread_db.h: Ditto.
3017 * gdb_wait.h: Ditto.
3018 * gdbarch.sh: Ditto.
3019 * gdbcore.h: Ditto.
3020 * gdbthread.h: Ditto.
3021 * gdbtypes.c: Ditto.
3022 * gdbtypes.h: Ditto.
3023 * gnu-nat.c: Ditto.
3024 * gnu-nat.h: Ditto.
3025 * gnu-v2-abi.c: Ditto.
3026 * gnu-v3-abi.c: Ditto.
3027 * go32-nat.c: Ditto.
3028 * gdbarch.c: Regenerate.
3029 * gdbarch.h: Regenerate.
3030
ac74f770
MS
30312011-01-07 Michael Snyder <msnyder@vmware.com>
3032
3033 * ax-gdb.c: Adjust some long output strings.
3034 * breakpoint.c: Ditto.
3035 * charset.c: Ditto.
3036 * cp-abi.c: Ditto.
3037 * infcall.c: Ditto.
3038 * infrun.c: Ditto.
3039 * linux-nat.c: Ditto.
3040 * solib-pa64.c: Ditto.
3041 * solib-som.c: Ditto.
3042
d8e22779
TT
30432011-01-06 Tom Tromey <tromey@redhat.com>
3044
3045 PR python/12367:
3046 * NEWS: Add item.
3047 * python/python.c (GdbMethods): Add "newest_frame" method.
3048 * python/python-internal.h (gdbpy_newest_frame): Declare.
3049 * python/py-frame.c (gdbpy_newest_frame): New function.
3050
a255712f
PP
30512010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3052
3053 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
3054 * jit.c (jit_debug): New variable.
3055 (show_jit_debug): New function.
3056 (struct target_buffer): Use ULONGEST.
3057 (bfd_open_from_target_memory): Likewise.
3058 (jit_register_code, jit_inferior_init): Add debug output.
3059 (_initialize_jit): Register "debug jit" command.
3060
ccfc3d6e
TT
30612011-01-06 Tom Tromey <tromey@redhat.com>
3062
3063 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
3064 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
3065 and ARCH_FRAME.
3066
57126e4a
TT
30672011-01-06 Tom Tromey <tromey@redhat.com>
3068
3069 * python/py-frame.c (frapy_block): Use get_frame_block.
3070
16dfc9ce
JB
30712011-01-06 Joel Brobecker <brobecker@adacore.com>
3072
3073 Do not stop on SIGPRIO signals by default
3074 * infrun.c (_initialize_infrun): Unset signal_stop and
3075 signal_print for TARGET_SIGNAL_PRIO.
3076
b1ce2347
JB
30772011-01-06 Joel Brobecker <brobecker@adacore.com>
3078
3079 * ada-tasks.c: Fix style violation in comment.
3080
8f7e195f
JB
30812011-01-06 Joel Brobecker <brobecker@adacore.com>
3082
3083 * linespec.c (decode_compound, find_method): Remove trailing \n
3084 at end of error string.
3085 * solib-irix.c (irix_current_sos): Likewise.
3086 * varobj.c (uninstall_variable): Likewise.
3087
e9bdf92c
JB
30882011-01-06 Joel Brobecker <brobecker@adacore.com>
3089
3090 * copyright.py: New script.
3091 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
3092 Launch emacs without exec'ing. Call copyright.py afterwards.
3093
3e43a32a
MS
30942011-01-05 Michael Snyder <msnyder@vmware.com>
3095
3096 * addrmap.c: Shorten lines of >= 80 columns.
3097 * arch-utils.c: Ditto.
3098 * arch-utils.h: Ditto.
3099 * ax-gdb.c: Ditto.
3100 * ax-general.c: Ditto.
3101 * bcache.c: Ditto.
3102 * blockframe.c: Ditto.
3103 * breakpoint.c: Ditto.
3104 * buildsym.c: Ditto.
3105 * c-lang.c: Ditto.
3106 * c-typeprint.c: Ditto.
3107 * charset.c: Ditto.
3108 * coffread.c: Ditto.
3109 * command.h: Ditto.
3110 * corelow.c: Ditto.
3111 * cp-abi.c: Ditto.
3112 * cp-namespace.c: Ditto.
3113 * cp-support.c: Ditto.
3114 * dbug-rom.c: Ditto.
3115 * dbxread.c: Ditto.
3116 * defs.h: Ditto.
3117 * dfp.c: Ditto.
3118 * dfp.h: Ditto.
3119 * dictionary.c: Ditto.
3120 * disasm.c: Ditto.
3121 * doublest.c: Ditto.
3122 * dwarf2-frame.c: Ditto.
3123 * dwarf2expr.c: Ditto.
3124 * dwarf2loc.c: Ditto.
3125 * dwarf2read.c: Ditto.
3126 * elfread.c: Ditto.
3127 * eval.c: Ditto.
3128 * event-loop.c: Ditto.
3129 * event-loop.h: Ditto.
3130 * exceptions.h: Ditto.
3131 * exec.c: Ditto.
3132 * expprint.c: Ditto.
3133 * expression.h: Ditto.
3134 * f-lang.c: Ditto.
3135 * f-valprint.c: Ditto.
3136 * findcmd.c: Ditto.
3137 * frame-base.c: Ditto.
3138 * frame-unwind.c: Ditto.
3139 * frame-unwind.h: Ditto.
3140 * frame.c: Ditto.
3141 * frame.h: Ditto.
3142 * gcore.c: Ditto.
3143 * gdb-stabs.h: Ditto.
3144 * gdb_assert.h: Ditto.
3145 * gdb_dirent.h: Ditto.
3146 * gdb_obstack.h: Ditto.
3147 * gdbcore.h: Ditto.
3148 * gdbtypes.c: Ditto.
3149 * gdbtypes.h: Ditto.
3150 * inf-ttrace.c: Ditto.
3151 * infcall.c: Ditto.
3152 * infcmd.c: Ditto.
3153 * inflow.c: Ditto.
3154 * infrun.c: Ditto.
3155 * inline-frame.h: Ditto.
3156 * language.c: Ditto.
3157 * language.h: Ditto.
3158 * libunwind-frame.c: Ditto.
3159 * libunwind-frame.h: Ditto.
3160 * linespec.c: Ditto.
3161 * linux-nat.c: Ditto.
3162 * linux-nat.h: Ditto.
3163 * linux-thread-db.c: Ditto.
3164 * machoread.c: Ditto.
3165 * macroexp.c: Ditto.
3166 * macrotab.c: Ditto.
3167 * main.c: Ditto.
3168 * maint.c: Ditto.
3169 * mdebugread.c: Ditto.
3170 * memattr.c: Ditto.
3171 * minsyms.c: Ditto.
3172 * monitor.c: Ditto.
3173 * monitor.h: Ditto.
3174 * objfiles.c: Ditto.
3175 * objfiles.h: Ditto.
3176 * osabi.c: Ditto.
3177 * p-typeprint.c: Ditto.
3178 * p-valprint.c: Ditto.
3179 * parse.c: Ditto.
3180 * printcmd.c: Ditto.
3181 * proc-events.c: Ditto.
3182 * procfs.c: Ditto.
3183 * progspace.c: Ditto.
3184 * progspace.h: Ditto.
3185 * psympriv.h: Ditto.
3186 * psymtab.c: Ditto.
3187 * record.c: Ditto.
3188 * regcache.c: Ditto.
3189 * regcache.h: Ditto.
3190 * remote-fileio.c: Ditto.
3191 * remote.c: Ditto.
3192 * ser-mingw.c: Ditto.
3193 * ser-tcp.c: Ditto.
3194 * ser-unix.c: Ditto.
3195 * serial.c: Ditto.
3196 * serial.h: Ditto.
3197 * solib-frv.c: Ditto.
3198 * solib-irix.c: Ditto.
3199 * solib-osf.c: Ditto.
3200 * solib-pa64.c: Ditto.
3201 * solib-som.c: Ditto.
3202 * solib-sunos.c: Ditto.
3203 * solib-svr4.c: Ditto.
3204 * solib-target.c: Ditto.
3205 * solib.c: Ditto.
3206 * somread.c: Ditto.
3207 * source.c: Ditto.
3208 * stabsread.c: Ditto.
3209 * stabsread.c: Ditto.
3210 * stack.c: Ditto.
3211 * stack.h: Ditto.
3212 * symfile-mem.c: Ditto.
3213 * symfile.c: Ditto.
3214 * symfile.h: Ditto.
3215 * symmisc.c: Ditto.
3216 * symtab.c: Ditto.
3217 * symtab.h: Ditto.
3218 * target-descriptions.c: Ditto.
3219 * target-memory.c: Ditto.
3220 * target.c: Ditto.
3221 * target.h: Ditto.
3222 * terminal.h: Ditto.
3223 * thread.c: Ditto.
3224 * top.c: Ditto.
3225 * tracepoint.c: Ditto.
3226 * tracepoint.h: Ditto.
3227 * ui-file.c: Ditto.
3228 * ui-file.h: Ditto.
3229 * ui-out.h: Ditto.
3230 * user-regs.c: Ditto.
3231 * user-regs.h: Ditto.
3232 * utils.c: Ditto.
3233 * valarith.c: Ditto.
3234 * valops.c: Ditto.
3235 * valprint.c: Ditto.
3236 * valprint.h: Ditto.
3237 * value.c: Ditto.
3238 * varobj.c: Ditto.
3239 * varobj.h: Ditto.
3240 * vec.h: Ditto.
3241 * xcoffread.c: Ditto.
3242 * xcoffsolib.c: Ditto.
3243 * xcoffsolib.h: Ditto.
3244 * xml-syscall.c: Ditto.
3245 * xml-tdesc.c: Ditto.
3246
9a2b4c1b
MS
32472011-01-05 Michael Snyder <msnyder@vmware.com>
3248
3249 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
3250 * cli/cli-decode.c: Ditto.
3251 * cli/cli-dump.c: Ditto.
3252 * cli/cli-logging.c: Ditto.
3253 * cli/cli-script.c: Ditto.
3254 * cli/cli-setshow.c: Ditto.
3255 * common/signals.c: Ditto.
3256 * mi/mi-cmd-break.c: Ditto.
3257 * mi/mi-cmd-disas.c: Ditto.
3258 * mi/mi-cmd-stack.c: Ditto.
3259 * mi/mi-cmd-var.c: Ditto.
3260 * mi/mi-cmds.c: Ditto.
3261 * mi/mi-common.h: Ditto.
3262 * mi/mi-console.c: Ditto.
3263 * mi/mi-interp.c: Ditto.
3264 * mi/mi-main.c: Ditto.
3265 * osf-share/cma_attr.c: Ditto.
3266 * osf-share/cma_deb_core.h: Ditto.
3267 * osf-share/cma_debug_client.h: Ditto.
3268 * osf-share/cma_handle.h: Ditto.
3269 * osf-share/cma_mutex.h: Ditto.
3270 * osf-share/cma_stack_int.h: Ditto.
3271 * osf-share/cma_tcb_defs.h: Ditto.
3272 * python/py-auto-load.c: Ditto.
3273 * python/py-breakpoint.c: Ditto.
3274 * python/py-cmd.c: Ditto.
3275 * python/py-frame.c: Ditto.
3276 * python/py-objfile.c: Ditto.
3277 * python/py-param.c: Ditto.
3278 * python/py-progspace.c: Ditto.
3279 * python/py-symbol.c: Ditto.
3280 * python/py-value.c: Ditto.
3281 * python/python-internal.h: Ditto.
3282 * python/python.c: Ditto.
3283 * tui/tui-data.c: Ditto.
3284 * tui/tui-disasm.c: Ditto.
3285 * tui/tui-hooks.c: Ditto.
3286 * tui/tui-io.c: Ditto.
3287 * tui/tui-layout.c: Ditto.
3288 * tui/tui-regs.c: Ditto.
3289 * tui/tui-source.c: Ditto.
3290 * tui/tui-stack.c: Ditto.
3291 * tui/tui-win.c: Ditto.
3292 * tui/tui-windata.c: Ditto.
3293 * tui/tui-winsource.c: Ditto.
3294
44944448
JB
32952011-01-05 Joel Brobecker <brobecker@adacore.com>
3296
3297 * configure.ac, gdb.1: Copyright year update.
3298
ebedcab5
JK
32992011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3300
3301 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
3302 this_pc_in_block, morestack_msym and morestack_name. Check for
3303 "__morestack" minimal symbol there.
3304
e5cc9f32
JB
33052011-01-03 Joel Brobecker <brobecker@adacore.com>
3306
3307 * symfile.c (find_sym_fns): Add call to dont_repeat.
3308
7b6bb8da
JB
33092011-01-01 Joel Brobecker <brobecker@adacore.com>
3310
3311 Copyright year update in most files (performed by copyright.sh).
3312
71ce852c
JB
33132011-01-01 Joel Brobecker <brobecker@adacore.com>
3314
3315 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 3316
c3c1ebe8 3317For older changes see ChangeLog-2010.
c906108c
SS
3318\f
3319Local Variables:
3320mode: change-log
3321left-margin: 8
3322fill-column: 74
3323version-control: never
57da7796 3324coding: utf-8
c906108c 3325End:
This page took 3.931543 seconds and 4 git commands to generate.