3573b12dd75fa01bceb4495d4f3cba3bac6bc7b8
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-02-27 Jiong Wang <jiwang@tilera.com>
2
3 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
4
5 2013-02-27 Jiong Wang <jiwang@tilera.com>
6
7 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
8
9 2013-02-27 Yao Qi <yao@codesourcery.com>
10 Pedro Alves <palves@redhat.com>
11
12 * tracepoint.c (tfile_trace_find): For tfind
13 pc/tp/range/outside, look for the next trace frame instead of
14 always starting from frame 0.
15
16 2013-02-26 Anthony Green <green@moxielogic.com>
17
18 * configure.tgt: Add support for moxie-*-rtems* target.
19
20 2013-02-25 Pedro Alves <palves@redhat.com>
21
22 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
23 warning text.
24
25 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
26
27 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
28 if $fp is used as the virtual frame pointer.
29
30 2013-02-23 Alan Modra <amodra@gmail.com>
31
32 * elfread.c (elf_symtab_read): Do not use udata.p here to find
33 symbol size.
34 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
35 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
36 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
37 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
38
39 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
40
41 Code cleanup.
42 * elfread.c (build_id_bfd_get): Make the return type const.
43 (build_id_verify): Make the check parameter const.
44 (build_id_to_debug_filename): Make the build_id parameter and variable
45 data const.
46 (find_separate_debug_file_by_buildid): Make the variable build_id const.
47
48 2013-02-21 Alan Modra <amodra@gmail.com>
49
50 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
51
52 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
53
54 Add a new method 'disassemble' to gdb.Architecture class.
55 * python/py-arch.c (archpy_disassmble): Implementation of the
56 new method gdb.Architecture.disassemble.
57 (arch_object_methods): Add entry for the new method.
58
59 2013-02-20 Jiong Wang <jiwang@tilera.com>
60
61 * MAINTAINERS (Write After Approval): Add myself to the list.
62
63 2013-02-19 Pedro Alves <palves@redhat.com>
64
65 Garbage collect 'struct monitor_ops'::load_routine.
66
67 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
68 * monitor.c (monitor_load): No longer call
69 current_monitor->load_routine.
70 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
71 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
72 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
73
74 2013-02-19 Pedro Alves <palves@redhat.com>
75
76 PR gdb/15161
77
78 Harmonize with generic_load.
79
80 * monitor.c: Include "readline/readline.h".
81 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
82 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
83 long/strtol for the 'load_offset' local. Error out if no argument
84 is given or if too many arguments are given. Tilde expand the
85 passed in file name.
86
87 2013-02-19 Kai Tietz <ktietz@redhat.com>
88
89 PR gdb/15161
90 * symfile.c (load_section_data): Change type of load_offset
91 to CORE_ADDR.
92 (generic_load): User strtoulst instead of strtoul for conversion
93 of load_offset.
94
95 2013-02-19 Jiong Wang <jiwang@tilera.com>
96
97 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
98 for return address, "lr" register, saved on stack.
99 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
100 after we invoke tilegx_analyze_prologue.
101
102 2013-02-19 Jiong Wang <jiwang@tilera.com>
103
104 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
105
106 2013-02-19 Jiong Wang <jiwang@tilera.com>
107
108 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
109
110 2013-02-19 Jiong Wang <jiwang@tilera.com>
111
112 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
113 (tilegx_write_pc): New function.
114 (tilegx_cannot_reference_register): Return zero if REGNO
115 is TILEGX_FAULTNUM_REGNUM.
116 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
117 (tilegx_register_name): Add handling of "faultnum" register.
118 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
119 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
120 handling of TILEGX_FAULTNUM_REGNUM.
121 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
122
123 2013-02-19 Jiong Wang <jiwang@tilera.com>
124
125 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
126 should be aligned to 64bit.
127
128 2013-02-19 Kai Tietz <ktietz@redhat.com>
129
130 * windows-nat.c (windows_xfer_memory): Fix debug-output
131 for LLP64.
132
133 2013-02-19 Lei Liu <lei.liu2@windriver.com>
134
135 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
136 Don't check DSP register number if HAVE_DSP is not set.
137
138 2013-02-19 Alan Modra <amodra@gmail.com>
139
140 * elfread.c (struct build_id): Delete. Use struct elf_build_id
141 throughout file instead.
142 (build_id_bfd_get): Update to use new elf_tdata build_id field.
143 Don't xmalloc return value.
144 (build_id_verify): Similarly. Don't xfree.
145 (build_id_to_debug_filename): Update.
146 (find_separate_debug_file_by_buildid): Update, don't xfree.
147
148 2013-02-18 Tom Tromey <tromey@redhat.com>
149
150 PR gdb/15102:
151 * dwarf2read.c (read_subrange_type): Use result of
152 'check_typedef'.
153
154 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
155
156 * frame.c: Remove one extra white space after #include
157 directive.
158
159 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
160
161 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
162
163 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
164
165 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
166 and dir commands into an if block.
167
168 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
169
170 * python/py-breakpoint (struct pybp_code): Use int instead of
171 enum type_code.
172
173 2013-02-15 Pedro Alves <pedro@codesourcery.com>
174 Hafiz Abid Qadeer <abidh@codesourcery.com>
175
176 * NEWS: Mention new field "trace-file".
177 * tracepoint.c (trace_status_mi): Output "trace-file" field.
178 (tfile_open): Record the trace file's filename in the trace
179 status.
180 (tfile_files_info): Mention the name of the trace file.
181 Check the "filename" field explicitely.
182 (trace_status_command): Explicitely check "filename" field.
183 (trace_find_command): Ditto.
184 (trace_find_pc_command): Ditto.
185 (trace_find_tracepoint_command): Ditto.
186 (trace_find_line_command): Ditto.
187 (trace_find_range_command): Ditto.
188 (trace_find_outside_command): Ditto.
189 * tracepoint.h (struct trace_status) <from_file>: Rename it
190 to "filename" and make it hold the trace file's filename
191 instead of a boolean.
192 * remote.c (remote_get_trace_status): Initialize "filename"
193 field with NULL instead of 0.
194
195 2013-02-15 Yao Qi <yao@codesourcery.com>
196
197 * remote.c: Fix a typo.
198
199 2013-02-14 Pierre Muller <muller@sourceware.org>
200
201 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
202
203 2013-02-14 Pedro Alves <palves@redhat.com>
204
205 * utils.c (savestring): Don't #undef it. Move function to
206 common/common-utils.c.
207 * common/common-utils.c: Include gdb_string.h.
208 (savestring): Move here from utils.c.
209 * common/common-utils.h (savestring): Declare.
210
211 2013-02-14 Pedro Alves <palves@redhat.com>
212
213 * utils.c (savestring): Rename parameter 'size' to 'len'.
214
215 2013-02-14 Pedro Alves <palves@redhat.com>
216 Yufeng Zhang <yufeng.zhang@arm.com>
217
218 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
219 (aarch64_inferior_data, struct aarch64_inferior_data):
220 Delete.
221 (struct aarch64_process_info): New.
222 (aarch64_process_list): New global.
223 (aarch64_find_process_pid, aarch64_add_process)
224 (aarch64_process_info_get): New functions.
225 (aarch64_inferior_data_get): Delete.
226 (aarch64_process_info_get): New function.
227 (aarch64_forget_process): New function.
228 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
229 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
230 aarch64_get_debug_reg_state.
231 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
232 instead of linux_nat_iterate_watchpoint_lwps.
233 (aarch64_linux_new_fork): New function.
234 (aarch64_linux_child_post_startup_inferior): Use
235 aarch64_forget_process instead of aarch64_init_debug_reg_state.
236 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
237 (aarch64_linux_remove_hw_breakpoint)
238 (aarch64_handle_aligned_watchpoint)
239 (aarch64_handle_unaligned_watchpoint)
240 (aarch64_linux_insert_watchpoint)
241 (aarch64_linux_remove_watchpoint)
242 (aarch64_linux_stopped_data_address): Adjust to pass the current
243 process id to aarch64_debug_reg_state.
244 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
245 linux_nat_new_fork hook, and aarch64_forget_process as
246 linux_nat_forget_process hook; remove the call to
247 register_inferior_data_with_cleanup.
248
249 2013-02-14 Pedro Alves <palves@redhat.com>
250
251 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
252 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
253 lval_memory.
254
255 2013-02-14 Pedro Alves <pedro@codesourcery.com>
256 Hafiz Abid Qadeer <abidh@codesourcery.com>
257
258 * tracepoint.h (validate_trace_state_variable_name): Declare.
259 * tracepoint.c (validate_trace_state_variable_name): New.
260 (trace_variable_command): Parse the trace state variable's name
261 without using parse_expression. Do several validations.
262 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
263 trace state variable's name with parse_expression. Validate it.
264
265 2013-02-14 Yao Qi <yao@codesourcery.com>
266
267 * infcmd.c (breakpoint_proceeded): Remove it.
268
269 2013-02-14 Yao Qi <yao@codesourcery.com>
270
271 * tracepoint.c (end_actions_pseudocommand): Make it static.
272 (while_stepping_pseudocommand): Likewise.
273 * tracepoint.h (end_actions_pseudocommand): Remove the
274 declaration.
275 (while_stepping_pseudocommand): Likewise.
276
277 2013-02-14 Yao Qi <yao@codesourcery.com>
278
279 * cli/cli-decode.c (help_cmd): Remove the declaration of
280 "cmdlist".
281 (help_all): Likewise.
282
283 2013-02-13 Pedro Alves <palves@redhat.com>
284
285 * amd64-linux-nat.c (update_debug_registers_callback):
286 Update comment.
287 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
288 iterate_over_lwps.
289 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
290 i386_debug_reg_state.
291 (amd64_linux_new_fork): New function.
292 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
293 linux_nat_new_fork hook, and i386_forget_process as
294 linux_nat_forget_process hook.
295 * i386-linux-nat.c (update_debug_registers_callback):
296 Update comment.
297 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
298 iterate_over_lwps.
299 (i386_linux_prepare_to_resume): Pass the lwp's pid to
300 i386_debug_reg_state.
301 (i386_linux_new_fork): New function.
302 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
303 linux_nat_new_fork hook, and i386_forget_process as
304 linux_nat_forget_process hook.
305 * i386-nat.c (i386_init_dregs): Delete.
306 (i386_inferior_data, struct i386_inferior_data):
307 Delete.
308 (struct i386_process_info): New.
309 (i386_process_list): New global.
310 (i386_find_process_pid, i386_add_process, i386_process_info_get):
311 New functions.
312 (i386_inferior_data_get): Delete.
313 (i386_process_info_get): New function.
314 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
315 (i386_forget_process): New function.
316 (i386_cleanup_dregs): Rewrite.
317 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
318 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
319 (i386_stopped_data_address, i386_insert_hw_breakpoint)
320 (i386_remove_hw_breakpoint): Adjust to pass the current process id
321 to i386_debug_reg_state.
322 (i386_use_watchpoints): Don't register inferior data.
323 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
324 adjust comment.
325 (i386_forget_process): Declare.
326 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
327 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
328 New static globals.
329 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
330 (add_initial_lwp): New, factored out from ...
331 (add_lwp): ... this. Don't check the number of lwps before
332 calling linux_nat_new_thread.
333 (linux_nat_iterate_watchpoint_lwps): Delete.
334 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
335 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
336 forks and vforks.
337 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
338 initial lwp.
339 (linux_nat_kill, linux_nat_mourn_inferior): Call
340 linux_nat_forget_process.
341 (linux_nat_set_new_fork, linux_nat_set_forget_process)
342 (linux_nat_forget_process): New functions.
343 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
344 type.
345 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
346 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
347 types.
348 (linux_nat_set_new_fork, linux_nat_set_forget_process)
349 (linux_nat_forget_process): New declarations.
350
351 * amd64fbsd-nat.c (super_mourn_inferior): New global.
352 (amd64fbsd_mourn_inferior): New function.
353 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
354 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
355
356 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
357
358 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
359 Adding _().
360
361 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
362
363 * aarch64-linux-nat.c (debug_reg_change_callback)
364 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
365 %s and phex().
366
367 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
368
369 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
370 with LONGEST.
371
372 2013-02-13 Pedro Alves <palves@redhat.com>
373 Hafiz Abid Qadeer <abidh@codesourcery.com>
374
375 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
376
377 2013-02-12 Tom Tromey <tromey@redhat.com>
378
379 PR symtab/11464:
380 * c-exp.y (lex_one_token): Initialize other fields of yylval on
381 NAME return.
382 (classify_inner_name): Remove 'first_name' argument, add
383 'context'. Remove unused variable.
384 (yylex): Explicitly maintain the context type. Exit loop earlier
385 if NAME result is seen.
386
387 2013-02-12 Pedro Alves <palves@redhat.com>
388
389 * amd64-darwin-tdep.c: Add (C) after Copyright.
390 * cli/cli-cmds.h: Ditto.
391 * cli/cli-decode.c: Ditto.
392 * cli/cli-decode.h: Ditto.
393 * cli/cli-dump.c: Ditto.
394 * cli/cli-dump.h: Ditto.
395 * cli/cli-interp.c: Ditto.
396 * cli/cli-logging.c: Ditto.
397 * cli/cli-script.c: Ditto.
398 * cli/cli-script.h: Ditto.
399 * cli/cli-setshow.c: Ditto.
400 * cli/cli-setshow.h: Ditto.
401 * cli/cli-utils.c: Ditto.
402 * cli/cli-utils.h: Ditto.
403 * config/alpha/nm-osf3.h: Ditto.
404 * config/djgpp/djconfig.sh: Ditto.
405 * config/i386/nm-fbsd.h: Ditto.
406 * config/i386/nm-i386gnu.h: Ditto.
407 * config/nm-linux.h: Ditto.
408 * config/nm-nto.h: Ditto.
409 * config/rs6000/nm-rs6000.h: Ditto.
410 * config/sparc/nm-sol2.h: Ditto.
411 * darwin-nat-info.c: Ditto.
412 * dfp.c: Ditto.
413 * dfp.h: Ditto.
414 * gdb-demangle.h: Ditto.
415 * i386-darwin-nat.c: Ditto.
416 * i386-darwin-tdep.c: Ditto.
417 * linux-fork.h: Ditto.
418 * m32c-tdep.c: Ditto.
419 * microblaze-linux-tdep.c: Ditto.
420 * microblaze-rom.c: Ditto.
421 * microblaze-tdep.c: Ditto.
422 * microblaze-tdep.h: Ditto.
423 * mips-linux-tdep.h: Ditto.
424 * ppc-ravenscar-thread.c: Ditto.
425 * ppc-ravenscar-thread.h: Ditto.
426 * prologue-value.c: Ditto.
427 * prologue-value.h: Ditto.
428 * ravenscar-thread.c: Ditto.
429 * ravenscar-thread.h: Ditto.
430 * sparc-ravenscar-thread.c: Ditto.
431 * sparc-ravenscar-thread.h: Ditto.
432 * tilegx-linux-tdep.c: Ditto.
433 * unwind_stop_reasons.def: Ditto.
434 * windows-nat.h: Ditto.
435 * xtensa-linux-tdep.c: Ditto.
436 * xtensa-xtregs.c: Ditto.
437 * regformats/regdat.sh: Ditto.
438 * regformats/regdef.h: Ditto.
439
440 2013-02-12 Pedro Alves <palves@redhat.com>
441
442 * break-catch-sig.c: Update copyright years.
443
444 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
445
446 Add support for a destructor for ui_out data and use it to
447 provide a ui_out destructor.
448 * ui-out.h: Declare the new ui_out destructor.
449 (ui_out_impl): Add a field for data destructor in ui_out_impl.
450 * ui-out.c (default_data_destroy): Add a default data destructor
451 which does nothing.
452 (default_ui_out_impl): Set the new data_destroy field to
453 default_data_destroy
454 (uo_data_destroy): Local function which invokes the data
455 destructor if present.
456 (clear_table): Local function which clears the table data of a
457 ui_out object.
458 (ui_out_destroy): Public function which frees a ui_out object.
459 (ui_out_table_end): Use the new clear_table function.
460 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
461 NULL.
462 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
463 to NULL.
464
465 2013-02-11 Doug Evans <dje@google.com>
466
467 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
468 (printf_decfloat): New function. Broken out from ui_printf.
469 Remove unnecessary code to shift the entire format string down.
470 (printf_pointer): New function.
471 (ui_printf): Code to print C strings, wide C strings, decfloats,
472 and pointers moved to separate functions.
473
474 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
475
476 * valops.c (value_assign): Handling bitfield offset in
477 `lval_internalvar_component' case.
478
479 2013-02-08 Doug Evans <dje@google.com>
480
481 * common/format.c (parse_format_string): Fix whitespace.
482
483 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
484
485 * stack.c (return_command): Work around uninitialized variable
486 warning.
487
488 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
489
490 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
491 number of the registers from 36 to 34.
492
493 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
494
495 * NEWS: Mention new AArch64 native and target support.
496
497 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
498
499 * MAINTAINERS (Write After Approval): Add myself.
500
501 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
502 Marcus Shawcroft <marcus.shawcroft@arm.com>
503 Nigel Stephens <nigel.stephens@arm.com>
504 Yufeng Zhang <yufeng.zhang@arm.com>
505
506 * aarch64-linux-nat.c: New file.
507 * config/aarch64/linux.mh: New file.
508 * configure.host: Add AArch64.
509 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
510
511 2013-02-07 Doug Evans <dje@google.com>
512
513 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
514 disassemble command.
515
516 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
517
518 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
519 set_gdbarch_fetch_tls_load_module_address.
520
521 2013-02-06 David S. Miller <davem@davemloft.net>
522
523 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
524 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
525 * value.c (struct_return_convention): New function.
526 (using_struct_return): Implement in terms of struct_return_convention.
527 * value.h (struct_return_convention): Declare.
528 * stack.c (return_command): Allow successful overriding of the return
529 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
530
531 2013-02-06 Tom Tromey <tromey@redhat.com>
532
533 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
534 outside of TRY_CATCH.
535
536 2013-02-06 Yao Qi <yao@codesourcery.com>
537
538 * mi/mi-interp.c: Include "tracepoint.h".
539 (mi_tsv_modified): Declare.
540 (mi_tsv_created, mi_tsv_deleted): Update declaration.
541 (mi_interpreter_init): Call observer_attach_tsv_modified.
542 (mi_tsv_modified): New.
543 (mi_tsv_created, mi_tsv_deleted): Update.
544 * tracepoint.c (trace_variable_command): Call
545 observer_notify_tsv_modified if the initial value of tsv is
546 changed.
547 (delete_trace_state_variable): Call
548 observer_notify_tsv_deleted earlier.
549 (trace_variable_command): Caller update.
550 (create_tsv_from_upload): Likewise.
551 * observer.sh: Declare "struct trace_state_variable".
552
553 * NEWS: Mention the new MI notification "=tsv-modified".
554
555 2013-02-05 Doug Evans <dje@google.com>
556
557 * completer.c (location_completer): Fix typo in comment.
558
559 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
560
561 * breakpoint.c (add_location_to_breakpoint): Insert the location with
562 ADDRESS sorted.
563
564 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
565
566 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
567 Refactor if statement to avoid trailing || operator.
568
569 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
570
571 * NEWS: Add PowerPC FreeBSD as a new native configuration.
572
573 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
574
575 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
576 * configure.host: Add powerpc*-*-freebsd* target.
577 * configure.tgt: Add target info for powerpc*-*-freebsd*.
578 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
579 * config/powerpc/fbsd.mh: New file.
580
581 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
582 Denys Vlasenko <dvlasenk@redhat.com>
583 Pedro Alves <palves@redhat.com>
584
585 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
586 (struct elf_internal_linux_prpsinfo): Forward declare.
587 * gdbarch.h, gdbarch.c: Regenerate.
588 * linux-tdep.c: Include `cli/cli-utils.h'.
589 (linux_fill_prpsinfo): New function.
590 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
591 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
592 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
593 depending on gdbarch pointer bitness.
594 * ppc-linux-tdep.c: Include elf-bfd.h.
595 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
596 on 32-bit.
597
598 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
599 Marcus Shawcroft <marcus.shawcroft@arm.com>
600 Nigel Stephens <nigel.stephens@arm.com>
601 Yufeng Zhang <yufeng.zhang@arm.com>
602
603 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
604
605 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
606 Marcus Shawcroft <marcus.shawcroft@arm.com>
607 Nigel Stephens <nigel.stephens@arm.com>
608 Yufeng Zhang <yufeng.zhang@arm.com>
609
610 * aarch64-newlib-tdep.c: New file.
611 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
612 aarch64*-*-elf.
613 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
614 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
615 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
616 * osabi.c (gdb_osabi_names): Add "Newlib".
617
618 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
619 Marcus Shawcroft <marcus.shawcroft@arm.com>
620 Nigel Stephens <nigel.stephens@arm.com>
621 Yufeng Zhang <yufeng.zhang@arm.com>
622
623 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
624 (ALLDEPFILES): Add aarch64-linux-tdep.c.
625 * aarch64-linux-tdep.c: New file.
626 * aarch64-linux-tdep.h: New file.
627 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
628 * configure.tgt: Add aarch64-none-linux-gnu.
629
630 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
631 Marcus Shawcroft <marcus.shawcroft@arm.com>
632 Nigel Stephens <nigel.stephens@arm.com>
633 Yufeng Zhang <yufeng.zhang@arm.com>
634
635 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
636 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
637 (ALLDEPFILES): Add aarch64-tdep.c.
638 * aarch64-tdep.c: New file.
639 * aarch64-tdep.h: New file.
640 * configure.tgt: Add AArch64.
641 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
642 (aarch64-expedite): New definition.
643 * features/aarch64-core.xml: New file.
644 * features/aarch64-fpu.xml: New file.
645 * features/aarch64-without-fpu.c: New file (generated).
646 * features/aarch64-without-fpu.xml: New file.
647 * features/aarch64.c: New file (generated).
648 * features/aarch64.xml: New file.
649 * regformats/aarch64-without-fpu.dat: New file (generated).
650 * regformats/aarch64.dat: New file (generated).
651
652 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
653
654 * contrib/expect-read1.c: New file.
655 * contrib/expect-read1.sh: New file.
656
657 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
658
659 * dwarf2read.c (file_file_name): New function with code from
660 file_full_name.
661 (file_full_name): Move most of the code to file_file_name.
662 (macro_start_file): Rename variable full_name to file_name and use
663 file_file_name for it. Add comp_dir parameter to new_macro_table.
664 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
665 macro_source_file->filename access by macro_source_fullname call.
666 * macroscope.c (_initialize_macroscope): Update the new_macro_table
667 caller.
668 * macrotab.c (struct macro_table): New field comp_dir.
669 (macro_include): New variables link_fullname and source_fullname.
670 Replace any macro_source_file->filename access by macro_source_fullname
671 call.
672 (macro_lookup_inclusion): Remove the partial filenames checking code.
673 (check_for_redefinition): New variables source_fullname and
674 found_key_fullname. Replace any macro_source_file->filename access by
675 macro_source_fullname call.
676 (macro_undef): New variables source_fullname and key_fullname. Replace
677 any macro_source_file->filename access by macro_source_fullname call.
678 (macro_lookup_definition): New variables retval and source_fullname.
679 Replace any macro_source_file->filename access by macro_source_fullname
680 call.
681 (foreach_macro): New variable key_fullname. Replace any
682 macro_source_file->filename access by macro_source_fullname call.
683 (foreach_macro_in_scope): New variable datum_fullname. Replace any
684 macro_source_file->filename access by macro_source_fullname call.
685 (new_macro_table): Add parameter comp_dir. Initialize T with it.
686 (macro_source_fullname): New function.
687 * macrotab.h (struct macro_source_file): Extent the filename field
688 comment.
689 (new_macro_table): New parameter comp_dir, add a comment for it.
690 (macro_source_fullname): new declaration.
691
692 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
693
694 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
695 this_real_name to outer block. Use it also for
696 compare_filenames_for_search.
697 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
698 with dw2_get_real_path for file_matcher, considering also
699 BASENAMES_MAY_DIFFER.
700 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
701
702 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
703
704 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
705 to the file_matcher parameter. Pass 0 to it.
706 (dwarf2_create_include_psymtab): Copy also DIRNAME.
707 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
708 NULL psymtab_to_fullname result.
709 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
710 an expected filename instead.
711 (expand_symtabs_matching_via_partial): Add basenames parameter to the
712 file_matcher parameter. Call also psymtab_to_fullname, after newly
713 considering BASENAMES_MAY_DIFFER.
714 * source.c (rewrite_source_path): Remove static.
715 * source.h (rewrite_source_path): New declaration.
716 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
717 the expand_symtabs_matching field. Comment it.
718 * symtab.c (file_matches): New function comment. Add parameter
719 basenames, implement it.
720 (search_symbols_file_matches): Add basenames parameter. Update the
721 file_matches caller.
722 (search_symbols): Match FILES also against symtab_to_fullname.
723 Optimize it for BASENAMES_MAY_DIFFER.
724
725 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
726
727 * source.c (print_source_lines_base): Print for TUI also "fullname".
728 * tui/tui-data.c (init_content_element): Change tui_locator_element
729 field to full_name.
730 * tui/tui-data.h (struct tui_locator_element): Likewise.
731 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
732 tui_update_locator_filename calls to tui_update_locator_fullname.
733 Replace symtab->filename refererence by symtab_to_fullname call.
734 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
735 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
736 field to full_name. Replace symtab->filename refererence by
737 symtab_to_fullname call.
738 (tui_show_symtab_source): Rename parameter to fullname. Change
739 tui_locator_element field to full_name.
740 * tui/tui-stack.c: Include source.h.
741 (tui_set_locator_filename): Rename the declaration to ...
742 (tui_set_locator_fullname): ... here. Rename its parameter to
743 fullname, updates its comment.
744 (tui_set_locator_info): Rename its parameter to fullname.
745 (tui_set_locator_filename): Rename the definition to ...
746 (tui_set_locator_fullname): ... here. Rename its parameter to
747 fullname, updates its comment. Change tui_locator_element field to
748 full_name.
749 (tui_set_locator_info): Rename its parameter to fullname.
750 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
751 (tui_update_locator_filename): Rename to ...
752 (tui_update_locator_fullname): ... here. Rename callee to
753 tui_set_locator_fullname.
754 (tui_show_frame_info): Replace symtab->filename refererence by
755 symtab_to_fullname call.
756 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
757 (tui_update_locator_fullname): ... here.
758 * tui/tui-winsource.c (tui_display_main): Rename the callee to
759 tui_update_locator_fullname. Replace symtab->filename refererence by
760 symtab_to_fullname call.
761 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
762 Rename the callee to tui_update_locator_fullname.
763 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
764
765 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
766
767 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
768 by symtab_to_filename_for_display calls.
769 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
770 (clear_command): New variable sal_fullname, initialize it. Replace
771 compare_filenames_for_search by filename_cmp with sal_fullname.
772 (say_where, update_static_tracepoint): Replace symtab->filename
773 refererences by symtab_to_filename_for_display calls.
774 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
775 Likewise.
776 * dwarf2read.c: Include source.h.
777 (fixup_go_packaging): Replace symtab->filename refererences by
778 symtab_to_filename_for_display calls.
779 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
780 Replace symtab->filename refererences by symtab_to_filename_for_display
781 calls.
782 (create_sals_line_offset, convert_linespec_to_sals): New variable
783 fullname, initialize it, replace symtab->filename reference by the
784 variable.
785 * linux-fork.c: Include source.h.
786 (info_checkpoints_command): Replace symtab->filename refererences by
787 symtab_to_filename_for_display calls.
788 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
789 by symtab_to_filename_for_display calls.
790 * mdebugread.c: Include source.h.
791 (psymtab_to_symtab_1): Replace symtab->filename refererences by
792 symtab_to_filename_for_display calls.
793 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
794 (mi_cmd_file_list_exec_source_files): Likewise.
795 * printcmd.c: Include source.h.
796 (build_address_symbolic): Replace symtab->filename refererences by
797 symtab_to_filename_for_display calls.
798 * psymtab.c (partial_map_symtabs_matching_filename)
799 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
800 with psymtab_to_fullname.
801 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
802 by symtab_to_filename_for_display calls.
803 (stpy_get_filename): New variable filename, initialize it, use instead
804 of symtab->filename refererences.
805 (salpy_str): Make variable filename const char *. Replace
806 symtab->filename refererences by symtab_to_filename_for_display calls.
807 * skip.c: Include source.h and filenames.h.
808 (skip_file_command): Remove const from the symtab variable. Replace
809 symtab->filename refererences by symtab_to_fullname call.
810 (function_name_is_marked_for_skip): New variables searched_for_fullname
811 and fullname. Use them to search also with symtab's fullname.
812 * source.c (find_source_lines): Replace symtab->filename refererences
813 by symtab_to_filename_for_display calls.
814 (print_source_lines_base): New variable filename, use it instead of
815 symtab->filename. Replace symtab->filename refererences by
816 symtab_to_filename_for_display calls.
817 (line_info, forward_search_command): Replace symtab->filename
818 refererences by symtab_to_filename_for_display calls.
819 (reverse_search_command): Replace symtab->filename refererences by
820 symtab_to_filename_for_display calls. New variable filename for it.
821 * stack.c (frame_info): Likewise.
822 * symmisc.c: Include source.h.
823 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
824 (maintenance_info_symtabs): Replace symtab->filename refererences by
825 symtab_to_filename_for_display calls.
826 * symtab.c (iterate_over_some_symtabs): Call
827 compare_filenames_for_search also with symtab_to_fullname.
828 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
829 symtab->filename refererences by symtab_to_filename_for_display calls.
830 (find_line_symtab): Replace symtab->filename refererences by
831 symtab_to_filename_for_display calls.
832 (file_matches): Replace filename_cmp by compare_filenames_for_search.
833 (print_symbol_info): Make the last parameter const char *. New
834 variable s_filename. Use it in the function.
835 (symtab_symbol_info): Make the last_filename variable const char *.
836 Replace symtab->filename refererences by symtab_to_filename_for_display
837 calls.
838 (rbreak_command): New variable fullname. Use it. Replace
839 symtab->filename refererence by symtab_to_filename_for_display call.
840 * tracepoint.c (set_traceframe_context, trace_find_line_command)
841 (print_one_static_tracepoint_marker): Replace symtab->filename
842 refererences by symtab_to_filename_for_display calls.
843 * tui/tui-source.c (tui_set_source_content): New variables filename and
844 s_filename. Replace symtab->filename refererences by this variable.
845 Replace other symtab->filename refererences by
846 symtab_to_filename_for_display calls.
847
848 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
849 Jan Kratochvil <jan.kratochvil@redhat.com>
850
851 Add a new variable that controls a way in which filenames are
852 displayed.
853 * NEWS (set filename-display): New entry.
854 * source.c (filename_display_basename, filename_display_relative)
855 (filename_display_absolute, filename_display_kind_names)
856 (filename_display_string, show_filename_display_string)
857 (symtab_to_filename_for_display): New.
858 (_initialize_source): Added initialization of 'filename-display'
859 variable.
860 * source.h (symtab_to_filename_for_display): Added declaration.
861 * stack.c (print_frame): Added new variable and calling of a new
862 function and condition with this variable. Changed third argument of
863 calling of a function.
864
865 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
866
867 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
868 Rename field reference filename to fullname.
869 * tui/tui-data.h (struct tui_source_info): Rename field filename to
870 fullname. New comment for it.
871 * tui/tui-source.c (tui_set_source_content): Rename field reference
872 filename to fullname. Initialize field by symtab_to_fullname now.
873 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
874 reference filename to fullname. Use symtab_to_fullname during
875 comparison.
876
877 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
878
879 Code cleanup.
880 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
881 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
882 filename to fullname. Rename variable this_name to this_fullname.
883 Lowercase FILENAME_CMP call.
884 (dw2_find_symbol_file): New comment for the returned string.
885 (dwarf2_gdb_index_functions): Rename the function to
886 dw2_expand_symtabs_with_fullname.
887 * psymtab.c (read_psymtabs_with_filename): Rename to ...
888 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
889 fullname.
890 (psym_functions): Rename the function to read_psymtabs_with_fullname.
891 * symfile.h (struct quick_symbol_functions): Rename field
892 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
893 parameter filename to fullname. Document returned string meaning for
894 find_symbol_file.
895 * symtab.c (find_line_symtab): Rename the called function to
896 expand_symtabs_with_fullname.
897
898 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
899
900 Code cleanup.
901 * breakpoint.c (clear_command): Remove variable is_abs, unify the
902 call of filename_cmp with compare_filenames_for_search.
903 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
904 is_abs, unify the call of FILENAME_CMP with
905 compare_filenames_for_search. New gdb_asserts for real_path and name.
906 Unify the call of compare_filenames_for_search with FILENAME_CMP.
907 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
908 * symfile.h (struct quick_symbol_functions): Extend the comment for
909 map_symtabs_matching_filename.
910 * symtab.c (compare_filenames_for_search): Remove the function comment
911 relative path requirement. Handle absolute filenames, with a comment.
912 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
913 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
914 real_path and name. Unify the call of compare_filenames_for_search
915 with FILENAME_CMP.
916 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
917
918 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
919
920 Code cleanup.
921 * breakpoint.c (print_breakpoint_location): Replace bp_location field
922 source_file references by symtab field references. Remove variables
923 sal and fullname.
924 (momentary_breakpoint_from_master, add_location_to_breakpoint):
925 (clear_command, say_where): Replace bp_location field source_file
926 references by symtab field references.
927 (bp_location_dtor): Remove the source_file reference.
928 (update_static_tracepoint): Replace bp_location field source_file
929 references by symtab field references.
930 (breakpoint_free_objfile): New function.
931 * breakpoint.h (struct bp_location): Extend the comment for line_number.
932 Replace the field source_file by field symtab, extend its comment.
933 (breakpoint_free_objfile): New declaration.
934 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
935 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
936 field source_file references by symtab field references.
937
938 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
939
940 Replace xfullpath calls by gdb_realpath calls.
941 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
942 function comment.
943 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
944 Remove it from the iterate_over_some_symtabs call.
945 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
946 Remove it from the dw2_map_expand_apply calls, remove a block handling
947 it.
948 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
949 Remove it from the iterate_over_some_symtabs call.
950 (partial_map_symtabs_matching_filename): Remove parameter full_path.
951 Remove it from the partial_map_expand_apply calls, remove a block
952 handling it. Drop gdb_realpath call and cleanups from the real_path
953 handling.
954 * source.c (openp): Drop the comment part about xfullpath. Replace
955 xfullpath calls by gdb_realpath calls.
956 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
957 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
958 from method map_symtabs_matching_filename and its comment.
959 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
960 gdb_realpath call.
961 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
962 remove it also from the function comment, remove a block handling it.
963 Drop gdb_realpath call and cleanups from the real_path handling.
964 (iterate_over_symtabs): Drop variable full_path and its use.
965 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
966 * utils.c (xfullpath): Remove.
967 * utils.h (xfullpath): Remove.
968
969 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
970
971 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
972 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
973 (ALLDEPFILES): Add ppc64-tdep.c.
974 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
975 ppc64-tdep.o to gdb_target_obs.
976 * ppc64-tdep.h: New file.
977 * ppc64-tdep.c: New file.
978 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
979 ppc-linux-tdep.c to here.
980 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
981 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
982 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
983 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
984 from ppc-linux-tdep.c to here.
985 (ppc64_convert_from_func_ptr_addr): Rename from
986 ppc64_linux_convert_from_func_ptr_addr to
987 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
988 here.
989 * rs6000-tdep.c:
990 (read_insn): Move from ppc-linux-tdep.c to here.
991 (insns_match_pattern, insn_d_field, insn_ds_field): Move
992 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
993 * ppc-linux-tdep.c: Include ppc64-tdep.h.
994 Removed above functions.
995 (ppc_linux_init_abi): Adjust.
996
997 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
998
999 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
1000
1001 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
1002
1003 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
1004
1005 2013-02-01 Pedro Alves <palves@redhat.com>
1006
1007 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
1008 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
1009
1010 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1011
1012 * elfread.c (elf_symfile_read): Limit separate debug info additions to
1013 files with no separate debug info.
1014 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
1015 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
1016 only for files with no separate debug info.
1017
1018 2013-01-31 Tom Tromey <tromey@redhat.com>
1019
1020 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
1021 change type.
1022 (struct jit_program_space_data): Rename from jit_inferior_data.
1023 Update comments.
1024 (get_jit_program_space_data): Rename from get_jit_inferior_data.
1025 Change return type. Attach data to program space.
1026 (jit_program_space_data_cleanup): Rename from
1027 jit_inferior_data_cleanup; change argument type.
1028 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
1029 change type.
1030 (jit_register_code): Update.
1031 (jit_update_inferior_cache): Remove.
1032 (jit_breakpoint_deleted): Get jit data from the location's program
1033 space.
1034 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
1035 'ps_data', change type.
1036 (jit_inferior_init, jit_breakpoint_re_set_internal)
1037 (jit_event_handler): Update.
1038 (free_objfile_data): Get data from objfile's program space.
1039 (_initialize_jit): Update.
1040
1041 2013-01-31 Tom Tromey <tromey@redhat.com>
1042
1043 PR gdb/13987:
1044 * jit.c (struct jit_inferior_data) <cached_code_address,
1045 jit_breakpoint>: New fields.
1046 (jit_breakpoint_re_set_internal): Fix logging. Only create
1047 breakpoint if cached address has changed.
1048 (jit_update_inferior_cache, jit_breakpoint_deleted): New
1049 functions.
1050 (_initialize_jit): Register breakpoint deleted observer.
1051
1052 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1053
1054 * infrun.c (handle_syscall_event): Remove unused gdbarch.
1055 (save_infcall_suspend_state): Ifdef out unused inf.
1056 (restore_infcall_suspend_state): Ifdef out unused inf.
1057 * jit.c (jit_register_code): Remove unused i, b, inf_data.
1058 (jit_frame_sniffer): Remove unused inf_data.
1059
1060 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1061
1062 * c-exp.y (classify_inner_name): Remove unused type.
1063 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
1064 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
1065 need_escape.
1066 (c_get_string): Remove unused kind.
1067 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
1068
1069 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1070
1071 * charset.c (intermediate_encoding): Remove unused i.
1072 * completer.c (signal_completer): Remove unused i.
1073 * continuations.c (discard_my_continuations_1): Remove unused
1074 continuation_ptr.
1075 * corelow.c (core_close): Remove unuseD name.
1076 (get_core_siginfo): Remove unused pid.
1077 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
1078 i, cps.
1079 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
1080 (loclist_describe_location): Remove unused first.
1081 * event-top.c (command_line_handler): Remove unused got_eof.
1082 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
1083 (resize_section_table): Remove unused old_value.
1084 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
1085 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
1086 * i386-tdep.c (i386_process_record): Remove unused rex.
1087 * infcmd.c (get_return_value): Remove unused uiout.
1088 * jv-lang.c (type_from_class): Remove unused is_array.
1089 * jv-valprint.c (java_val_print): Remove unused i.
1090 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
1091 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
1092 * m2-typeprint.c (m2_print_type): Remove unused code.
1093 * macroexp.c (get_character_constant): Remove unused body_start.
1094 (macro_stringify): Remove unused result.
1095 * objc-lang.c (find_methods): Remove unused gdbarch.
1096 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
1097 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
1098 * stack.c (print_frame_args): Remove unused summary.
1099 * thread.c (thread_apply_command): Remove unused p.
1100 * valarith.c (value_x_unop): Remove unused mangle_ptr.
1101 * valops.c (search_struct_method): Remove unused skip.
1102 * valprint.c (generic_val_print): Remove unused byte_order.
1103 * varobj.c (varobj_update): Remove unused changed.
1104 * cli/cli-cmds.c (complete_command): Remove unused next_item.
1105 (alias_command): Remove unused c.
1106 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
1107 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
1108 format.
1109 (mi_cmd_data_write_memory): Remove unused word_format.
1110 (mi_cmd_data_write_memory_bytes): Remove unused r.
1111 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
1112 p_start, p_end.
1113 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
1114 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
1115 line_width.
1116
1117 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1118
1119 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
1120 * symtab.c (iterate_over_symtabs): Remove unused s.
1121 (find_pc_sect_symtab): Remove unused pspAce.
1122 (find_pc_sect_line): Remove unused alt_symtab.
1123 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
1124 (completion_list_add_name): Remove unused newsize.
1125
1126 2013-01-31 Tom Tromey <tromey@redhat.com>
1127
1128 PR c++/14998:
1129 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
1130 TYPE_CODE_FUNC.
1131
1132 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1133
1134 * target.c (target_read_string): Remove unused origlen.
1135
1136 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1137
1138 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
1139 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
1140 * ax-general.c (ax_print): Remove unused is_float.
1141 * blockframe.c (block_innermost_frame): Remove unused start, end.
1142 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
1143
1144 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1145
1146 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
1147 (svr4_read_so_list): Remove unused lmo.
1148 * solib-target.c (solib_target_relocate_section_addresses): Remove
1149 unused flags.
1150
1151 2013-01-30 Tom Tromey <tromey@redhat.com>
1152
1153 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
1154
1155 2013-01-30 Tom Tromey <tromey@redhat.com>
1156
1157 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
1158 * utils.c (gnu_debuglink_crc32): Remove.
1159 * utils.h (gnu_debuglink_crc32): Don't declare.
1160
1161 2013-01-30 Tom Tromey <tromey@redhat.com>
1162
1163 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
1164 (read_structure_type, read_enumeration_type): Remove cast.
1165
1166 2013-01-30 Tom Tromey <tromey@redhat.com>
1167
1168 * dwarf2read.c (read_namespace_type): Remove cast.
1169 (read_typedef): Likewise.
1170
1171 2013-01-29 Tom Tromey <tromey@redhat.com>
1172
1173 * dwarf2read.c (free_dwo_file): Remove assert.
1174
1175 2013-01-29 Tom Tromey <tromey@redhat.com>
1176
1177 * value.c (deprecated_set_value_modifiable): Remove.
1178 * value.h (deprecated_set_value_modifiable): Remove.
1179
1180 2013-01-28 Doug Evans <dje@google.com>
1181
1182 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
1183 to addresses from dwo files.
1184
1185 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
1186
1187 * valops.c (find_overload_match): Remove unused argument 'lax'.
1188 * value.h: Remove unused argument 'lax' from the declaration of
1189 find_overload_match.
1190 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
1191 to find_overload_match.
1192 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
1193 argument to find_overload_match.
1194
1195 2013-01-25 Tom Tromey <tromey@redhat.com>
1196
1197 * dwarf2read.c (processing_has_namespace_info): Remove.
1198 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
1199 (process_die, read_func_scope, dwarf2_start_symtab)
1200 (new_symbol_full): Update.
1201
1202 2013-01-25 Tom Tromey <tromey@redhat.com>
1203
1204 * cp-namespace.c (cp_set_block_scope): Remove.
1205 * cp-support.h (cp_set_block_scope): Remove.
1206 * dbxread.c: Include block.h.
1207 (cp_set_block_scope): New function.
1208 (process_one_symbol): Update.
1209 * dwarf2read.c (read_func_scope): Use block_set_scope.
1210
1211 2013-01-25 Pedro Alves <palves@redhat.com>
1212
1213 * remote.c (add_current_inferior_and_thread): Tweak comment.
1214
1215 2013-01-25 Tom Tromey <tromey@redhat.com>
1216
1217 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1218 (cp_add_using_directive): Add 'copy_names' argument.
1219 * cp-support.h (cp_add_using_directive): Update.
1220 (struct using_direct) <import_src, import_dest, alias,
1221 declaration>: Now const.
1222 * dwarf2read.c (read_import_statement): Use obconcat.
1223 Don't copy names passed to cp_add_using_directive.
1224
1225 2013-01-25 Tom Tromey <tromey@redhat.com>
1226
1227 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
1228
1229 2013-01-25 Pedro Alves <palves@redhat.com>
1230
1231 * remote.c (stop_reply_extract_thread): New.
1232 (add_current_inferior_and_thread): New parameter 'wait_status'.
1233 Handle it.
1234 (remote_start_remote): Pass wait status to
1235 add_current_inferior_and_thread.
1236 (extended_remote_run): Update comment.
1237 (extended_remote_create_inferior_1): Pass wait status to
1238 add_current_inferior_and_thread.
1239
1240 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
1241 Ulrich Weigand <uweigand@de.ibm.com>
1242
1243 * valarith.c (value_vector_widen): New function for replicating a
1244 scalar into a vector.
1245 (value_binop): Use value_vector_widen to widen scalar to vector
1246 rather than casting, this better matches gcc C behaviour.
1247 * valops.c (value_casst): Update logic for casting between vector
1248 types, and for casting from scalar to vector, try to match gcc C
1249 behaviour.
1250 * value.h (value_vector_widen): Declare.
1251 * opencl-lang.c (opencl_value_cast): New opencl specific casting
1252 function, handle special case for casting scalar to vector.
1253 (opencl_relop): Use opencl_value_cast.
1254 (evaluate_subexp_opencl): Use opencl_value_cast instead of
1255 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
1256 in order to use opencl_value_cast.
1257
1258 2013-01-25 Yao Qi <yao@codesourcery.com>
1259
1260 * event-loop.c: Include "queue.h".
1261 (gdb_event_p): New typedef.
1262 (DECLARE_QUEUE_P): Use.
1263 (DEFINE_QUEUE_P): Use.
1264 (async_queue_event): Remove.
1265 (gdb_event_xfree): New.
1266 (initialize_event_loop): New.
1267 (process_event): Use QUEUE macros.
1268 (event_queue): Remove.
1269 (gdb_wait_for_event): Caller update.
1270 (check_async_event_handlers): Likewise.
1271 (poll_timers): Likewise.
1272 * event-loop.h (initialize_event_loop): Declare.
1273 * event-loop.c (gdb_event_xfree): New.
1274 * top.c (gdb_init): Call initialize_event_loop.
1275
1276 2013-01-25 Yao Qi <yao@codesourcery.com>
1277
1278 * event-loop.c (async_queue_event): Remove one parameter
1279 'position'. Remove code handling 'position' == TAIL.
1280 (gdb_wait_for_event): Caller update.
1281 (check_async_event_handlers): Caller update.
1282 (poll_timers): Caller update.
1283 * event-loop.h (enum queue_position): Remove.
1284
1285 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
1286
1287 * MAINTAINERS: Update my email.
1288
1289 2013-01-25 Yao Qi <yao@codesourcery.com>
1290
1291 * main.c (print_gdb_help): Remove "--epoch" from the help
1292 message.
1293
1294 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
1295
1296 * symtab.c (skip_prologue_using_sal): Consider a file
1297 change the same as an increased line number
1298
1299 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
1300
1301 * MAINTAINERS (Write After Approval): Add myself to the list.
1302
1303 2013-01-24 Tom Tromey <tromey@redhat.com>
1304
1305 * ada-lang.h (ada_decode_symbol): Make return type const.
1306 * ada-lang.c (ada_decode_symbol): Likewise.
1307
1308 2013-01-23 Doug Evans <dje@google.com>
1309
1310 * linespec.c (find_linespec_symbols): Make static.
1311
1312 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1313
1314 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
1315 type on float conversion for complex type.
1316
1317 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
1318
1319 Add a new class gdb.Architecture which exposes GDB's
1320 internal representation of architecture via GDB Python API.
1321 * Makefile.in: Add entries corresponding to the new file
1322 python/py-arch.c.
1323 * NEWS (Python Scripting): Add entries for the new class
1324 gdb.Architecture and the new method gdb.Frame.architecture.
1325 * python/py-arch.c: Implement gdb.Architecture class.
1326 * python/py-frame.c (frapy_arch): Implement the method
1327 gdb.Frame.architecture().
1328 (frame_object_methods): Add 'architecture' to the method table.
1329 * python/python-internal.h: Add declarations of new utility
1330 functions.
1331 * python/python.c (_initialize_python): Initialize
1332 gdb.Architecture class.
1333
1334 2013-01-23 Doug Evans <dje@google.com>
1335
1336 Work around binutils/15021.
1337 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
1338 type_unit_group out of union s. All uses updated.
1339 (read_index_from_section): Watch for index version 8.
1340 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
1341 an imported symtab.
1342 (write_psymtabs_to_index): Increment version number to 8.
1343
1344 2013-01-22 Pedro Alves <palves@redhat.com>
1345
1346 * annotate.c (breakpoint_changed): Skip if breakpoint is not
1347 user-visible.
1348
1349 2013-01-22 Pedro Alves <palves@redhat.com>
1350
1351 * annotate.c (annotate_breakpoints_changed): Rename to ...
1352 (annotate_breakpoints_invalid): ... this. Make static.
1353 (breakpoint_changed): Adjust.
1354 (_initialize_annotate): Always install the observers. Install a
1355 "breakpoint_created" observer.
1356 * annotate.h (annotate_breakpoints_changed): Delete declaration.
1357 * breakpoint.c (set_breakpoint_condition)
1358 (breakpoint_set_commands, do_map_commands_command)
1359 (init_raw_breakpoint, clear_command, set_ignore_count)
1360 (enable_breakpoint_disp): No longer call
1361 annotate_breakpoints_changed.
1362
1363 2013-01-22 Pedro Alves <palves@redhat.com>
1364
1365 * annotate.c: Include "inferior.h".
1366 (frames_invalid_emitted)
1367 (breakpoints_invalid_emitted): New globals.
1368 (async_background_execution_p): New function.
1369 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
1370 emitting the annotation if it has already been emitted.
1371 (annotate_display_prompt): New function.
1372 * annotate.h (annotate_display_prompt): New declaration.
1373 * event-top.c: Include annotate.h.
1374 (display_gdb_prompt): Call annotate_display_prompt.
1375
1376 2013-01-22 Pedro Alves <palves@redhat.com>
1377
1378 * annotate.c (ignore_count_changed): Delete.
1379 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
1380 (annotate_ignore_count_change): Delete.
1381 (annotate_stopped): Don't emit a delayed breakpoints-changed
1382 annotation.
1383 * annotate.h (annotate_ignore_count_change): Delete.
1384 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
1385 annotate_ignore_count_change.
1386
1387 2013-01-22 Tom Tromey <tromey@redhat.com>
1388
1389 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
1390 require_rvalue for a register location.
1391
1392 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
1393
1394 * breakpoint.c (print_one_breakpoint_location): Add MI
1395 field 'thread-groups' when printing a breakpoint.
1396 (output_thread_groups): New function.
1397
1398 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
1399
1400 * python/lib/gdb/commands/explore.py
1401 (CompoundExplorer.explore_expr): Correct the name of a method
1402 being invoked.
1403 (ExploreTypeCommand.invoke): Add a missing 'return'.
1404
1405 2013-01-21 Tom Tromey <tromey@redhat.com>
1406
1407 * gdb_obstack.h (obconcat): Move declaration here, from...
1408 * symfile.h (obconcat): ... here.
1409 * gdb_obstack.c: New file.
1410 (obconcat): Move from...
1411 * symfile.c (obconcat): ... here.
1412 * Makefile.in (SFILES): Add gdb_obstack.c.
1413 (COMMON_OBS): Add gdb_obstack.o.
1414
1415 2013-01-21 Tom Tromey <tromey@redhat.com>
1416
1417 * symfile.h (obsavestring): Don't declare.
1418 * symfile.c (obsavestring): Remove.
1419 * ada-exp.y: Use obstack_copy0, not obsavestring.
1420 * ada-lang.c: Use obstack_copy0, not obsavestring.
1421 * coffread.c: Use obstack_copy0, not obsavestring.
1422 * cp-namespace.c: Use obstack_copy0, not obsavestring.
1423 * dbxread.c: Use obstack_copy0, not obsavestring.
1424 * dwarf2read.c: Use obstack_copy0, not obsavestring.
1425 * jit.c: Use obstack_copy0, not obsavestring.
1426 * mdebugread.c: Use obstack_copy0, not obsavestring.
1427 * psymtab.c: Use obstack_copy0, not obsavestring.
1428 * stabsread.c: Use obstack_copy0, not obsavestring.
1429 * xcoffread.c: Use obstack_copy0, not obsavestring.
1430
1431 2013-01-21 Tom Tromey <tromey@redhat.com>
1432
1433 * dwarf2read.c (fixup_go_packaging): Save package name
1434 on objfile obstack.
1435 * gdbtypes.c (init_type): Don't copy name.
1436
1437 2013-01-21 Tom Tromey <tromey@redhat.com>
1438
1439 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
1440 const.
1441 (struct attribute) <u.str>: Now const.
1442 (struct fnfieldlist) <name>: Now const.
1443 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
1444 (partial_die_parent_scope): Make return type const.
1445 (partial_die_full_name, add_partial_symbol): Update.
1446 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
1447 'name' const.
1448 (find_file_and_directory): Make 'name' and 'comp_dir' const.
1449 (read_file_scope, read_func_scope, dwarf2_add_field)
1450 (dwarf2_add_member_fn, read_structure_type)
1451 (process_enumeration_scope, read_array_type, read_module_type)
1452 (read_base_type, read_subrange_type): Update.
1453 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
1454 (new_symbol_full, guess_full_die_structure_name): Update.
1455 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
1456 (dwarf2_name): Return const type.
1457 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
1458 const.
1459
1460 2013-01-21 Tom Tromey <tromey@redhat.com>
1461
1462 * gdbtypes.c (init_type): Make 'name' const.
1463 * gdbtypes.h (init_type): Update.
1464
1465 2013-01-21 Tom Tromey <tromey@redhat.com>
1466
1467 * buildsym.c (patch_subfile_names): Use set_last_source_file.
1468 (start_symtab): Make 'name' and 'dirname' const. Use
1469 set_last_source_file.
1470 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
1471 (last_source_file): Define. Now static.
1472 (set_last_source_file, get_last_source_file): New functions.
1473 * buildsym.h (last_source_file): Don't declare.
1474 (start_symtab): Update.
1475 (set_last_source_file, get_last_source_file): Declare.
1476 * coffread.c (complete_symtab): Use set_last_source_file.
1477 (coff_end_symtab): Likewise.
1478 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
1479 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
1480 set_last_source_file.
1481 (process_one_symbol): Use get_last_source_file.
1482 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
1483 (psymtab_to_symtab_1): Use get_last_source_file.
1484 * xcoffread.c (process_linenos): Use get_last_source_file.
1485 (complete_symtab): Use set_last_source_file.
1486 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
1487 (scan_xcoff_symtab): Use set_last_source_file.
1488
1489 2013-01-21 Tom Tromey <tromey@redhat.com>
1490
1491 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
1492 (symbol_set_names): Remove casts. Handle field const-ness.
1493
1494 2013-01-21 Tom Tromey <tromey@redhat.com>
1495
1496 * dwarf2read.c (new_symbol_full): Remove cast.
1497 * symtab.c (symbol_set_demangled_name): Make 'name' const.
1498 * symtab.h (symbol_set_demangled_name): Update.
1499
1500 2013-01-21 Tom Tromey <tromey@redhat.com>
1501
1502 * main.c (captured_main): Call bfd_init.
1503
1504 2013-01-21 Tom Tromey <tromey@redhat.com>
1505
1506 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
1507 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
1508 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
1509 * NEWS: Update.
1510
1511 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1512
1513 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
1514
1515 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1516
1517 Fix gdb.fortran/common-block.exp crash in PIE mode.
1518 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
1519 LOC_COMMON_BLOCK.
1520 * f-valprint.c (info_common_command_for_block): Expect
1521 LOC_COMMON_BLOCK in gdb_assert.
1522 * symtab.h (struct general_symbol_info): Update comment for the
1523 common_block member.
1524 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
1525 (enum address_class): New member LOC_COMMON_BLOCK.
1526
1527 2013-01-18 David Blaikie <dblaikie@gmail.com>
1528
1529 * MAINTAINERS (Write After Approval): Add "David Blaikie".
1530
1531 2013-01-18 Tom Tromey <tromey@redhat.com>
1532
1533 PR c++/14999:
1534 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
1535 Call require_rvalue.
1536
1537 2013-01-18 Yao Qi <yao@codesourcery.com>
1538
1539 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
1540 (dbx_read_symtab): New declaration.
1541 (dbx_psymtab_to_symtab): Delete.
1542 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
1543 Rename parameter PST to SELF. Exchanged two parameters.
1544 (start_psymtab): Caller update.
1545 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
1546 (dwarf2_read_symtab): New declaration.
1547 (dwarf2_psymtab_to_symtab): Delete.
1548 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
1549 Rename parameter PST to SELF. Exchanged two parameters.
1550 (create_partial_symtab): Caller update.
1551 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
1552 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
1553 Rename parameter PST to SELF. Exchanged two parameters.
1554 (parse_partial_symbols, new_psymtab): Caller update.
1555 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
1556 two parameters.
1557 * psymtab.c (psymtab_to_symtab): Caller update.
1558 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
1559 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
1560 Rename parameter PST to SELF. Exchanged two parameters.
1561 (xcoff_start_psymtab): Caller update.
1562
1563 2013-01-18 Yao Qi <yao@codesourcery.com>
1564
1565 * infrun.c (proceed): Rename local variable 'oneproc' to
1566 'force_step'.
1567
1568 2013-01-17 Doug Evans <dje@google.com>
1569
1570 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
1571 (dw2_build_type_unit_groups): Delete. All uses updated.
1572
1573 * symtab.h (struct symbol_search): Add comment.
1574
1575 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1576
1577 * symtab.c (compare_filenames_for_search): New comment for
1578 HAS_DRIVE_SPEC.
1579
1580 2013-01-17 Tom Tromey <tromey@redhat.com>
1581
1582 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
1583
1584 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1585
1586 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
1587 initialize it by existing make_cleanup. Call new do_cleanups.
1588
1589 2013-01-17 Tom Tromey <tromey@redhat.com>
1590
1591 * cp-abi.c (cp_abi_completer): New function.
1592 (_initialize_cp_abi): Set completer for "set cp-abi".
1593
1594 2013-01-17 Tom Tromey <tromey@redhat.com>
1595
1596 * mem-break.c: Remove obsolete comment.
1597 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
1598
1599 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1600
1601 * jit.c (jit_reader_load_command): Interpret the jit reader name
1602 as an absolute path if it begins with a forward slash.
1603
1604 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1605
1606 PR gdb/14550
1607
1608 * jit.c (finalize_symtab): Ensure that only the global block has a
1609 NULL superblock.
1610
1611 2013-01-17 Pedro Alves <palves@redhat.com>
1612
1613 * acinclude.m4: Include ../config/plugins.m4,
1614 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
1615 * Makefile.in (aclocal_m4_deps): Update.
1616 * aclocal.m4: Renegerate.
1617
1618 2013-01-16 Doug Evans <dje@google.com>
1619
1620 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
1621
1622 2013-01-16 Pedro Alves <palves@redhat.com>
1623 Tom Tromey <tromey@redhat.com>
1624
1625 PR cli/7221:
1626 * NEWS: Add "catch signal".
1627 * breakpoint.c (base_breakpoint_ops): No longer static.
1628 (bpstat_explains_signal): New function.
1629 (init_catchpoint): No longer static.
1630 (base_breakpoint_explains_signal): New function.
1631 (base_breakpoint_ops): Initialize new field.
1632 * breakpoint.h (enum bpstat_signal_value): New.
1633 (struct breakpoint_ops) <explains_signal>: New field.
1634 (bpstat_explains_signal): Remove macro, declare as function.
1635 (base_breakpoint_ops, init_catchpoint): Declare.
1636 * break-catch-sig.c: New file.
1637 * inferior.h (signal_catch_update): Declare.
1638 * infrun.c (signal_catch): New global.
1639 (handle_syscall_event): Update for change to
1640 bpstat_explains_signal.
1641 (handle_inferior_event): Likewise. Always handle random signals
1642 via bpstats.
1643 (signal_cache_update): Check signal_catch.
1644 (signal_catch_update): New function.
1645 (_initialize_infrun): Initialize signal_catch.
1646 * Makefile.in (SFILES): Add break-catch-sig.c.
1647 (COMMON_OBS): Add break-catch-sig.o.
1648
1649 2013-01-16 Tom Tromey <tromey@redhat.com>
1650
1651 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
1652 (print_one_catch_solib, print_one_catch_syscall)
1653 (print_one_catch_exec, print_one_exception_catchpoint): Emit
1654 "catch-type".
1655
1656 2013-01-16 Yao Qi <yao@codesourcery.com>
1657
1658 * printcmd.c (current_display_number): Make it static.
1659
1660 2013-01-16 Yao Qi <yao@codesourcery.com>
1661
1662 * infcmd.c (step_once): Don't check '!single_inst' as it was
1663 checked before.
1664
1665 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1666
1667 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
1668
1669 2013-01-14 Tom Tromey <tromey@redhat.com>
1670
1671 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
1672 set command.
1673 * command.h (add_setshow_string_noescape_cmd): Update.
1674 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
1675 (complete_set_gnutarget): New function.
1676 (_initialize_core): Set the "set gnutarget" completer.
1677
1678 2013-01-14 Tom Tromey <tromey@redhat.com>
1679
1680 PR symtab/14442:
1681 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
1682 (c_type_print_modifier): Likewise.
1683 * dwarf2read.c (read_tag_restrict_type): New function.
1684 (read_type_die_1): Handle DW_TAG_restrict_type.
1685 * gdbtypes.c (make_restrict_type): New function.
1686 (recursive_dump_type): Handle TYPE_RESTRICT.
1687 * gdbtypes.h (enum type_flag_values): Renumber.
1688 (enum type_instance_flag_value): Add
1689 TYPE_INSTANCE_FLAG_RESTRICT.
1690 (TYPE_RESTRICT): New macro.
1691 (make_restrict_type): Declare.
1692
1693 2013-01-14 Tom Tromey <tromey@redhat.com>
1694
1695 PR symtab/14931:
1696 * psymtab.c (struct psymtab_state): New.
1697 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
1698 functions.
1699 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
1700 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
1701
1702 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
1703 Pedro Alves <palves@redhat.com>
1704
1705 PR remote/14786
1706
1707 * remote.c (remote_threads_info): Make a copy of the reply from
1708 qfThreadInfo and use that instead of rs->buf.
1709
1710 2013-01-14 Yao Qi <yao@codesourcery.com>
1711
1712 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
1713 (dbx_psymtab_to_symtab): Likewise.
1714 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
1715 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
1716 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
1717
1718 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1719
1720 * parse.c (parse_exp_in_context): New variable inner_chain. Call
1721 make_cleanup_restore_current_language. Call set_language. Move
1722 OLD_CHAIN and INNER_CHAIN cleanups.
1723 * utils.c (do_restore_current_language)
1724 (make_cleanup_restore_current_language): New functions.
1725 * utils.h (make_cleanup_restore_current_language): New declaration.
1726
1727 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1728
1729 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
1730 non-existing files.
1731
1732 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
1733 non-existing files if FILENAME is already absolute.
1734
1735 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1736
1737 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
1738 fputs_filtered. Append trailing newline.
1739
1740 2013-01-11 Yao Qi <yao@codesourcery.com>
1741 Stan Shebs <stan@codesourcery.com>
1742
1743 * psymtab.c (init_psymbol_list): Clarify the comment.
1744
1745 2013-01-11 Yao Qi <yao@codesourcery.com>
1746
1747 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
1748 (update_dprintf_command_list): Assert that 'printf_line' is
1749 non-null. Remove condition check.
1750
1751 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1752
1753 Code cleanup.
1754 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
1755 type const char *.
1756 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
1757 const char *.
1758 * tui/tui-source.h (tui_source_is_displayed): Likewise.
1759
1760 2013-01-09 Anthony Green <green@moxielogic.com>
1761
1762 * cp-abi.c (cplus_print_vtable): Don't return value from void
1763 function.
1764 * ada-lang.c (re_set_catch_assert): Ditto.
1765
1766 2013-01-09 Doug Evans <dje@google.com>
1767
1768 * symfile.h (quick_symbol_functions): Delete member
1769 pre_expand_symtabs_matching. All uses removed.
1770 * dwarf2read.c (dw2_lookup_symbol): Implement.
1771 (dw2_do_expand_symtabs_matching): Delete.
1772 (dw2_pre_expand_symtabs_matching): Delete.
1773 (struct dw2_symtab_iterator): New type.
1774 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
1775 (dw2_expand_symtabs_for_function): Rewrite.
1776 (dwarf2_gdb_index_functions): Update.
1777 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
1778 (psym_functions): Update.
1779
1780 2013-01-09 Tom Tromey <tromey@redhat.com>
1781
1782 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
1783 * configure: Rebuild.
1784 * configure.ac: Add somread.o to the build if BFD has SOM
1785 support.
1786 * somread.c: Include som/aout.h, not syms.h.
1787 (som_symtab_read): Use som_external_symbol_dictionary_record.
1788 Unpack records manually.
1789 (_initialize_somread): Declare.
1790
1791 2012-01-08 Mike Frysinger <vapier@gentoo.org>
1792
1793 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
1794 Cast return_address to 64bits.
1795
1796 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
1797
1798 * printcmd.c: Remove define of function output_command.
1799 * tracepoint.c: Remove extern of function output_command.
1800 * valprint.h: (output_command): New extern.
1801
1802 2013-01-07 Tom Tromey <tromey@redhat.com>
1803
1804 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
1805 Remove.
1806 (objc_language_defn): Use c_printchar, c_printstr,
1807 c_emit_char.
1808
1809 2013-01-07 Tom Tromey <tromey@redhat.com>
1810
1811 PR cli/7719:
1812 * NEWS: Update.
1813 * ada-valprint.c (printstr, print_field_values): Remove
1814 "inspect_it" code.
1815 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
1816 code.
1817 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
1818 code.
1819 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
1820 * main.c (captured_main): Remove "epoch" argument.
1821 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
1822 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
1823 * p-valprint.c (pascal_object_print_value_fields): Remove
1824 "inspect_it" code.
1825 * printcmd.c (print_command_1): Remove 'inspect' argument.
1826 (print_command, call_command): Update.
1827 (inspect_command): Remove.
1828 (_initialize_printcmd): Make "inspect" an alias for "print".
1829 * top.c (epoch_interface): Remove.
1830 * top.h (epoch_interface): Remove.
1831 * valprint.c (user_print_options): Update.
1832 (print_converted_chars_to_obstack): Remove "inspect_it" code.
1833 * valprint.h (struct value_print_options) <inspect_it>: Remove
1834 field.
1835
1836 2013-01-04 Tom Tromey <tromey@redhat.com>
1837
1838 * valprint.h (read_string): Add 'extern'.
1839
1840 2013-01-07 Joel Brobecker <brobecker@adacore.com>
1841
1842 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
1843 used to decide whether to define darwin_read_dyld_info or not.
1844
1845 2013-01-03 Pierre Muller <muller@sourceware.org>
1846
1847 * main.c (relocate_gdb_directory): Avoid calling stat function
1848 if DIR is empty.
1849
1850 2013-01-03 Yao Qi <yao@codesourcery.com>
1851
1852 * psymtab.c (fixup_psymbol_section): Update declaration.
1853 (fixup_psymbol_section): Remove code returning value.
1854
1855 2013-01-03 Yao Qi <yao@codesourcery.com>
1856
1857 * symtab.h: Remove some out of date comments.
1858 (enum exception_event_kind): Move it ...
1859 * breakpoint.c: ... here.
1860
1861 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1862
1863 PR gdb/14405
1864 * darwin-nat.c (darwin_read_dyld_info): Only build if
1865 TASK_DYLD_INFO_COUNT is defined.
1866 (darwin_xfer_partial): Call darwin_read_dyld_info only if
1867 TASK_DYLD_INFO_COUNT is defined.
1868
1869 2013-01-02 Tom Tromey <tromey@redhat.com>
1870
1871 * symfile.h (struct ecoff_debug_hack): Remove.
1872 * objfiles.c: Don't include mdebugread.h.
1873
1874 2013-01-02 Tom Tromey <tromey@redhat.com>
1875
1876 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
1877 * configure.ac: Check for Mach-O support in BFD. Update
1878 CONFIG_OBS.
1879 * configure: Rebuild.
1880
1881 2013-01-02 Tom Tromey <tromey@redhat.com>
1882
1883 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
1884 * configure.ac: Use GDB_AC_CHECK_BFD.
1885 * configure: Rebuild.
1886
1887 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
1888
1889 * MAINTAINERS: Update my email.
1890
1891 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1892
1893 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
1894
1895 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1896
1897 * rs6000-nat.c (bss_data_overlap): New function.
1898 (vmap_symtab): Use it to adjust the .bss section's offset.
1899
1900 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1901
1902 Update year range in copyright notice of all files.
1903
1904 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
1905
1906 * top.c (print_gdb_version): Update copyright year.
1907
1908 For older changes see ChangeLog-2012.
1909 \f
1910 Local Variables:
1911 mode: change-log
1912 left-margin: 8
1913 fill-column: 74
1914 version-control: never
1915 coding: utf-8
1916 End:
This page took 0.075901 seconds and 3 git commands to generate.