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