aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
AgeCommit message (Collapse)AuthorFilesLines
2001-04-19Obsolete MPW as host.Andrew Cagney1-12/+12
2001-03-23* defs.h (xfree, mcalloc, mmalloc, mrealloc, mfree, xmmalloc,Andrew Cagney1-52/+64
xmrealloc): Move existing declarations to the one place and re-order to be consistent. (xmcalloc, xmfree): Declare. (xmmalloc, xmrealoc): Assume ISO-C - use size_t and void* in declaration. * utils.c (size_t): Delete #ifdef defining size_t. (mmalloc, mrealloc, mcalloc, mfree): Re-order. (mmalloc, mrealloc, mcalloc): Document as only calls in GDB corresponding malloc, realloc, calloc. (mfree): Call free directly. (xmmalloc, xmrealloc): Clean up. Assume ISO-C. (xmcalloc, xmfree): New functions. Copy old xcalloc and xfree function bodies to here. (xcalloc, xfree): Call xmcalloc and xmfree respectfully.
2001-03-20malloc() -> xmalloc.Andrew Cagney1-0/+3
Move malloc() decl to utils.c
2001-03-20Move realoc() decl to utils.c. s/realloc()/xrealloc()/.Andrew Cagney1-0/+3
2001-03-20Move free() decl to utils.c.Andrew Cagney1-1/+7
2001-03-10Committed.Kevin Buettner1-10/+26
2001-03-07* defs.h: Provide prototypes for floatformat_is_negative,Mark Kettenis1-0/+101
floatformat_is_nan and floatformat_mantissa. * utils.c: Include "gdb_assert.h". (floatformat_is_negative): New function. (floatformat_is_nan): New function. (floatformat_mantissa): New function. * valprint.c: Include "floatformat.h". (print_floating): Get rid of the Linux-specific TARGET_ANALYZE_FLOATING macro and rewrite NaN detection with the help these new functions. Print NaN's in a format conforming to ISO C99.
2001-03-072001-03-06 J.T. Conklin <jtc@redback.com>J.T. Conklin1-2/+2
* symtab.h (decode_line_1): Removed declaration. * symfile.c (#include <assert.h>): Removed. * arch-utils.c (#include <ctype.h>): Removed. * c-typeprint.c: Likewise. * dbxread.c: Likewise. * gdbtypes.c: Likewise. * target.c: Likewise. * os9kread.c: Likewise. * c-valprint.c (#include "demangle.h"): Removed. * ch-typeprint.c: Likewise. * eval.c: Likewise. * f-typeprint.c: Likewise. * f-valprint.c: Likewise. * m2-typeprint.c: Likewise. * typeprint.c: Likewise. * p-typeprint.c: Likewise. * valarith.c: Likewise. * valprint.c: Likewise. * m2-typeprint.c (#include "gdb_string.h"): Removed. * nlmread.c: Likewise. * mdebugread.c (#include "gdb-stabs.h"): Removed. * minsyms.c: Likewise. * mipsread.c: Likewise. * nlmread.c: Likewise. * m2-typeprint.c (#include "obstack.h"): Removed. * m2-valprint.c: Likewise. * event-loop.c (#include <setjmp.h>): Removed.
2001-03-06Update/correct copyright notices.Kevin Buettner1-1/+2
2001-02-25Replace calls to abort() with calls to internal_error().Kevin Buettner1-6/+6
2001-02-08Add __FILE__ and __LINE__ parameter to internal_error() /Andrew Cagney1-13/+21
internal_verror().
2001-02-07* sol-thread.c (restore_inferior_pid): Save the PID in a freshlyAndrew Cagney1-3/+6
allocated buffer. (save_inferior_pid): Restore the PID from that tempoary buffer. Delete the buffer. * utils.c (make_cleanup_close, do_close_cleanup): Ditto for FD.
2001-02-06* signals.h: Removed.J.T. Conklin1-1/+1
* event-top.c (#include <signal.h>): Changed from signals.h. * inflow.c: Likewise. * mac-xdep.c: Likewise. * ser-pipe.c: Likewise. * ser-tcp.c: Likewise. * standalone.c: Likewise. * top.c: Likewise. * utils.c: Likewise. * Makefile.in: Removed signals.h from dependencies.
2001-01-31Move putchar_filtered() to utils.c.Andrew Cagney1-0/+9
2001-01-31Replace strsave() with xstrdup().Andrew Cagney1-10/+1
2000-12-15Replace free() with xfree().Kevin Buettner1-15/+25
2000-12-052000-12-04 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder1-1/+1
* utils.c (internal_verror): Fix typo in error msg.
2000-11-20Replace asprintf() / vasprintf() with xasprintf() xvasprintf().Andrew Cagney1-12/+31
2000-11-15 * utils.c (strlen_paddr, paddr, paddr_nz): Use TARGET_ADDR_BIT,David Taylor1-3/+3
not TARGET_PTR_BIT, since we are dealing with addresses, not pointers.
2000-11-04Protoization.Kevin Buettner1-15/+9
2000-10-23Corrected spelling errors in commentsDavid Anderson1-1/+1
2000-07-30Protoization.Kevin Buettner1-208/+92
2000-06-152000-06-15 Michael Snyder <msnyder@cygnus.com>Michael Snyder1-1/+1
* utils.c: Fix comment typo.
2000-06-04Add host_pointer_to_address() and address_to_host_pointer(). AddAndrew Cagney1-0/+23
signed_pointer_to_address() etc. Rename generic_pointer_to_address() to unsigned_pointer_to_address() etc.
2000-06-04Eliminate safe_strsignal().Andrew Cagney1-20/+0
2000-06-04Eliminate PARAMS from function pointer declarations.Kevin Buettner1-5/+5
2000-05-28PARAMS removal.Kevin Buettner1-20/+13
2000-05-23Add make_cleanup_close() function.Andrew Cagney1-0/+13
2000-05-22Replace preg() with phex(). Cleanup monitor.c.Andrew Cagney1-81/+30
2000-05-16Make free_current_contents more robust. Use in MI.Andrew Cagney1-1/+6
2000-05-16Cleanup bfd_close() cleanups.Andrew Cagney1-0/+12
2000-05-15Move core_addr_lessthan and core_addr_greaterthan to arch-utils.Andrew Cagney1-17/+0
2000-04-272000-04-26 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder1-0/+3
* utils.c (internal_verror): Call target_terminal_ours.
2000-04-21* defs.h, utils.c (free_current_contents): Change parameter toAndrew Cagney1-3/+4
void*. From Philippe De Muyter <phdm@macqel.be>: * printcmd.c (print_address_symbolic): Call `make_cleanup' with `(free_current_contents, &x)', not `(free, x)'. * utils.c (free_current_contents): Do not `free (NULL)'. * printcmd.c (print_address_symbolic): Cleanup after a failed call to build_address_symbolic.
2000-03-302000-03-30 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder1-1/+1
* defs.h (struct continuation_arg): make 'data' a union, to avoid casting problems when int and pointer are not the same size. * event-top.c (command_handler): use data as a union. (command_line_handler_continuation): ditto. * infcmd.c (step_1_continuation): use data as a union. Re-indent. (step_once): ditto. (finish_command_continuation): ditto. (finish_command): ditto. * breakpoint.c (until_break_command): use data as a union. (until_break_command_continuation): ditto. * utils.c (add_intermediate_continuation): fix typo in comment.
2000-03-20Fixes for floatformat_from_doublest().Kevin Buettner1-2/+4
2000-03-04Make mmalloc functions consistent. Some need ISO-C others need PTR :-(.Andrew Cagney1-13/+6
2000-03-04Convert make_cleanup functions to ISO-C.Andrew Cagney1-22/+9
2000-02-29From Eli. Warning fixes.Andrew Cagney1-0/+4
2000-02-02import gdb-2000-02-01 snapshotJason Molenda1-42/+39
2000-02-01import gdb-2000-01-31 snapshotJason Molenda1-757/+0
2000-01-25import gdb-2000-01-24 snapshotJason Molenda1-21/+49
1999-12-22import gdb-1999-12-21 snapshotJason Molenda1-0/+17
1999-12-07import gdb-1999-12-06 snapshotJason Molenda1-11/+100
1999-11-17import gdb-1999-11-16 snapshotJason Molenda1-64/+117
1999-11-09import gdb-1999-11-08 snapshotJason Molenda1-75/+104
1999-10-26import gdb-1999-10-25 snapshotJason Molenda1-1/+1
1999-10-19import gdb-1999-10-18 snapshotJason Molenda1-14/+124
1999-10-05import gdb-1999-10-04 snapshotJason Molenda1-1/+53
1999-09-28import gdb-1999-09-28 snapshotJason Molenda1-1/+25