]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
2011-03-01 Michael Snyder <msnyder@vmware.com>
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a9dc8dcc
MS
12011-03-01 Michael Snyder <msnyder@vmware.com>
2
a0aa2878
MS
3 * tracepoint.c (create_tsv_from_upload): Superfluous call
4 to xstrdup. Callee already calls xstrdup.
5
e325fb69
MS
6 * linespec.c (decode_line_1): Remove unnecessary null check.
7
21cbba77
MS
8 * tracepoint.c (scope_info): Fix mem leak, remove underused
9 variable.
10
63360adc
MS
11 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
12 superfluous null check.
13
18ea20ac 14 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 15 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 16
d014929c
MS
17 * event-top.c (display_gdb_prompt): Remove superfluous null check.
18
6e9130cf
MS
19 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
20 be null.
21
5f01dbc0
MS
22 * linespec.c (decode_line_1): Check for null before dereference.
23
d684ab85
MS
24 * reverse.c (record_restore): Move null-check to before pointer
25 dereference.
26
bfffb7e3
MS
27 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
28
a9dc8dcc
MS
29 * objc-lang.c (selectors_info): Add explanitory comment.
30 (classes_info): Ditto.
31
478fd957
UW
322011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
33
34 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
35 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
36 versions of the trampoline. Handle Thumb vs. ARM addresses.
37 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
38 (arm_linux_init_abi): Install it.
39 * arm-tdep.c (arm_psr_thumb_bit): Make global.
40 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
41
0480cefa
MS
422011-02-28 Michael Snyder <msnyder@vmware.com>
43
ac50ab3b
MS
44 * ui-out.c (ui_out_field_core_addr): Make local char buffer
45 a little bigger, to avoid possibility of an overflow.
46
f63fbe86
MS
47 * breakpoint.c (breakpoint_adjustment_warning): Make local char
48 buffers a little bigger, to avoid possibility of an overflow.
49
9e91a352
MS
50 * coffread.c (coff_getfilename): Add check to avoid overflow.
51
28288541
MS
52 * objc-lang.c (selectors_info): Add a small safety margin to
53 avoid overflow.
54 (classes_info): Error out on too long REGEXP.
55
098ab512
MS
56 * infrun.c (handle_inferior_event): Remove unused function call.
57
bcbd1de9
MS
58 * fork-child.c (fork_inferior): Remove ifdef'd code and
59 unused variable.
60
2e456570
MS
61 * linux-thread-db.c (attach_thread): Discard unused value.
62
14571dad
MS
63 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
64
a9cbf802
MS
65 * remote.c (remote_get_noisy_reply): Discard unused value.
66 (remote_vcont_resume): Ditto.
67 (remote_stop_ns): Ditto.
68
5715d26e
MS
69 * linespec.c (decode_objc): Delete unused variable.
70
4a9bca80
MS
71 * tui/tui-regs.c (tui_register_format): Delete unused variable.
72
f47fb265
MS
73 * dwarf2read.c (add_partial_symbol): Discard unused values.
74 (read_base_type): Delete unused variable.
75
e81cff30
MS
76 * dbxread.c (read_dbx_symtab): Discard unused value.
77
262acaeb
MS
78 * eval.c (evaluate_subexp_standard): Delete unused variable,
79 and discard unused values.
80
df983543
MS
81 * infcmd.c (_initialize_infcmd): Discard unused values.
82
89acf84d
MS
83 * stabsread.c (rs6000_builtin_type): Missing break statement.
84
ab8b8aca
MS
85 * dbxread.c (process_one_symbol): Discard unused value.
86
6b4511ab
MS
87 * coffread.c (coff_end_symtab): Delete unused variable.
88
e8e80198
MS
89 * dwarf2read.c (dw2_get_file_names): Discard unused value.
90 (dwarf2_add_typedef): Delete unused variable.
91 (read_namespace): Ditto.
92 (dwarf_decode_macros): Ditto.
93
976aa66e
MS
94 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
95
5b92b49f
MS
96 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
97
91e8df85
MS
98 * p-valprint.c (pascal_val_print): Discard unused value.
99
899500d6
MS
100 * utils.c (nquery): Call va_end before return;
101 (yquery): Ditto.
102 (query): Ditto.
103
0480cefa
MS
104 * proc-service.c (ps_plog): Call va_end before return.
105
fb6a3ed3
TT
1062011-02-28 Tom Tromey <tromey@redhat.com>
107
108 * python/python.c (gdbpy_value_cst): New global.
109 (_initialize_python): Initialize it.
110 * python/python-internal.h (gdbpy_value_cst): Declare.
111 * python/py-value.c (convert_value_from_python): Use
112 gdbpy_value_cst.
113
c05202a1
MS
1142011-02-28 Michael Snyder <msnyder@vmware.com>
115
e463f587
MS
116 * python/py-cmd.c (cmdpy_init): Fix memory leak.
117
c38eea1a
MS
118 * breakpoint.c (catch_syscall_completer): Free malloced list.
119
3ef09ab5
MS
120 * jv-lang.c (java_primitive_type_from_name): Add missing break.
121
8f9a01ee
MS
122 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
123 (lval_func_check_synthetic_pointer): Ditto.
124 (lval_func_free_closure): Fix use-after-free.
c05202a1 125
477d0d57
TT
1262011-02-28 Tom Tromey <tromey@redhat.com>
127
128 * psymtab.c (expand_partial_symbol_tables): Use
129 ALL_OBJFILE_PSYMTABS.
130
20937029
JK
1312011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
132
133 * objc-lang.c (selectors_info): Error on too long REGEXP.
134
907b7f4f
MS
1352011-02-28 Michael Snyder <msnyder@vmware.com>
136
92e96192
MS
137 * python/py-param.c (set_parameter_value): Add missing
138 break statement.
139
907b7f4f
MS
140 * linux-record.c (record_linux_system_call): Add missing
141 break statement.
142
12c5a436
UW
1432011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
144
145 * breakpoint.c (print_one_breakpoint_location): Remove unused
146 argument PRINT_ADDRESS_BITS. Update callers.
147 (print_one_breakpoint): Likewise.
148
170b53b2
UW
1492011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
150
151 * breakpoint.c (wrap_indent_at_field): New function.
152 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
153 Allocate ui_stream locally instead of using STB argument.
154 (print_one_breakpoint_location): Update call.
155 * ui-out.c (ui_out_query_field): New function.
156 * ui-out.h (ui_out_query_field): Add prototype.
157
8ab1f94d
JB
1582011-02-28 Joel Brobecker <brobecker@adacore.com>
159
160 From Michael Snyder <msnyder@vmware.com>
161 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
162
7d488639
MS
1632011-02-27 Michael Snyder <msnyder@vmware.com>
164
ae179fba
MS
165 * objc-lang.c (selectors_info): Prevent string overrun.
166
086dbf66
MS
167 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
168 error in strncpy.
169
9c1e305a
MS
170 * symtab.c (rbreak_command): Move variable 'file_name' to
171 outer scope.
172
7d488639
MS
173 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
174 param with a local variable of the same name.
175
3bd0f5ef
MS
1762011-02-27 Michael Snyder <msnyder@vmware.com>
177
178 * value.c (value_from_history_ref): New function.
179 * value.h (value_from_history_ref): Export.
180 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
181 to parse value history references.
182 * cli/cli-utils.h (get_number_trailer): Update comment.
183
1842011-02-27 Michael Snyder <msnyder@vmware.com>
185
186 * inferior.c (detach_inferior_command): Use get_number_or_range.
187 (kill_inferior_command): Ditto.
188 (remove_inferior_command): Ditto.
189 (initialize_inferiors): Make command names plural.
190 Update help strings.
191
766062f6
MS
1922011-02-27 Michael Snyder <msnyder@vmware.com>
193
194 * darwin-nat-info.c: Fix comment typo.
195 * dwarf2expr.h: Ditto.
196 * fbsd-nat.c: Ditto.
197 * fbsd-nat.h: Ditto.
198 * frame-unwind.h: Ditto.
199 * frame.h: Ditto.
200 * hppa-hpux-tdep.c: Ditto.
201 * i386-linux-nat.c: Ditto.
202 * linux-nat.c: Ditto.
203 * nbsd-nat.c: Ditto.
204 * nbsd-nat.h: Ditto.
205 * ppc-linux-tdep.c: Ditto.
206 * serial.c: Ditto.
207 * ui-file.h: Ditto.
208 * tui/tui-winsource.c: Ditto.
209
f2c4ead5
MS
2102011-02-26 Michael Snyder <msnyder@vmware.com>
211
86b887df
MS
212 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
213
66fd3b1e
MS
214 * maint.c (maintenance_do_deprecate): Plug a memory leak.
215
8c814cdd
MS
216 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
217 with a local variable of the same name.
218
6d5e094a 219 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 220 param with a local variable of the same name.
6d5e094a 221 (i387_supply_xsave): Ditto.
e5b3d7d6 222
5eee517d
MS
223 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
224 that it does not shadow a function parameter.
225
8fbf6b93
MS
226 * i386-nat.c (i386_length_and_rw_bits): Document that case
227 statement is meant to fall through.
228
cb969d61
MS
229 * expprint.c (dump_subexp_body_standard): Document that case
230 statement is meant to fall through.
231
f2c4ead5
MS
232 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
233 dead if statement. Condition can't be false.
234
b021a221
MS
2352011-02-25 Michael Snyder <msnyder@vmware.com>
236
237 * arm-tdep.c: Fix typos in comments.
238 * bsd-uthread.c: Ditto.
239 * completer.c: Ditto.
240 * corelow.c: Ditto.
241 * cp-namespace.c: Ditto.
242 * cp-support.c: Ditto.
243 * cris-tdep.c: Ditto.
244 * dbxread.c: Ditto.
245 * dwarf2read.c: Ditto.
246 * frame.h: Ditto.
247 * gdbtypes.h: Ditto.
248 * inferior.h: Ditto.
249 * mdebugread.c: Ditto.
250 * mips-tdep.c: Ditto.
251 * ppc-linux-nat.c: Ditto.
252 * ppc-linux-tdep.c: Ditto.
253 * printcmd.c: Ditto.
254 * sol-thread.c: Ditto.
255 * solib-frv.c: Ditto.
256 * solist.h: Ditto.
257 * sparc64-tdep.c: Ditto.
258 * spu-tdep.c: Ditto.
259 * stabsread.c: Ditto.
260 * symfile.c: Ditto.
261 * valops.c: Ditto.
262 * varobj.c: Ditto.
263 * vax-nat.c: Ditto.
264 * python/py-block.c: Ditto.
265 * python/py-symbol.c: Ditto.
266 * python/py-symtab.c: Ditto.
267 * python/py-value.c: Ditto.
268 * tui/tui-win.c: Ditto.
269
c82c0b55
MS
2702011-02-25 Michael Snyder <msnyder@vmware.com>
271
272 * inferior.c (print_inferior): Accept a string instead of an int
273 for requested_inferiors, and use get_number_or_range to parse it.
274 (info_inferiors_command): Pass args string to print_inferior.
275 (initialize_inferiors): Change help string for info inferiors.
276 * inferior.h (print_inferior): Export prototype change.
277
ee00cd23
TT
2782011-02-25 Tom Tromey <tromey@redhat.com>
279
280 * common/ax.def (invalid2): Set to 0x31.
281
0502ed8c
JK
2822011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
283
284 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
285 L and plongest.
286 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
287 use L and plongest.
288 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
289
2c9de912
MS
2902011-02-24 Michael Snyder <msnyder@vmware.com>
291
292 * Makefile.in (clean): Make clean should remove generated files
293 observer.h and observer.inc.
294
a04b0428
JB
2952011-02-24 Joel Brobecker <brobecker@adacore.com>
296
297 Revert the following patch (not approved yet):
298 2011-02-21 Hui Zhu <teawater@gmail.com>
299 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
300 * ax-gdb.c (gen_printf_expr_callback): New function.
301 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
302 * ax-general.c (ax_memcpy): New function.
303 (ax_print): Handle "printf".
304 (ax_reqs): Ditto.
305 * ax.h (ax_memcpy): Forward declare.
306 * common/ax.def (invalid2): Removed.
307 (printf): New entry.
308 * printcmd.c (printcmd.h): New include.
309 (string_printf): New function.
310 (ui_printf): Removed.
311 (printf_command): Remove static. Call string_printf.
312 (eval_command): Call string_printf.
313 * printcmd.h: New file.
314 * tracepoint.c (validate_actionline,
315 encode_actions_1): handle printf_command.
316
2b52013f
TT
3172011-02-23 Tom Tromey <tromey@redhat.com>
318
319 * ax-general.c (ax_pick): Add missing newline.
320
e5a67952
MS
3212011-02-23 Michael Snyder <msnyder@vmware.com>
322
323 * breakpoint.c (breakpoint_1): Change first argument from an int
324 to a char pointer, so that the function now accepts a list of
325 breakpoints rather than just one. Use new function
326 'number_is_in_list' to implement.
327 (breakpoints_info): Pass char * instead of int to breakpoint_1.
328 (watchpoints_info): Ditto.
329 (tracepoints_info): Ditto.
330 (maintenance_info_breakpoints): Ditto.
331 (_initialize_breakpoint): Update help strings to reflect the fact
332 that these functions can now take more than one argument.
333 * cli/cli-utils.c (number_is_in_list): New function.
334 * cli/cli-utils.h (number_is_in_list): Export.
335
3362011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
337
338 * memattr.c (mem_enable_command): Use get_number_or_range.
339 (mem_disable_command): Ditto.
340 (mem_delete_command): Ditto.
341 (_initialize_mem): Tweak usage message to reflect multiple
342 arguments.
343
6e6fbe60
DE
3442011-02-22 Doug Evans <dje@google.com>
345
346 Add gdb.lookup_global_symbol python function.
347 * NEWS: Add entry.
348 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
349 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
350 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
351
79b97fa8
TT
3522011-02-22 Tom Tromey <tromey@redhat.com>
353
354 * language.c (language_class_name_from_physname): Rename
355 'curr_language' argument to 'lang'; use in body.
356
298f437a
MS
3572011-02-22 Michael Snyder <msnyder@vmware.com>
358
359 * cli/cli-utils.c (number_is_in_list): Check for zero return.
360
b7ea3126
PA
3612011-02-22 Pedro Alves <pedro@codesourcery.com>
362
363 * frame-unwind.h: Fix comment to mention the this frame, not the
364 next.
365
58ee6d60
TT
3662011-02-22 Tom Tromey <tromey@redhat.com>
367
368 * symfile.c (auto_solib_limit): Remove.
369 * symfile.h (auto_solib_limit): Remove.
370
36238dbc
JB
3712011-02-22 Joel Brobecker <brobecker@adacore.com>
372
373 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
374
aea5b279
MS
3752011-02-21 Michael Snyder <msnyder@vmware.com>
376
377 * gdbthread.h (print_thread_info): Change prototype.
378 * thread.c (print_thread_info): Accept char* instead of int for
379 requested_threads argument. Use new function number_is_in_list
380 to determine which threads to list.
381 (info_threads_command): Pass char* to print_thread_info.
382 * cli/cli-utils.c (number_is_in_list): New function.
383 * cli/cli-utils.h (number_is_in_list): Export.
384 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
385 print_thread_info.
386 (print_one_inferior): Ditto.
387 (mi_cmd_list_thread_groups): Ditto.
388
8caa75ee
JK
3892011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
390
391 * common/Makefile.in (CFLAGS): New.
392 (COMPILE): Add $(CFLAGS).
393
ea666128
TT
3942011-02-21 Tom Tromey <tromey@redhat.com>
395
396 * breakpoint.c (catch_syscall_command_1): Fix typo.
397
e9cafbcc
TT
3982011-02-21 Tom Tromey <tromey@redhat.com>
399
400 * reverse.c: Include cli-utils.h.
401 * printcmd.c: Include cli-utils.h.
402 (string_printf): Use skip_spaces.
403 * cli/cli-utils.h: New file.
404 * cli/cli-utils.c: New file.
405 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
406 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
407 * breakpoint.h (get_number, get_number_or_range): Move to
408 cli-utils.h.
409 * breakpoint.c: Include cli-utils.h.
410 (get_number_trailer, get_number, get_number_or_range)
411 (ep_skip_leading_whitespace): Move to cli-utils.c.
412 (create_breakpoint_sal, find_condition_and_thread)
413 (decode_static_tracepoint_spec, watch_command_1)
414 (watch_maybe_just_location, ep_parse_optional_if_clause)
415 (catch_fork_command_1, catch_exec_command_1)
416 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
417 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
418 (SUBDIR_CLI_SRCS): Add cli-utils.c.
419 (HFILES_NO_SRCDIR): Add cli-utils.h.
420 (cli-utils.o): New target.
421
f67fd822
PM
4222011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
423
424 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
425 before calling discard_all_inferiors.
426
c9def01d
UW
4272011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
428
429 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
430 (struct builtin_opencl_type): Remove.
431 (builtin_opencl_type): Change return type to "struct type **".
432 (lookup_opencl_vector_type): Update caller.
433 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
434 (build_opencl_types): Install plain array of "struct type *"
435 instead of "struct builtin_opencl_type".
436
e3039479
UW
4372011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
438 Ulrich Weigand <uweigand@de.ibm.com>
439
440 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
441 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
442 (struct arm_linux_hwbp_cap): New type.
443 (arm_linux_get_hwbp_cap): New function.
444 (arm_linux_get_hw_breakpoint_count): Likewise.
445 (arm_linux_get_hw_watchpoint_count): Likewise.
446 (arm_linux_can_use_hw_breakpoint): Likewise.
447 (arm_hwbp_type): New type.
448 (arm_hwbp_control_t): Likewise.
449 (struct arm_linux_hw_breakpoint): Likewise.
450 (struct arm_linux_thread_points): Likewise.
451 (arm_threads): New global variable.
452 (arm_linux_find_breakpoints_by_tid): New function.
453 (arm_hwbp_control_initialize): Likewise.
454 (arm_hwbp_control_is_enabled): Likewise.
455 (arm_hwbp_control_disable): Likewise.
456 (arm_linux_hw_breakpoint_initialize): Likewise.
457 (arm_linux_get_hwbp_type): Likewise.
458 (arm_linux_hw_watchpoint_initialize): Likewise.
459 (arm_linux_hw_breakpoint_equal): Likewise.
460 (arm_linux_insert_hw_breakpoint1): Likewise.
461 (arm_linux_remove_hw_breakpoint1): Likewise.
462 (arm_linux_insert_hw_breakpoint): Likewise.
463 (arm_linux_remove_hw_breakpoint): Likewise.
464 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
465 (arm_linux_insert_watchpoint): Likewise.
466 (arm_linux_remove_watchpoint): Likewise.
467 (arm_linux_stopped_data_address): Likewise.
468 (arm_linux_stopped_by_watchpoint): Likewise.
469 (arm_linux_watchpoint_addr_within_range): Likewise.
470 (arm_linux_new_thread): Likewise.
471 (arm_linux_thread_exit): Likewise.
472 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
473 related target callbacks. Register arm_linux_new_thread and
474 arm_linux_thread_exit.
475 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
476 * arm-tdep.c (arm_pc_is_thumb): Make global.
477 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
478
b5db5dfc
UW
4792011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
480
481 * breakpoint.c (update_watchpoint): Do not attempt to recreate
482 per-frame locations while within a function epilogue.
483
e25b2cfa
PM
4842011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
485
486 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
487 to GNU coding standards.
488
4af53f97
PM
4892011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
490
491 Allow use of mingw native on Windows 95 OS.
e25b2cfa 492 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
493 (ser_windows_close): Only call CancelIo if function exists.
494 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
495 to check for existence of CancelIo function in kernel32 DLL.
496
d0e92d82
HZ
4972011-02-21 Hui Zhu <teawater@gmail.com>
498
499 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
500 * ax-gdb.c (gen_printf_expr_callback): New function.
501 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
502 * ax-general.c (ax_memcpy): New function.
503 (ax_print): Handle "printf".
504 (ax_reqs): Ditto.
505 * ax.h (ax_memcpy): Forward declare.
506 * common/ax.def (invalid2): Removed.
507 (printf): New entry.
508 * printcmd.c (printcmd.h): New include.
509 (string_printf): New function.
510 (ui_printf): Removed.
511 (printf_command): Remove static. Call string_printf.
512 (eval_command): Call string_printf.
513 * printcmd.h: New file.
514 * tracepoint.c (validate_actionline,
515 encode_actions_1): handle printf_command.
516
7d357efd
MS
5172011-02-19 Michael Snyder <msnyder@vmware.com>
518
519 * reverse.c (delete_one_bookmark): Argument is now bookmark
520 id rather than pointer to bookmark struct.
521 (delete_bookmark_command): Use get_number_or_range.
522 (goto_bookmark_command): Parse with get_number instead of strtoul.
523 (bookmark_1): New function. Print info for one bookmark.
524 (bookmarks_info): Use get_number_or_range and bookmark_1.
525
7a45ebd7
MS
5262011-02-18 Michael Snyder <msnyder@vmware.com>
527
528 * thread.c (info_threads_command): Re-implement using
529 get_number_or_range.
65ebfb52 530 (thread_apply_command): Ditto.
7a45ebd7 531
94d5e490
TT
5322011-02-18 Tom Tromey <tromey@redhat.com>
533
534 * common/ax.def: New file.
535 * ax.h (enum agent_op): Use ax.def.
536 * ax-general.c (aop_map): Use ax.def.
537
c7f96d2b
TT
5382011-02-18 Tom Tromey <tromey@redhat.com>
539
540 * ax-general.c (aop_map): Add pick and rot.
541 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
542 <DW_OP_rot>: Implement.
543 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
544 (ax_pick): Declare.
545 * ax-general.c (ax_pick): New function.
546
66694b75
TT
5472011-02-18 Tom Tromey <tromey@redhat.com>
548
549 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
550
eeaafae2
JK
5512011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
552 Tom Tromey <tromey@redhat.com>
553
554 * cp-support.c (make_symbol_overload_list_namespace): Do not call
555 make_symbol_overload_list_block with NULL BLOCK.
556 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
557
3c3fe74c
PA
5582011-02-18 Pedro Alves <pedro@codesourcery.com>
559
560 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
561 * breakpoint.h (get_number_or_range): Declare.
562 * printcmd.c (ALL_DISPLAYS): Declare.
563 (delete_display): Reimplement taking a display pointer.
564 (undisplay_command): Accept a range of displays to delete, using
565 get_number_or_range.
566
13163d80
PM
5672011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
568
569 * c-valprint.c (c_val_print): Add embedded_offset to address
570 for arrays of unspecified length.
571 * p-valprint.c (pascal_val_print): Likewise.
572
b434a28f
YQ
5732011-02-18 Yao Qi <yao@codesourcery.com>
574
575 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
576 (arm_process_displaced_insn): .. here. Remove parameter INSN.
577 (thumb_process_displaced_insn): New.
578 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
579 call to arm_process_displaced_insn.
580 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
581
9f6f94ff
TT
5822011-02-17 Tom Tromey <tromey@redhat.com>
583
584 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
585 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
586 compile_dwarf_to_ax. No longer static. Call
587 dwarf2_compile_cfa_to_ax.
588 (locexpr_tracepoint_var_ref): Update.
589 (loclist_tracepoint_var_ref): Update.
590 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
591 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
592 argument; add 'gdbarch' and 'pc'.
593 (dwarf2_compile_cfa_to_ax): New function.
594 (dwarf2_frame_cache): Update.
595
e67ad678
JB
5962011-02-17 Joel Brobecker <brobecker@adacore.com>
597
598 * ada-lang.c (ada_type_of_array): Fix the size of the array
599 in the case of an unconstrained packed array.
600
946ebb0d
YQ
6012011-02-17 Yao Qi <yao@codesourcery.com>
602
603 * common/Makefile.in: Add more targets for make.
604
1ba1b353
TT
6052011-02-16 Tom Tromey <tromey@redhat.com>
606
607 * dwarf2loc.c (unimplemented): Fix typo.
608
b1bfef65
TT
6092011-02-16 Tom Tromey <tromey@redhat.com>
610
611 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
612 (compile_dwarf_to_ax) <default>: Use unimplemented.
613 <DW_OP_deref>: Update.
614 (disassemble_dwarf_expression): Update.
615 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
616 (decode_locdesc): Update.
617 * dwarf2expr.h (dwarf_stack_op_name): Update.
618
5f1e6f19
TT
6192011-02-16 Tom Tromey <tromey@redhat.com>
620
621 * ax.h (struct aop_map) <name>: Now const.
622
a0c78a73
PA
6232011-02-16 Tom Tromey <tromey@redhat.com>
624
625 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
626 than axs_rvalue.
627
946ebb0d 6282011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
629
630 * infrun.c (get_displaced_step_closure_by_addr): New.
631 * inferior.h: Declare it.
632 * arm-tdep.c: (arm_pc_is_thumb): Call
633 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
634 returns non-NULL.
635
08807d5a
PA
6362011-02-16 Pedro Alves <pedro@codesourcery.com>
637 Jan Kratochvil <jan.kratochvil@redhat.com>
638
639 gdb/
640 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
641
29976f3f
PA
6422011-02-16 Pedro Alves <pedro@codesourcery.com>
643 Jan Kratochvil <jan.kratochvil@redhat.com>
644
645 * value.c (value_contents_copy_raw): Extend describing comment.
646 Assert that the destination contents we're overwriting are wholly
647 available.
fb68ae73 648 (value_contents_copy): Extend describing comment.
29976f3f 649
cd24cfaa
PA
6502011-02-16 Pedro Alves <pedro@codesourcery.com>
651 Jan Kratochvil <jan.kratochvil@redhat.com>
652
653 * value.c (value_available_contents_eq): Remove redundant local
654 variables. Fix available contents comparision.
655 * value.h (value_available_contents_eq): Extend describing
656 comment.
657
60bbf338
YQ
6582011-02-16 Yao Qi <yao@codesourcery.com>
659
660 * thread.c (info_threads_command): Add missing i18n markup and remove
661 trailing newline.
662
17450429
PP
6632011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
664
665 * breakpoint.c (longjmp_names): New variable.
666 (struct breakpoint_objfile_data): New type.
667 (breakpoint_objfile_key): New variable.
668 (msym_not_found): New variable.
669 (msym_not_found_p): New predicate.
670 (get_breakpoint_objfile_data): New function.
671 (create_overlay_event_breakpoint): Check per-objfile cache for
672 symbols first.
673 (create_longjmp_master_breakpoint): Likewise.
674 (create_std_terminate_master_breakpoint): Likewise.
675 (create_exception_master_breakpoint): Likewise.
676 (_initialize_breakpoint): Register per-objfile data key.
677
af02033e
PP
6782011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
679
680 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
681 parameter value.
682 (create_longjmp_master_breakpoint): Loop over longjmp names.
683 (create_std_terminate_master_breakpoint): Const-propagate parameter
684 value.
685 (update_breakpoints_after_exec): Adjust.
686 (breakpoint_re_set): Adjust.
687
60f98dde
MS
6882011-02-15 Michael Snyder <msnyder@vmware.com>
689
cdf99611
MS
690 * thread.c (info_threads_command): Process arg as thread id,
691 or list of thread ids.
692 (thread_find_command): New command.
693 (_initialize_thread): Document argument for info threads.
694 Document 'thread find' command.
695 * NEWS: Document new command "thread find".
60f98dde 696
0feedb2c
JK
6972011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
698
699 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
700 * aclocal.m4: Regenerated with aclocal-1.11.1.
701 * common/configure: Regenerate with autoconf-2.64.
702
648cd113
KW
7032011-02-15 Ken Werner <ken.werner@de.ibm.com>
704
705 * opencl-lang.c (build_opencl_types): Set the size of the built-in
706 bool data type to a size of one byte.
707
5657161f
PA
7082011-02-15 Pedro Alves <pedro@codesourcery.com>
709 Jan Kratochvil <jan.kratochvil@redhat.com>
710
711 * target.c (memory_xfer_live_readonly_partial): Document where to
712 look for interface description.
713
494e194e
YQ
7142011-02-15 Yao Qi <yao@codesourcery.com>
715
716 PR tdep/12352
717 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
718 order to store PC value on stack instead of text section.
719
d9492458
TJB
7202011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
721
722 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
723 the EFP register set size.
724 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
725 data from the VMX register.
726 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
727 and write data from/to the VMX register.
728
cdf99611
MS
7292011-02-14 Michael Snyder <msnyder@vmware.com>
730
731 * command.h (enum command_class): New class 'no_set_class', for
732 "show" commands without a corresponding "set" command.
733 * value.c (_initialize_values): Use 'no_set_class' for "show values".
734 * copying.c (_initialize_copying): Ditto for "show copying" and
735 "show warranty".
736 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
737 "show version".
738 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
739 which there is no corresponding "set" command (eg. "show copying").
740
424447ee
PA
7412011-02-14 Pedro Alves <pedro@codesourcery.com>
742 Jan Kratochvil <jan.kratochvil@redhat.com>
743
744 * exec.c (section_table_available_memory): Change `len' parameter
745 type to ULONGEST.
746 * exec.h (section_table_available_memory): Ditto.
747 * value.h (read_value_memory): Rename the `offset' parameter to
748 `embedded_offset'.
749
c0f61f9c 7502011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 751 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
752
753 * memrange.c (compare_mem_ranges): Mention sort order in
754 describing comment.
755 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
756 * tracepoint.c (traceframe_available_memory): Extend comment to
757 mention what happens to RESULT when the target does not support
758 the query.
759
6bfc80c7
PA
7602011-02-14 Pedro Alves <pedro@codesourcery.com>
761 Jan Kratochvil <jan.kratochvil@redhat.com>
762
763 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
764 range.
765
e7303042
PA
7662011-02-14 Pedro Alves <pedro@codesourcery.com>
767
768 * value.c (value_bits_valid, value_bits_synthetic_pointer):
769 No longer handle NULL values.
770
8af8e3bc
PA
7712011-02-14 Pedro Alves <pedro@codesourcery.com>
772
773 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
774 * value.c: Include "exceptions.h".
775 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
776 generic error.
777 * cp-abi.c: Include gdb_assert.h.
778 (baseclass_offset): Add `embedded_offset' and `val' parameters.
779 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
780 errors.
781 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
782 parameters. No longer returns -1 on error.
783 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
784 `val' parameters.
785 * cp-valprint.c: Include exceptions.h.
786 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
787 the baseclass_offset. Handle unavailable base classes. Use
788 val_print_invalid_address.
789 * p-valprint.c: Include exceptions.h.
790 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
791 when fetching the baseclass_offset. No longer expect
792 baseclass_offset returning -1. Handle unavailable base classes.
793 Use val_print_invalid_address.
794 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
795 `valaddr' parameter, and change its type to gdb_byte pointer. Add
796 `embedded_offset' and `val' parameters. Adjust.
797 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
798 parameter, and change its type to gdb_byte pointer. Add
799 `embedded_offset' and `val' parameters. Adjust. No longer expect
800 baseclass_offset returning -1.
801 (value_dynamic_cast): Use value_contents_for_printing rather than
802 value_contents. Adjust.
803 (search_struct_field): No longer expect baseclass_offset returning
804 -1.
805 (search_struct_method): If reading memory from the target is
806 necessary, wrap it in a new value to pass to baseclass_offset. No
807 longer expect baseclass_offset returning -1.
808 (find_method_list): No longer expect baseclass_offset returning
809 -1. Use value_contents_for_printing rather than value_contents.
810 * valprint.c (val_print_invalid_address): New function.
811 * valprint.h (val_print_invalid_address): Declare.
812 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
813 and `val' parameters. No longer expect baseclass_offset returning
814 -1. Adjust.
815 * gnu-v2-abi.c: Include "exceptions.h".
816 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
817 parameters. Handle unavailable memory. Recurse through
818 gnuv2_baseclass_offset directly, rather than through
819 baseclass_offset. No longer returns -1 on not found, instead
820 throw an error.
821 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
822 `val' parameters. Adjust.
823
1b28d0b3
PA
8242011-02-14 Pedro Alves <pedro@codesourcery.com>
825
826 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
827 almost but not quite adjacent.
828
ec0a52e1
PA
8292011-02-14 Pedro Alves <pedro@codesourcery.com>
830
831 * value.h (value_entirely_available): Declare.
832 * value.c (value_entirely_available): New function.
833 * c-valprint.c (c_value_print): Don't try fetching the pointer's
834 real type if the pointer is unavailable.
835
24e6bcee
PA
8362011-02-14 Pedro Alves <pedro@codesourcery.com>
837
838 * valops.c (value_repeat): Use read_value_memory instead of
839 read_memory.
840
39d37385
PA
8412011-02-14 Pedro Alves <pedro@codesourcery.com>
842
843 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
844 * value.c (value_contents_copy_raw, value_contents_copy): New
845 functions.
846 (value_primitive_field): Use value_contents_copy_raw instead of
847 memcpy.
848 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
849 memcpy.
850 (value_array, value_slice): Ditto.
851 * valarith.c (value_subscripted_rvalue): Use
852 value_contents_copy_raw instead of memcpy.
853
a3d34bf4
PA
8542011-02-14 Pedro Alves <pedro@codesourcery.com>
855
856 <unavailable> references.
857
858 * valops.c (get_value_at): Use value_from_contents_and_address,
859 avoiding read_memory.
860
9fc6d940
PA
8612011-02-14 Pedro Alves <pedro@codesourcery.com>
862
863 * c-valprint.c (c_val_print): Print a string with unavailable
864 contents as an array.
865
5467c6c8
PA
8662011-02-14 Pedro Alves <pedro@codesourcery.com>
867
868 * value.h (unpack_bits_as_long): Delete declaration.
869 (unpack_value_bits_as_long): Declare.
870 (unpack_value_field_as_long): Declare.
871 (value_field_bitfield): Declare.
872 * value.c (unpack_bits_as_long): Rename to...
873 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
874 value parameters. Return the extracted result in a new output
875 parameter. If the value contents are unavailable, return false,
876 otherwise return true.
877 (unpack_value_bits_as_long): New.
878 (unpack_field_as_long): Rename to...
879 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
880 Add embedded_offset and value parameters. Return the extracted
881 result in a new output parameter. If the value contents are
882 unavailable, return false, otherwise return true.
883 (unpack_value_field_as_long): New.
884 (unpack_field_as_long_1): New.
885 (unpack_field_as_long): Reimplement as wrapper around
886 unpack_value_field_as_long_1.
887 (value_field_bitfield): New function.
888 * valops.c (value_fetch_lazy): When fetching a bitfield, use
889 unpack_value_bits_as_long. Mark the value as unavailable, if it
890 is unavailable.
891 * jv-valprint.c (java_print_value_fields): Use
892 value_field_bitfield.
893 * p-valprint.c (pascal_object_print_value_fields): Use
894 value_field_bitfield.
895 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
896
3158c6ed
PA
8972011-02-14 Pedro Alves <pedro@codesourcery.com>
898
899 * value.c (get_internalvar_integer): Also return the int value of
900 TYPE_CODE_INT INTERNALVAR_VALUE values.
901 (set_internalvar): Don't special case TYPE_CODE_INT.
902
9fbdca0d
PA
9032011-02-14 Pedro Alves <pedro@codesourcery.com>
904
905 * value.c (struct internalvar) <enum internalvar_kind>: Remove
906 INTERNALVAR_POINTER.
907 <pointer>: Delete.
908 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
909 (set_internalvar): Remove special TYPE_CODE_PTR handling.
910 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
911
c8c1c22f
PA
9122011-02-14 Pedro Alves <pedro@codesourcery.com>
913
914 * value.h (value_available_contents_eq): Declare.
915 * value.c (find_first_range_overlap): New function.
916 (value_available_contents_eq): New function.
917 * valprint.c (val_print_array_elements): Use
918 value_available_contents_eq.
919 * ada-valprint.c (val_print_packed_array_elements): Use
920 value_available_contents_eq.
921 * jv-valprint.c (java_value_print): Use
922 value_available_contents_eq.
923
e6e4e701
PA
9242011-02-14 Pedro Alves <pedro@codesourcery.com>
925
926 * target.c (target_read_live_memory): New function.
927 (memory_xfer_live_readonly_partial): New.
928 (memory_xfer_partial): If reading from a traceframe, fallback to
929 reading unavailable read-only memory from read-only regions of
930 live target memory.
931 * tracepoint.c (disconnect_tracing): Adjust.
932 (set_current_traceframe): New, factored out from
933 set_traceframe_number.
934 (set_traceframe_number): Reimplement to only change the traceframe
935 number on the GDB side.
936 (do_restore_current_traceframe_cleanup): Adjust.
937 (make_cleanup_restore_traceframe_number): New.
938 (cur_traceframe_number): New global.
939 (tfile_open): Set cur_traceframe_number to no traceframe.
940 (set_tfile_traceframe): New function.
941 (tfile_trace_find): If looking up a traceframe using any method
942 other than by number, make sure the current tfile traceframe
943 matches gdb's current traceframe. Update the current tfile
944 traceframe if the lookup succeeded.
945 (tfile_fetch_registers, tfile_xfer_partial)
946 (tfile_get_trace_state_variable_value): Make sure the remote
947 traceframe matches gdb's current traceframe.
948 * remote.c (remote_traceframe_number): New global.
949 (remote_open_1): Set it to -1.
950 (set_remote_traceframe): New function.
951 (remote_fetch_registers, remote_store_registers)
952 (remote_xfer_memory, remote_xfer_partial)
953 (remote_get_trace_state_variable_value): Make sure the remote
954 traceframe matches gdb's current traceframe.
955 (remote_trace_find): If looking up a traceframe using any method
956 other than by number, make sure the current remote traceframe
957 matches gdb's current traceframe. Update the current remote
958 traceframe if the lookup succeeded.
959 * infrun.c (fetch_inferior_event): Adjust.
960 * tracepoint.h (set_current_traceframe): Declare.
961 (get_traceframe_number, set_traceframe_number): Add describing
962 comments.
963
e6ca34fc
PA
9642011-02-14 Pedro Alves <pedro@codesourcery.com>
965
966 Mark pieces of values as unavailable if the corresponding memory
967 is unavailable.
968
969 * valops.c: Include tracepoint.h.
970 (value_fetch_lazy): Use read_value_memory.
971 (read_value_memory): New.
972 * value.h (read_value_memory): Declare.
973 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
974 * exec.c (section_table_available_memory): New function.
975 * exec.h (section_table_available_memory): Declare.
976
2a7498d8
PA
9772011-02-14 Pedro Alves <pedro@codesourcery.com>
978
979 * Makefile.in (SFILES): Add memrange.c.
980 (HFILES_NO_SRCDIR): Add memrange.h.
981 (COMMON_OBS): Add memrange.o.
982 * memrange.c: New file.
983 * memrange.h: New file.
984 * tracepoint.c: Include memrange.h.
985 (struct mem_range): Delete.
986 (mem_range_s): Delete.
987 (traceframe_available_memory): New function.
988 * tracepoint.h (traceframe_available_memory): Declare.
989
b3b9301e
PA
9902011-02-14 Pedro Alves <pedro@codesourcery.com>
991
992 * target.h (struct traceframe_info): Forward declare.
993 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
994 (struct target_ops) <to_traceframe_info>: New field.
995 (target_traceframe_info): New.
996 * target.c (update_current_target): Inherit and default
997 to_traceframe_info.
998 * remote.c (PACKET_qXfer_traceframe_info): New.
999 (remote_protocol_features): Register qXfer:traceframe-info:read.
1000 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
1001 (remote_traceframe_info): New.
1002 (init_remote_ops): Install it.
1003 (_initialize_remote): Install "set/show remote traceframe-info"
1004 commands.
1005 * tracepoint.h (parse_traceframe_info): Declare.
1006 * tracepoint.c (struct mem_range): New.
1007 (mem_range_s): New typedef.
1008 (struct traceframe_info): New.
1009 (traceframe_info): New global.
1010 (free_traceframe_info): New function.
1011 (clear_traceframe_info): New function.
1012 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
1013 info.
1014 (build_traceframe_info): New function.
1015 (tfile_traceframe_info): New function.
1016 (init_tfile_ops): Install tfile_traceframe_info.
1017 (traceframe_info_start_memory, free_result): New functions.
1018 (memory_attributes, traceframe_info_elements): New globals.
1019 (parse_traceframe_info, get_traceframe_info): New functions.
1020 * features/traceframe-info.dtd: New file.
1021 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
1022
4e07d55f
PA
10232011-02-14 Pedro Alves <pedro@codesourcery.com>
1024
1025 Base support for <unavailable> value contents.
1026
4e07d55f
PA
1027 * value.h (value_bytes_available): Declare.
1028 (mark_value_bytes_unavailable): Declare.
1029 * value.c (struct range): New struct.
1030 (range_s): New typedef.
1031 (ranges_overlap): New function.
1032 (range_lessthan): New function.
1033 (ranges_contain_p): New function.
1034 (struct value) <unavailable>: New field.
1035 (value_bytes_available): New function.
1036 (mark_value_bytes_unavailable): New function.
1037 (require_not_optimized_out): Constify parameter.
1038 (require_available): New function.
1039 (value_contents_all, value_contents): Require all bytes be
1040 available.
1041 (value_free): Free `unavailable'.
1042 (value_copy): Copy `unavailable'.
1043 * valprint.h (val_print_unavailable): Declare.
1044 * valprint.c (valprint_check_validity): Rename `offset' parameter
1045 to `embedded_offset'. If printing a scalar, check whether the
1046 value chunk is available.
1047 (val_print_unavailable): New.
1048 (val_print_scalar_formatted): Check whether the value is
1049 available.
1050 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
1051 pretty-printing unavailable values.
1052
bc9a5551
JK
10532011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1054
1055 Fix const/volatile qualifiers of C++ types, PR c++/12328.
1056 * c-typeprint.c (c_type_print_args): Update the function comment. New
1057 variable param_type, initialize it. Remove const/volatile qualifiers
1058 for language_cplus and !show_artificial. Use param_type.
1059
93b55aa1
JK
10602011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1061
1062 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
1063 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
1064 * symtab.h (struct symtab) <next>: Comment extension.
1065
181d9476
YQ
10662011-02-12 Yao Qi <yao@codesourcery.com>
1067
1068 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
1069
b708a5c7
JK
10702011-02-11 Yao Qi <yao@codesourcery.com>
1071
1072 * common/Makefile.in: Add copyright header.
1073
c5187ac6
PA
10742011-02-11 Pedro Alves <pedro@codesourcery.com>
1075
1076 * infrun.c (proceed): Move switching out and in of tfind mode from
1077 here ...
1078 (fetch_inferior_event): ... to here.
1079
4f3e6fb7
YQ
10802011-02-11 Yao Qi <yao@codesourcery.com>
1081
1082 * Makefile.in: Remove signals.o from COMMON_OBS. Link
1083 libcommon.a.
1084 * configure.ac: Add common to sub dir.
1085 * configure: Regenerate.
1086
b708a5c7
JK
10872011-02-11 Yao Qi <yao@codesourcery.com>
1088
1089 Build libcommon.a.
1090
1091 * common/Makefile.in: New.
1092 * common/configure.ac: New.
1093 * common/aclocal.m4: New.
1094 * common/configure: Generate.
1095
2287cc7e
PA
10962011-02-10 Pedro Alves <pedro@codesourcery.com>
1097
1098 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
1099 side of the parenthesis.
1100
1101 Merge from GCC:
1102 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 1103 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 1104
fd62cb89
MS
11052011-02-08 Michael Snyder <msnyder@vmware.com>
1106
1107 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
1108
56d2815c
JK
11092011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1110
1111 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
1112 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
1113 psubd and paddd.
1114
4f7d61a8
JK
11152011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1116
1117 PR 12361.
1118 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
1119 phsubsw.
1120 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
1121 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
1122
54fcddd0
UW
11232011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1124
1125 * dwarf2read.c (read_subroutine_type): Set special calling
1126 convention flag for functions compiled by IBM XL C for OpenCL.
1127 * ppc-sysv-tdep.c: Include "dwarf2.h"
1128 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
1129 calling convention.
1130 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
1131 IBM OpenCL vector types calling convention.
1132 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
1133 (ppc_sysv_abi_broken_return_value): Likewise.
1134 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
1135 types calling convention.
1136 (ppc64_sysv_abi_return_value): Likewise.
1137 * spu-tdep.c: Include "dwarf2.h"
1138 (spu_return_value): Implement IBM OpenCL vector types calling
1139 convention.
1140
d6dafb7c
UW
11412011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1142
1143 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
1144 correct ABI for AltiVec vector arguments.
1145
32b72a42
PA
11462011-02-07 Pedro Alves <pedro@codesourcery.com>
1147
1148 * valprint.c (val_print): Extend comment.
1149 * ada-valprint.c (ada_valprint): Rewrite comment deferring
1150 interface explanation to val_print.
1151 (ada_val_print_array): Adjust comment to current interface.
1152 (print_field_values): Adjust comment to current interface.
1153 * c-valprint.c (c_val_print): Rewrite comment deferring interface
1154 explanation to val_print.
1155 * f-valprint.c (f_val_print): Ditto.
1156 * jv-valprint.c (java_val_print): Ditto.
1157 * m2-valprint.c (m2_val_print): Ditto.
1158 * p-valprint.c (pascal_val_print): Ditto.
1159
9998af43
TJB
11602011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
1161
1162 * breakpoint.c (parse_breakpoint_sals): Fix description.
1163
505500db 11642011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 1165 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
1166
1167 * python/py-inferior.c (python_on_normal_stop): New function.
1168 (python_on_resume): New function.
1169 (python_inferior_exit): New function.
1170 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
1171 inferior_exit observers.
1172 * python/py-evtregistry.c: New file.
1173 * python/py-threadevent.c : New file.
1174 * python/py-event.c: New file.
1175 * python/py-evts.c: New file.
1176 * python/py-continueevent.c: New file.
1177 * python/py-bpevent.c: New file.
1178 * python/py-signalevent.c: New file.
1179 * python/py-exetiedevent.c: New file.
1180 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
1181 Move struct breakpoint_object from here...
1182 * python/python-internal.h: ... to here.
1183 * python/py-event.h: New file.
1184 * python/py-events.h: New file.
1185 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
1186 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
1187 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
1188 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
1189 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
1190 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
1191 Add build rules for all the above.
1192
9e0ac564
TT
11932011-02-04 Tom Tromey <tromey@redhat.com>
1194
1195 * dwarf2read.c (dwarf2_section_empty_p): New function.
1196 (dwarf2_read_section): Use dwarf2_section_empty_p.
1197 (dwarf2_section_size): New function.
1198 (dwarf2_get_section_info): Unconditionally read section.
1199 (dwarf2_read_index): Use dwarf2_section_empty_p.
1200 (partial_read_comp_unit_head): Use dwarf2_section_size.
1201 (dwarf2_symbol_mark_computed): Likewise.
1202
eee5b35e
DD
12032011-02-04 David Daney <ddaney@caviumnetworks.com>
1204
1205 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
1206
385203ed
DD
12072011-02-04 David Daney <ddaney@caviumnetworks.com>
1208
1209 * mips-linux-tdep.c: Include xml-syscall.h.
1210 (mips_linux_get_syscall_number): New function.
1211 (mips_linux_init_abi): Add calls to
1212 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
1213 * data-directory/Makefile.in (SYSCALLS_FILES): Add
1214 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
1215 * syscalls/mips-n32-linux.xml: New file.
1216 * syscalls/mips-n64-linux.xml: New file.
1217 * syscalls/mips-o32-linux.xml: New file.
1218
9277c30c
UW
12192011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
1220
1221 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
1222 Complain about inverted range entries.
1223 (dwarf2_record_block_ranges): Likewise.
1224
a3be7890
TJB
12252011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1226
1227 Fix some typos.
1228 * breakpoint.c (update_watchpoint): Fix name of the
1229 update_global_location_list function.
1230 (print_one_breakpoint): Fix typo.
1231 (_initialize_breakpoint): Remove extra space in hbreak help
1232 string.
1233 * breakpoint.h (struct bp_location) <length>: Fix field
1234 description.
1235
041274d8
PA
12362011-02-04 Pedro Alves <pedro@codesourcery.com>
1237
1238 * regcache.c (registers_changed_ptid): Don't explictly always
1239 clear `current_regcache'. Only clear current_thread_ptid and
1240 current_thread_arch when PTID matches. Only reinit the frame
1241 cache if PTID matches the current inferior_ptid. Move alloca(0)
1242 call to ...
1243 (registers_changed): ... here.
1244
c1c2ab58
UW
12452011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
1246
1247 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
1248 starts with __stack_chk_guard as stack guard symbol.
1249
9011945e
AB
12502011-02-03 Andrew Burgess <aburgess@broadcom.com>
1251
1252 * disasm.c (compare_lines): Handle the end of sequence markers
1253 within the line table to better support disassembling over
1254 compilation unit boundaries.
1255
e0634ccf
UW
12562011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1257
1258 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
1259 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
1260 implementation even if no symbols are available.
1261 (thumb_analyze_prologue): Update call to skip_prologue_function.
1262 (arm_analyze_prologue): Likewise.
1263
0e9e9abd
UW
12642011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1265
1266 * arm-tdep.c: Include "observer.h".
1267 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
1268 (arm_exidx_data_key): New static variable.
1269 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
1270 (struct arm_exidx_data): Likewise.
1271 (arm_exidx_data_free): New function.
1272 (arm_compare_exidx_entries): Likewise.
1273 (arm_obj_section_from_vma): Likewise.
1274 (arm_exidx_new_objfile): Likewise.
1275 (arm_find_exidx_entry): Likewise.
1276 (arm_exidx_fill_cache): Likewise.
1277 (arm_exidx_unwind_sniffer): Likewise.
1278 (arm_exidx_unwind): New global variable.
1279 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
1280 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
1281 observer. Register arm_exidx_data_key as objfile data.
1282
2e9e421f
UW
12832011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1284
1285 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
1286 due to accessing uninitialized variable. Fix indentation.
1287
580688f3
PA
12882011-02-02 Pedro Alves <pedro@codesourcery.com>
1289
1290 * c-valprint.c (c_value_print): When doing virtual base pointer
1291 adjustment, create a new value with adjusted contents rather than
1292 changing the contents of the value being printed (and getting it
1293 wrong).
1294
3d2c1d41
PA
12952011-02-02 Pedro Alves <pedro@codesourcery.com>
1296
1297 * xml-support.c (xml_find_attribute): New.
1298 (xinclude_start_include): Use it.
1299 * xml-support.h (xml_find_attribute): Declare.
1300 * memory-map.c (memory_map_start_memory)
1301 (memory_map_start_property): Use xml_find_attribute.
1302 * osdata.c (osdata_start_osdata, osdata_start_column): Use
1303 xml_find_attribute.
1304 * remote.c (start_thread): Use xml_find_attribute.
1305 * solib-target.c (library_list_start_segment)
1306 (library_list_start_section, library_list_start_library)
1307 (library_list_start_list): Use xml_find_attribute.
1308 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
1309 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
1310 (tdesc_start_field): Use xml_find_attribute.
1311
0af3e2db
UW
13122011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
1313
1314 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
1315 (BUILD_OCL_VTYPES): Update.
1316
c1039e3c
JB
13172011-02-02 Joel Brobecker <brobecker@adacore.com>
1318
1319 * configure.ac: Work around non-GNU sed limitation when computing
1320 python version number.
1321 * configure: Regenerate.
1322
600ea1be
JK
13232011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1324
1325 Fix debug printing of TYPE_INSTANCE.
1326 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
1327 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
1328
56c12414
JK
13292011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1330
1331 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
1332 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
1333 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
1334 * ada-operator.inc: Rename the file to ...
1335 * ada-operator.def: ... here, wrap all the entries by macro OP.
1336 * expprint.c (op_name_standard): Remove all the entries. Include
1337 "std-operator.def" instead.
1338 * expression.h (enum exp_opcode): Include "std-operator.def" and
1339 "ada-operator.def". Move all the entries ...
1340 * std-operator.def: ... here, wrap all the entries by macro OP.
1341
c52b559d
PP
13422011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1343
1344 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
1345 * breakpoint.c (remove_jit_event_breakpoints): New function.
1346 * jit.c (jit_descriptor_addr): Delete.
1347 (registering_code): Delete.
1348 (clear_int): Delete.
1349 (jit_inferior_data): New variable.
1350 (struct jit_inferior_data): New type.
1351 (get_jit_inferior_data): New function.
1352 (jit_inferior_data_cleanup): New function.
1353 (jit_read_descriptor): Adjust.
1354 (jit_register_code): Adjust.
1355 (jit_breakpoint_re_set_internal): New function; move code here ...
1356 (jit_inferior_init): ... from here.
1357 (jit_breakpoint_re_set): Adjust.
1358 (jit_reset_inferior_data_and_breakpoints): New function.
1359 (jit_inferior_created_observer): Adjust.
1360 (jit_inferior_exit_hook): Adjust.
1361 (jit_executable_changed_observer): New function.
1362 (jit_event_handler): Adjust.
1363 (_initialize_jit): Adjust.
1364
e839132d
MS
13652011-01-31 Michael Snyder <msnyder@vmware.com>
1366
1367 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
1368 line.
1369
47a80e90
TT
13702011-01-31 Tom Tromey <tromey@redhat.com>
1371
1372 PR python/12216:
1373 * python/python.c (execute_gdb_command): Call
1374 prevent_dont_repeat.
1375 * top.c (suppress_dont_repeat): New global.
1376 (dont_repeat): Use it.
1377 (prevent_dont_repeat): New function.
1378 * command.h (prevent_dont_repeat): Declare.
1379
45a43567
TT
13802011-01-31 Tom Tromey <tromey@redhat.com>
1381
1382 * infcmd.c (finish_backward): Use breakpoint_set_silent.
1383 * python/py-breakpoint.c (bppy_set_silent): Use
1384 breakpoint_set_silent.
1385 (bppy_set_thread): Use breakpoint_set_thread.
1386 (bppy_set_task): Use breakpoint_set_task.
1387 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
1388 (breakpoint_set_task): Declare.
1389 (make_breakpoint_silent): Remove.
1390 * breakpoint.c (breakpoint_set_silent): New function.
1391 (breakpoint_set_thread): Likewise.
1392 (breakpoint_set_task): Likewise.
1393 (make_breakpoint_silent): Remove.
1394
09d682a4
TT
13952011-01-31 Tom Tromey <tromey@redhat.com>
1396
1397 * breakpoint.h (user_breakpoint_p): Declare.
1398 * breakpoint.c (user_breakpoint_p): New function.
1399 (breakpoint_1): Use it.
1400 (save_breakpoints): Likewise.
1401
9c4ea6c5
JB
14022011-01-31 Joel Brobecker <brobecker@adacore.com>
1403
1404 * configure.ac: Add handling of Python distribution on Windows.
1405 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
1406 sysconfig variables are not defined, then do not use them.
1407 On Windows, if LIBPL is not defined, then use prefix + '/libs'
1408 instead. On Windows, return all paths using forward-slashes
1409 rather than backslashes.
1410
ac534cba
JB
14112011-01-31 Joel Brobecker <brobecker@adacore.com>
1412
1413 * configure.ac: Remove fallback behavior for building
1414 against Python. Remove tweaking of Python include path.
1415 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
1416 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
1417 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
1418 Always restore CPPFLAGS and LIBS after linking test.
1419 * configure: Regenerated.
1420 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
1421 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
1422 * python/python-internal.h: Adjust includes of Python .h files.
1423
c2f0d045
JB
14242011-01-31 Joel Brobecker <brobecker@adacore.com>
1425
1426 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
1427 in error message.
1428
6b0c4c1f
JB
14292011-01-31 Joel Brobecker <brobecker@adacore.com>
1430
1431 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
1432 value test.
1433
672c9795
YQ
14342011-01-31 Yao Qi <yao@codesourcery.com>
1435
1436 * arm-linux-nat.c: Update calls to regcache_register_status
1437 instead of regcache_valid_p.
1438 * aix-thread.c: Likewise.
1439 * i386gnu-nat.c: Likewise.
1440
80b23b6a
JK
14412011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1442
1443 Fix crash.
1444 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
1445 touching TYPE_FIELD_ARTIFICIAL.
1446
4cd712bd
RE
14472011-01-28 Richard Earnshaw <rearnsha@arm.com>
1448
1449 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
1450 Committers.
1451
ffd5ec24
PA
14522011-01-28 Pedro Alves <pedro@codesourcery.com>
1453
1454 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
1455 selected, don't try iterating over the traceframe's blocks.
1456 (tfile_has_stack): If there's no traceframe selected, then there's
1457 no stack.
1458 (tfile_has_registers): If there's no traceframe selected, then
1459 there's no registers.
1460
e8c9e0a1
PA
14612011-01-28 Pedro Alves <pedro@codesourcery.com>
1462
1463 * target.c (memory_xfer_partial): No need to restore shadows if we
1464 haven't read anything.
1465
de15c4ab
PA
14662011-01-28 Pedro Alves <pedro@codesourcery.com>
1467
1468 * mips-tdep.c (mips_print_register): Use get_frame_register_value
1469 and val_print_scalar_formatted.
1470
9f41c731
PA
14712011-01-27 Pedro Alves <pedro@codesourcery.com>
1472
1473 * tracepoint.c (tfile_read): New.
1474 (tfile_open): Use it.
1475 (tfile_get_traceframe_address): Use it.
1476 (tfile_trace_find): Use it.
1477 (walk_blocks_callback_func): New typedef.
1478 (match_blocktype): New function.
1479 (traceframe_walk_blocks): New function.
1480 (traceframe_find_block_type): New function.
1481 (tfile_fetch_registers, tfile_xfer_partial)
1482 (tfile_get_trace_state_variable_value): Use
1483 traceframe_find_block_type and tfile_read.
1484
cdefc55d
KB
14852011-01-26 Kevin Buettner <kevinb@redhat.com>
1486
1487 * remote-mips.c: Add internationalization mark ups. Remove
1488 trailing \n from already marked up strings.
1489
a81766d8
TT
14902011-01-26 Tom Tromey <tromey@redhat.com>
1491
1492 * python/py-prettyprint.c (print_string_repr): Clear
1493 'addressprint' option when calling val_print_string.
1494 (print_children): Handle Val_pretty_default. Clear 'addressprint'
1495 option when calling val_print_string.
1496
74aedc46
TT
14972011-01-26 Tom Tromey <tromey@redhat.com>
1498
1499 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
1500 GDB_PY_LL_ARG.
1501 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
1502 macros.
1503 (gdb_py_longest, gdb_py_ulongest): New typedefs.
1504 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
1505 (gdb_py_long_as_ulongest): New defines.
1506 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
1507 (gdb_py_int_as_long): Declare.
1508 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
1509 GDB_PY_LL_ARG, gdb_py_object_from_longest.
1510 (valpy_long): Add comment.
1511 * python/py-utils.c (get_addr_from_python): Use
1512 gdb_py_long_as_ulongest. Handle overflow properly.
1513 (gdb_py_object_from_longest): New function.
1514 (gdb_py_object_from_ulongest): Likewise.
1515 (gdb_py_int_as_long): Likewise.
1516 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
1517 * python/py-symtab.c (salpy_get_pc): Use
1518 gdb_py_long_from_ulongest.
1519 (salpy_get_line): Use PyInt_FromLong.
1520 * python/py-param.c (set_parameter_value): Use
1521 gdb_py_int_as_long.
1522 * python/py-lazy-string.c (stpy_get_address): Use
1523 gdb_py_long_from_ulongest.
1524 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
1525 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
1526 * python/py-breakpoint.c (bppy_set_thread): Use
1527 gdb_py_int_as_long.
1528 (bppy_set_task): Likewise.
1529 (bppy_set_ignore_count): Likewise.
1530 (bppy_set_hit_count): Likewise.
1531 * python/py-block.c (blpy_get_start): Use
1532 gdb_py_object_from_ulongest.
1533 (blpy_get_end): Likewise.
1534 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
1535
e4f6d2ec
TJB
15362011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
1537
1538 PR/symtab 11766:
1539 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
1540 * gdb/solib.c (solib_read_symbols): Check for addr_low in
1541 equality test for objfile, initialize addr_low if needed.
1542
b30aa278
PA
15432011-01-25 Pedro Alves <pedro@codesourcery.com>
1544
1545 * tui/tui-regs.c (tui_register_format): Remove dead code.
1546
ab2188aa
PA
15472011-01-25 Pedro Alves <pedro@codesourcery.com>
1548
1549 * printcmd.c (print_formatted): Use val_print_scalar_formatted
1550 instead of print_scalar_formatted.
1551 (print_scalar_formatted): Don't handle 's' format strings here,
1552 and add an assertion that we never see such format here.
1553 * valprint.h (val_print_scalar_formatted): Declare.
1554 * valprint.c (val_print_scalar_formatted): New.
1555 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
1556 instead of print_scalar_formatted.
1557 * jv-valprint.c (java_val_print): Ditto.
1558 * p-valprint.c (pascal_val_print): Ditto.
1559 * ada-valprint.c (ada_val_print_1): Ditto.
1560 * f-valprint.c (f_val_print): Ditto.
1561 * infcmd.c (registers_info): Ditto.
1562 * m2-valprint.c (m2_val_print): Ditto.
1563
66d61a4c
PA
15642011-01-25 Pedro Alves <pedro@codesourcery.com>
1565
1566 * m2-valprint.c (print_unbounded_array): Pass
1567 value_contents_for_printing rather than value_contents, to
1568 m2_print_array_contents. Also pass in the value.
1569
831adc1f
JK
15702011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1571
1572 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
1573 (save_gdb_index_command): Switch to .gdb_index version 4.
1574
20622269
PA
15752011-01-25 Pedro Alves <pedro@codesourcery.com>
1576
1577 * mi/mi-main.c (get_register): Use get_frame_register_value rather
1578 than frame_register, and always pass a valid value to val_print.
1579
585fdaa1
PA
15802011-01-25 Pedro Alves <pedro@codesourcery.com>
1581
1582 Centralize printing "<optimized out>".
1583
1584 * valprint.h (val_print_optimized_out): Declare.
1585 * cp-valprint.c (cp_print_value_fields): Use
1586 val_print_optimized_out.
1587 * jv-valprint.c (java_print_value_fields): Ditto.
1588 * p-valprint.c (pascal_object_print_value_fields): Ditto.
1589 * printcmd.c (print_formatted): Ditto.
1590 * valprint.c (valprint_check_validity): Ditto.
1591 (value_check_printable): Ditto.
1592 (val_print_optimized_out): New.
1593
29ec5263
PA
15942011-01-25 Pedro Alves <pedro@codesourcery.com>
1595
1596 * infcmd.c (default_print_registers_info): Allocate values so to
1597 never pass a NULL value to val_print.
1598
de4127a3
PA
15992011-01-25 Pedro Alves <pedro@codesourcery.com>
1600
1601 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
1602 boolean. Make sure to always pass a value that matches the
1603 contents buffer to callees. Preserve `address' for following
1604 iterations.
1605 * value.c (value_contents_for_printing_const): New.
1606 (value_address): Constify value argument.
1607 * value.h (value_contents_for_printing_const): Declare.
1608 (value_address): Constify value argument.
1609
ee99023e
PA
16102011-01-25 Pedro Alves <pedro@codesourcery.com>
1611
1612 * regcache.c (struct regcache_descr): Rename
1613 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
1614 and sizeof_cooked_register_valid_p to
1615 sizeof_cooked_register_status.
1616 (init_regcache_descr): Adjust.
1617 (struct regcache): Rename register_valid_p field to
1618 register_status.
1619 (regcache_xmalloc_1, regcache_xfree, regcache_save)
1620 (do_cooked_read): Adjust.
1621 (regcache_valid_p): Rename to ...
1622 (regcache_register_status): ... this. Adjust.
1623 (regcache_invalidate): Adjust.
1624 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
1625 Adjust.
1626 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
1627 as unavailable, not valid.
1628 (regcache_dump): Adjust.
1629 * regcache.h (enum register_status): New.
1630 (regcache_register_status): Declare.
1631 (regcache_invalidate): Delete declaration.
1632 * corelow.c (get_core_registers): Adjust.
1633 * tracepoint.c (tfile_fetch_registers): Adjust.
1634 * trad-frame.c (REG_VALUE): Rename to ...
1635 (TF_REG_VALUE): ... this.
1636 (REG_UNKNOWN): Rename to ...
1637 (TF_REG_UNKNOWN): ... this.
1638 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
1639 * mi/mi-main.c (register_changed_p): Adjust.
1640
99e42fd8
PA
16412011-01-25 Pedro Alves <pedro@codesourcery.com>
1642
1643 * regcache.c (struct regcache_descr): Remove outdated comment.
1644 (init_regcache_descr): Remove sizeof_raw_register_valid_p
1645 overallocate hack.
1646 (regcache_xmalloc): Rename to ...
1647 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
1648 Allocate the regcache type accordingly.
1649 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
1650 (regcache_xfree): Asser the source is also readonly. Copy sizeof
1651 cooked registers, not raw.
1652 (regcache_dup_no_passthrough): Delete.
1653 (get_thread_arch_regcache): Use regcache_xmalloc_1.
1654 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
1655 mention obsolete write_register_bytes.
1656 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
1657
f7605bc2
PA
16582011-01-25 Pedro Alves <pedro@codesourcery.com>
1659
1660 Stop remote_read_bytes from handling partial reads itself.
1661
1662 * remote-fileio.c: Include target.h.
1663 (remote_fileio_write_bytes): Delete.
1664 (remote_fileio_func_open, remote_fileio_func_write)
1665 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
1666 target_read_memory.
1667 (remote_fileio_func_stat): Use target_read_memory and
1668 target_write_memory.
1669 (remote_fileio_func_gettimeofday): Use target_write_memory.
1670 (remote_fileio_func_system): Use target_read_memory.
1671 * remote.c (remote_write_bytes): Make it static.
1672 (remote_read_bytes): Don't handle partial reads here.
1673 * remote.h (remote_read_bytes): Delete declaration.
1674
efc0eabd
PA
16752011-01-25 Pedro Alves <pedro@codesourcery.com>
1676
1677 Simplify XML parsing a bit.
1678
1679 * xml-support.h (gdb_xml_parse_quick): Declare.
1680 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
1681 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
1682 parameter.
1683 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
1684 gdb_xml_create_parser_and_cleanup_1.
1685 (gdb_xml_parse_quick): New.
1686 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
1687 * osdata.c (osdata_parse): Ditto.
1688 * remote.c (remote_threads_info): Ditto.
1689 * solib-target.c (solib_target_parse_libraries): Ditto.
1690 * xml-syscall.c (syscall_parse_xml): Ditto.
1691 * xml-tdesc.c (tdesc_parse_xml): Ditto.
1692
314d366a
KB
16932011-01-24 Kevin Buettner <kevinb@redhat.com>
1694
1695 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
1696 with remote-mips.o added to gdb_target_obs.
1697 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
1698
a491d753
PA
16992011-01-24 Pedro Alves <pedro@codesourcery.com>
1700
1701 * ada-valprint.c (val_print_packed_array_elements): Pass the
1702 correct struct value to val_print.
1703 (ada_val_print_1): Ditto.
1704
490f124f
PA
17052011-01-24 Pedro Alves <pedro@codesourcery.com>
1706
1707 Don't lose embedded_offset in printing routines throughout.
1708
1709 * valprint.h (val_print_array_elements): Change prototype.
1710 * valprint.c (val_print_array_elements): Add `embedded_offset'
1711 parameter, and adjust to pass it down to val_print, while passing
1712 `valaddr' or `address' unmodified. Take embedded_offset into
1713 account when checking repetitions.
1714 * c-valprint.c (c_val_print): Pass embedded_offset to
1715 val_print_array_elements instead of adjusting `valaddr' and
1716 `address'.
1717 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
1718 embedded_offset to val_print_array_elements instead of adjusting
1719 `valaddr'.
1720 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
1721 * p-valprint.c (pascal_val_print): Pass embedded_offset to
1722 val_print_array_elements and pascal_object_print_value_fields
1723 instead of adjusting `valaddr'.
1724 (pascal_object_print_value_fields): Add `offset' parameter, and
1725 adjust to use it.
1726 (pascal_object_print_value): Add `offset' parameter, and adjust to
1727 use it.
1728 (pascal_object_print_static_field): Use
1729 value_contents_for_printing/value_embedded_offset, rather than
1730 value_contents.
1731 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
1732 parameter, and adjust to use it. Use
1733 value_contents_for_printing/value_embedded_offset, rather than
1734 value_contents.
1735 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
1736 (ada_val_print_array): Add `offset' parameter, and adjust to use
1737 it.
1738 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
1739 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
1740 Instead work with offsets. Use
1741 value_contents_for_printing/value_embedded_offset, rather than
1742 value_contents. Change `defer_val_int' local type to CORE_ADDR,
1743 and use value_from_pointer to extract a target pointer, rather
1744 than value_from_longest.
1745 (print_variant_part): Add `offset' parameter. Replace
1746 `outer_valaddr' parameter by a new `outer_offset' parameter.
1747 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
1748 (ada_value_print): Use
1749 value_contents_for_printing/value_embedded_offset, rather than
1750 value_contents.
1751 (print_record): Add `offset' parameter, and adjust to pass it
1752 down.
1753 (print_field_values): Add `offset' parameter. Replace
1754 `outer_valaddr' parameter by a new `outer_offset' parameter.
1755 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
1756 Use value_contents_for_printing/value_embedded_offset, rather than
1757 value_contents.
1758 * d-valprint.c (dynamic_array_type): Use
1759 value_contents_for_printing/value_embedded_offset, rather than
1760 value_contents.
1761 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
1762 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
1763 (java_print_value_fields): Take `offset' into account. Don't
1764 re-adjust `valaddr'. Instead pass down adjusted offsets.
1765 (java_val_print): Take `embedded_offset' into account. Pass it to
1766 java_print_value_fields.
1767 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
1768 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
1769 down adjusted offsets.
1770 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
1771 (f_val_print): Take `embedded_offset' into account.
1772
7bfc9434
JB
17732011-01-21 Joel Brobecker <brobecker@adacore.com>
1774
1775 * inflow.c: Include "gdbcmd.h".
1776 (interactive_mode): New static global, moved here from top.c.
1777 (show_interactive_mode): New function, moved here from top.c.
1778 use gdb_has_a_terminal instead of input_from_terminal_p to
1779 determine the current mode.
1780 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
1781 setting.
1782 (_initialize_inflow): Add the "set/show interactive-mode"
1783 commands. Moved here from top.c, after having adjusted slightly
1784 the help text.
1785 * top.c (interactive_mode, show_interactive_mode): Delete, moved
1786 to inflow.c.
1787 (input_from_terminal_p): Remove handling of "interactive-mode"
1788 setting, moved to infow.c.
1789 (init_main): Remove creation of the "set/show interactive-mode"
1790 commands, moved to inflow.c.
1791
44603653
JB
17922011-01-19 Joel Brobecker <brobecker@adacore.com>
1793
1794 * NEWS: Add entry for native ia64-hpux support.
1795
4694da01
TT
17962011-01-19 Tom Tromey <tromey@redhat.com>
1797
1798 PR mi/8618:
1799 * thread.c (free_thread): Free 'name'.
1800 (print_thread_info): Emit thread name. Change CLI output.
1801 (thread_name_command): New function.
1802 (do_captured_thread_select): Emit newline.
1803 (_initialize_thread): Register 'thread name' command.
1804 * target.h (struct target_ops) <to_thread_name>: New field.
1805 (target_thread_name): New macro.
1806 * target.c (update_current_target): Handle to_thread_name.
1807 * python/py-infthread.c (thpy_get_name): New function.
1808 (thpy_set_name): Likewise.
1809 (thread_object_getset): Add "name".
1810 * linux-nat.c (linux_nat_thread_name): New function.
1811 (linux_nat_add_target): Set to_thread_name.
1812 * gdbthread.h (struct thread_info) <name>: New field.
1813
10d44370
JB
18142011-01-18 Joel Brobecker <brobecker@adacore.com>
1815
1816 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
1817 (ada_val_print_1): Likewise.
1818
e3acb115
JB
18192011-01-18 Joel Brobecker <brobecker@adacore.com>
1820
1821 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
1822 upper limit address is not greater than the function end address
1823 when the upper limit could not be computed using the debugging
1824 info.
1825
dc92e161
TT
18262011-01-17 Tom Tromey <tromey@redhat.com>
1827
1828 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
1829 get_regcomp_error.
1830 * utils.c: Include gdb_regex.h.
1831 (do_regfree_cleanup): New function.
1832 (make_regfree_cleanup): Likewise.
1833 (get_regcomp_error): Likewise.
1834 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
1835
f55af66d
TT
18362011-01-17 Tom Tromey <tromey@redhat.com>
1837
1838 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
1839 re_compile_fastmap.
1840
a5a44b53
PM
18412011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
1842
1843 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
1844 for internal variables.
1845 (last_was_structop): New static variable.
1846 (COMPLETE): New token.
1847 (field_exp): New rule to group all '.' suffix handling.
1848 Add mark_struct_expression calls when approriate to be able
1849 to correctly find fields for completion.
1850 (yylex): Adapt to handle field completion and set INTVAR when
1851 required.
1852
2c291032
YQ
18532011-01-14 Yao Qi <yao@codesourcery.com>
1854
1855 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
1856 save_reggroup, restore_reggroup and all_reggroup.
1857
447b483c
JB
18582011-01-14 Joel Brobecker <brobecker@adacore.com>
1859
1860 * ada-valprint. (ada_printchar): Use the correct type length
1861 in call to ada_emit_char.
1862 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
1863
7b64a93b
PM
18642011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
1865
1866 * solib-som.h (hpux_major_release): Declare variable here.
1867 * solib-som.c: Remove <sys/utsname.h> header.
1868 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
1869 (hpux_major_release): Make global, change default value to
1870 DEFAULT_HPUX_MAJOR_RELEASE.
1871 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
1872 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
1873 Add "solib-som.h" header.
1874 (set_hpux_major_release): New function.
1875 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
1876
4e18c053
MF
18772011-01-14 Mike Frysinger <vapier@gentoo.org>
1878
1879 * configure.tgt (*-*-uclinux*): Match more Linux os targets
1880
a9df6b22
JB
18812011-01-14 Joel Brobecker <brobecker@adacore.com>
1882
1883 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
1884 new-line at end of warning message.
1885 (ia64_hpux_store_register): Remove trailing new-line at end of
1886 error message.
1887 * ia64-hpux-tdep.c: Rephrase comment.
1888 * solib-ia64-hpux.c (struct dld_info): Change type of field
1889 dld_flags from "long long" to ULONGEST.
1890
ecb956dd
PA
18912011-01-14 Pedro Alves <pedro@codesourcery.com>
1892
1893 * target.h (deprecated_child_ops): Delete declaration.
1894 * target.c (deprecated_child_ops): Delete definition.
1895
76adfcae
PA
18962011-01-14 Pedro Alves <pedro@codesourcery.com>
1897
1898 * Makefile.in (hpux-thread.o): Delete rule.
1899 * configure.ac: Don't check for HPUX DCE threads support.
1900 * configure, config.in: Regenerate.
1901 * hppa-hpux-nat.c (child_suppress_run): Delete.
1902 (hppa_hpux_child_can_run): Delete.
1903 (_initialize_hppa_hpux_nat): Don't override to_can_run.
1904 * hpux-thread.c: Delete.
1905
042e866e
JB
19062011-01-13 Joel Brobecker <brobecker@adacore.com>
1907
1908 * hpux-thread.c (hpux_pid_to_str): Delete.
1909
4ffa5a33
JB
19102011-01-13 Joel Brobecker <brobecker@adacore.com>
1911
1912 * ada-valprint.c (ada_emit_char): Remove strange code.
1913 Check that c is <= UCHAR_MAX before passing it to isascii.
1914 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
1915
de8fa76c
JB
19162011-01-13 Joel Brobecker <brobecker@adacore.com>
1917
1918 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
1919 to the case where instream is stdin.
1920
c4de7027
JB
19212011-01-13 Joel Brobecker <brobecker@adacore.com>
1922
1923 * ia64-tdep.h (struct regcache): Forward declare.
1924 (struct ia64_infcall_ops): New struct type.
1925 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
1926 and "infcall_ops".
1927 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
1928 Renames ia64_find_global_pointer.
1929 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
1930 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
1931 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
1932 methods.
1933 (ia64_infcall_ops): New static global constant.
1934 (ia64_gdbarch_init): Set tdep->infcall_ops.
1935 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
1936 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
1937 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
1938 (ia64_hpux_dummy_code): New static global constant.
1939 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
1940 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
1941 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
1942 New function.
1943 (ia64_hpux_infcall_ops): New static global constant.
1944 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
1945 for inferior function calls to work properly on ia64-hpux.
1946
77ca787b
JB
19472011-01-13 Joel Brobecker <brobecker@adacore.com>
1948
1949 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
1950 * ia64-tdep.h (struct frame_info): forward declaration.
1951 (struct gdbarch_tdep): Add field size_of_register_frame.
1952 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
1953 to determine the size of the register frame.
1954 (ia64_size_of_register_frame): New function.
1955 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
1956 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
1957 (IA64_HPUX_UREG_REASON): New macro.
1958 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
1959 New functions.
1960 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
1961 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
1962 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
1963 objects.
1964
92c9a463
JB
19652011-01-13 Joel Brobecker <brobecker@adacore.com>
1966
1967 Add support for ia64-hpux.
1968 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
1969 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
1970
1971 * configure.host: Add handling for ia64-hpux hosts. Add associated
1972 floatformats.
1973 * configure.tgt: Add handling for ia64-hpux targets.
1974 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
1975 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
1976 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
1977
f688d93f
JB
19782011-01-13 Joel Brobecker <brobecker@adacore.com>
1979
1980 [ttrace] Compute thread list immediately after attach.
1981 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
1982 New subprogram.
1983 (inf_ttrace_attach): Use it.
1984
1b89e62f
JB
19852011-01-13 Joel Brobecker <brobecker@adacore.com>
1986
1987 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
1988 if we could not determine the frame's function address. Instead,
1989 use the frame's PC, and then continue.
1990
3e5e6e2a
JB
19912011-01-13 Joel Brobecker <brobecker@adacore.com>
1992
1993 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
1994 not already defined.
1995
825d6d8a
JB
19962011-01-13 Joel Brobecker <brobecker@adacore.com>
1997
1998 * ia64-tdep.c (ia64_struct_type_p): New function.
1999 (ia64_extract_return_value): Handle integral values that are
2000 less than 8 bytes long.
2001 (ia64_push_dummy_call): Likewise.
2002
7458e667
JB
20032011-01-13 Joel Brobecker <brobecker@adacore.com>
2004
2005 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
2006 floatformat_ia64_ext.
2007 (floatformat_ia64_ext_big): New static const.
2008 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
2009
1b05df00
TT
20102011-01-12 Tom Tromey <tromey@redhat.com>
2011
2012 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
2013 messages.
2014 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
2015 (mi_cmd_thread_list_ids): Likewise.
2016 (mi_cmd_data_list_changed_registers): Likewise.
2017 (mi_cmd_data_list_register_values): Likewise.
2018 (mi_cmd_data_write_register_values): Likewise.
2019 (mi_cmd_data_evaluate_expression): Likewise.
2020 (mi_cmd_data_read_memory): Likewise.
2021 (mi_cmd_data_read_memory_bytes): Likewise.
2022 (mi_cmd_data_write_memory): Likewise.
2023 (mi_cmd_enable_timings): Likewise.
2024 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
2025 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
2026 (mi_cmd_var_delete): Likewise.
2027 (mi_cmd_var_set_format): Likewise.
2028 (mi_cmd_var_show_format): Likewise.
2029 (mi_cmd_var_info_num_children): Likewise.
2030 (mi_cmd_var_list_children): Likewise.
2031 (mi_cmd_var_info_type): Likewise.
2032 (mi_cmd_var_info_expression): Likewise.
2033 (mi_cmd_var_show_attributes): Likewise.
2034 (mi_cmd_var_assign): Likewise.
2035 (mi_cmd_var_update): Likewise.
2036 (mi_cmd_enable_pretty_printing): Likewise.
2037 (mi_cmd_var_set_update_range): Likewise.
2038 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
2039 messages.
2040 (mi_cmd_target_file_put): Likewise.
2041 (mi_cmd_target_file_delete): Likewise.
2042 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
2043 messages.
2044 (mi_cmd_stack_info_depth): Likewise.
2045 (mi_cmd_stack_list_locals): Likewise.
2046 (mi_cmd_stack_list_args): Likewise.
2047 (mi_cmd_stack_select_frame): Likewise.
2048 (mi_cmd_stack_select_frame): Likewise.
2049 (mi_cmd_stack_info_frame): Likewise.
2050 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
2051 messages.
2052 (mi_cmd_file_list_exec_source_files): Likewise.
2053 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
2054 (mi_cmd_env_cd): Likewise.
2055 (mi_cmd_env_path): Likewise.
2056 (mi_cmd_env_dir): Likewise.
2057 (mi_cmd_inferior_tty_show): Likewise.
2058 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
2059 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
2060 (mi_cmd_break_watch): Likewise.
2061
ad422571
TJB
20622011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
2063
2064 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
2065 (ppc_linux_insert_hw_breakpoint): Likewise.
2066 (ppc_linux_remove_hw_breakpoint): Likewise.
2067 (ppc_linux_insert_watchpoint): Likewise.
2068
c2ff108b
JK
20692011-01-12 Andrew Burgess <aburgess@broadcom.com>
2070 Jan Kratochvil <jan.kratochvil@redhat.com>
2071
2072 PR fortran/11104 and DWARF unbound arrays detection.
2073 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
2074 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
2075 unspecified upper bound.
2076 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
2077 variables array_size_array, tmp_type and offset_item. New variable
2078 array. Remove call to f77_get_upperbound. New variables array_type
2079 and index. Call value_subscripted_rvalue for each dimenasion. Remove
2080 the final call to deprecated_set_value_type.
2081
41e8491f
JK
20822011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2083
2084 Make value allocations more lazy.
2085 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
2086 instead of allocate_value and set_value_lazy when possible.
2087 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
2088 instead of allocate_value and set_value_lazy.
2089 * findvar.c (value_of_register_lazy): Likewise.
2090 (read_var_value): Remove V preallocation, call just check_typedef in
2091 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
2092 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
2093 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
2094 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
2095 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
2096 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
2097 the end, remove set_value_lazy there.
2098 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
2099 instead of allocate_value and set_value_lazy when possible.
2100 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
2101 * value.c (allocate_computed_value): Use allocate_value_lazy instead
2102 of allocate_value and set_value_lazy.
2103 (value_from_contents_and_address): Use allocate_value_lazy instead of
2104 allocate_value and set_value_lazy when possible.
2105
b716877b
AB
21062011-01-12 Andrew Burgess <aburgess@broadcom.com>
2107
2108 * disasm.c (dump_insns): Support dumping opcodes for MI.
2109 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
2110 dumping of instruction opcodes.
2111
d5ae309f
JB
21122011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
2113
2114 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
2115 appropiately.
2116
98871305
TT
21172011-01-11 Tom Tromey <tromey@redhat.com>
2118
2119 * thread.c (do_captured_thread_select): Emit newline before
2120 printing frame.
2121
c378eb4e
MS
21222011-01-11 Michael Snyder <msnyder@vmware.com>
2123
2124 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
2125 * score-tdep.c: Ditto.
2126 * score-tdep.h: Ditto.
2127 * ser-base.c: Ditto.
2128 * ser-go32.c: Ditto.
2129 * serial.c: Ditto.
2130 * serial.h: Ditto.
2131 * ser-mingw.c: Ditto.
2132 * ser-pipe.c: Ditto.
2133 * ser-tcp.c: Ditto.
2134 * ser-unix.c: Ditto.
2135 * sh64-tdep.c: Ditto.
2136 * shnbsd-nat.c: Ditto.
2137 * sh-tdep.c: Ditto.
2138 * sh-tdep.h: Ditto.
2139 * solib.c: Ditto.
2140 * solib-darwin.c: Ditto.
2141 * solib-frv.c: Ditto.
2142 * solib.h: Ditto.
2143 * solib-irix.c: Ditto.
2144 * solib-osf.c: Ditto.
2145 * solib-pa64.c: Ditto.
2146 * solib-som.c: Ditto.
2147 * solib-spu.c: Ditto.
2148 * solib-sunos.c: Ditto.
2149 * solib-svr4.c: Ditto.
2150 * solist.h: Ditto.
2151 * sol-thread.c: Ditto.
2152 * somread.c: Ditto.
2153 * source.c: Ditto.
2154 * source.h: Ditto.
2155 * sparc64-linux-tdep.c: Ditto.
2156 * sparc64-tdep.c: Ditto.
2157 * sparc-linux-nat.c: Ditto.
2158 * sparc-linux-tdep.c: Ditto.
2159 * sparc-sol2-nat.c: Ditto.
2160 * sparc-sol2-tdep.c: Ditto.
2161 * sparc-tdep.c: Ditto.
2162 * sparc-tdep.h: Ditto.
2163 * spu-tdep.c: Ditto.
2164 * stabsread.c: Ditto.
2165 * stabsread.h: Ditto.
2166 * stack.c: Ditto.
2167 * symfile.c: Ditto.
2168 * symfile.h: Ditto.
2169 * symmisc.c: Ditto.
2170 * symtab.c: Ditto.
2171 * symtab.h: Ditto.
2172 * target.c: Ditto.
2173 * target-descriptions.c: Ditto.
2174 * target-descriptions.h: Ditto.
2175 * target.h: Ditto.
2176 * target-memory.c: Ditto.
2177 * terminal.h: Ditto.
2178 * thread.c: Ditto.
2179 * top.c: Ditto.
2180 * tracepoint.c: Ditto.
2181 * tracepoint.h: Ditto.
2182 * trad-frame.h: Ditto.
2183 * typeprint.c: Ditto.
2184
581e13c1
MS
21852011-01-11 Michael Snyder <msnyder@vmware.com>
2186
2187 * ui-file.c: Comment cleanup, mostly periods and spaces.
2188 * ui-file.h: Ditto.
2189 * ui-out.c: Ditto.
2190 * ui-out.h: Ditto.
2191 * utils.c: Ditto.
2192 * v850-tdep.c: Ditto.
2193 * valarith.c: Ditto.
2194 * valops.c: Ditto.
2195 * valprint.c: Ditto.
2196 * valprint.h: Ditto.
2197 * value.c: Ditto.
2198 * value.h: Ditto.
2199 * varobj.c: Ditto.
2200 * varobj.h: Ditto.
2201 * vax-tdep.c: Ditto.
2202 * vec.c: Ditto.
2203 * vec.h: Ditto.
2204 * version.h: Ditto.
2205 * windows-nat.c: Ditto.
2206 * windows-tdep.c: Ditto.
2207 * xcoffread.c: Ditto.
2208 * xcoffsolib.c: Ditto.
2209 * xml-support.c: Ditto.
2210 * xstormy16-tdep.c: Ditto.
2211 * xtensa-tdep.c: Ditto.
2212 * xtensa-tdep.h: Ditto.
2213
90e4670f
TJB
22142011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
2215
2216 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
2217 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
2218
e09342b5
TJB
22192011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2220 Thiago Jung Bauermann <bauerman@br.ibm.com>
2221
2222 Implement support for PowerPC BookE ranged watchpoints.
2223 * breakpoint.h
2224 (struct breakpoint_ops) <resources_needed>: New method.
2225 Initialize to NULL in all existing breakpoint_ops instances.
2226 (struct breakpoint) <exact>: New field.
2227 (target_exact_watchpoints): Declare external global.
2228 * breakpoint.c (target_exact_watchpoints): New global flag.
2229 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
2230 b->enable_state to bp_enabled before calling
2231 hw_watchpoint_used_count.
2232 (hw_watchpoint_used_count): Iterate over all bp_locations in a
2233 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
2234 if available.
2235 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
2236 if the watchpoint is exact.
2237 (resources_needed_watchpoint): New function.
2238 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
2239 (watch_command_1): Set b->exact if the user asked for an exact
2240 watchpoint and one can be set.
2241 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
2242 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
2243 the user asks for an exact watchpoint and one can be set. Return
2244 number of needed debug registers to watch the expression.
2245 * gdbtypes.c (is_scalar_type): New function, based on
2246 valprint.c:scalar_type_p.
2247 (is_scalar_type_recursive): New function.
2248 * gdbtypes.h (is_scalar_type_recursive): Declare.
2249 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
2250 handle regions when ranged watchpoints are available.
2251 (create_watchpoint_request): New function.
2252 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
2253 create_watchpoint_request.
2254 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
2255 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
2256 `set powerpc' and `show powerpc' commands.
2257 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
2258 Mention documentation comment in the target macro.
2259 (target_region_ok_for_hw_watchpoint): Document return value.
2260
9fa40276
TJB
22612011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
2262
2263 * breakpoint.c (update_watchpoint): Decide on using a software or
2264 hardware watchpoint after the bp_locations are created.
2265
77b06cd7
TJB
22662010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
2267
2268 Convert hardware watchpoints to use breakpoint_ops.
2269 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
2270 <insert_location>: ... this. Return int instead of void.
2271 Accept pointer to struct bp_location instead of pointer to
2272 struct breakpoint. Adapt all implementations.
2273 (breakpoint_ops) <remove>: Rename to...
2274 <remove_location>: ... this. Accept pointer to struct bp_location
2275 instead of pointer to struct breakpoint. Adapt all implementations.
2276 * breakpoint.c (insert_catchpoint): Delete function.
2277 (insert_bp_location): Call the watchpoint or catchpoint's
2278 breakpoint_ops.insert method.
2279 (remove_breakpoint_1): Call the watchpoint or catchpoint's
2280 breakpoint_ops.remove method.
2281 (insert_watchpoint, remove_watchpoint): New functions.
2282 (watchpoint_breakpoint_ops): New structure.
2283 (watch_command_1): Initialize the OPS field.
2284 * inf-child.c (inf_child_insert_fork_catchpoint)
2285 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
2286 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
2287 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
2288 Delete functions.
2289 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
2290 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
2291 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
2292 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
2293 * target.c (update_current_target): Change default implementation of
2294 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
2295 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
2296 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
2297 to_set_syscall_catchpoint to return_one.
2298 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
2299 (debug_to_insert_exec_catchpoint): Report return value.
2300 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
2301 (to_insert_exec_catchpoint): Change declaration to return int instead
2302 of void.
2303
9b20d036
MS
23042011-01-11 Michael Snyder <msnyder@vmware.com>
2305
2306 * arm-tdep.c: Internationalization.
2307 * c-lang.c: Ditto.
2308 * charset.c: Ditto.
2309 * fork-child.c: Ditto.
2310 * nto-procfs.c: Ditto.
2311 * ppc-sysv-tdep.c: Ditto.
2312 * procfs.c: Ditto.
2313 * remote-mips.c: Ditto.
2314 * remote.c: Ditto.
2315 * rs6000-nat.c: Ditto.
2316 * rs6000-tdep.c: Ditto.
2317 * target.c: Ditto.
2318 * valops.c: Ditto.
2319 * value.c: Ditto.
2320 * xml-support.c: Ditto.
2321 * mi/mi-cmd-break.c: Ditto.
2322 * mi/mi-cmd-var.c: Ditto.
2323 * mi/mi-interp.c: Ditto.
2324 * mi/mi-main.c: Ditto.
2325
dae477fe
AB
23262011-01-11 Andrew Burgess <aburgess@broadcom.com>
2327
2328 * remote-sim.c (gdbsim_store_register): Update API to
2329 sim_store_register to check more error conditions.
2330
0df8b418
MS
23312011-01-10 Michael Snyder <msnyder@vmware.com>
2332
2333 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
2334 * nto-tdep.c: Ditto.
2335 * nto-tdep.h: Ditto.
2336 * objc-exp.y: Ditto.
2337 * objc-lang.c: Ditto.
2338 * objfiles.c: Ditto.
2339 * objfiles.h: Ditto.
2340 * observer.c: Ditto.
2341 * opencl-lang.c: Ditto.
2342 * osabi.c: Ditto.
2343 * parse.c: Ditto.
2344 * parser-defs.h: Ditto.
2345 * p-exp.y: Ditto.
2346 * p-lang.c: Ditto.
2347 * posix-hdep.c: Ditto.
2348 * ppcbug-rom.c: Ditto.
2349 * ppc-linux-nat.c: Ditto.
2350 * ppc-linux-tdep.c: Ditto.
2351 * ppc-linux-tdep.h: Ditto.
2352 * ppcnbsd-tdep.c: Ditto.
2353 * ppcobsd-tdep.c: Ditto.
2354 * ppcobsd-tdep.h: Ditto.
2355 * ppc-sysv-tdep.c: Ditto.
2356 * ppc-tdep.h: Ditto.
2357 * printcmd.c: Ditto.
2358 * proc-abi.c: Ditto.
2359 * proc-flags.c: Ditto.
2360 * procfs.c: Ditto.
2361 * proc-utils.h: Ditto.
2362 * progspace.h: Ditto.
2363 * prologue-value.c: Ditto.
2364 * prologue-value.h: Ditto.
2365 * psympriv.h: Ditto.
2366 * psymtab.c: Ditto.
2367 * p-typeprint.c: Ditto.
2368 * p-valprint.c: Ditto.
2369 * ravenscar-sparc-thread.c: Ditto.
2370 * ravenscar-thread.c: Ditto.
2371 * ravenscar-thread.h: Ditto.
2372 * record.c: Ditto.
2373 * regcache.c: Ditto.
2374 * regcache.h: Ditto.
2375 * remote.c: Ditto.
2376 * remote-fileio.c: Ditto.
2377 * remote-fileio.h: Ditto.
2378 * remote.h: Ditto.
2379 * remote-m32r-sdi.c: Ditto.
2380 * remote-mips.c: Ditto.
2381 * remote-sim.c: Ditto.
2382 * rs6000-aix-tdep.c: Ditto.
2383 * rs6000-nat.c: Ditto.
2384 * rs6000-tdep.c: Ditto.
2385
0d7a18f7
MS
23862011-01-10 Michael Snyder <msnyder@vmware.com>
2387
2388 * charset.c (validate): Internationalization.
2389 * coffread.c (read_one_sym): Ditto.
2390 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
2391 * h8300-tdep.c (H8300_extract_return_value): Ditto.
2392 * inflow.c (new_tty): Ditto.
2393 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
2394 * m32c-tdep.c (m32c_return_value): Ditto.
2395 * mep-tdep.c (mep_store_return_value): Ditto.
2396 * score-tdep.c (score7_fetch_insn): Ditto.
2397 * ser-mingw.c (pipe_windows_open): Ditto.
2398 * sh64-tdep.c (sh64_extract_return_value): Ditto.
2399 * spu-tdep.c (spu_register_type): Ditto.
2400 * tracepoint.c (trace_find_command): Ditto.
2401 * valarith.c (value_pos): Ditto.
2402
9a153e0b
JB
24032011-01-10 Joel Brobecker <brobecker@adacore.com>
2404
2405 * ada-valprint.c (printstr): Minor comment reformatting.
2406
35ecd2d6
MS
24072011-01-08 Michael Snyder <msnyder@vmware.com>
2408
2409 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
2410 markup.
2411
1777feb0
MS
24122011-01-08 Michael Snyder <msnyder@vmware.com>
2413
2414 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
2415 * hppa-hpux-tdep.c: Ditto.
2416 * hppa-linux-nat.c: Ditto.
2417 * hppa-linux-tdep.c: Ditto.
2418 * hppanbsd-tdep.c: Ditto.
2419 * hppa-tdep.c: Ditto.
2420 * hppa-tdep.h: Ditto.
2421 * hpux-thread.c: Ditto.
2422 * i386-cygwin-tdep.c: Ditto.
2423 * i386-darwin-nat.c: Ditto.
2424 * i386gnu-nat.c: Ditto.
2425 * i386-linux-nat.c: Ditto.
2426 * i386-linux-tdep.c: Ditto.
2427 * i386-nat.c: Ditto.
2428 * i386-nat.h: Ditto.
2429 * i386nbsd-tdep.c: Ditto.
2430 * i386-sol2-nat.c: Ditto.
2431 * i386-stub.c: Ditto.
2432 * i386-tdep.c: Ditto.
2433 * i386-tdep.h: Ditto.
2434 * i387-tdep.c: Ditto.
2435 * ia64-linux-nat.c: Ditto.
2436 * ia64-linux-tdep.c: Ditto.
2437 * ia64-tdep.c: Ditto.
2438 * infcall.c: Ditto.
2439 * infcall.h: Ditto.
2440 * infcmd.c: Ditto.
2441 * inferior.c: Ditto.
2442 * inferior.h: Ditto.
2443 * infloop.c: Ditto.
2444 * inflow.c: Ditto.
2445 * infrun.c: Ditto.
2446 * interps.c: Ditto.
2447 * interps.h: Ditto.
2448 * iq2000-tdep.c: Ditto.
2449 * irix5-nat.c: Ditto.
2450 * jit.c: Ditto.
2451 * jit.h: Ditto.
2452 * jv-exp.y: Ditto.
2453 * jv-lang.c: Ditto.
2454 * jv-lang.h: Ditto.
2455 * jv-typeprint.c: Ditto.
2456 * jv-valprint.c: Ditto.
2457 * language.c: Ditto.
2458 * language.h: Ditto.
2459 * linespec.c: Ditto.
2460 * linux-fork.c: Ditto.
2461 * linux-nat.c: Ditto.
2462 * linux-thread-db.c: Ditto.
2463 * lm32-tdep.c: Ditto.
2464
025bb325
MS
24652011-01-08 Michael Snyder <msnyder@vmware.com>
2466
2467 * m2-exp.y: Comment cleanup, mostly periods and spaces.
2468 * m2-lang.c: Ditto.
2469 * m2-typeprint.c: Ditto.
2470 * m2-valprint.c: Ditto.
2471 * m32c-tdep.c: Ditto.
2472 * m32r-linux-nat.c: Ditto.
2473 * m32r-rom.c: Ditto.
2474 * m32r-tdep.c: Ditto.
2475 * m32r-tdep.h: Ditto.
2476 * m68hc11-tdep.c: Ditto.
2477 * m58klinux-nat.c: Ditto.
2478 * m68k-tdep.c: Ditto.
2479 * m88k-tdep.c: Ditto.
2480 * m88k-tdep.h: Ditto.
2481 * machoread.c: Ditto.
2482 * macrocmd.c: Ditto.
2483 * macroexp.c: Ditto.
2484 * macrotab.c: Ditto.
2485 * main.c: Ditto.
2486 * maint.c: Ditto.
2487 * mdebugread.c: Ditto.
2488 * mdebugread.h: Ditto.
2489 * memattr.c: Ditto.
2490 * memattr.h: Ditto.
2491 * memory-map.h: Ditto.
2492 * mep-tdep.c: Ditto.
2493 * microblaze-rom.c: Ditto.
2494 * microblaze-tdep.c: Ditto.
2495 * minsyms.c: Ditto.
2496 * mips-irix-tdep.c: Ditto.
2497 * mips-linux-nat.c: Ditto.
2498 * mips-linux-tdep.c: Ditto.
2499 * mips-linux-tdep.h: Ditto.
2500 * mipsnbsd-nat.c: Ditto.
2501 * mipsnbsd-tdep.c: Ditto.
2502 * mipsread.c: Ditto.
2503 * mips-tdep.c: Ditto.
2504 * mips-tdep.h: Ditto.
2505 * mn10300-linux-tdep.c: Ditto.
2506 * mn10300-tdep.c: Ditto.
2507 * mn10300-tdep.h: Ditto.
2508 * monitor.c: Ditto.
2509 * monitor.h: Ditto.
2510 * moxie-tdep.c: Ditto.
2511 * moxie-tdep.h: Ditto.
2512 * mt-tdep.c: Ditto.
2513
1642781b
MF
25142011-01-08 Mike Frysinger <vapier@gentoo.org>
2515
2516 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
2517
394b0adb
JB
25182011-01-08 Robert Millan <rmh@gnu.org>
2519
2520 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
2521
b670013c
MS
25222011-01-07 Michael Snyder <msnyder@vmware.com>
2523
2524 * charset.c (_initialize_charset): Fix typo in string.
2525
a743e542
MS
25262011-01-07 Michael Snyder <msnyder@vmware.com>
2527
2528 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
2529 for i18n.
2530 * tui/tui-layout.c (tui_set_layout_for_display_command):
2531 Split line so that operator goes to beginning of line.
2532 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
2533 assignment out of if statement.
2534
0963b4bd
MS
25352011-01-07 Michael Snyder <msnyder@vmware.com>
2536
2537 * ada-lang.c: Comment cleanup, mostly periods and spaces.
2538 * ada-lang.h: Ditto.
2539 * ada-tasks.c: Ditto.
2540 * ada-valprint.c: Ditto.
2541 * aix-threads.c: Ditto.
2542 * alpha-linux-nat.c: Ditto.
2543 * alpha-linux-tdep.c: Ditto.
2544 * alpha-mdebug-tdep.c: Ditto.
2545 * alpha-nat.c: Ditto.
2546 * alpha-osf1-tdep.c: Ditto.
2547 * alpha-tdep.c: Ditto.
2548 * alphabsd-nat.c: Ditto.
2549 * alphabsd-tdep.c: Ditto.
2550 * amd64-darwin-tdep.c: Ditto.
2551 * amd64-linux-nat.c: Ditto.
2552 * amd64-linux-tdep.c: Ditto.
2553 * amd64-sol2-tdep.c: Ditto.
2554 * amd64-tdep.c: Ditto.
2555 * amd64-fbsd-tdep.c: Ditto.
2556 * amd64-nbsd-tdep.c: Ditto.
2557 * amd64-obsd-tdep.c: Ditto.
2558 * amd64-linux-nat.c: Ditto.
2559 * amd64-linux-tdep.c: Ditto.
2560 * arm-tdep.c: Ditto.
2561 * arm-tdep.h: Ditto.
2562 * armnbsd-nat.c: Ditto.
2563 * avr-tdep.c: Ditto.
2564 * bfin-tdep.c: Ditto.
2565 * bsd-kvm.c: Ditto.
2566 * c-typeprintc: Ditto.
2567 * c-valprint.c: Ditto.
2568 * coff-pe-read.h: Ditto.
2569 * coffreead.c: Ditto.
2570 * cris-tdep.c: Ditto.
2571 * d-lang.c: Ditto.
2572 * darwin-nat-info.c: Ditto.
2573 * darwin-nat.c: Ditto.
2574 * dbug-rom.c: Ditto.
2575 * dbxread.c: Ditto.
2576 * dcache.c: Ditto.
2577 * dcache.h: Ditto.
2578 * dec-thread.c: Ditto.
2579 * defs.h: Ditto.
2580 * demangle.c: Ditto.
2581 * dicos-tdep.c: Ditto.
2582 * dictionary.c: Ditto.
2583 * dictionary.h: Ditto.
2584 * dink32-rom.c: Ditto.
2585 * disasm.c: Ditto.
2586 * doublest.c: Ditto.
2587 * dsrec.c: Ditto.
2588 * dummy-frame.c: Ditto.
2589 * dwarf2-frame.c: Ditto.
2590 * dwarf2expr.c: Ditto.
2591 * dwarf2loc.c: Ditto.
2592 * dwarf2read.c: Ditto.
2593 * elfread.c: Ditto.
2594 * environ.c: Ditto.
2595 * eval.c: Ditto.
2596 * event-top.h: Ditto.
2597 * exceptions.c: Ditto.
2598 * exceptions.h: Ditto.
2599 * exec.c: Ditto.
2600 * expprint.c: Ditto.
2601 * expression.h: Ditto.
2602 * f-exp.y: Ditto.
2603 * f-lang.c: Ditto.
2604 * f-lang.h: Ditto.
2605 * f-typeprint.c: Ditto.
2606 * f-valprint.c: Ditto.
2607 * fbsd-nat.c: Ditto.
2608 * findvar.c: Ditto.
2609 * fork-child.c: Ditto.
2610 * frame.c: Ditto.
2611 * frame.h: Ditto.
2612 * frv-linux-tdep.c: Ditto.
2613 * frv-tdep.c: Ditto.
2614 * gcore.c: Ditto.
2615 * gdb-stabs.h: Ditto.
2616 * gdb_assert.h: Ditto.
2617 * gdb_string.h: Ditto.
2618 * gdb_thread_db.h: Ditto.
2619 * gdb_wait.h: Ditto.
2620 * gdbarch.sh: Ditto.
2621 * gdbcore.h: Ditto.
2622 * gdbthread.h: Ditto.
2623 * gdbtypes.c: Ditto.
2624 * gdbtypes.h: Ditto.
2625 * gnu-nat.c: Ditto.
2626 * gnu-nat.h: Ditto.
2627 * gnu-v2-abi.c: Ditto.
2628 * gnu-v3-abi.c: Ditto.
2629 * go32-nat.c: Ditto.
2630 * gdbarch.c: Regenerate.
2631 * gdbarch.h: Regenerate.
2632
ac74f770
MS
26332011-01-07 Michael Snyder <msnyder@vmware.com>
2634
2635 * ax-gdb.c: Adjust some long output strings.
2636 * breakpoint.c: Ditto.
2637 * charset.c: Ditto.
2638 * cp-abi.c: Ditto.
2639 * infcall.c: Ditto.
2640 * infrun.c: Ditto.
2641 * linux-nat.c: Ditto.
2642 * solib-pa64.c: Ditto.
2643 * solib-som.c: Ditto.
2644
d8e22779
TT
26452011-01-06 Tom Tromey <tromey@redhat.com>
2646
2647 PR python/12367:
2648 * NEWS: Add item.
2649 * python/python.c (GdbMethods): Add "newest_frame" method.
2650 * python/python-internal.h (gdbpy_newest_frame): Declare.
2651 * python/py-frame.c (gdbpy_newest_frame): New function.
2652
a255712f
PP
26532010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
2654
2655 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
2656 * jit.c (jit_debug): New variable.
2657 (show_jit_debug): New function.
2658 (struct target_buffer): Use ULONGEST.
2659 (bfd_open_from_target_memory): Likewise.
2660 (jit_register_code, jit_inferior_init): Add debug output.
2661 (_initialize_jit): Register "debug jit" command.
2662
ccfc3d6e
TT
26632011-01-06 Tom Tromey <tromey@redhat.com>
2664
2665 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
2666 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
2667 and ARCH_FRAME.
2668
57126e4a
TT
26692011-01-06 Tom Tromey <tromey@redhat.com>
2670
2671 * python/py-frame.c (frapy_block): Use get_frame_block.
2672
16dfc9ce
JB
26732011-01-06 Joel Brobecker <brobecker@adacore.com>
2674
2675 Do not stop on SIGPRIO signals by default
2676 * infrun.c (_initialize_infrun): Unset signal_stop and
2677 signal_print for TARGET_SIGNAL_PRIO.
2678
b1ce2347
JB
26792011-01-06 Joel Brobecker <brobecker@adacore.com>
2680
2681 * ada-tasks.c: Fix style violation in comment.
2682
8f7e195f
JB
26832011-01-06 Joel Brobecker <brobecker@adacore.com>
2684
2685 * linespec.c (decode_compound, find_method): Remove trailing \n
2686 at end of error string.
2687 * solib-irix.c (irix_current_sos): Likewise.
2688 * varobj.c (uninstall_variable): Likewise.
2689
e9bdf92c
JB
26902011-01-06 Joel Brobecker <brobecker@adacore.com>
2691
2692 * copyright.py: New script.
2693 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
2694 Launch emacs without exec'ing. Call copyright.py afterwards.
2695
3e43a32a
MS
26962011-01-05 Michael Snyder <msnyder@vmware.com>
2697
2698 * addrmap.c: Shorten lines of >= 80 columns.
2699 * arch-utils.c: Ditto.
2700 * arch-utils.h: Ditto.
2701 * ax-gdb.c: Ditto.
2702 * ax-general.c: Ditto.
2703 * bcache.c: Ditto.
2704 * blockframe.c: Ditto.
2705 * breakpoint.c: Ditto.
2706 * buildsym.c: Ditto.
2707 * c-lang.c: Ditto.
2708 * c-typeprint.c: Ditto.
2709 * charset.c: Ditto.
2710 * coffread.c: Ditto.
2711 * command.h: Ditto.
2712 * corelow.c: Ditto.
2713 * cp-abi.c: Ditto.
2714 * cp-namespace.c: Ditto.
2715 * cp-support.c: Ditto.
2716 * dbug-rom.c: Ditto.
2717 * dbxread.c: Ditto.
2718 * defs.h: Ditto.
2719 * dfp.c: Ditto.
2720 * dfp.h: Ditto.
2721 * dictionary.c: Ditto.
2722 * disasm.c: Ditto.
2723 * doublest.c: Ditto.
2724 * dwarf2-frame.c: Ditto.
2725 * dwarf2expr.c: Ditto.
2726 * dwarf2loc.c: Ditto.
2727 * dwarf2read.c: Ditto.
2728 * elfread.c: Ditto.
2729 * eval.c: Ditto.
2730 * event-loop.c: Ditto.
2731 * event-loop.h: Ditto.
2732 * exceptions.h: Ditto.
2733 * exec.c: Ditto.
2734 * expprint.c: Ditto.
2735 * expression.h: Ditto.
2736 * f-lang.c: Ditto.
2737 * f-valprint.c: Ditto.
2738 * findcmd.c: Ditto.
2739 * frame-base.c: Ditto.
2740 * frame-unwind.c: Ditto.
2741 * frame-unwind.h: Ditto.
2742 * frame.c: Ditto.
2743 * frame.h: Ditto.
2744 * gcore.c: Ditto.
2745 * gdb-stabs.h: Ditto.
2746 * gdb_assert.h: Ditto.
2747 * gdb_dirent.h: Ditto.
2748 * gdb_obstack.h: Ditto.
2749 * gdbcore.h: Ditto.
2750 * gdbtypes.c: Ditto.
2751 * gdbtypes.h: Ditto.
2752 * inf-ttrace.c: Ditto.
2753 * infcall.c: Ditto.
2754 * infcmd.c: Ditto.
2755 * inflow.c: Ditto.
2756 * infrun.c: Ditto.
2757 * inline-frame.h: Ditto.
2758 * language.c: Ditto.
2759 * language.h: Ditto.
2760 * libunwind-frame.c: Ditto.
2761 * libunwind-frame.h: Ditto.
2762 * linespec.c: Ditto.
2763 * linux-nat.c: Ditto.
2764 * linux-nat.h: Ditto.
2765 * linux-thread-db.c: Ditto.
2766 * machoread.c: Ditto.
2767 * macroexp.c: Ditto.
2768 * macrotab.c: Ditto.
2769 * main.c: Ditto.
2770 * maint.c: Ditto.
2771 * mdebugread.c: Ditto.
2772 * memattr.c: Ditto.
2773 * minsyms.c: Ditto.
2774 * monitor.c: Ditto.
2775 * monitor.h: Ditto.
2776 * objfiles.c: Ditto.
2777 * objfiles.h: Ditto.
2778 * osabi.c: Ditto.
2779 * p-typeprint.c: Ditto.
2780 * p-valprint.c: Ditto.
2781 * parse.c: Ditto.
2782 * printcmd.c: Ditto.
2783 * proc-events.c: Ditto.
2784 * procfs.c: Ditto.
2785 * progspace.c: Ditto.
2786 * progspace.h: Ditto.
2787 * psympriv.h: Ditto.
2788 * psymtab.c: Ditto.
2789 * record.c: Ditto.
2790 * regcache.c: Ditto.
2791 * regcache.h: Ditto.
2792 * remote-fileio.c: Ditto.
2793 * remote.c: Ditto.
2794 * ser-mingw.c: Ditto.
2795 * ser-tcp.c: Ditto.
2796 * ser-unix.c: Ditto.
2797 * serial.c: Ditto.
2798 * serial.h: Ditto.
2799 * solib-frv.c: Ditto.
2800 * solib-irix.c: Ditto.
2801 * solib-osf.c: Ditto.
2802 * solib-pa64.c: Ditto.
2803 * solib-som.c: Ditto.
2804 * solib-sunos.c: Ditto.
2805 * solib-svr4.c: Ditto.
2806 * solib-target.c: Ditto.
2807 * solib.c: Ditto.
2808 * somread.c: Ditto.
2809 * source.c: Ditto.
2810 * stabsread.c: Ditto.
2811 * stabsread.c: Ditto.
2812 * stack.c: Ditto.
2813 * stack.h: Ditto.
2814 * symfile-mem.c: Ditto.
2815 * symfile.c: Ditto.
2816 * symfile.h: Ditto.
2817 * symmisc.c: Ditto.
2818 * symtab.c: Ditto.
2819 * symtab.h: Ditto.
2820 * target-descriptions.c: Ditto.
2821 * target-memory.c: Ditto.
2822 * target.c: Ditto.
2823 * target.h: Ditto.
2824 * terminal.h: Ditto.
2825 * thread.c: Ditto.
2826 * top.c: Ditto.
2827 * tracepoint.c: Ditto.
2828 * tracepoint.h: Ditto.
2829 * ui-file.c: Ditto.
2830 * ui-file.h: Ditto.
2831 * ui-out.h: Ditto.
2832 * user-regs.c: Ditto.
2833 * user-regs.h: Ditto.
2834 * utils.c: Ditto.
2835 * valarith.c: Ditto.
2836 * valops.c: Ditto.
2837 * valprint.c: Ditto.
2838 * valprint.h: Ditto.
2839 * value.c: Ditto.
2840 * varobj.c: Ditto.
2841 * varobj.h: Ditto.
2842 * vec.h: Ditto.
2843 * xcoffread.c: Ditto.
2844 * xcoffsolib.c: Ditto.
2845 * xcoffsolib.h: Ditto.
2846 * xml-syscall.c: Ditto.
2847 * xml-tdesc.c: Ditto.
2848
9a2b4c1b
MS
28492011-01-05 Michael Snyder <msnyder@vmware.com>
2850
2851 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
2852 * cli/cli-decode.c: Ditto.
2853 * cli/cli-dump.c: Ditto.
2854 * cli/cli-logging.c: Ditto.
2855 * cli/cli-script.c: Ditto.
2856 * cli/cli-setshow.c: Ditto.
2857 * common/signals.c: Ditto.
2858 * mi/mi-cmd-break.c: Ditto.
2859 * mi/mi-cmd-disas.c: Ditto.
2860 * mi/mi-cmd-stack.c: Ditto.
2861 * mi/mi-cmd-var.c: Ditto.
2862 * mi/mi-cmds.c: Ditto.
2863 * mi/mi-common.h: Ditto.
2864 * mi/mi-console.c: Ditto.
2865 * mi/mi-interp.c: Ditto.
2866 * mi/mi-main.c: Ditto.
2867 * osf-share/cma_attr.c: Ditto.
2868 * osf-share/cma_deb_core.h: Ditto.
2869 * osf-share/cma_debug_client.h: Ditto.
2870 * osf-share/cma_handle.h: Ditto.
2871 * osf-share/cma_mutex.h: Ditto.
2872 * osf-share/cma_stack_int.h: Ditto.
2873 * osf-share/cma_tcb_defs.h: Ditto.
2874 * python/py-auto-load.c: Ditto.
2875 * python/py-breakpoint.c: Ditto.
2876 * python/py-cmd.c: Ditto.
2877 * python/py-frame.c: Ditto.
2878 * python/py-objfile.c: Ditto.
2879 * python/py-param.c: Ditto.
2880 * python/py-progspace.c: Ditto.
2881 * python/py-symbol.c: Ditto.
2882 * python/py-value.c: Ditto.
2883 * python/python-internal.h: Ditto.
2884 * python/python.c: Ditto.
2885 * tui/tui-data.c: Ditto.
2886 * tui/tui-disasm.c: Ditto.
2887 * tui/tui-hooks.c: Ditto.
2888 * tui/tui-io.c: Ditto.
2889 * tui/tui-layout.c: Ditto.
2890 * tui/tui-regs.c: Ditto.
2891 * tui/tui-source.c: Ditto.
2892 * tui/tui-stack.c: Ditto.
2893 * tui/tui-win.c: Ditto.
2894 * tui/tui-windata.c: Ditto.
2895 * tui/tui-winsource.c: Ditto.
2896
44944448
JB
28972011-01-05 Joel Brobecker <brobecker@adacore.com>
2898
2899 * configure.ac, gdb.1: Copyright year update.
2900
ebedcab5
JK
29012011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2902
2903 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
2904 this_pc_in_block, morestack_msym and morestack_name. Check for
2905 "__morestack" minimal symbol there.
2906
e5cc9f32
JB
29072011-01-03 Joel Brobecker <brobecker@adacore.com>
2908
2909 * symfile.c (find_sym_fns): Add call to dont_repeat.
2910
7b6bb8da
JB
29112011-01-01 Joel Brobecker <brobecker@adacore.com>
2912
2913 Copyright year update in most files (performed by copyright.sh).
2914
71ce852c
JB
29152011-01-01 Joel Brobecker <brobecker@adacore.com>
2916
2917 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 2918
c3c1ebe8 2919For older changes see ChangeLog-2010.
c906108c
SS
2920\f
2921Local Variables:
2922mode: change-log
2923left-margin: 8
2924fill-column: 74
2925version-control: never
57da7796 2926coding: utf-8
c906108c 2927End: