2012-03-01 Pedro Alves <palves@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2012-03-01 Pedro Alves <palves@redhat.com>
2
3 * observer.c (observer_test_first_notification_function)
4 (observer_test_second_notification_function)
5 (observer_test_third_notification_function): Add declarations.
6
7 2012-03-01 Pedro Alves <palves@redhat.com>
8
9 * common/signals.c (default_target_signal_to_host)
10 (default_target_signal_from_host): Move ...
11 * arch-utils.c: ... here.
12 * arch-utils.h (default_target_signal_to_host)
13 (default_target_signal_from_host): Declare.
14
15 * common/signals.c (target_signal_from_command): Move ...
16 * infrun.c: ... here.
17 * inferior.h (target_signal_from_command): Declare.
18 * target.h (target_signal_from_command)
19 (default_target_signal_from_host, default_target_signal_to_host):
20 Delete declarations.
21
22 * common/signals.c (_initialize_signals): Delete.
23
24 2012-03-01 Pedro Alves <palves@redhat.com>
25
26 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
27 both __cplusplus and !__cplusplus.
28
29 2012-03-01 Pedro Alves <palves@redhat.com>
30
31 * psymtab.c (find_and_open_source): Delete declaration.
32 * source.c (find_and_open_source): Move comment ...
33 * source.h (find_and_open_source): ... to this new declaration.
34
35 2012-03-01 Pedro Alves <palves@redhat.com>
36
37 * inline-frame.c: Include inline-frame.h.
38
39 2012-03-01 Pedro Alves <palves@redhat.com>
40
41 * tui/tui-data.c (set_gen_win_origin): Delete.
42 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
43 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
44
45 2012-03-01 Pedro Alves <palves@redhat.com>
46
47 * remote.c (encode_actions): Delete declaration.
48 * tracepoint.c (encode_actions): Make extern.
49 * tracepoint.h (encode_actions): Declare.
50
51 2012-03-01 Pedro Alves <palves@redhat.com>
52
53 * python/py-breakpoint.c: Include python.h.
54 * python/py-continueevent.c (create_continue_event_object): Make
55 static.
56 * python/py-lazy-string.c (stpy_get_type): Make static.
57 * python/py-newobjfileevent.c (create_new_objfile_event_object):
58 Make static.
59 * python/py-utils.c (unicode_to_target_python_string): Make
60 static.
61 * python/py-value.c: Include python.h.
62
63 2012-03-01 Pedro Alves <palves@redhat.com>
64
65 * inferior.c (delete_threads_of_inferior): Delete.
66
67 2012-03-01 Pedro Alves <palves@redhat.com>
68
69 Import fallback definitions from glibc.
70
71 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
72 ps_prochandle): Forward declare.
73 (ps_err_e): Use glibc's comments.
74 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
75 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
76 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
77 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
78 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
79 (struct ps_prochandle): Adjust comment.
80
81 2012-03-01 Pedro Alves <palves@redhat.com>
82
83 * ada-lang.c (ada_modulus_from_name): Delete.
84 * ada-lex.l (lexer_init): Make static.
85
86 2012-03-01 Pedro Alves <palves@redhat.com>
87
88 PR gdb/13767
89
90 * frame.c (read_frame_register_unsigned): New.
91 * frame.h (read_frame_register_unsigned): Declare.
92 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
93 Handle it.
94 (print_i387_control_word): New parameter `control_p'. Handle it.
95 (i387_print_float_info): Handle unavailable float registers.
96
97 2012-03-01 Keith Seitz <keiths@redhat.com>
98
99 * linespec.c (decode_line_2): Sort the list of methods
100 alphabetically before presenting the user with a selection
101 menu.
102
103 2012-03-01 Doug Evans <dje@google.com>
104
105 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
106 has_namespace_info.
107 (dwarf2_read_abbrevs): Remove corresponding initialization.
108
109 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
110
111 * NEWS: Mention new python command class gdb.COMMAND_USER.
112 * cli/cli-cmds.c (show_user): Print error when used on a python
113 command.
114 (init_cli_cmds): Update documentation strings for "show user" and
115 "set/show max-user-call-depth" to clarify that it does not apply to
116 python commands.
117 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
118 error check.
119 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
120 gdb python api.
121 * top.c (execute_command): Only execute a user-defined command as a
122 legacy macro if c->user_commands is set.
123
124 2012-03-01 Tom Tromey <tromey@redhat.com>
125
126 * valprint.h (struct generic_val_print_decorations): New.
127 (generic_val_print): Declare.
128 * valprint.c (generic_val_print): New function.
129 * p-valprint.c (p_decorations): New global.
130 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
131 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
132 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
133 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
134 * m2-valprint.c (m2_decorations): New global.
135 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
136 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
137 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
138 TYPE_CODE_ERROR>: Call generic_val_print.
139 * f-valprint.c (f_decorations): New global.
140 (f_val_print): Use print_function_pointer_address.
141 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
142 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
143 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
144 generic_val_print.
145 * c-valprint.c (c_decorations): New global.
146 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
147 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
148 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
149 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
150 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
151 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
152 case.
153
154 2012-03-01 Tom Tromey <tromey@redhat.com>
155
156 * valprint.c (val_print): Update.
157 * p-valprint (pascal_val_print): Return void.
158 * p-lang.h (pascal_val_print): Return void.
159 * m2-valprint.c (m2_val_print): Return void.
160 * m2-lang.h (m2_val_print): Return void.
161 * language.h (struct language_defn) <la_val_print>: Return void.
162 * language.c (unk_lang_val_print): Return void.
163 * jv-valprint.c (java_val_print): Return void.
164 * jv-lang.h (java_val_print): Return void.
165 * f-valprint.c (f_val_print): Return void.
166 * f-lang.h (f_val_print): Return void.
167 * d-valprint.c (d_val_print): Return void.
168 (dynamic_array_type): Update.
169 * d-lang.h (d_val_print): Return void.
170 * c-valprint.c (c_val_print): Return void.
171 * c-lang.h (c_val_print): Return void.
172 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
173 void.
174 * ada-lang.h (ada_val_print): Return void.
175
176 2012-03-01 Tom Tromey <tromey@redhat.com>
177
178 * value.h (val_print): Return void.
179 * valprint.c (val_print): Return void.
180
181 2012-03-01 Tom Tromey <tromey@redhat.com>
182
183 * value.h (common_val_print): Return void.
184 * valprint.c (common_val_print): Return void.
185
186 2012-03-01 Tom Tromey <tromey@redhat.com>
187
188 * value.h (value_print): Return void.
189 * valprint.c (value_print): Return void.
190 * p-valprint.c (pascal_value_print): Return void.
191 * p-lang.h (pascal_value_print): Return void.
192 * language.h (struct language_defn) <la_value_print>: Return
193 void.
194 * language.c (unk_lang_value_print): Return void.
195 * jv-valprint.c (java_value_print): Return void.
196 * jv-lang.h (java_value_print): Return void.
197 * f-valprint.c (c_value_print): Don't declare.
198 Include c-lang.h.
199 * c-valprint.c (c_value_print): Return void.
200 * c-lang.h (c_value_print): Return void.
201 * ada-valprint.c (ada_value_print): Return void.
202 * ada-lang.h (ada_value_print): Return void.
203
204 2012-03-01 Tom Tromey <tromey@redhat.com>
205
206 * value.c (value_primitive_field): Handle virtual base classes.
207
208 2012-03-01 Tom Tromey <tromey@redhat.com>
209
210 * gdbtypes.h (struct vbase): Remove.
211
212 2012-03-01 Tom Tromey <tromey@redhat.com>
213
214 * c-valprint.c (print_function_pointer_address): Move...
215 * valprint.c: ... here. Make non-static.
216 * m2-valprint.c (print_function_pointer_address): Remove.
217 * valprint.h (print_function_pointer_address): Declare.
218
219 2012-03-01 Joel Brobecker <brobecker@adacore.com>
220
221 * NEWS: Document the fact that one can provide a condition when
222 creating an Ada exception catchpoint.
223
224 2012-03-01 Tom Tromey <tromey@redhat.com>
225
226 * valprint.c (val_print_type_code_flags): Fix placement of
227 trailing brace.
228
229 2012-03-01 Joel Brobecker <brobecker@adacore.com>
230
231 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
232 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
233 environment variable before calling update-copyright.
234
235 2012-03-01 Joel Brobecker <brobecker@adacore.com>
236
237 * gnulib/extra/update-copyright: Update to the latest from
238 gnulib's git repository.
239 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
240 variable to 2 instead of 1.
241
242 2012-02-29 Joel Brobecker <brobecker@adacore.com>
243
244 * varobj.c (c_value_of_variable): Remove dead code.
245
246 2012-02-29 Joel Brobecker <brobecker@adacore.com>
247
248 * ada-lex.p (processId): Do not modify already encoded IDs.
249 Update function documentation.
250
251 2012-02-29 Joel Brobecker <brobecker@adacore.com>
252
253 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
254 "name" with "struct symbol *name_sym".
255 * ada-exp.y (write_var_or_type): Update call to
256 ada_find_renaming_symbol.
257 "name" with "struct symbol *name_sym". Adjust Implementation
258 accordingly. Adjust the function documentation.
259
260 2012-02-29 Joel Brobecker <brobecker@adacore.com>
261
262 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
263 * ada-lang.c (ada_find_any_type): Add advance declaration.
264 Make static. Replace ada_find_any_symbol by
265 ada_find_any_type_symbol.
266 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
267 Improve function description. Make static.
268 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
269 Replace ada_find_any_symbol by ada_find_any_type_symbol.
270
271 2012-02-29 Joel Brobecker <brobecker@adacore.com>
272
273 * ada-lang.c (struct tag_args): Delete.
274 (ada_get_tsd_type): Function body moved up in source file.
275 (ada_tag_name_1, ada_tag_name_2): Delete.
276 (ada_get_tsd_from_tag): New function.
277 (ada_tag_name_from_tsd): New function.
278 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
279 to determine the tag name.
280
281 2012-02-29 Joel Brobecker <brobecker@adacore.com>
282
283 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
284 declaration.
285 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
286 function.
287
288 2012-02-29 Joel Brobecker <brobecker@adacore.com>
289
290 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
291
292 2012-02-29 Joel Brobecker <brobecker@adacore.com>
293
294 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
295 full searches.
296
297 2012-02-29 Joel Brobecker <brobecker@adacore.com>
298
299 * ada-lang.c (constrained_packed_array_type): If there is a
300 parallel XA type, use it to determine the array index type.
301
302 2012-02-29 Joel Brobecker <brobecker@adacore.com>
303
304 * ada-valprint.c (ada_val_print_1): If our value is a reference
305 to an array descriptor, dereference it before converting it
306 to a simple array.
307
308 2012-02-29 Joel Brobecker <brobecker@adacore.com>
309
310 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
311 creating fixed value.
312 (ada_value_ind, ada_coerce_ref, assign_component)
313 (ada_evaluate_subexp): Remove call to unwrap_value before
314 call to ada_to_fixed_value.
315
316 2012-02-29 Joel Brobecker <brobecker@adacore.com>
317
318 * ada-lang.c (to_fixed_array_type): Set result's type name.
319
320 2012-02-29 Joel Brobecker <brobecker@adacore.com>
321
322 * ada-lang.c (catch_ada_exception_command_split): Add new
323 argument cond_string. Add support for condition at end of
324 "catch exception" commands.
325 (ada_decode_exception_location): Add new argument cond_string.
326 Update call to catch_ada_exception_command_split.
327 (create_ada_exception_catchpoint): Add new argument cond_string.
328 Set the breakpoint condition if needed.
329 (catch_ada_exception_command): Update call to
330 ada_decode_exception_location.
331 (ada_decode_assert_location): Add function documentation.
332 Add support for condition at end of "catch assert" command.
333 (catch_assert_command): Update calls to ada_decode_assert_location
334 and create_ada_exception_catchpoint.
335
336 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
337
338 Fix disp-step-syscall.exp: fork: single step over fork.
339 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
340 (i386_linux_get_syscall_number_from_regcache): ... here, new function
341 comment, change parameters gdbarch and ptid to regcache. Remove
342 parameter regcache, initialize gdbarch from regcache here.
343 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
344 New functions.
345 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
346 instead.
347 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
348 'syscall'. Make the 'int' check more strict.
349
350 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
351
352 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
353 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
354 (i386_linux_intx80_sysenter_syscall_record): ... here.
355 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
356 Use the renamed function name.
357
358 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
359
360 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
361 * breakpoint.c (until_break_command): Likewise.
362 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
363 * infcall.c (call_function_by_hand): Likewise.
364 * infcmd.c (finish_forward): Likewise.
365 * infrun.c (insert_exception_resume_breakpoint): Likewise.
366
367 2012-02-28 Joel Brobecker <brobecker@adacore.com>
368
369 From Tristan Gingold <gingold@adacore.com>.
370 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
371 avoid variable assignments inside condition.
372
373 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
374
375 Fix static analysis issue found by cppcheck.
376 * microblaze-tdep.c (microblaze_extract_return_value): Fix
377 uninitialized BUF for size 2.
378
379 2012-02-27 Chris Dearman <chris@mips.com>
380 Nathan Froyd <froydnj@codesourcery.com>
381 Maciej W. Rozycki <macro@codesourcery.com>
382
383 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
384 (mips16_instruction_has_delay_slot): Likewise.
385 (mips_segment_boundary): Likewise.
386 (mips_adjust_breakpoint_address): Likewise.
387 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
388
389 2012-02-27 Maciej W. Rozycki <macro@mips.com>
390 Maciej W. Rozycki <macro@codesourcery.com>
391
392 * infrun.c (handle_inferior_event): Don't proceed through
393 shared library trampolines if stepping at the machine
394 instruction level.
395
396 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
397
398 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
399 too.
400
401 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
402
403 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
404 (sh_stub_unwind_sniffer): New functions.
405 (sh_stub_unwind): New variable.
406 (sh_gdbarch_init): Wire everything.
407
408 2012-02-27 Pedro Alves <palves@redhat.com>
409
410 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
411 (linux_nat_post_attach_wait): Adjust to use
412 linux_proc_pid_is_stopped.
413 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
414 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
415 based on pid_is_stopped from both linux-nat.c and
416 gdbserver/linux-low.c, and renamed.
417
418 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
419
420 * remote.c (remote_watchpoint_addr_within_range): New function.
421 (init_remote_ops): Use it.
422
423 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
424
425 * target.h (target_watchpoint_addr_within_range): Document macro.
426
427 2012-02-24 Pedro Alves <palves@redhat.com>
428
429 * stack.c (set_last_displayed_sal): Issue internal_error instead
430 of warning, and issue it after clearing the last displayed sal.
431
432 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
433 Pedro Alves <palves@redhat.com>
434
435 * breakpoint.c (until_break_command): Install breakpoints after
436 all frame manipulations.
437
438 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
439
440 * remote.c (remote_supports_cond_breakpoints): New forward
441 declaration.
442 (remote_add_target_side_condition): New function.
443 (remote_insert_breakpoint): Add target-side breakpoint
444 conditional if supported.
445 (remote_insert_hw_breakpoint): Likewise.
446 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
447 hook.
448
449 * target.c (update_current_target): Inherit
450 to_supports_evaluation_of_breakpoint_conditions.
451 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
452
453 * target.h (struct target_ops)
454 <to_supports_evaluation_of_breakpoint_conditions>: New field.
455 (target_supports_evaluation_of_breakpoint_conditions): New #define.
456
457 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
458 (condition_evaluation_both, condition_evaluation_auto,
459 condition_evaluation_host, condition_evaluation_target,
460 condition_evaluation_enums, condition_evaluation_mode_1,
461 condition_evaluation_mode): New static globals.
462 (translate_condition_evaluation_mode): New function.
463 (breakpoint_condition_evaluation_mode): New function.
464 (gdb_evaluates_breakpoint_condition_p): New function.
465 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
466 (mark_breakpoint_modified): New function.
467 (mark_breakpoint_location_modified): New function.
468 (set_condition_evaluation_mode): New function.
469 (show_condition_evaluation_mode): New function.
470 (bp_location_compare_addrs): New function.
471 (get_first_location_gte_addr): New helper function.
472 (set_breakpoint_condition): Free condition bytecode if locations
473 has become unconditional. Call mark_breakpoint_modified (...).
474 (condition_command): Call update_global_location_list (1) for
475 breakpoints.
476 (breakpoint_xfer_memory): Use is_breakpoint (...).
477 (is_breakpoint): New function.
478 (parse_cond_to_aexpr): New function.
479 (build_target_condition_list): New function.
480 (insert_bp_location): Handle target-side conditional
481 breakpoints and call build_target_condition_list (...).
482 (update_inserted_breakpoint_locations): New function.
483 (insert_breakpoint_locations): Handle target-side conditional
484 breakpoints.
485 (bpstat_check_breakpoint_conditions): Add comment.
486 (bp_condition_evaluator): New function.
487 (bp_location_condition_evaluator): New function.
488 (print_breakpoint_location): Print information on where the condition
489 will be evaluated.
490 (print_one_breakpoint_location): Likewise.
491 (init_bp_location): Call mark_breakpoint_location_modified (...) for
492 breakpoint location.
493 (force_breakpoint_reinsertion): New functions.
494 (update_global_location_list): Handle target-side breakpoint
495 conditions.
496 Reinsert locations that are already inserted if conditions have
497 changed.
498 (bp_location_dtor): Free agent expression bytecode.
499 (disable_breakpoint): Call mark_breakpoint_modified (...).
500 Call update_global_location_list (...) with parameter 1 for breakpoints.
501 (disable_command): Call mark_breakpoint_location_modified (...).
502 Call update_global_location_list (...) with parameter 1 for breakpoints.
503 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
504 (enable_command): mark_breakpoint_location_modified (...).
505 (_initialize_breakpoint): Update documentation and add
506 condition-evaluation breakpoint subcommand.
507
508 * breakpoint.h: Include ax.h.
509 (condition_list): New data structure.
510 (condition_status): New enum.
511 (bp_target_info) <cond_list>: New field.
512 (bp_location) <condition_changed, cond_bytecode>: New fields.
513 (is_breakpoint): New prototype.
514
515 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
516
517 * remote.c (remote_state) <cond_breakpoints>: New field.
518 (PACKET_ConditionalBreakpoints): New enum.
519 (remote_cond_breakpoint_feature): New function.
520 (remote_protocol_features): Add new ConditionalBreakpoints entry.
521 (remote_supports_cond_breakpoints): New function.
522 (_initialize_remote): Add new packet configuration for
523 target-side conditional breakpoints.
524
525 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
526
527 * NEWS: Mention target-side conditional breakpoint support,
528 new condition-evaluation breakpoint subcommand and remote
529 packet extensions.
530
531 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
532
533 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
534 number.
535
536 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
537
538 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
539 (after_prologue): Remove.
540
541 2012-02-23 Tom Tromey <tromey@redhat.com>
542
543 * jv-valprint.c (java_val_print): Remove dead code.
544
545 2012-02-23 Tristan Gingold <gingold@adacore.com>
546
547 * ada-tasks.c (struct ada_tasks_inferior_data): Add
548 known_tasks_element and known_tasks_length fields.
549 (read_known_tasks_array): Change argument type. Use pointer type
550 and number of elements from DATA. Adjust.
551 (read_known_tasks_list): Likewise.
552 (get_known_tasks_addr): Remove.
553 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
554 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
555 type and array length. Merge former get_known_tasks_addr code.
556
557 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
558
559 PR backtrace/13716
560 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
561 it after set_momentary_breakpoint.
562
563 2012-02-22 Sterling Augustine <saugustine@google.com>
564
565 PR 13689:
566 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
567
568 2012-02-22 Gary Benson <gbenson@redhat.com>
569
570 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
571 (find_slot_in_mapped_hash): Likewise.
572
573 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
574
575 PR build/13638
576 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
577 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
578 * configure: Regenerate.
579
580 2012-02-21 Tristan Gingold <gingold@adacore.com>
581 Pedro Alves <palves@redhat.com>
582
583 * ia64-tdep.c: Do not include libunwind-ia64.h.
584 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
585 Include libunwind-ia64.h instead of libunwind.h.
586 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
587 for libunwind.h existence.
588 * configure, config.in: Regenerate.
589
590 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
591
592 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
593 instead of value_rtti_target_type.
594 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
595 instead of value_rtti_target_type.
596 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
597 value_rtti_target_type.
598 * valops.c (value_ind): Extract function readjust_indirect_value_type.
599 (value_rtti_target_type): Rename to ...
600 (value_rtti_indirect_type): ... here and make it indirect. Update
601 function comment.
602 * value.c (readjust_indirect_value_type): New function.
603 (coerce_ref): Support for enclosing type setting for references
604 with readjust_indirect_value_type.
605 * value.h (readjust_value_type): New declaration.
606 (value_rtti_target_type): Rename to ...
607 (value_rtti_indirect_type): ... here.
608
609 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
610
611 * MAINTAINERS (Write After Approval): Add myself to the list.
612
613 2012-02-20 Doug Evans <dje@google.com>
614
615 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
616 Rename objfile_p_char parameter to objfilep.
617 (build_objfile_section_table): Result is now void. All callers
618 updated.
619 * objfiles.h (struct objfile): Tweak comments, whitespace.
620 (build_objfile_section_table): Update.
621
622 * elfread.c (elf_symfile_segments): Fix warning text.
623
624 2012-02-20 Tom Tromey <tromey@redhat.com>
625
626 PR gdb/13498:
627 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
628 particular set of file names once.
629 (dw2_map_symbol_filenames): Likewise.
630
631 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
632
633 Code cleanup.
634 * main.c (write_files): Remove the declaration.
635 (external_editor_command): Move the declaration ...
636 [GDBTK] (external_editor_command): ... here. Fix the comment.
637
638 2012-02-20 Tom Tromey <tromey@redhat.com>
639
640 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
641 extraneous block.
642
643 2012-02-20 Tristan Gingold <gingold@adacore.com>
644
645 * darwin-nat.h (enum darwin_msg_state): Add comments.
646
647 2012-02-20 Tristan Gingold <gingold@adacore.com>
648
649 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
650 value.
651
652 2012-20-18 Joel Brobecker <brobecker@adacore.com>
653
654 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
655 between function description and implementation.
656
657 2012-02-17 Tom Tromey <tromey@redhat.com>
658
659 PR python/12070:
660 * python/py-event.c (event_object_getset): New global.
661 (event_object_type): Reference it.
662 * python/py-type.c (field_object_getset): New global.
663 (field_object_type): Reference it.
664 * python/python-internal.h (gdb_py_generic_dict): Declare.
665 * python/py-utils.c (gdb_py_generic_dict): New function.
666
667 2012-02-17 Tristan Gingold <gingold@adacore.com>
668
669 * solib-darwin.c (darwin_current_sos): Check magic and filetype
670
671 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
672
673 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
674 TYPE_CALLING_CONVENTION annotation.
675
676 2012-02-16 Kevin Buettner <kevinb@redhat.com>
677
678 * MAINTAINERS: Add rx to target ISA section.
679 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
680 (ALLDEPFILES): Add rx-tdep.c.
681
682 2012-02-16 Tom Tromey <tromey@redhat.com>
683
684 * symfile.c (symbol_file_add_main_1): Use inferior's
685 symfile_flags.
686 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
687 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
688 inferior.
689 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
690 inferior.
691 (follow_exec): Use inferior's symfile_flags.
692 * inferior.h (struct inferior) <symfile_flags>: New field.
693
694 2012-02-16 Mike Frysinger <vapier@gentoo.org>
695
696 PR gdb/9734:
697 * remote-sim.c (gdbsim_create_inferior): Call error() when
698 sim_create_inferior() fails.
699
700 2012-02-16 Josh Matthews <josh@joshmatthews.net>
701
702 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
703
704 2012-02-16 Tom Tromey <tromey@redhat.com>
705
706 PR c++/13653:
707 * thread.c (struct current_thread_cleanup) <was_removable>: New
708 field.
709 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
710 (make_cleanup_restore_current_thread): Initialize new field.
711
712 2012-02-15 Kevin Buettner <kevinb@redhat.com>
713
714 * MAINTAINERS: Add rl78 to target ISA section.
715 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
716 (ALLDEPFILES): Add rl78-tdep.c.
717 * NEWS: Mention rl78 as a new target.
718
719 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
720
721 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
722 data.
723 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
724
725 2012-02-15 Tom Tromey <tromey@redhat.com>
726
727 PR gdb/12659:
728 * infcmd.c (registers_info): Print just the current register's
729 name.
730
731 2012-02-15 Tom Tromey <tromey@redhat.com>
732
733 * python/py-symbol.c (sympy_value): Use _().
734
735 2012-02-15 Pedro Alves <palves@redhat.com>
736
737 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
738 output to be like native targets'.
739 (remote_pid_to_str): Special case the null ptid.
740
741 2012-02-14 Stan Shebs <stan@codesourcery.com>
742
743 * NEWS: Mention enable count command.
744 * breakpoint.h (struct breakpoint): New field enable_count.
745 * breakpoint.c (enable_breakpoint_disp): Add count argument.
746 (enable_breakpoint): Add arg to call.
747 (struct disp_data): New struct.
748 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
749 (do_map_enable_once_breakpoint): Create a struct and pass it.
750 (do_map_enable_delete_breakpoint): Ditto.
751 (do_map_enable_count_breakpoint): New function.
752 (enable_count_command): New function.
753 (bpstat_stop_status): Decrement enable_count.
754 (print_one_breakpoint_location): Report enable count.
755 (_initialize_breakpoint): Add enable count command.
756
757 2012-02-14 Kevin Buettner <kevinb@redhat.com>
758
759 * rl78-tdep.c (reggroups.h): Include.
760 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
761 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
762 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
763 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
764 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
765 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
766 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
767 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
768 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
769 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
770 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
771 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
772 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
773 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
774 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
775 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
776 beginning of register list.
777 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
778 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
779 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
780 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
781 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
782 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
783 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
784 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
785 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
786 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
787 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
788 the pseudo registers. Rearrange other pseudo registers too so
789 that the bank registers appear at the end.
790 (rl78_register_type): Account for the fact that the byte sized
791 bank registers are now pseudo-registers.
792 (rl78_register_name): Rearrange the register name array. Make
793 initial set of raw banked registers inaccessible.
794 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
795 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
796 case for copying bytes back and forth between raw and pseudo
797 versions of the banked registers. Update other cases to reflect
798 the changed names.
799 (rl78_return_value): Update to account for changed names of
800 raw registers.
801 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
802 rl78_register_sim_regno().
803
804 2012-02-14 Kevin Buettner <kevinb@redhat.com>
805
806 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
807 the name parameter being passed to find_pc_partial_function().
808
809 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
810
811 * MAINTAINERS: Step down from being ia64 target maintainer.
812
813 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
814
815 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
816 compilation warning.
817
818 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
819
820 Fix crash on loaded shlibs without loaded exec_bfd.
821 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
822 (set_section_command): Replace exec_bfd by p->bfd.
823
824 2012-02-10 Tom Tromey <tromey@redhat.com>
825
826 * linespec.c (decode_line_internal): Skip symtabs_from_filename
827 when we have a C++ qualified name.
828
829 2012-02-10 Pedro Alves <palves@redhat.com>
830
831 * inferior.c (inferior_pid_to_str): New.
832 (print_inferior, inferior_command): Use it.
833
834 2012-02-10 Pedro Alves <palves@redhat.com>
835
836 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
837 the test CFLAGS.
838 * configure: Regenerate.
839
840 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
841
842 * linespec.c (decode_line_internal): Fix comment correctness.
843
844 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
845
846 PR gdb/12953
847 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
848 * amd64bsd-nat.c: Add support for debug registers (adapted from
849 i386bsd-nat.c).
850 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
851 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
852 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
853 (amd64bsd_dr_get_control): New functions.
854 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
855 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
856 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
857 watchpoints initialization.
858 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
859
860 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
861
862 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
863 flds_bnds.fields.
864 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
865
866 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
867
868 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
869
870 2012-02-08 Joel Brobecker <brobecker@adacore.com>
871
872 * language.h (symbol_name_cmp_ftype): Renames
873 symbol_name_match_p_ftype.
874 (struct language_defn)[la_get_symbol_name_cmp]: Renames
875 la_get_symbol_name_match_p.
876 * ada-lang.c (ada_get_symbol_name_cmp): Renames
877 ada_get_symbol_name_match_p. Update comment.
878 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
879 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
880 Renames symbol_name_match_p. Update field type.
881 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
882 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
883 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
884 "la_get_symbol_name_cmp" in comments.
885 * language.c: Likewise.
886
887 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
888
889 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
890 %eflags offset.
891 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
892 (amd64_sol2_gregset32_reg_offs): Likewise.
893
894 2012-02-08 Joel Brobecker <brobecker@adacore.com>
895
896 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
897 of the returned BFD is allocated by GDB.
898
899 2012-02-07 Tom Tromey <tromey@redhat.com>
900
901 PR python/12027:
902 * python/python-internal.h (frame_object_type): Declare.
903 * python/py-symbol.c (sympy_needs_frame): New function.
904 (sympy_value): New function.
905 (symbol_object_getset): Add "needs_frame".
906 (symbol_object_methods): Add "value".
907 * python/py-frame.c (frame_object_type): No longer static.
908
909 2012-02-07 Tom Tromey <tromey@redhat.com>
910
911 PR python/13599:
912 * python/py-symbol.c (sympy_line): New function.
913 (symbol_object_getset): Add "line".
914
915 2012-02-07 Tom Tromey <tromey@redhat.com>
916
917 * charset.c (find_charset_names): Check 'in' against NULL.
918
919 2012-02-06 Doug Evans <dje@google.com>
920
921 * gdbtypes.h (struct main_type): Change type of name,tag_name,
922 and fields.name members from char * to const char *. All uses updated.
923 (struct cplus_struct_type): Change type of fn_fieldlists.name member
924 from char * to const char *. All uses updated.
925 (type_name_no_tag): Update.
926 (lookup_unsigned_typename, lookup_signed_typename): Update.
927 * gdbtypes.c (type_name_no_tag): Change result type
928 from char * to const char *. All callers updated.
929 (lookup_unsigned_typename, lookup_signed_typename): Change type of
930 name parameter from char * to const char *.
931 * symtab.h (struct cplus_specific): Change type of demangled_name
932 member from char * to const char *. All uses updated.
933 (struct general_symbol_info): Change type of name and
934 mangled_lang.demangled_name members from char * to const char *.
935 All uses updated.
936 (symbol_get_demangled_name, symbol_natural_name): Update.
937 (symbol_demangled_name, symbol_search_name): Update.
938 * symtab.c (symbol_get_demangled_name): Change result type
939 from char * to const char *. All callers updated.
940 (symbol_natural_name, symbol_demangled_name): Ditto.
941 (symbol_search_name): Ditto.
942 (completion_list_add_name): Change type of symname,sym_text,
943 text,word parameters from char * to const char *.
944 (completion_list_objc_symbol): Change type of sym_text,
945 text,word parameters from char * to const char *.
946 * ada-lang.c (find_struct_field): Change type of name parameter
947 from char * to const char *.
948 (encoded_ordered_before): Similarly for N0,N1 parameters.
949 (old_renaming_is_invisible): Similarly for function_name parameter.
950 (ada_type_name): Change result type from char * to const char *.
951 All callers updated.
952 * ada-lang.h (ada_type_name): Update.
953 * buildsym.c (hashname): Change type of name parameter
954 from char * to const char *.
955 * buildsym.h (hashname): Update.
956 * dbxread.c (end_psymtab): Change type of include_list parameter
957 from char ** to const char **.
958 * dwarf2read.c (determine_prefix): Change result type
959 from char * to const char *. All callers updated.
960 * f-lang.c (find_common_for_function): Change type of name, funcname
961 parameters from char * to const char *.
962 * f-lang.c (find_common_for_function): Update.
963 * f-valprint.c (list_all_visible_commons): Change type of funcname
964 parameters from char * to const char *.
965 * gdbarch.sh (static_transform_name): Change type of name parameter
966 and result from char * to const char *.
967 * gdbarch.c: Regenerate.
968 * gdbarch.h: Regenerate.
969 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
970 of name parameter from char * to const char *.
971 * jv-lang.c (java_primitive_type_from_name): Ditto.
972 (java_demangled_signature_length): Similarly for signature parameter.
973 (java_demangled_signature_copy): Ditto.
974 (java_demangle_type_signature): Ditto.
975 * jv-lang.h (java_primitive_type_from_name): Update.
976 (java_demangle_type_signature): Update.
977 * objc-lang.c (specialcmp): Change type of a,b parameters
978 from char * to const char *.
979 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
980 from char * to const char *. All callers updated.
981 * p-lang.h (is_pascal_string_type): Update.
982 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
983 of name parameter from char * to const char *.
984 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
985 * utils.c (fprintf_symbol_filtered): Ditto.
986 * defs.h (fprintf_symbol_filtered): Update.
987 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
988 * stabsread.h (end_psymtab): Update.
989 * stack.c (find_frame_funname): Change type of funname parameter
990 from char ** to const char **.
991 * stack.h (find_frame_funname): Update.
992 * typeprint.c (type_print): Change type of varstring parameter
993 from char * to const char *.
994 * value.h (type_print): Update.
995 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
996 from char * to const char *. All callers updated.
997 (xcoff_end_psymtab): Change type of include_list parameter
998 from char ** to const char **. All callers updated.
999 (swap_sym): Similarly for name parameter. All callers updated.
1000 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
1001 Use xstrdup.
1002 (process_coff_symbol): Use xstrdup.
1003 * stabsread.c (stabs_method_name_from_physname): Renamed from
1004 update_method_name_from_physname. Change result type from void
1005 to char *. All callers updated.
1006 (read_member_functions): In has_destructor case, store name in objfile
1007 obstack instead of malloc space. In !has_stub case, fix mem leak.
1008
1009 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
1010
1011 * configure: Rebuild.
1012 * configure.ac: Put -L../bfd and -L../libiberty at the front of
1013 LDFLAGS.
1014
1015 2012-02-03 Kevin Buettner <kevinb@redhat.com>
1016
1017 * configure.tgt (rl78-*-elf): New target.
1018 * rl78-tdep.c: New file.
1019
1020 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1021
1022 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
1023 and continue the loop. Add QUIT statement.
1024
1025 2012-02-03 Tom Tromey <tromey@redhat.com>
1026
1027 PR gdb/13596:
1028 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
1029 bfd_lookup_symbol_from_symtab.
1030 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1031 gdb_bfd_lookup_symbol_from_symtab.
1032
1033 2012-02-03 Joel Brobecker <brobecker@adacore.com>
1034
1035 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
1036 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
1037 symbol. Add assertion that sym2 is never NULL.
1038
1039 2012-02-02 Doug Evans <dje@google.com>
1040
1041 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
1042 "name" parameter to const char ** from char **. All callers updated.
1043 (find_pc_partial_function): Ditto.
1044 (cache_pc_function_name): Change type to const char * from char *.
1045 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
1046 (find_pc_partial_function): Update.
1047 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
1048 type of "name" parameter to const char * from char *.
1049 All uses updated.
1050 * arch-utils.c (generic_in_solib_return_trampoline): Change
1051 type of "name" parameter to const char * from char *.
1052 * arch-utils.h (generic_in_solib_return_trampoline): Update.
1053 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
1054 type of "name" parameter to const char * from char *.
1055 * gdbarch.sh (in_solib_return_trampoline): Ditto.
1056 * gdbarch.c: Regenerate.
1057 * gdbarch.h: Regenerate.
1058 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
1059 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
1060 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
1061 type of "name" parameter to const char * from char *.
1062 * skip.c (skip_function_pc): Ditto.
1063 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
1064 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
1065 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
1066 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
1067 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
1068 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
1069 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
1070 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
1071 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
1072
1073 2012-02-02 Pedro Alves <palves@redhat.com>
1074
1075 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
1076 the current inferior has no execution. Make sure the current
1077 remote process matches gdb's current inferior.
1078
1079 2012-02-02 Tom Tromey <tromey@redhat.com>
1080
1081 PR gdb/13405:
1082 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
1083 read-only memory.
1084
1085 2012-02-02 Tom Tromey <tromey@redhat.com>
1086
1087 PR gdb/9307:
1088 * symtab.c (lookup_language_this): Set block_found.
1089
1090 2012-02-01 Tom Tromey <tromey@redhat.com>
1091
1092 PR gdb/13431:
1093 * jit.c (struct jit_inferior_data): Rewrite.
1094 (struct jit_objfile_data): New.
1095 (get_jit_objfile_data): New function.
1096 (add_objfile_entry): Update.
1097 (jit_read_descriptor): Return int. Replace descriptor_addr
1098 argument with inf_data. Update. Don't call error.
1099 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
1100 descriptor here.
1101 (jit_inferior_init): Don't look up descriptor. Don't call error.
1102 (jit_reset_inferior_data_and_breakpoints)
1103 (jit_inferior_created_observer): Remove.
1104 (jit_inferior_exit_hook): Update.
1105 (jit_executable_changed_observer): Remove.
1106 (jit_event_handler): Update.
1107 (free_objfile_data): Reset inferior data if needed.
1108 (_initialize_jit): Update.
1109
1110 2012-02-01 Tom Tromey <tromey@redhat.com>
1111
1112 * jit.c (bfd_open_from_target_memory): Move higher in file.
1113
1114 2012-02-01 Tristan Gingold <gingold@adacore.com>
1115
1116 * libunwind-frame.c (libunwind_load): Display message if dlopen
1117 failed.
1118
1119 2012-02-01 Gary Benson <gbenson@redhat.com>
1120
1121 * symtab.h (symbol_name_match_p_ftype): New typedef.
1122 (iterate_over_symbols): Use the above.
1123 * symtab.c (iterate_over_symbols): Likewise.
1124 * language.h (language_defn->la_iterate_over_symbols): Likewise.
1125 * ada-lang.c (ada_iterate_over_symbols): Likewise.
1126 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
1127 (iterate_name_matcher): Document return values.
1128 (collect_one_symbol): Likewise.
1129 (collect_function_symbols): Likewise.
1130 (collect_symbols): Likewise.
1131
1132 2012-02-01 Tom Tromey <tromey@redhat.com>
1133
1134 * ada-lang.c (resolve_subexp): Update.
1135 (ada_lookup_symbol_list): Add 'full_search' argument.
1136 (ada_iterate_over_symbols): Pass 0 as full_search argument to
1137 ada_lookup_symbol_list.
1138 (ada_lookup_encoded_symbol): Update.
1139 (get_var_value): Update.
1140 * ada-exp.y (block_lookup): Update.
1141 (write_var_or_type): Update.
1142 (write_name_assoc): Update.
1143 * ada-lang.h (ada_lookup_symbol_list): Update.
1144
1145 2012-01-31 Tom Tromey <tromey@redhat.com>
1146
1147 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
1148 comment.
1149
1150 2012-01-31 Doug Evans <dje@google.com>
1151
1152 * symtab.h: Remove outdated comment.
1153 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
1154
1155 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
1156
1157 Fix build error in Darwin port.
1158 * i386-darwin-nat.c: Include i386-nat.h.
1159
1160 2012-01-30 Tom Tromey <tromey@redhat.com>
1161
1162 PR breakpoints/13568:
1163 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
1164 argument. Check for recursive includes.
1165 (dwarf_decode_macros): Create an include hash.
1166
1167 2012-01-30 Michael Eager <eager@eagercon.com>
1168
1169 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
1170 * ppc-linux-tdep.c: Include glibc-tdep.h.
1171 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
1172 (powerpc_linux_in_plt_stub): New function.
1173 (powerpc_linux_in_dynsym_resolve_code): New function.
1174 (ppc_skip_trampoline_code): New function.
1175 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
1176 Use glibc_skip_solib_resolver.
1177
1178 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1179
1180 Code cleanup: Make 1440 bytes of data segment read-only.
1181 * arch-utils.c (endian_enum): Make it const char *const [].
1182 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
1183 Likewise.
1184 * breakpoint.c (always_inserted_enums): Likewise.
1185 * cli/cli-cmds.c (script_ext_enums): Likewise.
1186 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
1187 enumlist parameter const char *const *.
1188 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
1189 const char *const *.
1190 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
1191 parameter const char *const *.
1192 * cris-tdep.c (cris_modes): Make it const char *const [].
1193 * filesystem.c (target_file_system_kinds): Likewise.
1194 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
1195 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
1196 (can_use_displaced_stepping_enum, scheduler_enums)
1197 (exec_direction_names): Likewise.
1198 * language.c (_initialize_language): Make the type_or_range_names and
1199 case_sensitive_names variables const char *const [].
1200 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
1201 * python/python.c (python_excp_enums): Likewise.
1202 * remote.c (interrupt_sequence_modes): Likewise.
1203 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
1204 * serial.c (logbase_enums): Likewise.
1205 * sh-tdep.c (sh_cc_enum): Likewise.
1206 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
1207 Likewise.
1208 * symtab.c (multiple_symbols_modes): Likewise.
1209 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
1210 Likewise.
1211 * utils.c (internal_problem_modes): Likewise.
1212
1213 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1214
1215 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
1216 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
1217 result.
1218
1219 2012-01-27 Doug Evans <dje@google.com>
1220
1221 * configure.ac (with_python): Fix absolute path handling for win32.
1222 * configure: Regenerate.
1223
1224 2012-01-26 Doug Evans <dje@google.com>
1225
1226 * symtab.c: Whitespace cleanup, no code changes.
1227
1228 * symtab.c (lookup_symbol_in_language): Improve comment.
1229 (lookup_symbol_aux): Fix comment.
1230
1231 * psymtab.c (add_psymbol_to_list): Result is now "void".
1232 * psympriv.h (add_psymbol_to_list): Update.
1233
1234 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
1235
1236 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1237
1238 Do not open script filenames twice.
1239 * cli/cli-cmds.c (source_script_from_stream): Pass to
1240 source_python_script also STREAM.
1241 * python/py-auto-load.c (source_section_scripts): Pass to
1242 source_python_script_for_objfile also STREAM.
1243 (auto_load_objfile_script): Pass to source_python_script_for_objfile
1244 also INPUT.
1245 * python/python-internal.h (source_python_script_for_objfile): New
1246 parameter file, rename parameter file to filename.
1247 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
1248 instead if !_WIN32. Update the function comment.
1249 (source_python_script, source_python_script_for_objfile)
1250 (source_python_script): New parameter file, rename parameter file to
1251 filename. Pass FILENAME to python_run_simple_file.
1252 * python/python.h (source_python_script): New parameter file, rename
1253 parameter file to filename.
1254
1255 2012-01-26 Pedro Alves <palves@redhat.com>
1256
1257 * corelow.c (core_has_fake_pid): Delete.
1258 (core_close): Delete references to `core_has_fake_pid'.
1259 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
1260 (core_open): Delete references to `core_has_fake_pid'.
1261 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
1262 the removed global.
1263
1264 2012-01-26 Joel Brobecker <brobecker@adacore.com>
1265
1266 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
1267 Remove language parameter from name_matcher. Adjust the comment.
1268 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
1269 Remove language parameter.
1270 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
1271 * linespec.c (iterate_name_matcher): Likewise.
1272 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
1273 name_matcher. Adjust call accordingly.
1274 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
1275 (maintenance_check_symtabs): Adjust type of parameter "fun".
1276 * psymtab.h (maintenance_check_symtabs): Likewise.
1277
1278 2012-01-26 Joel Brobecker <brobecker@adacore.com>
1279
1280 * language.h (symbol_name_match_p_ftype): New typedef.
1281 (struct language_defn): Replace field la_symbol_name_compare
1282 by la_get_symbol_name_match_p.
1283 * ada-lang.c (ada_get_symbol_name_match_p): New function.
1284 (ada_language_defn): Use it.
1285 * linespec.c (struct symbol_matcher_data): New type.
1286 (iterate_name_matcher): Rewrite.
1287 (iterate_over_all_matching_symtabs): Pass a pointer to
1288 a symbol_matcher_data struct to expand_symtabs_matching
1289 instead of just the lookup name.
1290 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
1291 opencl-lang.c, p-lang.c, language.c: Delete field
1292 la_symbol_name_compare, and replace by NULL for new field
1293 la_get_symbol_name_match_p.
1294 * symfile.h (struct quick_symbol_functions): Update comment.
1295
1296 2012-01-25 Tom Tromey <tromey@redhat.com>
1297
1298 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
1299 dereferencing.
1300
1301 2012-01-24 Tom Tromey <tromey@redhat.com>
1302
1303 PR symtab/12406:
1304 * solib.c (update_solib_list): Update the program space's
1305 added_solibs and deleted_solibs fields.
1306 * progspace.h (struct program_space) <added_solibs,
1307 deleted_solibs>: New fields.
1308 (clear_program_space_solib_cache): Declare.
1309 * progspace.c (release_program_space): Call
1310 clear_program_space_solib_cache.
1311 (clear_program_space_solib_cache): New function.
1312 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
1313 bpstat_stop_status. Use handle_solib_event.
1314 * breakpoint.c: Include gdb_regex.h.
1315 (print_solib_event): New function.
1316 (bpstat_print): Use print_solib_event.
1317 (bpstat_stop_status): Add special case for bp_shlib_event.
1318 (handle_solib_event): New function.
1319 (bpstat_what): Use handle_solib_event.
1320 (struct solib_catchpoint): New.
1321 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
1322 (breakpoint_hit_catch_solib, check_status_catch_solib)
1323 (print_it_catch_solib, print_one_catch_solib)
1324 (print_mention_catch_solib, print_recreate_catch_solib): New
1325 functions.
1326 (catch_solib_breakpoint_ops): New global.
1327 (catch_load_or_unload, catch_load_command_1)
1328 (catch_unload_command_1): New functions.
1329 (internal_bkpt_check_status): Add special case for
1330 bp_shlib_event.
1331 (internal_bkpt_print_it): Use print_solib_event.
1332 (initialize_breakpoint_ops): Initialize
1333 catch_solib_breakpoint_ops.
1334 (_initialize_breakpoint): Register "catch load" and "catch
1335 unload".
1336 * breakpoint.h (handle_solib_event): Declare.
1337 * NEWS: Add entry for "catch load" and "catch unload".
1338
1339 2012-01-24 Tom Tromey <tromey@redhat.com>
1340
1341 * ada-lang.c: Include gdb_vecs.h.
1342 * charset.c: Include gdb_vecs.h.
1343 * tracepoint.h: Include gdb_vecs.h.
1344 * gdb_vecs.h: New file.
1345
1346 2012-01-24 Pedro Alves <pedro@codesourcery.com>
1347
1348 * breakpoint.c (breakpoint_hit_catch_fork)
1349 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
1350 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
1351 * infrun.c (inferior_has_forked, inferior_has_vforked)
1352 (inferior_has_execd, inferior_has_called_syscall): Delete.
1353 (handle_syscall_event): Get syscall_number from the execution
1354 control state's wait status.
1355 (wait_for_inferior): Don't clear syscall_number.
1356
1357 2012-01-24 Pedro Alves <palves@redhat.com>
1358
1359 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
1360 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
1361 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
1362 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
1363 `ws' parameter.
1364 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
1365 false for events other than TARGET_SIGNAL_TRAP.
1366 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
1367 Add `ws' parameter.
1368 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
1369 events other than TARGET_SIGNAL_TRAP.
1370 (tracepoint_breakpoint_hit): Add `ws' parameter.
1371 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
1372 parameter.
1373 (bpstat_stop_status): Same.
1374 (pc_at_non_inline_function): Same.
1375 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
1376 to pass the current event's waitstatus to bpstat_stop_status
1377 and pc_at_non_inline_function.
1378
1379 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1380
1381 Code cleanup.
1382 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
1383 Update the function comment for it.
1384 (source_script_with_search): Call make_cleanup_fclose for STREAM.
1385 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
1386 for STREAM.
1387
1388 2012-01-24 Pedro Alves <palves@redhat.com>
1389
1390 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
1391 outside `bs->stop' block.
1392 (bpstat_what): Rework bp_shlib_event handling.
1393 (internal_bkpt_check_status): If the breakpoint is a
1394 bp_shlib_event, then set bs->stop and bs->print if
1395 stop_on_solib_events is set.
1396
1397 2012-01-24 Gary Benson <gbenson@redhat.com>
1398
1399 Delete #if 0'd out code.
1400 * stack.c (print_frame_label_vars): Remove.
1401 (catch_info): Likewise.
1402 (_initialize_stack): Remove "info catch" command.
1403 * NEWS: Mention the above.
1404
1405 2012-01-24 Pedro Alves <palves@redhat.com>
1406
1407 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
1408 it.
1409 (remote_notice_new_inferior): If the remote end doesn't support
1410 the multiprocess extensions, then the PID is fake.
1411 (add_current_inferior_and_thread): New.
1412 (remote_start_remote): Use it.
1413 (extended_remote_attach_1): Adjust.
1414 (extended_remote_create_inferior_1): Use
1415 add_current_inferior_and_thread.
1416
1417 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1418
1419 Fix watchpoints to be specific for each inferior.
1420 * breakpoint.c (watchpoint_in_thread_scope): Verify also
1421 current_program_space.
1422 * i386-nat.c (i386_inferior_data_cleanup): New.
1423 (i386_inferior_data_get): Replace variable inf_data_local by an
1424 inferior_data call.
1425 (i386_use_watchpoints): Initialize i386_inferior_data.
1426 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
1427 specific iterate_over_lwps.
1428
1429 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1430
1431 Fix watchpoints across inferior fork.
1432 * amd64-linux-nat.c (update_debug_registers_callback): Update the
1433 comment for linux_nat_iterate_watchpoint_lwps.
1434 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
1435 linux_nat_iterate_watchpoint_lwps.
1436 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
1437 * i386-linux-nat.c (update_debug_registers_callback): Update the
1438 comment for linux_nat_iterate_watchpoint_lwps.
1439 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
1440 linux_nat_iterate_watchpoint_lwps.
1441 (i386_linux_prepare_to_resume): New comment on Linux kernel.
1442 * i386-nat.c: Include inferior.h.
1443 (dr_mirror): Remove.
1444 (i386_inferior_data, struct i386_inferior_data)
1445 (i386_inferior_data_get): New.
1446 (i386_debug_reg_state): Use i386_inferior_data_get.
1447 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
1448 (i386_insert_watchpoint, i386_remove_watchpoint)
1449 (i386_stopped_data_address, i386_insert_hw_breakpoint)
1450 (i386_remove_hw_breakpoint): New variable state, use
1451 i386_debug_reg_state instead of DR_MIRROR.
1452 * linux-nat.c (delete_lwp): New declaration.
1453 (num_lwps): Move here from downwards.
1454 (delete_lwp_cleanup): New.
1455 (linux_child_follow_fork): Create new child_lp, call
1456 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
1457 PTRACE_DETACH.
1458 (num_lwps): Move upwards.
1459 (linux_nat_iterate_watchpoint_lwps): New.
1460 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
1461 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
1462
1463 2012-01-24 Joel Brobecker <brobecker@adacore.com>
1464
1465 GDB 7.4 released.
1466
1467 2012-01-23 Pedro Alves <palves@redhat.com>
1468
1469 * top.c (caution): Rename to ...
1470 (confirm): ... this.
1471 (show_caution): Rename to ...
1472 (show_confirm): ... this.
1473 (quit_cover): Adjust.
1474 (init_main): Adjust.
1475 * top.h (caution): Rename to ...
1476 (confirm): ... this.
1477 * utils.c (internal_vproblem, defaulted_query): Adjust.
1478
1479 2012-01-23 Pedro Alves <palves@redhat.com>
1480
1481 * top.c (caution): Update comment.
1482 (execute_command): Don't consider the current value of `caution'.
1483
1484 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1485
1486 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
1487
1488 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
1489
1490 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
1491 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
1492 * target.c (target_fileio_pwrite): Remove buffer address from
1493 debug output.
1494 (target_fileio_pread): Likewise.
1495
1496 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1497
1498 * NEWS: Document remote "info proc" and "generate-core-file".
1499
1500 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1501
1502 * gdbarch.sh (find_memory_regions): New callback.
1503 * gdbarch.c, gdbarch.h: Regenerate.
1504
1505 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
1506 callback before falling back to target method.
1507
1508 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
1509 (linux_target_install_ops): No longer install it.
1510
1511 * linux-tdep.c (linux_find_memory_regions): New function.
1512 (linux_init_abi): Install it.
1513
1514 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1515
1516 * gdbarch.sh (make_corefile_notes): New architecture callback.
1517 * gdbarch.c: Regenerate.
1518 * gdbarch.h: Likewise.
1519
1520 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
1521 before target_make_corefile_notes. If NULL is returned, the
1522 target does not support core file generation.
1523
1524 * linux-nat.c: Include "linux-tdep.h".
1525 (find_signalled_thread, find_stop_signal): Remove.
1526 (linux_nat_do_thread_registers): Likewise.
1527 (struct linux_nat_corefile_thread_data): Likewise.
1528 (linux_nat_corefile_thread_callback): Likewise.
1529 (iterate_over_spus): Likewise.
1530 (struct linux_spu_corefile_data): Likewise.
1531 (linux_spu_corefile_callback): Likewise.
1532 (linux_spu_make_corefile_notes): Likewise.
1533 (linux_nat_collect_thread_registers): New function.
1534 (linux_nat_make_corefile_notes): Replace contents by call to
1535 linux_make_corefile_notes passing linux_nat_collect_thread_registers
1536 as native-only callback.
1537
1538 * linux-tdep.h: Include "bfd.h".
1539 (struct regcache): Add forward declaration.
1540 (linux_collect_thread_registers_ftype): New typedef.
1541 (linux_make_corefile_notes): Add prototype.
1542 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
1543 "regset.h", and "elf-bfd.h".
1544 (find_signalled_thread, find_stop_signal): New functions.
1545 (linux_spu_make_corefile_notes): Likewise.
1546 (linux_collect_thread_registers): Likewise.
1547 (struct linux_corefile_thread_data): New data structure.
1548 (linux_corefile_thread_callback): New funcion.
1549 (linux_make_corefile_notes): Likewise.
1550 (linux_make_corefile_notes_1): Likewise.
1551 (linux_init_abi): Install it.
1552
1553 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1554
1555 * gdbarch.sh (info_proc): New callback.
1556 * gdbarch.c, gdbarch.h: Regenerate.
1557
1558 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
1559 before falling back to the target info_proc callback.
1560
1561 * linux-nat.c: Do not include "cli/cli-utils.h".
1562 (linux_nat_info_proc): Remove.
1563 (linux_target_install_ops): No longer install it.
1564
1565 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
1566 (read_mapping): New function.
1567 (linux_info_proc): Likewise.
1568 (linux_init_abi): Install it.
1569
1570 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1571
1572 * defs.h (enum info_proc_what): Moved here from linux-nat.c
1573 * infcmd.c: (info_proc_cmd_1): New function.
1574 (info_proc_cmd): New function, moved here from equivalent routine
1575 orignally in linux-nat.c.
1576 (info_proc_cmd_mappings): Likewise.
1577 (info_proc_cmd_stat): Likewise.
1578 (info_proc_cmd_status): Likewise.
1579 (info_proc_cmd_cwd): Likewise.
1580 (info_proc_cmd_cmdline): Likewise.
1581 (info_proc_cmd_exe): Likewise.
1582 (info_proc_cmd_all): Likewise.
1583 (_initialize_infcmd): Install "info proc" command and subcommands.
1584
1585 * target.h (struct target_ops): Add to_info_proc.
1586 (target_info_proc): Add prototype.
1587 * target.c (target_info_proc): New function.
1588
1589 * procfs.c (procfs_info_proc): Add prototype.
1590 (info_proc_cmd): Rename into ...
1591 (procfs_info_proc): ... this. Update argument types as appropriate
1592 for a to_info_proc implementation. Handle "what" argument.
1593 (procfs_target): Install procfs_info_proc.
1594 (_initialize_procfs): No longer install "info proc" command.
1595
1596 * linux-nat.c: (enum info_proc_what): Remove.
1597 (linux_nat_info_proc_cmd_1): Rename into ...
1598 (linux_nat_info_proc): ... this. Update argument types as appropriate
1599 for a to_info_proc implementation.
1600 (linux_nat_info_proc_cmd): Remove.
1601 (linux_nat_info_proc_cmd_mappings): Likewise.
1602 (linux_nat_info_proc_cmd_stat): Likewise.
1603 (linux_nat_info_proc_cmd_status): Likewise.
1604 (linux_nat_info_proc_cmd_cwd): Likewise.
1605 (linux_nat_info_proc_cmd_cmdline): Likewise.
1606 (linux_nat_info_proc_cmd_exe): Likewise.
1607 (linux_nat_info_proc_cmd_all): Likewise.
1608 (linux_target_install_ops): Install linux_nat_info_proc.
1609 (_initialize_linux_nat): No longer install "info proc" command
1610 and subcommands.
1611
1612 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1613
1614 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
1615 * config.in, configure: Regenerate.
1616
1617 * target.h (struct target_ops): Add to_fileio_readlink.
1618 (target_fileio_readlink): Add prototype.
1619 * target.c (target_fileio_readlink): New function.
1620
1621 * inf-child.c: Conditionally include <sys/param.h>.
1622 (inf_child_fileio_readlink): New function.
1623 (inf_child_target): Install it.
1624
1625 * remote.c (PACKET_vFile_readlink): New enum value.
1626 (remote_hostio_readlink): New function.
1627 (init_remote_ops): Install it.
1628 (_initialize_remote): Handle vFile:readlink packet type.
1629
1630 2012-01-20 Pedro Alves <palves@redhat.com>
1631 Ulrich Weigand <ulrich.weigand@linaro.org>
1632
1633 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
1634 * config.in, configure: Regenerate.
1635
1636 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
1637 to_fileio_pread, to_fileio_close, to_fileio_unlink.
1638 (target_fileio_open): Add prototype.
1639 (target_fileio_pwrite): Likewise.
1640 (target_fileio_pread): Likewise.
1641 (target_fileio_close): Likewise.
1642 (target_fileio_unlink): Likewise.
1643 (target_fileio_read_alloc): Likewise.
1644 (target_fileio_read_stralloc): Likewise.
1645
1646 * target.c: Include "gdb/fileio.h".
1647 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
1648 (default_fileio_target): New function.
1649 (target_fileio_open): Likewise.
1650 (target_fileio_pwrite): Likewise.
1651 (target_fileio_pread): Likewise.
1652 (target_fileio_close): Likewise.
1653 (target_fileio_unlink): Likewise.
1654 (target_fileio_close_cleanup): Likewise.
1655 (target_fileio_read_alloc_1): Likewise.
1656 (target_fileio_read_alloc): Likewise.
1657 (target_fileio_read_stralloc): Likewise.
1658
1659 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
1660 <fcntl.h>, and <unistd.h>.
1661 (inf_child_fileio_open_flags_to_host): New function.
1662 (inf_child_errno_to_fileio_error): Likewise.
1663 (inf_child_fileio_open): Likewise.
1664 (inf_child_fileio_pwrite): Likewise.
1665 (inf_child_fileio_pread): Likewise.
1666 (inf_child_fileio_close): Likewise.
1667 (inf_child_fileio_unlink): Likewise.
1668 (inf_child_target): Install to_fileio routines.
1669
1670 * remote.c (init_remote_ops): Install to_fileio routines.
1671
1672 2012-01-20 Pedro Alves <palves@redhat.com>
1673 Ulrich Weigand <ulrich.weigand@linaro.org>
1674
1675 * remote.c (remote_multi_process_p): Only check for multi-process
1676 protocol feature, do not check for extended protocol.
1677 (remote_supports_multi_process): Check for extended protocol here.
1678 (set_general_process): Likewise.
1679 (extended_remote_kill): Likewise.
1680 (remote_pid_to_str): Likewise.
1681 (remote_query_supported): Always query multiprocess mode.
1682
1683 2012-01-20 Pedro Alves <palves@redhat.com>
1684 Ulrich Weigand <ulrich.weigand@linaro.org>
1685
1686 * inferior.h (struct inferior): Add fake_pid_p.
1687 * inferior.c (exit_inferior_1): Clear fake_pid_p.
1688 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
1689 magic_null_ptid since the remote side doesn't provide a real PID.
1690
1691 2012-01-19 Tom Tromey <tromey@redhat.com>
1692
1693 * NEWS: Combine the two Python sections.
1694
1695 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1696
1697 * target.h (target_close): Update comment on the target's unpush state.
1698
1699 2012-01-19 Pedro Alves <palves@redhat.com>
1700
1701 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
1702 linux_nat_async directly instead of going through the target
1703 vector.
1704 * target.c (unpush_target): Close target after unpushing it, not
1705 before.
1706
1707 2012-01-19 Gary Benson <gbenson@redhat.com>
1708
1709 * mdebugread.c (sort_blocks): Replace integer constants with ones
1710 derived from FIRST_LOCAL_BLOCK.
1711
1712 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
1713 Jan Kratochvil <jan.kratochvil@redhat.com>
1714
1715 PR gdb/9538
1716 * symfile.c (find_separate_debug_file): New function.
1717 (terminate_after_last_dir_separator): Likewise.
1718 (find_separate_debug_file_by_debuglink): Also try realpath.
1719 * configure.ac (AC_CHECK_FUNCS): Add lstat.
1720 * configure: Regenerate.
1721 * config.in: Regenerate.
1722
1723 2012-01-18 Doug Evans <dje@google.com>
1724
1725 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
1726 (main.o): Remove rule.
1727 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
1728 (--with-sysroot): Rewrite.
1729 * configure: Regenerate.
1730 * config.in: Regenerate.
1731
1732 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
1733
1734 * parse.c (initialize_expout): New function.
1735 (reallocate_expout): Likewise.
1736 (parse_exp_in_context): Use `initialize_expout' and
1737 `reallocate_expout' when appropriate.
1738
1739 2012-01-18 Pedro Alves <palves@redhat.com>
1740
1741 * record.c (struct record_breakpoint, record_breakpoint_p)
1742 (record_breakpoints): New.
1743 (record_insert_breakpoint, record_remove_breakpoint): Manage
1744 record breakpoints list. Only remove breakpoints from the
1745 inferior if they had been inserted there in the first place.
1746
1747 2012-01-17 Doug Evans <dje@google.com>
1748
1749 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
1750 if we know we don't have a file name to look for.
1751
1752 2012-01-17 Pedro Alves <palves@redhat.com>
1753
1754 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
1755 the frame's stop reason is UNWIND_UNAVAILABLE.
1756
1757 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1758
1759 Fix compilation error.
1760 * m2-exp.y (yyerror): Use ANSI C prototype.
1761
1762 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
1763
1764 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
1765 (growbuf_by_size): Likewise.
1766 (yyerror): Likewise.
1767 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
1768 (modblock): Remove variable (was #if 0'ed).
1769 (parse_number): Convert prototype from K&R to ANSI C.
1770 (yyerror): Likewise.
1771 * objc-exp.y (parse_number): Likewise.
1772 (yyerror): Likewise.
1773 (yylex): Remove #if 0'ed code.
1774 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
1775 (yyerror): Likewise.
1776
1777 2012-01-16 Tom Tromey <tromey@redhat.com>
1778
1779 * NEWS: Add item.
1780 * symtab.h (compare_filenames_for_search): Declare.
1781 * symtab.c (compare_filenames_for_search): New function.
1782 (iterate_over_some_symtabs): Use it.
1783 * symfile.h (struct quick_symbol_functions)
1784 <map_symtabs_matching_filename>: Change spec.
1785 * psymtab.c (partial_map_symtabs_matching_filename): Use
1786 compare_filenames_for_search. Update for new spec.
1787 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
1788 compare_filenames_for_search. Update for new spec.
1789 * breakpoint.c (clear_command): Use compare_filenames_for_search.
1790
1791 2012-01-16 Tom Tromey <tromey@redhat.com>
1792
1793 PR python/13281:
1794 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
1795 (struct main_type) <flag_flag_enum>: New field.
1796 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
1797 * NEWS: Add entries.
1798 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
1799 enums.
1800 * python/lib/gdb/printing.py (_EnumInstance): New class.
1801 (FlagEnumerationPrinter): Likewise.
1802
1803 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
1804
1805 * breakpoint.c (create_sals_from_address_default): New function.
1806 (create_breakpoints_sal_default): Likewise.
1807 (decode_linespec_default): Likewise.
1808 (is_marker_spec): Removed.
1809 (strace_marker_p): New function.
1810 (init_breakpoint_sal): Using `strace_marker_p' instead of
1811 `is_marker_spec'.
1812 (create_breakpoint): Call method `create_sals_from_address' from
1813 breakpoint_ops, replacing code that created SALs conditionally
1814 on the type of the breakpoint. Call method `create_breakpoints_sal',
1815 replacing code that created breakpoints conditionally on the type
1816 wanted.
1817 (base_breakpoint_create_sals_from_address): New function.
1818 (base_breakpoint_create_breakpoints_sal): Likewise.
1819 (base_breakpoint_decode_linespec): Likewise.
1820 (base_breakpoint_ops): Add methods
1821 `base_breakpoint_create_sals_from_address',
1822 `base_breakpoint_create_breakpoints_sal' and
1823 `base_breakpoint_decode_linespec'.
1824 (bkpt_create_sals_from_address): New function.
1825 (bkpt_create_breakpoints_sal): Likewise.
1826 (bkpt_decode_linespec): Likewise.
1827 (tracepoint_create_sals_from_address): Likewise.
1828 (tracepoint_create_breakpoints_sal): Likewise.
1829 (tracepoint_decode_linespec): Likewise.
1830 (strace_marker_create_sals_from_address): Likewise.
1831 (strace_marker_create_breakpoints_sal): Likewise.
1832 (strace_marker_decode_linespec): Likewise.
1833 (strace_marker_breakpoint_ops): New variable.
1834 (addr_string_to_sals): Remove `marker_spec'. Call method
1835 `decode_linespec' from breakpoint_ops, replacing code that decoded
1836 an address string into a SAL. Use `strace_marker_p' instead of
1837 `marker_spec'.
1838 (strace_command): Decide whether we are dealing with a static
1839 tracepoint with marker or not. Use the appropriate breakpoint_ops.
1840 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
1841 * breakpoint.h (linespec_result, linespec_sals): New forward
1842 declarations.
1843 (breakpoint_ops) <create_sals_from_address>,
1844 <create_breakpoints_sal>, <decode_linespec>: New methods.
1845
1846 2012-01-14 Doug Evans <dje@google.com>
1847
1848 * NEWS: Update text for "maint set python print-stack".
1849 It is deprecated in gdb 7.4 and deleted in 7.5.
1850
1851 2012-01-13 Eli Zaretskii <eliz@gnu.org>
1852
1853 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
1854 including curses.h.
1855
1856 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1857
1858 * configure: Regenerate.
1859 * config.in: Regenerate.
1860
1861 2012-01-12 Keith Seitz <keiths@redhat.com>
1862
1863 PR mi/10586
1864 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
1865 (ANONYMOUS_UNION_NAME): Define.
1866 (is_path_expr_parent): New function.
1867 (get_path_expr_parent): New function.
1868 (is_anonymous_child): New function.
1869 (create_child_with_value): If the child is anonymous and without
1870 a name, assign an object name to it.
1871 (c_describe_child): Use get_path_expr_parent to determine
1872 the parent expression.
1873 If there field represents an anonymous struct or union and
1874 has no name, set an appropriate display name and expression.
1875 (cplus_describe_child): Likewise.
1876
1877 2012-01-12 Pedro Alves <palves@redhat.com>
1878
1879 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
1880 available when %ebp is found to be zero (outermost).
1881
1882 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
1883
1884 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
1885 an internal gdb_static_assert.
1886 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
1887
1888 2012-01-11 Tom Tromey <tromey@redhat.com>
1889
1890 PR gdb/9598:
1891 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
1892 catch" and "catch throw".
1893
1894 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
1895
1896 * blockframe.c (block_innermost_frame): Start search from selected
1897 frame, if present, or otherwise the current frame.
1898
1899 * c-exp.y (variable): Update innermost_block for
1900 'block COLONCOLON NAME' clause.
1901 * m2-exp.y (variable): Ditto.
1902 * objc-exp.y (variable): Ditto.
1903
1904 2012-01-10 Tom Tromey <tromey@redhat.com>
1905
1906 PR python/13199:
1907 * python/python.c (finish_python_initialization): Set sys.argv.
1908
1909 2012-01-10 Doug Evans <dje@google.com>
1910
1911 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
1912 "want_line_info". All callers updated.
1913 (dwarf_decode_lines_1): New function.
1914 (handle_DW_AT_stmt_list): Add function comment.
1915 New arg "want_line_info". All callers updated.
1916 (read_file_scope,read_type_unit_scope): Move comment from
1917 handle_DW_AT_stmt_list to here.
1918
1919 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1920
1921 Fix regression after libiberty/ update for GCC PR 6057 and others.
1922 * c-exp.y (operator) <OPERATOR DELETE>
1923 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
1924 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
1925 (make_builtin_type, make_name): New variable i, add gdb_assert.
1926 (operator) <OPERATOR NEW>: Update ARGS to 3.
1927 (operator) <OPERATOR DELETE>: Add trailing space.
1928 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
1929 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
1930 * cp-support.c (cp_canonicalize_string): Check NULL from
1931 cp_comp_to_string, call warning and return.
1932
1933 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1934
1935 Fix duplicate .o files after omitting libbfd.a.
1936 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
1937 (SFILES): Add corelow.c.
1938 (COMMON_OBS): Add corelow.o.
1939 (ALLDEPFILES): Remove corelow.c.
1940 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
1941 * config/alpha/alpha-osf3.mh: Likewise.
1942 * config/alpha/fbsd.mh: Likewise.
1943 * config/arm/nbsdaout.mh: Likewise.
1944 * config/arm/nbsdelf.mh: Likewise.
1945 * config/i386/i386gnu.mh: Likewise.
1946 * config/ia64/hpux.mh: Likewise.
1947 * config/ia64/linux.mh: Likewise.
1948 * config/m32r/linux.mh: Likewise.
1949 * config/m68k/linux.mh: Likewise.
1950 * config/mips/irix5.mh: Likewise.
1951 * config/mips/irix6.mh: Likewise.
1952 * config/pa/hpux.mh: Likewise.
1953 * config/pa/linux.mh: Likewise.
1954 * config/powerpc/aix.mh: Likewise.
1955 * config/sparc/linux.mh: Likewise.
1956 * config/sparc/linux64.mh: Likewise.
1957 * config/sparc/sol2.mh: Likewise.
1958 * config/vax/vax.mh: Likewise.
1959 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
1960 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
1961 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
1962 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
1963 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
1964 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
1965 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
1966 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
1967 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
1968 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
1969 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
1970 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
1971 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
1972 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
1973 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
1974 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
1975 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
1976 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
1977 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
1978 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
1979 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
1980 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
1981 corelow.o from gdb_target_obs.
1982 * corefile.c (core_target): Update the comment on NULL value.
1983 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
1984 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
1985 MATCHES. Drop YUMMY set on NULL.
1986 (core_close): Do not call exit_inferior_silent on zero PID. Do not
1987 reclaim CORE_DATA if it is already NULL.
1988
1989 2012-01-09 Doug Evans <dje@google.com>
1990
1991 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
1992 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
1993
1994 2012-01-09 Keith Seitz <keiths@redhat.com>
1995
1996 * breakpoint.c (wrapper.h): Don't include.
1997
1998 2012-01-09 Keith Seitz <keiths@redhat.com>
1999
2000 * Makefile.in (SFILES): Remove wrapper.c.
2001 (HFILES_NO_SRCDIR): Remove wrapper.h.
2002 (COMMON_OBS): Remove wrapper.o.
2003 * cli/cli-interp.c: Don't inlude wrapper.h.
2004 * corelow.c: Likewise.
2005 (core_open): Replace gdb_target_find_new_threads with
2006 TRY_CATCH around target_find_new_threads.
2007 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
2008 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
2009 * varobj.c (varobj_create): Likewise for parse_exp_1 and
2010 evaluate_expression.
2011 (varobj_set_value): Likewise for evaluate_expression and
2012 value_assign.
2013 (install_new_variable): Likewise for value_fetch_lazy.
2014 (adjust_value_for_child_access): Likewise for value_ind.
2015 (c_describe_child): Likewise for value_subscript and
2016 value_ind.
2017 (c_value_of_root): Likewise for evaluate_expression.
2018 * wrapper.c: Remove.
2019 * wrapper.h: Remove.
2020
2021 2012-01-09 Doug Evans <dje@google.com>
2022
2023 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
2024 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
2025 "abfd" args with "section". All callers updated.
2026 Error checking code moved ...
2027 (error_check_comp_unit_head): ... here. New function.
2028 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
2029 Delete arg "abfd". New arg "type_offset". All callers updated.
2030 (create_debug_types_hash_table): Simplify by using
2031 read_and_check_type_unit_head.
2032
2033 * parser-defs.h (namecopy): Delete.
2034 * parse.c (namecopy, namecopy_size): Move into copy_name.
2035
2036 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2037
2038 Partially fix duplicate .o files after omitting libbfd.a.
2039 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
2040 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2041 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
2042 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2043 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
2044 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
2045 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2046
2047 2012-01-09 Pedro Alves <palves@redhat.com>
2048
2049 * MAINTAINERS: Update my email address.
2050
2051 2012-01-08 Doug Evans <dje@google.com>
2052
2053 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
2054 n_type_units. Rename type_comp_units to all_type_units.
2055 All uses updated.
2056 (add_signatured_type_cu_to_table): Renamed from
2057 add_signatured_type_cu_to_list. All callers updated.
2058
2059 * gdbtypes.h (struct cplus_struct_type): Delete member
2060 nfn_fields_total. All uses removed.
2061
2062 2012-01-06 Doug Evans <dje@google.com>
2063
2064 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
2065 to top of file.
2066 (dwarf2_find_comp_unit): Delete.
2067 (process_psymtab_comp_unit): Make result "void".
2068 Delete args buffer, info_ptr, buffer_size, and replace with
2069 "section". All callers updated.
2070 (dwarf2_build_psymtabs_hard): Simplify.
2071
2072 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
2073 Thiago Jung Bauermann <bauerman@br.ibm.com>
2074
2075 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
2076 before `struct gdb_exception'.
2077 * breakpoint.c (update_global_location_list_nothrow)
2078 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
2079 * cp-abi.c (value_rtti_type): Likewise.
2080 * cp-support.c (cp_validate_operator): Likewise.
2081 * infrun.c (insert_exception_resume_breakpoint)
2082 (check_exception_resume, keep_going): Likewise.
2083 * mi-interp.c (mi_breakpoint_created)
2084 (mi_breakpoint_modified): Likewise.
2085 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
2086 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
2087 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
2088
2089 2012-01-05 Doug Evans <dje@google.com>
2090
2091 * dwarf2read.c (statement_prologue): Delete, unused.
2092
2093 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
2094 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
2095
2096 * dwarf2read.c (comp_unit_header): Delete, unused.
2097
2098 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
2099
2100 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
2101 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
2102
2103 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
2104
2105 * infrun.c (normal_stop): Don't skip calling the normal_stop
2106 observers if the thread was doing a multi-step, but stopped for
2107 some reason other than stepping.
2108
2109 2012-01-05 Pedro Alves <alves.ped@gmail.com>
2110
2111 * cli/cli-decode.h: Add comments.
2112 (CMD_LIST_AMBIGUOUS): Moved to command.h
2113 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2114 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
2115 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
2116 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
2117 (add_com, add_com_alias, add_info, add_info_alias)
2118 (complete_on_cmdlist, complete_on_enum, help_list): Remove
2119 declarations.
2120 * command.h: Add and adjust comments.
2121 (CMD_LIST_AMBIGUOUS): Moved here.
2122 (help_cmd, help_cmd_list): Delete declarations.
2123
2124 2012-01-04 Doug Evans <dje@google.com>
2125
2126 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
2127 All callers updated.
2128 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
2129 Replace all arguments with "per_cu". All callers updated.
2130
2131 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
2132
2133 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
2134 New arg "per_cu". All callers updated.
2135
2136 Delete #if 0'd out code.
2137 * language.c (binop_result_type): Delete.
2138 (simple_type, ordered_type, same_type, integral_type): Delete.
2139 (numeric_type, character_type, string_type, boolean_type): Delete.
2140 (float_type, structured_type): Delete.
2141 * language.h: Update.
2142
2143 2012-01-04 Tom Tromey <tromey@redhat.com>
2144
2145 * python/py-value.c (valpy_binop): Initialize 'res_val'.
2146
2147 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2148
2149 * corefile.c (close_exec_file): Delete.
2150 (reopen_exec_file): Remove commented out code that seems related
2151 to close_exec_file, which is being deleted here.
2152 * inferior.h (close_exec_file): Delete.
2153 * fork-child.c (fork_inferior): Remove call to fork_inferior.
2154
2155 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2156
2157 * ada-lang.c: #include "cli/cli-utils.h".
2158 (get_selections): Use skip_spaces.
2159 (ada_get_next_arg): Use skip_spaces and skip_to_space.
2160 (catch_ada_exception_command_split): Use skip_spaces.
2161 (ada_decode_assert_location): Likewise.
2162
2163 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2164
2165 * linespec.c (decode_line_internal): Check for C++ or Java
2166 compound constructs only if the current language is C, C++
2167 or Java.
2168
2169 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2170
2171 Revert:
2172 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2173 Joel Brobecker <brobecker@adacore.com>
2174 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
2175 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
2176 3 times.
2177 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
2178 fall through into AT_ENTRY_POINT.
2179 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
2180 DUMMY_ADDR with it.
2181 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
2182 PPC_INSN_SIZE skip to 3 times.
2183
2184 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2185
2186 * linespec.c (add_minsym): Preserve function descriptors.
2187
2188 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
2189
2190 * breakpoint.c (all_locations_are_pending): Consider locations
2191 in program spaces executing during startup pending as well.
2192
2193 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2194
2195 Copyright year update in most files of the GDB Project.
2196
2197 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2198
2199 * copyright.sh: Delete.
2200 * copyright.py: Rewrite.
2201
2202 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2203
2204 * gnulib/extra/update-copyright: New file, imported from gnulib.
2205
2206 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2207
2208 * README (Copyright and License Notices): New section.
2209
2210 2012-01-03 Tom Tromey <tromey@redhat.com>
2211
2212 PR python/12533:
2213 * python/py-value.c (valpy_dereference, valpy_get_address
2214 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
2215 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
2216 (valpy_absolute, valpy_richcompare): Free intermediate values.
2217
2218 2011-01-03 Joel Brobecker <brobecker@adacore.com>
2219
2220 * ada-lang.c: Reformat the copyright notice.
2221
2222 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2223
2224 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
2225 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
2226 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
2227 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
2228 Revert this part of:
2229 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2230 Build gdb directly from *.o files not using libgdb.a.
2231 * Makefile.in (COMMON_OBS): Remove solib-target.o.
2232
2233 2012-01-02 Joel Brobecker <brobecker@adacore.com>
2234
2235 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
2236 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
2237 Reformat the copyright header.
2238
2239 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2240
2241 Revert this part of:
2242 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2243 Remove the gdbtui binary.
2244 * gdb.c (main): Remove args.interpreter_p initialization.
2245 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
2246 * main.h (struct captured_main_args): Remove interpreter_p.
2247
2248 2012-01-02 Joel Brobecker <brobecker@adacore.com>
2249
2250 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
2251
2252 2012-01-02 Joel Brobecker <brobecker@adacore.com>
2253
2254 * top.c (print_gdb_version): Update copyright year.
2255
2256 2012-01-02 Yao Qi <yao@codesourcery.com>
2257
2258 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
2259
2260 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2261 Joel Brobecker <brobecker@adacore.com>
2262
2263 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
2264 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
2265 3 times.
2266 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
2267 fall through into AT_ENTRY_POINT.
2268 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
2269 DUMMY_ADDR with it.
2270 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
2271 PPC_INSN_SIZE skip to 3 times.
2272
2273 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2274
2275 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
2276 the return value.
2277 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
2278
2279 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2280
2281 Build gdb directly from *.o files not using libgdb.a.
2282 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
2283 (COMMON_OBS): Remove solib-target.o.
2284 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
2285 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
2286 (LIBGDB_OBS, libgdb.a): Move it above.
2287 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
2288 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
2289 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
2290 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
2291 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
2292 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
2293 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
2294 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
2295 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
2296 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
2297 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2298 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
2299 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
2300 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
2301 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
2302 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
2303 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
2304 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
2305 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
2306 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
2307 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
2308 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
2309 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
2310 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
2311 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
2312 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
2313 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
2314
2315 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2316
2317 Remove the gdbtui binary.
2318 * .gitignore (/gdbtui): Remove.
2319 * Makefile.in (TUI): Remove.
2320 (SUBDIR_TUI_OBS): Remove tui-main.o.
2321 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
2322 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
2323 (tui-main.o): Remove.
2324 (all_object_files): Remove tui-main.o.
2325 * NEWS: New note for the gdbtui removal.
2326 * configure: Rebuilt.
2327 * configure.ac: No longer add all-tui, clean-tui, install-tui and
2328 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
2329 CONFIG_UNINSTALL respectively.
2330 * gdb.c (main): Remove args.interpreter_p initialization.
2331 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
2332 * main.h (struct captured_main_args): Remove interpreter_p.
2333 * tui/tui-main.c: Remove.
2334
2335 2012-01-01 Doug Evans <dje@google.com>
2336
2337 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
2338 (dwarf2_physname, read_import_statement): Ditto.
2339 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
2340 (process_structure_scope read_subroutine_type): Ditto.
2341 (read_typedef, load_partial_dies, read_partial_die): Ditto.
2342 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
2343 (dwarf2_fetch_die_location_block): Ditto.
2344 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
2345
2346 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
2347 All callers updated.
2348 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
2349 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
2350 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
2351
2352 * dwarf2read.c (load_cu): Move assert to more useful location.
2353
2354 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
2355 All callers updated.
2356
2357 * dwarf2read.c (dwarf2_per_objfile): Add comment.
2358 (dwarf2_elf_names): Minor reformat.
2359 (dwarf2_per_cu_data): Tweak comment.
2360 (dwarf2_read_section): Fix comment.
2361 (create_all_comp_units): Fix comment.
2362 (load_full_comp_unit): Fix comment.
2363 (process_full_comp_unit): Fix comment.
2364 (read_signatured_type): Fix comment.
2365
2366 For older changes see ChangeLog-2011.
2367 \f
2368 Local Variables:
2369 mode: change-log
2370 left-margin: 8
2371 fill-column: 74
2372 version-control: never
2373 coding: utf-8
2374 End: