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